+ -
当前位置:首页 → 问答吧 → GCC4.03第一遍configure出错

GCC4.03第一遍configure出错

时间:2007-09-16

来源:互联网

用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

请教各位是什么错误。谢谢~

作者: zhulei5   发布时间: 2007-09-16

configure: error: Building in the source directory is not supported in this release. See http://gcc.gnu.org/install/configure.html for more details.

作者: 藕节   发布时间: 2007-09-16

我也这样问题
谁能给说下什么回事

作者: lixinwei1985   发布时间: 2008-11-27

汗,上面不是说得很明白吗

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中进行编译。

手册上说得很清楚了吧。

作者: qufo   发布时间: 2008-11-27

这个意思阿 ..
手册上说推荐在新目录下编译,我看他说推荐就没管它...

作者: lixinwei1985   发布时间: 2008-11-27