Skip to contentSkip to conversation

Problem Compiling/Building UserSpace Support for ARM

Xenomai Stefan Videv 2 participants 3 messages Oct 15, 2012

lore
Share & tools
lore
#0 lore raw

Hello!

I've been trying to compile the user-space support for the latest version of Xenomai for ARM but failing.

After downloading the source files, and running

./configure --build=i686-pc-linux-gnu --host=arm-linux-gnueabi CFLAGS="-march=armv7-a -mfpu=vfp3" LDFLAGS="-march=armv7-a"

followed by

make

I get the following error:

{standard input}: Assembler messages:
{standard input}:254: Error: thumb conditional instruction should be in IT block -- strexeq r0,r1,[r3]' {standard input}:601: Error: thumb conditional instruction should be in IT block -- strexeq r0,r1,[r3]' make[3]: *** [libxenomai_la-rt_print.lo] Error 1
make[3]: Leaving directory `/home/svidev/beaglebone/xenomai-2.6.1/src/skins/common' make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/svidev/beaglebone/xenomai-2.6.1/src/skins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/svidev/beaglebone/xenomai-2.6.1/src'
make: *** [all-recursive] Error 1

What am I doing wrong? I've already compiled a couple of kernels with this toolchain so it should work (albeit I haven't had the time to test those kernels).

Thanks in advance,

Kind Regards,
Stefan

#1 lore raw
Quoted 9 lines · Stefan Videv

Hello!

I've been trying to compile the user-space support for the latest version of Xenomai for ARM but failing.

After downloading the source files, and running

./configure --build=i686-pc-linux-gnu --host=arm-linux-gnueabi CFLAGS="-march=armv7-a -mfpu=vfp3" LDFLAGS="-march=armv7-a"

That is because your toolchain compiles by default for thumb. Add -marm to CFLAGS, thumb user-space are currently unsupported.

Signature · 1 line
					    Gilles.
#2 lore raw

Thanks, Gilles! Worked a threat!

-- Stefan

Quoted 17 lines · Gilles Chanteperdrix
Quoted 9 lines · Stefan Videv

Hello!

I've been trying to compile the user-space support for the latest version of Xenomai for ARM but failing.

After downloading the source files, and running

./configure --build=i686-pc-linux-gnu --host=arm-linux-gnueabi CFLAGS="-march=armv7-a -mfpu=vfp3" LDFLAGS="-march=armv7-a"

That is because your toolchain compiles by default for thumb. Add -marm to CFLAGS, thumb user-space are currently unsupported.

--
Gilles.