本人在ubuntu中进行glib的交叉编译,每次都是出现以下这个问题:
/tmp/ccSFAhef.s: Assembler messages:
/tmp/ccSFAhef.s:46: Error: selected processor does not support Thumb mode `swp r3,r5,[r4]'
/tmp/ccSFAhef.s:65: Error: selected processor does not support Thumb mode `swp r3,r5,[r4]'
Makefile:842: recipe for target 'gatomic.lo' failed
make[4]: *** [gatomic.lo] Error 1
make[4]: Leaving directory '/opt/glib/glib-2.18.1/glib'
Makefile:895: recipe for target 'all-recursive' failed
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory '/opt/glib/glib-2.18.1/glib'
Makefile:626: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/opt/glib/glib-2.18.1/glib'
Makefile:560: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/opt/glib/glib-2.18.1'
Makefile:376: recipe for target 'all' failed
make: *** [all] Error 2
我得配置configure为:
./configure --cache-file=arm.cache --host=arm-linux-gnueabihf --prefix=/opt/cross-tools/soc_gcc/arm-linux-gnueabihf/
编译上述命令是通过的,唯独在make的时候编译不过关
这个问题该如何解决呢???