C compilador no puede crear ejecutables cuando se trata de construcción de Binutils
-
02-10-2019 - |
Pregunta
Estoy tratando de construir Linux From Scratch, y ahora estoy en el capítulo 5.4 , que me dice cómo construir Binutils. Tengo binutils código fuente de 2.20, pero cuando intento para construirlo:
time { ./binutils-2.20/configure --target=$LFS_TGT --prefix=/tools --disable-nls --disable-werror ; }
me da un error:
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.
Se puede ver a mi config.log en pastebin.com: http://pastebin.com/hX7v5KLn
Me acaba de instalar Ubuntu 10.04, y volver a instalar GCC y G ++ instalado. Además, la acumulación se realiza por un no-raíz, que no es administrador usuario llamado '' LFS (que también se describen en Linux From Scratch), y en una partición diferente de donde está instalado el sistema.
cualquier ayudaCan mí? Gracias
Solución
no existe el directorio /tools
. La creé y ahora se compila bien.
Otros consejos
Trate:
export CC=/usr/bin/gcc
antes de ejecutar configure.