PDA

View Full Version : problemi compilazione gcc


paolo92
14-09-2008, 22:39
salve....
se non vi spiace passo subito al mio problema:
sono alle prese con linux from scratch ma ho subito incontrato dei problemi con la compilazione di gcc-4.1.2.. lavoro da una mandriva 2008 attualmente.

vi posto l'output della shell e i log:

lfs:/mnt/lfs/sources/gcc-build$ $LFS/sources/gcc-4.1.2/configure --prefix=/tools --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-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 gcc... gcc
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.

log:


This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:600: checking host system type
configure:621: checking target system type
configure:639: checking build system type
configure:694: checking for a BSD compatible install
configure:747: checking whether ln works
configure:771: checking whether ln -s works
configure:1825: checking for gcc
configure:1938: checking whether the C compiler (gcc ) works
configure:1954: gcc -o conftest conftest.c 1>&5
/tools/bin/ld: unrecognized option '--hash-style=gnu'
/tools/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
configure: failed program was:

#line 1949 "configure"
#include "confdefs.h"

main(){return(0);}

qualcuno ha qualche idea?
ringrazio in anticipo :D

Gimli[2BV!2B]
14-09-2008, 23:09
Se non sbaglio quell'errore è correlato alla mancanza di make o di libc6-dev.

paolo92
15-09-2008, 11:46
;24111789']Se non sbaglio quell'errore è correlato alla mancanza di make o di libc6-dev.
io sto leggendo il libro e non mi dice di compilare libc6-dev.. boh.. ora ci provo. comunque make dovrebbe essere gia installato

Pardo
16-09-2008, 17:29
Non conosco assolutamente LFS, ma li` l'errore viene dato da ld quindi il pacchetto responsabile di solito e` le binutils.