主题 : bluez 移植 libgcc_s.so.1的问题 已解决 复制链接 | 浏览器收藏 | 打印
dag
级别: 新手上路
UID: 42512
精华: 0
发帖: 2
金钱: 10 两
威望: 2 点
综合积分: 4 分
注册时间: 2011-04-08
最后登录: 2011-04-23
楼主  发表于: 2011-04-08 23:10

 bluez 移植 libgcc_s.so.1的问题 已解决

刚买了tiny6410,想移植bluez,确在编译时发生,
/opt/4.5.1/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: skipping incompatible /lib/libgcc_s.so.1 when searching for libgcc_s.so.1
/opt/4.5.1/bin/../lib/gcc/arm-none-linux-gnueabi/4.5.1/../../../../arm-none-linux-gnueabi/bin/ld: skipping incompatible /lib/libgcc_s.so.1 when searching for libgcc_s.so.1
gdbus/mainloop.o: In function `add_watch':
mainloop.c:(.text+0x2b0): undefined reference to `g_malloc0_n'
gdbus/mainloop.o: In function `add_timeout':
mainloop.c:(.text+0x53c): undefined reference to `g_malloc0_n'
gdbus/mainloop.o: In function `g_dbus_set_disconnect_function':
mainloop.c:(.text+0xa18): undefined reference to `g_malloc0_n'
gdbus/watch.o: In function `filter_data_get':
watch.c:(.text+0x698): undefined reference to `g_malloc0_n'

网上搜索,有的说是gcc版本问题,但是gcc4.5.1版本也挺高的啊,(是不是太高了??)

使用编译器:arm-linux-gcc-4.5.1-v6-vfp-20101103 (板子自带)

我要怎么做呢??
1  下载个低(高)版本编译工具链,把内核,文件系统,bluez都编译一遍? (这样做 太花时间了)
2  还是直接编译个低版本的libgcc_s.so.1(这样能与gcc4.5.1兼容?) ?
[ 此帖被dag在2011-04-09 10:41重新编辑 ]
dag
级别: 新手上路
UID: 42512
精华: 0
发帖: 2
金钱: 10 两
威望: 2 点
综合积分: 4 分
注册时间: 2011-04-08
最后登录: 2011-04-23
1楼  发表于: 2011-04-09 10:40
原来是glib版本不够,下载glic2.24,就可以 编译成功了。