Question

Je suis en train de construire Linux From Scratch, et maintenant je suis à chapitre 5.4 qui me dit comment construire Binutils. Je binutils le code source de 2,20, mais lorsque je tente de le construire:

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

il me donne une erreur:

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.

Vous pouvez voir mon config.log à pastebin.com: http://pastebin.com/hX7v5KLn

Je viens d'installer Ubuntu 10.04, et réinstallé GCC et installé G ++. En outre, la construction se fait par un non-root, l'utilisateur non-admin appelé « LFS » (qui est également décrit dans Linux From Scratch), et sur une partition différente de celle où le système est installé.

aide quelqu'un peut me? Merci

Était-ce utile?

La solution

Le répertoire /tools n'existait pas. Je l'ai créé et maintenant il compile très bien.

Autres conseils

Essayez:

export CC=/usr/bin/gcc

avant de lancer configure.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top