Hi,
while compiling magma for arm we observe these error messages:


....
Making all in liblxrt
make[5]: Entering directory `/usr/ls/magma/base/sched/liblxrt'
if /bin/sh ../../../libtool --tag=CC --mode=compile arm-linux-gcc -DHAVE_CONFIG_H -I. -I/usr/ls/magma/base/sched/liblxrt -I../../.. -O2 -I/usr/src/arm-linux-2.6.7-adeos/include -Wall -Wstrict-prototypes -pipe -D__IN_RTAI__ -D_GNU_SOURCE -fno-inline -I/usr/ls/magma/base/include -I../../include -MT init.lo -MD -MP -MF ".deps/init.Tpo" -c -o init.lo init.c; \ then mv -f ".deps/init.Tpo" ".deps/init.Plo"; else rm -f ".deps/init.Tpo"; exit 1; fi
mkdir .libs
arm-linux-gcc -DHAVE_CONFIG_H -I. -I/usr/ls/magma/base/sched/liblxrt -I../../.. -O2 -I/usr/src/arm-linux-2.6.7-adeos/include -Wall -Wstrict-prototypes -pipe -D__IN_RTAI__ -D_GNU_SOURCE -fno-inline -I/usr/ls/magma/base/include -I../../include -MT init.lo -MD -MP -MF .deps/init.Tpo -c init.c -fPIC -DPIC -o .libs/init.o arm-linux-gcc -DHAVE_CONFIG_H -I. -I/usr/ls/magma/base/sched/liblxrt -I../../.. -O2 -I/usr/src/arm-linux-2.6.7-adeos/include -Wall -Wstrict-prototypes -pipe -D__IN_RTAI__ -D_GNU_SOURCE -fno-inline -I/usr/ls/magma/base/include -I../../include -MT init.lo -MD -MP -MF .deps/init.Tpo -c init.c -o init.o >/dev/null 2>&1 if /bin/sh ../../../libtool --tag=CC --mode=compile arm-linux-gcc -DHAVE_CONFIG_H -I. -I/usr/ls/magma/base/sched/liblxrt -I../../.. -O2 -I/usr/src/arm-linux-2.6.7-adeos/include -Wall -Wstrict-prototypes -pipe -D__IN_RTAI__ -D_GNU_SOURCE -fno-inline -I/usr/ls/magma/base/include -I../../include -MT services.lo -MD -MP -MF ".deps/services.Tpo" -c -o services.lo services.c; \ then mv -f ".deps/services.Tpo" ".deps/services.Plo"; else rm -f ".deps/services.Tpo"; exit 1; fi arm-linux-gcc -DHAVE_CONFIG_H -I. -I/usr/ls/magma/base/sched/liblxrt -I../../.. -O2 -I/usr/src/arm-linux-2.6.7-adeos/include -Wall -Wstrict-prototypes -pipe -D__IN_RTAI__ -D_GNU_SOURCE -fno-inline -I/usr/ls/magma/base/include -I../../include -MT services.lo -MD -MP -MF .deps/services.Tpo -c services.c -fPIC -DPIC -o .libs/services.o
In file included from /usr/ls/magma/base/include/rtai_scb.h:43,
                from /usr/ls/magma/base/include/rtai_schedcore.h:31,
                from services.c:22:
/usr/ls/magma/base/include/asm/rtai_atomic.h: In function `atomic_cmpxchg':
/usr/ls/magma/base/include/asm/rtai_atomic.h:93: warning: implicit declaration of function `adeos_hw_local_irq_save' /usr/ls/magma/base/include/asm/rtai_atomic.h:98: warning: implicit declaration of function `adeos_hw_local_irq_restore'
In file included from services.c:23:
/usr/ls/magma/base/include/rtai_posix.h: In function `sem_open_rt':
/usr/ls/magma/base/include/rtai_posix.h:601: warning: implicit declaration of function `atomic_inc'
/usr/ls/magma/base/include/rtai_posix.h: In function `sem_close_rt':
/usr/ls/magma/base/include/rtai_posix.h:643: warning: implicit declaration of function `atomic_dec_and_test'
/usr/ls/magma/base/include/asm/rtai_atomic.h: In function `atomic_cmpxchg':
/usr/ls/magma/base/include/asm/rtai_atomic.h:92: warning: `flags' might be used uninitialized in this function
.......

Making all in latency
make[5]: Entering directory `/usr/ls/magma/testsuite/user/latency'
if arm-linux-gcc -DHAVE_CONFIG_H -I. -I/usr/ls/magma/testsuite/user/latency -I../../.. -O2 -I/usr/src/arm-linux-2.6.7-adeos/include -Wall -Wstrict-prototypes -pipe -D__IN_RTAI__ -I/usr/ls/magma/base/include -I../../../base/include -MT latency-latency.o -MD -MP -MF ".deps/latency-latency.Tpo" -c -o latency-latency.o `test -f 'latency.c' || echo '/usr/ls/magma/testsuite/user/latency/'`latency.c; \ then mv -f ".deps/latency-latency.Tpo" ".deps/latency-latency.Po"; else rm -f ".deps/latency-latency.Tpo"; exit 1; fi /bin/sh ../../../libtool --mode=link --tag=CC arm-linux-gcc -o latency latency-latency.o ../../../base/sched/liblxrt/liblxrt.la -lpthread
mkdir .libs

*** Warning: Linking the executable latency against the loadable module
*** liblxrt.so is not portable!
arm-linux-gcc -o .libs/latency latency-latency.o ../../../base/sched/liblxrt/.libs/liblxrt.so -lpthread -Wl,--rpath -Wl,/usr/magma-arm/lib ../../../base/sched/liblxrt/.libs/liblxrt.so: undefined reference to `adeos_hw_local_irq_restore' ../../../base/sched/liblxrt/.libs/liblxrt.so: undefined reference to `adeos_hw_local_irq_save' ../../../base/sched/liblxrt/.libs/liblxrt.so: undefined reference to `atomic_dec_and_test' ../../../base/sched/liblxrt/.libs/liblxrt.so: undefined reference to `atomic_inc'
collect2: ld returned 1 exit status
make[5]: *** [latency] Error 1
make[5]: Leaving directory `/usr/ls/magma/testsuite/user/latency'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/ls/magma/testsuite/user'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/ls/magma/testsuite'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/ls/magma'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/ls/magma'
make: *** [all] Error 2


in file /usr/ls/magma/base/include/asm/rtai_atomic.h there is an include to our system.h (with the defininitions of 'adeos_hw_local_irq_restore' and 'adeos_hw_local_irq_save')

in file /usr/ls/magma/base/include/rtai_posix.h there is an include to our atomic.h (with the defininitions of 'atomic_dec_and_test' and 'atomic_inc')

any suggestions?

Luca & Ste.

_________________________________________________________________
Ricerche online più semplici e veloci con MSN Toolbar! http://toolbar.msn.it/ è GRATIS!


Reply via email to