ubuntu13.11.0 下搭建交叉编译环境,glibc时遇到错误

-疯狂的兔子- 2014-05-31 09:53:58
各位大侠,小弟在按此贴http://blog.csdn.net/mcy_cool/article/details/17047027提示的步骤一步步操作下来,在第四步编辑glibc的 make all那里遇到了问题,游牧有人知道怎么解决?
//##----------------------------------------------------------------------------------
In file included from ../ports/sysdeps/unix/arm/sysdep.h:19:0,
from ../ports/sysdeps/unix/sysv/linux/arm/sysdep.h:24,
from <stdin>:1:
../ports/sysdeps/arm/sysdep.h:43:4: error: #error unknown arm architecture
# error unknown arm architecture
^
In file included from ../ports/sysdeps/arm/nptl/tls.h:27:0,
from ../ports/sysdeps/unix/sysv/linux/arm/sysdep.h:29,
from <stdin>:1:
../sysdeps/generic/stdint.h:148:0: warning: "__INT64_C" redefined [enabled by default]
# define __INT64_C(c) c ## LL
^
<stdin>:1:0: note: this is the location of the previous definition
In file included from ../ports/sysdeps/arm/nptl/tls.h:27:0,
from ../ports/sysdeps/unix/sysv/linux/arm/sysdep.h:29,
from <stdin>:1:
../sysdeps/generic/stdint.h:149:0: warning: "__UINT64_C" redefined [enabled by default]
# define __UINT64_C(c) c ## ULL
^
<stdin>:1:0: note: this is the location of the previous definition
make[2]: *** [/home/fanta/glibc-2.18/build/tcb-offsets.h] Error 1
make[2]: Leaving directory `/home/fanta/glibc-2.18/csu'
make[1]: *** [csu/tests] Error 2
make[1]: Leaving directory `/home/fanta/glibc-2.18'
make: *** [check] Error 2


//##----------------------------------------------------------------------------------
电脑前做等
看错误信息好像是arm架构无法识别,可是我这不是x86的机器么,肯定无法识别么,难不成这东西要在板卡上面编译?
求指导啊求指导!!!
...全文
1119 8 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
harveywangdao 2014-11-02
  • 打赏
  • 举报
回复
你好,我也遇到了同样的问题,请问怎么解决的
-疯狂的兔子- 2014-06-13
  • 打赏
  • 举报
回复
已经解决,感谢zhxianbin的耐心解答
-疯狂的兔子- 2014-06-03
  • 打赏
  • 举报
回复
我用资料里的,发现不能用。。。所以才上网来找的
zhxianbin 2014-06-01
  • 打赏
  • 举报
回复
台式机上编译的在板子上是没法跑,要交叉编译,交叉编译所用的交叉编译器不一定要自己去做,你买的开发板资料里面就应该有
-疯狂的兔子- 2014-06-01
  • 打赏
  • 举报
回复
不是要根据自己的机子来的么?我台式机上面编好的ELF文件,在本子上都跑不起来;或许是32位和64位的区别,我也是自己看网上的在搞,买了块开发板,现在就想编个内核上去跑先。结果在交叉编译环境这里卡住了
-疯狂的兔子- 2014-05-31
  • 打赏
  • 举报
回复
有没有相关行业的牛人来指点一二啊,俗话说,师傅领进门,修行靠自身;小弟这门坎还没迈进去呢
zhxianbin 2014-05-31
  • 打赏
  • 举报
回复
没自己制作过交叉编译器
-疯狂的兔子- 2014-05-31
  • 打赏
  • 举报
回复
要沉了,没人么?搞了一下午还是不行啊,网上说的配置静态库和动态库的方法都试过了,还是不行。

4,466

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
  • 内核源代码研究区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧