免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: 黑色幽默jun
打印 上一主题 下一主题

[系统安装] 关于制作crosscompiler [复制链接]

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
11 [报告]
发表于 2012-10-21 09:16 |只看该作者
黑色幽默jun 发表于 2012-10-20 18:24
回复 8# dooros


mips的交叉编译,在CFLS有详细的文档,楼主可以看看。

论坛徽章:
0
12 [报告]
发表于 2012-10-21 12:10 |只看该作者
回复 11# dooros


    额,小弟是新手,请问CFLS是什么?能否给个链接~感激不尽~

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
13 [报告]
发表于 2012-10-21 16:56 |只看该作者
黑色幽默jun 发表于 2012-10-21 12:10
回复 11# dooros


CLFS就是Cross-Compiled Linux From Scratch

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
14 [报告]
发表于 2012-10-21 16:56 |只看该作者
黑色幽默jun 发表于 2012-10-21 12:10
回复 11# dooros


这里是详细文档。
http://cross-lfs.org/view/CLFS-1.2.0/mips/

论坛徽章:
0
15 [报告]
发表于 2012-10-23 09:26 |只看该作者
回复 14# dooros


    谢谢啦,正在研究中,如果遇到问题再向你请教~~

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
16 [报告]
发表于 2012-10-23 13:22 |只看该作者
黑色幽默jun 发表于 2012-10-23 09:26
回复 14# dooros


客气,互相学习。

论坛徽章:
0
17 [报告]
发表于 2012-10-23 16:58 |只看该作者
回复 16# dooros


    你好,我按照这个网址的教程安装mips核crosscompiler http://cross-lfs.org/view/CLFS-1.2.0/mips/index.html,之前都是没有问题的,在安装到eglibc,即这一步时http://cross-lfs.org/view/CLFS-1.2.0/mips/cross-tools/eglibc.html出现了问题。
   我在执行以下命令的时候
       BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc" \
    AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
    ../eglibc-2.13/configure --prefix=/tools \
    --host=${CLFS_TARGET} --build=${CLFS_HOST} \
    --disable-profile --enable-add-ons \
    --with-tls --enable-kernel=2.6.0 --with-__thread \
    --with-binutils=/cross-tools/bin --with-headers=/tools/include \
    --cache-file=config.cache
  系统出现以下错误:
configure: loading cache config.cache
checking build system type... i686-cross-linux-gnu
checking host system type... mips-unknown-linux-gnu
checking for mips-unknown-linux-gnu-gcc... mips-unknown-linux-gnu-gcc
checking for suffix of object files... configure: error: in `/home/klj/cross-tools/eglibc-build':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.


这是我的config.log
configure:1884: loading cache config.cache
configure:2034: checking build system type
configure:2052: result: i686-cross-linux-gnu
configure:2074: checking host system type
configure:2089: result: mips-unknown-linux-gnu
configure:2120: checking for mips-unknown-linux-gnu-gcc
configure:2147: result: mips-unknown-linux-gnu-gcc
configure:2419: checking for C compiler version
configure:2427: mips-unknown-linux-gnu-gcc --version >&5
../eglibc-2.13/configure: line 2429: mips-unknown-linux-gnu-gcc: command not found
configure:2431: $? = 127
configure:2438: mips-unknown-linux-gnu-gcc -v >&5
../eglibc-2.13/configure: line 2440: mips-unknown-linux-gnu-gcc: command not found
configure:2442: $? = 127
configure:2449: mips-unknown-linux-gnu-gcc -V >&5
../eglibc-2.13/configure: line 2451: mips-unknown-linux-gnu-gcc: command not found
configure:2453: $? = 127
configure:2457: checking for suffix of object files
configure:2483: mips-unknown-linux-gnu-gcc -c   conftest.c >&5
../eglibc-2.13/configure: line 2485: mips-unknown-linux-gnu-gcc: command not found
configure:2487: $? = 127
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2501: error: in `/home/klj/cross-tools/eglibc-build':
configure:2504: error: cannot compute suffix of object files: cannot compile
See `config.log' for more detail

这个问题之前我也遇到过,网上查找了很多方法都没有解决,不知道你有没有遇到过,可不可以给我一些帮助。

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
18 [报告]
发表于 2012-10-23 17:23 |只看该作者
找不到mips-unknown-linux-gnu-gcc,你这是到第几步了?

论坛徽章:
0
19 [报告]
发表于 2012-10-23 18:03 |只看该作者
回复 18# dooros


    就是做到了这一步的时候http://cross-lfs.org/view/CLFS-1.2.0/mips/cross-tools/eglibc.html
在执行配置文件,运行下面这个命令的时候:
BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc" \
    AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
    ../eglibc-2.13/configure --prefix=/tools \
    --host=${CLFS_TARGET} --build=${CLFS_HOST} \
    --disable-profile --enable-add-ons \
    --with-tls --enable-kernel=2.6.0 --with-__thread \
    --with-binutils=/cross-tools/bin --with-headers=/tools/include \
    --cache-file=config.cache

论坛徽章:
0
20 [报告]
发表于 2012-10-23 18:58 |只看该作者
回复 18# dooros


    你好,麻烦你了,这个问题我通过查找网上的一些资料解决了,设置了一下环境变量PATH就可以了~
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP