linux ubuntu 源码 glib,ubuntu16.04lts交叉编译glib-2.18出现问题

在Ubuntu环境下尝试对glib进行arm-linux-gnueabihf架构的交叉编译时,遇到错误提示`selected processor does not support Thumb mode`。这通常是因为编译器或配置选项不匹配导致的。解决方法可能包括检查交叉编译工具链设置,确保其支持目标处理器的Thumb模式,或者更新或调整配置参数以适配处理器特性。

本人在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的时候编译不过关

这个问题该如何解决呢???

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值