我正在尝试从头开始构建Linux,现在我在 第5.4章, ,这告诉我如何构建binutils。我有Binutils 2.20的源代码,但是当我尝试构建它时:

time { ./binutils-2.20/configure --target=$LFS_TGT --prefix=/tools --disable-nls --disable-werror ; }

它给我一个错误:

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-lfs-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for gcc... GCC
checking for C compiler default output file name... 
configure: error: in `/media/LFS':
configure: error: C compiler cannot create executables
See `config.log' for more details.

您可以在pastebin.com上查看我的config.log: http://pastebin.com/hx7v5kln

我刚刚安装了Ubuntu 10.04,并重新安装了GCC并安装了G ++。此外,该构建由称为“ LFS”(从头开始的Linux中描述)的非根,非ADMIN用户完成,并且在与系统安装的地方不同的分区上。

谁能帮我?谢谢

有帮助吗?

解决方案

/tools 目录不存在。我创建了它,现在它可以很好地编译。

其他提示

尝试:

export CC=/usr/bin/gcc

在运行配置之前。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top