2009-02-21 15:17:06 problems building Xenomai in svn trunk 7780
leifi leif (SWEDEN)
Message: 69725
Hi, I'm trying to buuild a ditribution with Xenomai but it won't compile.
Im a bit of a noob and can't figure out how to solve it. i'm using a BF537-stamp board, and svn trunk 7780.
Any ideas how to fix it?
compiling gives the following error.
make[3]: Leaving directory `/home/blackfin/Desktop/uclinux-dist-trunk-svn-7780/user/whetstone'
[ ! -d "xenomai" ] || ( touch xenomai/.sgbuilt_user && make -C xenomai ) || exit $?
make[3]: Entering directory `/home/blackfin/Desktop/uclinux-dist-trunk-svn-7780/user/xenomai'
make -C build-xenomai-2.4.x install DESTDIR=/home/blackfin/Desktop/uclinux-dist-trunk-svn-7780/staging
make[4]: Entering directory `/home/blackfin/Desktop/uclinux-dist-trunk-svn-7780/user/xenomai/build-xenomai-2.4.x'
Making install in src
make[5]: Entering directory `/home/blackfin/Desktop/uclinux-dist-trunk-svn-7780/user/xenomai/build-xenomai-2.4.x/src'
Making install in include
make[6]: Entering directory `/home/blackfin/Desktop/uclinux-dist-trunk-svn-7780/user/xenomai/build-xenomai-2.4.x/src/include'
make[7]: Entering directory `/home/blackfin/Desktop/uclinux-dist-trunk-svn-7780/user/xenomai/build-xenomai-2.4.x/src/include'
make[7]: Nothing to be done for `install-exec-am'.
make[7]: Nothing to be done for `install-data-am'.
make[7]: Leaving directory `/home/blackfin/Desktop/uclinux-dist-trunk-svn-7780/user/xenomai/build-xenomai-2.4.x/src/include'
make[6]: Leaving directory `/home/blackfin/Desktop/uclinux-dist-trunk-svn-7780/user/xenomai/build-xenomai-2.4.x/src/include'
Making install in rtdk
make[6]: Entering directory `/home/blackfin/Desktop/uclinux-dist-trunk-svn-7780/user/xenomai/build-xenomai-2.4.x/src/rtdk'
/bin/bash ../../libtool --tag=CC --mode=compile bfin-uclinux-gcc -DHAVE_CONFIG_H -I. -I../../../xenomai-2.4.x/src/rtdk -I../../src/include -O2 -D_GNU_SOURCE -D_REENTRANT -Wall -pipe -mfdpic -D__XENO__ -D__IN_XENO__ -Wstrict-prototypes -I../../../xenomai-2.4.x/include -DEMBED -D__uClinux__ -I/home/blackfin/Desktop/uclinux-dist-trunk-svn-7780 -mcpu=bf537-0.2 -pipe -Wall -g -O2 -mcpu=bf537-0.2 -c -o librtdk_la-init.lo `test -f 'init.c' || echo '../../../xenomai-2.4.x/src/rtdk/'`init.c
bfin-uclinux-gcc -DHAVE_CONFIG_H -I. -I../../../xenomai-2.4.x/src/rtdk -I../../src/include -O2 -D_GNU_SOURCE -D_REENTRANT -Wall -pipe -mfdpic -D__XENO__ -D__IN_XENO__ -Wstrict-prototypes -I../../../xenomai-2.4.x/include -DEMBED -D__uClinux__ -I/home/blackfin/Desktop/uclinux-dist-trunk-svn-7780 -mcpu=bf537-0.2 -pipe -Wall -g -O2 -mcpu=bf537-0.2 -c ../../../xenomai-2.4.x/src/rtdk/init.c -o librtdk_la-init.o
../../../xenomai-2.4.x/src/rtdk/init.c:1: error: -mfdpic is not supported, please use a bfin-linux-uclibc target
make[6]: *** [librtdk_la-init.lo] Error 1
make[6]: Leaving directory `/home/blackfin/Desktop/uclinux-dist-trunk-svn-7780/user/xenomai/build-xenomai-2.4.x/src/rtdk'
make[5]: *** [install-recursive] Error 1
make[5]: Leaving directory `/home/blackfin/Desktop/uclinux-dist-trunk-svn-7780/user/xenomai/build-xenomai-2.4.x/src'
make[4]: *** [install-recursive] Error 1
make[4]: Leaving directory `/home/blackfin/Desktop/uclinux-dist-trunk-svn-7780/user/xenomai/build-xenomai-2.4.x'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/blackfin/Desktop/uclinux-dist-trunk-svn-7780/user/xenomai'
make[2]: *** [xenomai] Error 2
make[2]: Leaving directory `/home/blackfin/Desktop/uclinux-dist-trunk-svn-7780/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/blackfin/Desktop/uclinux-dist-trunk-svn-7780/user'
make: *** [subdirs] Error 1
Best regards leifi
QuoteReplyEditDelete
2009-02-23 02:53:44 Re: problems building Xenomai in svn trunk 7780
Yi Li (CHINA)
Message: 69734
Leifi,
The problem can be solved by using bfin-linux-uclibc-gcc to build - that is ,use the FDPIC format, instead of FLAT.
But I will also change the xenomai build script to remove the "-mfdpic" option (it is not required).
-Yi
QuoteReplyEditDelete
2009-02-25 04:02:53 Re: problems building Xenomai in svn trunk 7780
leifi leif (SWEDEN)
Message: 69859
Hi,
Tanx for the reply, one more question where do i change it?
QuoteReplyEditDelete
2009-02-25 04:22:34 Re: problems building Xenomai in svn trunk 7780
Yi Li (CHINA)
Message: 69876
make menuconfig:
"Blackfin build options."
And I've changed build script in SVN trunk, so xenomai can be built as FLAT now.
-Yi