【发布时间】:2011-02-14 21:06:36
【问题描述】:
我正在尝试从头开始构建 Linux,现在我在 chapter 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' 的非 root、非管理员用户(在 Linux From Scratch 中也有描述)完成的,并且位于与系统安装位置不同的分区上。
谁能帮助我?谢谢
【问题讨论】:
-
如果从命令行编译一个简单的 c 程序会发生什么?
标签: c compilation configure binutils linux-from-scratch