From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4BB1BEF2.5040600@domain.hid> Date: Tue, 30 Mar 2010 11:05:54 +0200 From: Patrice Kadionik MIME-Version: 1.0 References: <507168.65506.qm@domain.hid>, <4BAF58F7.7070707@domain.hid> <4BB1287B.6020205@domain.hid> In-Reply-To: <4BB1287B.6020205@domain.hid> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Xenomai-help] Problem to cross-compile Xenomai user-space support List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: "xenomai@xenomai.org" Le 30/03/2010 00:23, Gilles Chanteperdrix a =C3=A9crit : > Huan Fang wrote: > =20 >> eck_vdso-check-vdso.o ../../skins/native/libnative.la -lpthread -lm >> libtool: link: ../../../scripts/wrap-link.sh nios2-linux-gcc -Wl,-elf2= flt -o check-vdso check_vdso-check-vdso.o ../../skins/native/.libs/libna= tive.a -lpthread -lm >> check-vdso.elf2flt(.text+0x16c): In function `main': >> : undefined reference to `xeno_sem_heap' >> check-vdso.elf2flt(.text+0x170): In function `main': >> : undefined reference to `xeno_sem_heap' >> collect2: ld returned 1 exit status >> make[3]: *** [check-vdso] Erreur 1 >> make[3]: quittant le r=C3=A9pertoire =C2=AB /home/sonda/Desktop/xenoma= i-2.5.1/src/testsuite/unit =C2=BB >> make[2]: *** [all-recursive] Erreur 1 >> make[2]: quittant le r=C3=A9pertoire =C2=AB /home/sonda/Desktop/xenoma= i-2.5.1/src/testsuite =C2=BB >> make[1]: *** [all-recursive] Erreur 1 >> make[1]: quittant le r=C3=A9pertoire =C2=AB /home/sonda/Desktop/xenoma= i-2.5.1/src =C2=BB >> make: *** [all-recursive] Erreur 1 >> >> what can I do? Please help >> =20 > Please try xenomai 2.5.2 > > > =20 Hi Gilles, I've done this with the 2.5.2 version and I have had the same problem.=20 It is the consequence of another one earlier in the compilation process. After the xenomai configuration for NIOS II: $ ./configure --host=3Dnios2-linux the generated src/include/xeno_config.h configuration file has=20 CONFIG_XENO_FASTSYNCH not configured: ... /* config */ /* #undef CONFIG_XENO_FASTSYNCH */ ... If you make the compilation, it fails on the src/skins/common/sem_heap.c=20 compilation. You have in this files 2 similar functions line 100: static void xeno_init_sem_heaps_inner(void) and line 118: void xeno_init_sem_heaps(void) There is a mismatch in the src/skins/common/sem_heap.h file according to=20 the CONFIG_XENO_FASTSYNCH definition (during Xenomai configuration). In this case it conflits with the macro #define xeno_init_sem_heaps()=20 line 9 in the src/skins/common/sem_heap.h file and the void=20 xeno_init_sem_heaps(void) in the src/skins/common/sem_heap.c I don't know what in the right correction to do in the=20 src/skins/common/sem_heap.h file according to the CONFIG_XENO_FASTSYNCH=20 definition. If I suppress the line 9 (#define ...) in the=20 src/skins/common/sem_heap.h file, it compiles until problems for=20 src/testsuite/unit tool: cond-torture.c file. Line 56: problem with the "if else" structure when=20 HAVE_PTHREAD_MUTEXATTR_SETPROTOCOL is not defined (the case here). check-vdso.c compilation: in the src/testsuite/unit/Makefile.in file,=20 the @CONFIG_XENO_FASTSYNCH_TRUE@ controls the check-vdso compilation. it=20 is not completely inhibited when CONFIG_XENO_FASTSYNCH is not configured=20 (the case here). I have corrected by hand these 2 problems and Xenomai v2.5.2 is OK on my=20 NIOS II board. Gilles, what is the right modification to make on the=20 src/skins/common/sem_heap.h file when CONFIG_XENO_FASTSYNCH is not=20 defined during Xenomai configration? Cheers; Patrice -- Patrice Kadionik. F6KQH / F4CUQ ----------- +----------------------------------------------------------------------+ +"Tout doit etre aussi simple que possible, pas seulement plus simple" + +----------------------------------------------------------------------+ + Patrice Kadionik http://www.enseirb-matmeca.fr/~kadionik + + IMS Laboratory http://www.ims-bordeaux.fr/ + + ENSEIRB-MATMECA http://www.enseirb-matmeca.fr + + PO BOX 99 fax : +33 5.56.37.20.23 + + 33402 TALENCE Cedex voice : +33 5.56.84.23.47 + + FRANCE mailto:patrice.kadionik@domain.hid + +----------------------------------------------------------------------+