LinuxSir.cn,穿越时空的Linuxsir!

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

GCC4.03第一遍configure出错

[复制链接]
发表于 2007-9-15 21:10:10 | 显示全部楼层 |阅读模式
用LiveCD(LFS6.2)做宿主系统,用CD上的源码。可是在5.4节第一遍编译GCC4.03的时候出错。下面是configure的输出信息:
lfs:/mnt/lfs/sources/gcc-build/gcc-4.0.3$ ./configure --prefix=/tools --with-local-prefix=/tools --enable-share --disable-nls > --enable-languages=c
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
configure: error: Building in the source directory is not supported in this release. See http://gcc.gnu.org/install/configure.html for more details.

下面是config.log文件内容:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:595: checking host system type
configure:616: checking target system type
configure:634: checking build system type
configure:689: checking for a BSD compatible install
configure:742: checking whether ln works
configure:766: checking whether ln -s works

请教各位是什么错误。谢谢~
发表于 2007-9-15 21:35:20 | 显示全部楼层
configure: error: [color="Red"]Building in the source directory is not supported in this release. See http://gcc.gnu.org/install/configure.html for more details.
回复 支持 反对

使用道具 举报

发表于 2008-11-27 11:30:55 | 显示全部楼层
我也这样问题
谁能给说下什么回事
回复 支持 反对

使用道具 举报

发表于 2008-11-27 11:42:28 | 显示全部楼层
汗,上面不是说得很明白吗

configure: error: Building in the source directory is not supported in this
配置错误        :  在源代码所在的文件夹进行建立(其实就是编译)在本版中不支持
release. See http://gcc.gnu.org/install/configure.html for more details.
              看   http://gcc.gnu.org/install/configure.html 得到更多的细节

你应该另建一个 gcc-build与gcc-4.03平级,然后到 gcc-build中进行编译。

手册上说得很清楚了吧。
回复 支持 反对

使用道具 举报

发表于 2008-11-27 11:45:32 | 显示全部楼层
这个意思阿 ..
手册上说推荐在新目录下编译,我看他说推荐就没管它...
回复 支持 反对

使用道具 举报

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

本版积分规则

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