LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 885|回复: 2

**[ 问题解决了 ] 请问GCC4怎么编译

[复制链接]
发表于 2005-12-14 10:53:40 | 显示全部楼层 |阅读模式
我编译时候提示

  1. lfs:/mnt/lfs/sources/gcc4-build$ make
  2. make[1]: Entering directory `/mnt/lfs/sources/gcc4-build'
  3. Configuring in ./fastjar
  4. configure: loading cache ./config.cache
  5. checking for a BSD-compatible install... /usr/bin/install -c
  6. checking whether build environment is sane... yes
  7. checking for gawk... gawk
  8. checking whether make sets $(MAKE)... yes
  9. checking for i686-pc-linux-gnu-gcc... gcc
  10. checking for C compiler default output file name... a.out
  11. checking whether the C compiler works... configure: error: cannot run C compiled
  12. programs.
  13. If you meant to cross compile, use `--host'.
  14. See `config.log' for more details.
  15. make[1]: *** [configure-fastjar] Error 1
  16. make[1]: Leaving directory `/mnt/lfs/sources/gcc4-build'
  17. make: *** [all] Error 2
复制代码


由于连接库异常导致的错误
发表于 2005-12-14 11:51:32 | 显示全部楼层
你不会是一下来就是make吧?没有configure吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-12-14 12:17:47 | 显示全部楼层
当然配置了

  1. configure --prefix=/tools \
  2.     --libexecdir=/tools/lib --with-local-prefix=/tools \
  3.     --disable-nls --enable-shared --enable-languages=c
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表