AnsweredAssumed Answered

Problem when cross-compiling glib with arm-linux-gnueabihf chain

Question asked by Sijie Chen on May 27, 2019
Latest reply on Jun 12, 2019 by Purvi Billore

Processor: i.MX6UL

Cross compilation chain: arm-linux-gnueabihf-gcc(gcc version 4.9.2 20140904)

Host Os: Ubuntu-14.04.5-desktop-amd64

Library: glib-2.16.2

Preceding configure command:

./configure --prefix=/opt/arm/bluez --host=arm-linux CC="arm-linux-gnueabihf-gcc -I/opt/arm/bluez/include -L/opt/arm/bluez/lib" glib_cv_long_long_format=ll glib_cv_stack_grows=no glib_cv_have_strlcpy=no glib_cv_uscore=yes glib_cv_have_qsort_r=yes glib_cv_va_val_copy=yes glib_cv_rtldglobal_broken=no ac_cv_func_posix_getpwuid_r=yes ac_cv_func_posix_getgrgid_r=yes --disable-asm

 

Error info:

/tmp/ccoROdbd.s: Assembler messages:

/tmp/ccoROdbd.s:46: Error: selected processor does not support Thumb mode `swp r3,r5,[r4]'

/tmp/ccoROdbd.s:65: Error: selected processor does not support Thumb mode `swp r3,r5,[r4]'

make[4]: *** [gatomic.lo] 错误 1

make[4]:正在离开目录 `/home/chensijie/glib-2.16.2/glib'

make[3]: *** [all-recursive] 错误 1

make[3]:正在离开目录 `/home/chensijie/glib-2.16.2/glib'

make[2]: *** [all] 错误 2

make[2]:正在离开目录 `/home/chensijie/glib-2.16.2/glib'

make[1]: *** [all-recursive] 错误 1

make[1]:正在离开目录 `/home/chensijie/glib-2.16.2'

make: *** [all] 错误 2

 

I encountered this error info while installing the glib library. More specifically, when MAKE command was run.

 

I searched the Internet for a long time but couldn't find the answer. I will appreciate very much if you can help figure out the cause of the error and the solution. Thanks a lot.

Outcomes