Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Strange Build issue Proview V5.5

Strange Build issue Proview V5.5 1 year 5 months ago #11755

  • Snarf77
  • Snarf77's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 847
  • Thank you received: 2
  • Karma: 5
Hi Claes and all,
we are used to use one virtual machine with proview devlopment station for each of our project in order not to let the source code of every project freely available on each one and in my latest machine when I build the application I discover recently that a build force is causing strange error relating to some of proview basis and I never encountered that.

For example, building my application, reveals:
%GSX-I-CCSUCC, Window compiled           PLC1P-EQP12-EQP12_Pgm-W-ObjFlt152_24-W
-- Plc window generated            PLC1P-EQP12-EQP12_Pgm-W-SENSANA_Fo24-W
** Plc window compiled with errors for x86_linux PLC1P-EQP12-EQP12_Pgm-W-SENSANA_Fo24-W
In file included from /usr/pwr55/os_linux/hw_x86/exp/inc/rt_gdh.h:65:0,
                 from /usr/pwr55/os_linux/hw_x86/exp/inc/rt_plc_timer.h:53,
                 from /usr/pwr55/os_linux/hw_x86/exp/inc/rt_io_supervise.h:65,
                 from /usr/pwr55/os_linux/hw_x86/exp/inc/rt_io_base.h:62,
                 from /usr/pwr55/os_linux/hw_x86/exp/inc/rt_plc.h:137,
                 from /usr/pwr55/os_linux/hw_x86/exp/inc/rt_plc_macro.h:48,
                 from /usr/local/pwrp/xv19444/bld/common/tmp/plc_m000_019_044_001_00116f74.gc:1:
/usr/pwr55/os_linux/hw_x86/exp/inc/rt_errh.h:243:7: error: attempt to use poisoned "errh_LogInfo"
 void  errh_LogInfo (errh_sLog*, const char *msg, ...);
       ^
/usr/pwr55/os_linux/hw_x86/exp/inc/rt_errh.h:243:7: error: expected identifier or ‘(’ before ‘errh_LogInfo’
%GSX-F-CCERROR, Error from c compiler or linker

SENSANA is a module of my class volume related to the management of an analog sensor which is working fine on other machine and even on that one all other modules compiles fine and from time to time I got the above.

At each build the error location can be different but often gcc finishes by mentionning rt_plc_macro.h or a segmentation fault as in below example.

How could have I an error in such core component or include file ?


Another example here after:
* Plc window compiled with errors for x86_linux PLC1P-EQP6-EQP6_Pgm-W-ObjFlt146_42-W
/usr/local/pwrp/xv19444/bld/common/tmp/plc_m000_019_044_001_001335fe.gc: In function ‘M000_019_044_001_001335fe_exec’:
/usr/local/pwrp/xv19444/bld/common/tmp/plc_m000_019_044_001_001335fe.gc:23:1: internal compiler error: Segmentation fault
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
%GSX-F-CCERROR, Error from c compiler or linker
        in window  PLC1P-EQP6-EQP6_Pgm-W-ObjFlt146_42-W
-- Plc window generated            PLC1P-EQP6-EQP6_Pgm-W-ObjFlt146_43-W
-- Plc window compiled for x86_linux with debug PLC1P-EQP6-EQP6_Pgm-W-ObjFlt146_


I don't know how to get rid of theses faults that put the doubt for me on the output of my build and related package generation.
Would you have some advice to provide ?


[EDIT] I just recompile with force the hieracrchy involved in the fault (PLC1P-EQP12) and it's OK (build OK without any warnig or error). It 's look like it's only when I build all volume or node that this kind of failure occurs

Many thanks in advance
Best regards
Snarf
Last Edit: 1 year 5 months ago by Snarf77.
The administrator has disabled public write access.

Strange Build issue Proview V5.5 1 year 5 months ago #11761

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3170
  • Thank you received: 497
  • Karma: 133
Hi Snarf,

I've not come across something like this before. To get the 'poisoned' error message you should poison a function with a '#pragma GCC poison' directive an this is not done in the ProviewR code. errh_LogInfo is used in several locations and has never been poisoned. Segmentation fault in gcc is also very rare. I don't know if I ever have seen one. I suspect that gcc is running short of some resource. Is there enough memory in the virtual machine?

/Claes
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 8.453 seconds