Domanda

Sto cercando di costruire Linux From Scratch, e ora sono a capitolo 5.4 , che mi dice come costruire Binutils. Ho binutils codice sorgente 2.20 del, ma quando provo a costruirlo:

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

mi dà un errore:

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.

È possibile vedere il mio config.log a pastebin.com: http://pastebin.com/hX7v5KLn

Ho appena installato Ubuntu 10.04, e reinstallato GCC e installato G ++. Inoltre, la build è fatto da un non-root, l'utente non amministratore chiamato 'LFS' (che è anche descritto in Linux From Scratch), e su una partizione diversa da quella in cui è installato il sistema.

chiunque aiutare

Can me? Grazie

È stato utile?

Soluzione

La directory /tools non esisteva. L'ho creato e adesso compila bene.

Altri suggerimenti

Prova:

export CC=/usr/bin/gcc

prima di eseguire configure.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top