Hi,
Is it possible to cross compile messagepack for ARM?
I'm using the CodeSourcery cross compiler with the following commands:
./configure --prefix=/home/engineer/sandbox/linux_msgpack
make
make install
make distclean
./configure --host=arm-none-linux-gnueabi --prefix=/home/engineer/sandbox/arm_msgpack --with-local-prefix=/home/engineer/sandbox/linux_msgpack
make
make install
This looks like it works but then when I compile the 'First Program', which i've called loop.cpp using:
arm-none-linux-gnueabi-gcc loop.cpp -I/home/engineer/sandbox/arm_msgpack/include -L/home/engineer/sandbox/arm_msgpack/lib -lmsgpack -Wl,-rpath . -o loop
The output is:
/home/engineer/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: loop: hidden symbol `__sync_sub_and_fetch_4' in /home/engineer/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/libgcc.a(linux-atomic.o) is referenced by DSO
/home/engineer/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/../../../../arm-none-linux-gnueabi/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
Is there a way to solve this?