Bugs item #3439437, was opened at 2011-11-17 07:11
Message generated for change (Comment added) made by andypugh
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106744&aid=3439437&group_id=6744

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Sebastian Kuzminsky (seb_kuzminsky)
Assigned to: Nobody/Anonymous (nobody)
Summary: message.comp doesn't build in sim mode

Initial Comment:
The new message.comp component uses the "bool" data type, which is not a valid 
C type but *is* somehow defined or typedef'ed when building for realtime.  The 
type is *not* defined when building sim.

Here's from the buildbot (this happens to be hardy-64, but all sim builders 
fail in the same way):

Compiling realtime objects/hal/components/message.c
gcc -c -Os -g -Wall -DSIM -DSIMULATOR -DRTAPI -Os -I. 
-I/home/buildslave/buildbot/hardy-amd64/hardy-amd64-sim/build/src/include 
-DSIMULATOR -DRTAPI -D_GNU_SOURCE -Drealtime -D_FORTIFY_SOURCE=0 -D__MODULE__ 
-I/home/buildslave/buildbot/hardy-amd64/hardy-amd64-sim/build/src 
-I/home/buildslave/buildbot/hardy-amd64/hardy-amd64-sim/build/src/libnml/linklist
 -I/home/buildslave/buildbot/hardy-amd64/hardy-amd64-sim/build/src/libnml/cms 
-I/home/buildslave/buildbot/hardy-amd64/hardy-amd64-sim/build/src/libnml/rcs 
-I/home/buildslave/buildbot/hardy-amd64/hardy-amd64-sim/build/src/libnml/inifile
 
-I/home/buildslave/buildbot/hardy-amd64/hardy-amd64-sim/build/src/libnml/os_intf
 -I/home/buildslave/buildbot/hardy-amd64/hardy-amd64-sim/build/src/libnml/nml 
-I/home/buildslave/buildbot/hardy-amd64/hardy-amd64-sim/build/src/libnml/buffer 
-I/home/buildslave/buildbot/hardy-amd64/hardy-amd64-sim/build/src/libnml/posemath
 -I/home/buildslave/buildbot/hardy-amd64/hardy-amd64-sim/build/src/rtapi 
-I/home/buildslave/buildbot/hardy-amd64/hardy-amd64-sim/build/src/hal 
-I/home/buildslave/buildbot/hardy-amd64/hardy-amd64-sim/build/src/emc/nml_intf 
-I/home/buildslave/buildbot/hardy-amd64/hardy-amd64-sim/build/src/emc/kinematics
 -I/home/buildslave/buildbot/hardy-amd64/hardy-amd64-sim/build/src/emc/motion 
-DSEQUENTIAL_SUPPORT -DHAL_SUPPORT -DDYNAMIC_PLCSIZE -DRT_SUPPORT 
-DOLD_TIMERS_MONOS_SUPPORT -DMODBUS_IO_MASTER -fno-fast-math -mieee-fp 
-fno-unsafe-math-optimizations  -msse -fPIC -Os 
objects/hal/components/message.c -o objects/rtobjects/hal/components/message.o
objects/hal/components/message.c:31: error: expected specifier-qualifier-list 
before ‘bool’
objects/hal/components/message.c: In function ‘export’:
objects/hal/components/message.c:73: error: ‘struct state’ has no member 
named ‘prev_trigger’
objects/hal/components/message.c:74: error: ‘struct state’ has no member 
named ‘prev_force’
objects/hal/components/message.c:75: error: ‘struct state’ has no member 
named ‘prev_edge’
hal/components/message.comp: In function ‘_’:
hal/components/message.comp:83: error: ‘bool’ undeclared (first use in this 
function)
hal/components/message.comp:83: error: (Each undeclared identifier is reported 
only once
hal/components/message.comp:83: error: for each function it appears in.)
hal/components/message.comp:83: error: expected ‘;’ before ‘show’
hal/components/message.comp:84: error: ‘struct state’ has no member named 
‘prev_edge’
hal/components/message.comp:86: error: ‘struct state’ has no member named 
‘prev_edge’
hal/components/message.comp:87: error: ‘struct state’ has no member named 
‘prev_trigger’
hal/components/message.comp:89: error: ‘struct state’ has no member named 
‘prev_force’
hal/components/message.comp:91: error: ‘struct state’ has no member named 
‘prev_force’
hal/components/message.comp:94: error: ‘show’ undeclared (first use in this 
function)
hal/components/message.comp:97: error: ‘struct state’ has no member named 
‘prev_trigger’
hal/components/message.comp:99: error: ‘struct state’ has no member named 
‘prev_trigger’
make: Leaving directory 
`/home/buildslave/buildbot/hardy-amd64/hardy-amd64-sim/build/src'
make: *** [objects/rtobjects/hal/components/message.o] Error 1

----------------------------------------------------------------------

Comment By: andypugh (andypugh)
Date: 2011-11-17 07:30

Message:
Perhaps hal_bit_t makes sense, as there are explicit comparisons to hal bit
pins. 
I will have a fiddle tonight. 
Sorry, I didn't think to test a sim build. 

----------------------------------------------------------------------

Comment By: Sebastian Kuzminsky (seb_kuzminsky)
Date: 2011-11-17 07:12

Message:
I thought about just switching from "bool" to "int", but  TRUE is #defined
to 1, which i think is not right.  I think it should be "!0".

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=106744&aid=3439437&group_id=6744

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to