Compiling Msgpack for arm

295 views
Skip to first unread message

clim...@gmail.com

unread,
Feb 5, 2013, 10:25:06 AM2/5/13
to msgpa...@googlegroups.com
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?



Masahiro Nakagawa

unread,
Feb 5, 2013, 11:09:24 AM2/5/13
to msgpa...@googlegroups.com
I'm not familiar with ARM but maybe possible.

I googled your error message and found same errors on some ML.
So this error doesn't seem MessagePack related problem.


Masahiro
> --
> You received this message because you are subscribed to the Google Groups
> "MessagePack Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to msgpack-dev...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages