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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

882 Views
chensijie
Contributor I

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.

Labels (1)
0 Kudos
2 Replies

730 Views
purvi_billore1
Contributor III

Hello,

I am using Colibri iMX6 DL , and SGTL5000 Audio Codec for recording audio data and sending it to EIM bus through buffer.

I am cross compiling arecord (alsa-utils) using this command:  "arm-linux-gnueabifhf-gcc program.c -o pro.out -lasound "

But it is showing error which is attached below.

I am able to compile it for my laptop using "gcc -o program.out program.c -lasound"

Screenshot from 2019-06-12 13_34_32.png

Can you provide a solution to this .

 

Thanks

0 Kudos

730 Views
jimmychan
NXP TechSupport
NXP TechSupport

Attached is the Linux User's guide. Please follow the 4.5.12 to generate an SDK which includes the toolchain.

0 Kudos