Build problem with xenomai-2.4 git head
Hello,
I get the following error when building GIT head of xenomai-2.4 for PowerPC:
Making all in cyclic
make[3]: Entering directory `/work/wolf/pdm360ng/xenomai-2.4/src/testsuite/cyclic'/bin/sh ../../../libtool --tag=CC --mode=link ../../../scripts/wrap-link.sh ppc-linux-gcc -Wl,@/work/wolf/pdm360ng/xenomai-2.4/src/skins/posix/posix.wrappers -o cyclictest cyclictest-cyclictest.o ../../skins/posix/libpthread_rt.la -lpthread -lrt
libtool: link: ../../../scripts/wrap-link.sh ppc-linux-gcc -Wl,@/work/wolf/pdm360ng/xenomai-2.4/src/skins/posix/posix.wrappers -o .libs/cyclictest cyclictest-cyclictest.o ../../skins/posix/.libs/libpthread_rt.so -lpthread -lrt -Wl,-rpath -Wl,/root/xenomai-2.4/lib ../../skins/posix/.libs/libpthread_rt.so: undefined reference to `__real_shm_open'
../../skins/posix/.libs/libpthread_rt.so: undefined reference to `__real_shm_unlink'
collect2: ld returned 1 exit status
make[3]: *** [cyclictest] Error 1
make[3]: Leaving directory `/work/wolf/pdm360ng/xenomai-2.4/src/testsuite/cyclic'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/work/wolf/pdm360ng/xenomai-2.4/src/testsuite'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/work/wolf/pdm360ng/xenomai-2.4/src'
make: *** [all-recursive] Error 1
Any idea why the functions are missing?
Thanks,
Wolfgang.
Quoted 19 lines · Wolfgang Grandegger
Hello,
I get the following error when building GIT head of xenomai-2.4 for PowerPC:
Making all in cyclic
make[3]: Entering directory `/work/wolf/pdm360ng/xenomai-2.4/src/testsuite/cyclic'/bin/sh../../../libtool --tag=CC --mode=link../../../scripts/wrap-link.shppc-linux-gcc -Wl,@/work/wolf/pdm360ng/xenomai-2.4/src/skins/posix/posix.wrappers -o cyclictest cyclictest-cyclictest.o ../../skins/posix/libpthread_rt.la -lpthread -lrt
libtool: link:../../../scripts/wrap-link.shppc-linux-gcc -Wl,@/work/wolf/pdm360ng/xenomai-2.4/src/skins/posix/posix.wrappers -o .libs/cyclictest cyclictest-cyclictest.o ../../skins/posix/.libs/libpthread_rt.so -lpthread -lrt -Wl,-rpath -Wl,/root/xenomai-2.4/lib ../../skins/posix/.libs/libpthread_rt.so: undefined reference to `__real_shm_open'
../../skins/posix/.libs/libpthread_rt.so: undefined reference to `__real_shm_unlink'
collect2: ld returned 1 exit status
make[3]: *** [cyclictest] Error 1
make[3]: Leaving directory `/work/wolf/pdm360ng/xenomai-2.4/src/testsuite/cyclic'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/work/wolf/pdm360ng/xenomai-2.4/src/testsuite'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/work/wolf/pdm360ng/xenomai-2.4/src'
make: *** [all-recursive] Error 1
Quoted 1 line
Any idea why the functions are missing?
Yes, it is due to a recent patch. Though when they do not exist, they should not be called, could you show us the results of:
grep HAVE_SHM src/include/xeno_config.h
in xenomai build tree?
Signature · 1 line
Gilles.
Quoted 20 lines · Gilles Chanteperdrix
Quoted 19 lines · Wolfgang Grandegger
Hello,
I get the following error when building GIT head of xenomai-2.4 for PowerPC:
Making all in cyclic
make[3]: Entering directory `/work/wolf/pdm360ng/xenomai-2.4/src/testsuite/cyclic'/bin/sh../../../libtool --tag=CC --mode=link../../../scripts/wrap-link.shppc-linux-gcc -Wl,@/work/wolf/pdm360ng/xenomai-2.4/src/skins/posix/posix.wrappers -o cyclictest cyclictest-cyclictest.o ../../skins/posix/libpthread_rt.la -lpthread -lrt
libtool: link:../../../scripts/wrap-link.shppc-linux-gcc -Wl,@/work/wolf/pdm360ng/xenomai-2.4/src/skins/posix/posix.wrappers -o .libs/cyclictest cyclictest-cyclictest.o ../../skins/posix/.libs/libpthread_rt.so -lpthread -lrt -Wl,-rpath -Wl,/root/xenomai-2.4/lib ../../skins/posix/.libs/libpthread_rt.so: undefined reference to `__real_shm_open'
../../skins/posix/.libs/libpthread_rt.so: undefined reference to `__real_shm_unlink'
collect2: ld returned 1 exit status
make[3]: *** [cyclictest] Error 1
make[3]: Leaving directory `/work/wolf/pdm360ng/xenomai-2.4/src/testsuite/cyclic'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/work/wolf/pdm360ng/xenomai-2.4/src/testsuite'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/work/wolf/pdm360ng/xenomai-2.4/src'
make: *** [all-recursive] Error 1
Quoted 6 lines
Quoted 1 line
Any idea why the functions are missing?
Yes, it is due to a recent patch. Though when they do not exist, they should not be called, could you show us the results of:
grep
HAVE_SHMsrc/include/xeno_config.h
$ export CROSS_COMPILE=ppc_6xx- $ export ARCH=powerpc $ ./configure --host=ppc-linux $ grep HAVE_SHM src/include/xeno_config.h #define HAVE_SHM_OPEN 1 #define HAVE_SHM_UNLINK 1
Wolfgang.
Quoted 19 lines · Wolfgang Grandegger
Hello,
I get the following error when building GIT head of xenomai-2.4 for PowerPC:
Making all in cyclic
make[3]: Entering directory `/work/wolf/pdm360ng/xenomai-2.4/src/testsuite/cyclic'/bin/sh../../../libtool --tag=CC --mode=link../../../scripts/wrap-link.shppc-linux-gcc -Wl,@/work/wolf/pdm360ng/xenomai-2.4/src/skins/posix/posix.wrappers -o cyclictest cyclictest-cyclictest.o ../../skins/posix/libpthread_rt.la -lpthread -lrt
libtool: link:../../../scripts/wrap-link.shppc-linux-gcc -Wl,@/work/wolf/pdm360ng/xenomai-2.4/src/skins/posix/posix.wrappers -o .libs/cyclictest cyclictest-cyclictest.o ../../skins/posix/.libs/libpthread_rt.so -lpthread -lrt -Wl,-rpath -Wl,/root/xenomai-2.4/lib ../../skins/posix/.libs/libpthread_rt.so: undefined reference to `__real_shm_open'
../../skins/posix/.libs/libpthread_rt.so: undefined reference to `__real_shm_unlink'
collect2: ld returned 1 exit status
make[3]: *** [cyclictest] Error 1
make[3]: Leaving directory `/work/wolf/pdm360ng/xenomai-2.4/src/testsuite/cyclic'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/work/wolf/pdm360ng/xenomai-2.4/src/testsuite'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/work/wolf/pdm360ng/xenomai-2.4/src'
make: *** [all-recursive] Error 1
Quoted 1 line
Any idea why the functions are missing?
Could you try the following patch? It seems to fix things here:
src/skins/posix/wrappers.c +1 -0
@@ -32,6 +32,7 @@#include <sys/ioctl.h> #include <sys/mman.h> #include <sys/select.h> +#include <xeno_config.h> #undef __real_ftruncate#undef __real_mmap
Signature · 1 line
Gilles.
Quoted 29 lines · Gilles Chanteperdrix
Quoted 19 lines · Wolfgang Grandegger
Hello,
I get the following error when building GIT head of xenomai-2.4 for PowerPC:
Making all in cyclic
make[3]: Entering directory `/work/wolf/pdm360ng/xenomai-2.4/src/testsuite/cyclic'/bin/sh../../../libtool --tag=CC --mode=link../../../scripts/wrap-link.shppc-linux-gcc -Wl,@/work/wolf/pdm360ng/xenomai-2.4/src/skins/posix/posix.wrappers -o cyclictest cyclictest-cyclictest.o ../../skins/posix/libpthread_rt.la -lpthread -lrt
libtool: link:../../../scripts/wrap-link.shppc-linux-gcc -Wl,@/work/wolf/pdm360ng/xenomai-2.4/src/skins/posix/posix.wrappers -o .libs/cyclictest cyclictest-cyclictest.o ../../skins/posix/.libs/libpthread_rt.so -lpthread -lrt -Wl,-rpath -Wl,/root/xenomai-2.4/lib ../../skins/posix/.libs/libpthread_rt.so: undefined reference to `__real_shm_open'
../../skins/posix/.libs/libpthread_rt.so: undefined reference to `__real_shm_unlink'
collect2: ld returned 1 exit status
make[3]: *** [cyclictest] Error 1
make[3]: Leaving directory `/work/wolf/pdm360ng/xenomai-2.4/src/testsuite/cyclic'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/work/wolf/pdm360ng/xenomai-2.4/src/testsuite'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/work/wolf/pdm360ng/xenomai-2.4/src'
make: *** [all-recursive] Error 1Quoted 1 line
Any idea why the functions are missing?
Could you try the following patch? It seems to fix things here:
src/skins/posix/wrappers.c +0
-0
src/skins/posix/wrappers.c line 38
Quoted 7 lines
src/skins/posix/wrappers.c +1
-0@@ -32,6 +32,7 @@#include <sys/ioctl.h> #include <sys/mman.h> #include <sys/select.h> +#include <xeno_config.h> #undef __real_ftruncate#undef __real_mmap
That patch helps. The build works now without reporting any error.
Thanks,
Wolfgang.