cコンパイラは、binutilsを構築しようとするときに実行可能ファイルを作成できません

StackOverflow https://stackoverflow.com/questions/2755527

質問

私はゼロから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からもゼロから説明されています)と、システムがインストールされている場所とは異なるパーティションによって行われます。

誰かが私を助けることができますか?ありがとう

役に立ちましたか?

解決

/tools ディレクトリは存在しませんでした。私はそれを作成しました、そして今それは正常にコンパイルされます。

他のヒント

試す:

export CC=/usr/bin/gcc

実行する前にconfigure。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top