Entra

View Full Version : Ubuntu-Strano messaggio di compilazione


go3mon
09-01-2006, 22:19
Ciao, per motivi lavorativi ho devuto installare l'ultima release di Kubuntu sul mio portatile (io sono solo e sempre fedele alla Debian pura), che fino a ieri aveva su una Debian Stable faticosamente configurata a manina.
Ho notato che i repository non sono quelli ufficiali di Debian (e infatti alcuni software con apt non si trovano). Volendo quindi installare superkaramba a mano, ho scaricato i sorgenti e lanciato il classico: ./configure && make && make install

Ma ecco il messaggio:

checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.


:confused: :confused: :confused: :confused:

Posso aggiungere nel sources.list i repository di Debian Stable? O no?

hannibal
09-01-2006, 23:30
Superkaramba è disponibile nei repository "universe" di ubuntu.

Sonic_
10-01-2006, 01:00
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

ce gcc sul sistema? :D

go3mon
10-01-2006, 10:10
ce gcc sul sistema? :D


Si l'avevp appena scaricato via apt...

Sonic_
10-01-2006, 11:08
allora guarda il config.log e cmq certi pgrammi vogliono essere compilati con gcc 3 certi 3.4 e certi 4.. nn so perche ma è cosi.. installali tutti..

go3mon
10-01-2006, 15:44
Questo è l'output del config.log:

configure:2326: checking for style of include used by make
configure:2354: result: none
configure:2502: checking for gcc
configure:2518: found /usr/bin/gcc
configure:2528: result: gcc
configure:2772: checking for C compiler version
configure:2775: gcc --version </dev/null >&5
gcc (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2778: $? = 0
configure:2780: gcc -v </dev/null >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr --with-gxx-include-d
ir=/usr/include/c++/4.0.2 --enable-shared --with-system-zlib --libexecdir=/usr/lib --enable-nls --without-included-gettext
--enable-threads=posix --program-suffix=-4.0 --enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu --e
nable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.
4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
configure:2783: $? = 0
configure:2785: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2788: $? = 1
configure:2811: checking for C compiler default output file name
configure:2814: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2817: $? = 1

:muro:


Io ho installata la versione 4.0 e la 2.95

dumi
11-01-2006, 21:03
a me invece dopo un quarticello di compilazione mi da questi errori:

drivers/char/generic_serial.c:38: error: static declaration of ‘gs_debug’ follows non-static declaration
include/linux/generic_serial.h:95: error: previous declaration of ‘gs_debug’ was here
drivers/char/generic_serial.c: In function ‘gs_init_port’:
drivers/char/generic_serial.c:868: warning: pointer targets in assignment differ in signedness
make[2]: *** [drivers/char/generic_serial.o] Error 1
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2

qualcuno sa dirmi più o meno da cosa può dipendere? (uso Ubuntu anche io)

Psycotic
12-01-2006, 13:42
/usr/bin/ld: crt1.o: No such file: No such file or directory

Per quanto riguarda questo.. mi sembra strano che non hai il "linker"

In debian si trova nel pacchetto binutils... Non e' ke kubuntu butta LD su qualche altra directory?

X3noN
12-01-2006, 22:45
installa con apt il metapackage "build-essentials".
Su Ubuntu dovrebbe installarti tutto il necessario per compilare.


ciao ciao