Menu

#10 Cross-compile fail on arm codex core

open
nobody
5
2013-05-06
2013-05-06
He Wei
No

Hi,
I try to do a cross-compile of judy-1.0.5 on arm codex core with the command as:

judy-1.0.5]$ export CC=armv7-linux-gcc;
judy-1.0.5]$ export CXX=armv7-linux-g++;
judy-1.0.5]$ export AS=armv7-linux-as;
judy-1.0.5]$ export LD=armv7-linux-ld;
judy-1.0.5]$ export AR=armv7-linux-ar;

judy-1.0.5]$ ./configure --host=arm-cortex-linux-gnueabi --enable-32-bit
judy-1.0.5]$ make

It fail with the error log:
“armv7-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I. -I.. -UJU_64BIT -m32 -UJU_64BIT -g -O2 -UJU_64BIT -m32 -UJU_64BIT -g -O2 -MT JudyMalloc.lo -MD -MP -MF .deps/JudyMalloc.Tpo -c JudyMalloc.c -DPIC
cc1: error: unrecognized command line option '-m32'
cc1: error: unrecognized command line option '-m32'
make[3]: *** [JudyMalloc.lo] Error 1”

Do you have any opinions?

Thanks and best regards
He Wei

Discussion


Log in to post a comment.