PDA

View Full Version : error: C compiler cannot create executables


ribbaldone
13-01-2013, 21:46
Ciao a tutti,
sto cercando di installare Snapraid su Openmediavault tramite ssh.
Ho un problema, quando vado a dare il comando ./configure mi restituisce l'errore in oggetto. Non capisco cosa non fare.
Vi allego anche il log:


root@NAS-OMV:~# ls
snapraid-2.0 snapraid-2.0.tar.gz
root@NAS-OMV:~# cd snapraid-2.0
root@NAS-OMV:~/snapraid-2.0# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/root/snapraid-2.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
root@NAS-OMV:~/snapraid-2.0# nano config.log
GNU nano 2.2.4 File: config.log

PATH: /bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2431: checking for a BSD-compatible install
configure:2499: result: /usr/bin/install -c
configure:2510: checking whether build environment is sane
configure:2560: result: yes
configure:2701: checking for a thread-safe mkdir -p
configure:2740: result: /bin/mkdir -p
configure:2753: checking for gawk
configure:2769: found /usr/bin/gawk
configure:2780: result: gawk
configure:2791: checking whether make sets $(MAKE)
configure:2813: result: yes
configure:2900: checking build system type
configure:2914: result: x86_64-unknown-linux-gnu
configure:2934: checking host system type
configure:2947: result: x86_64-unknown-linux-gnu
configure:3016: checking for gcc
configure:3032: found /usr/bin/gcc
configure:3043: result: gcc
configure:3272: checking for C compiler version
configure:3281: gcc --version >&5
gcc (Debian 4.4.5-8) 4.4.5
Copyright (C) 2010 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:3292: $? = 0
configure:3281: gcc -v >&5
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.5-8' --with-$
Thread model: posix
gcc version 4.4.5 (Debian 4.4.5-8)
configure:3292: $? = 0
configure:3281: gcc -V >&5
gcc: '-V' option must have argument
configure:3292: $? = 1
configure:3281: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:3292: $? = 1
configure:3312: checking whether the C compiler works
configure:3334: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:3338: $? = 1
configure:3376: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "snapraid"
| #define PACKAGE_TARNAME "snapraid"
| #define PACKAGE_VERSION "2.0"
| #define PACKAGE_STRING "snapraid 2.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://snapraid.sourceforge.net"
| #define PACKAGE "snapraid"
| #define VERSION "2.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;


Avrei bisogno di una mano.

Grazie.

Ciao

kingv
13-01-2013, 22:58
/usr/bin/ld: crt1.o: No such file: No such file or directory



per questo ti mancano i pacchetti di sviluppo di libc, sul mio sistema il pacchetto è:


[xxxxx@t61 Desktop]$ rpm -qf /usr/lib/crt1.o
glibc-devel-2.15-58.fc17.i686

ribbaldone
14-01-2013, 17:53
Grazie mille, Openmediavault è basato su Debian Squeeze. Potresti indicarmi quale pacchetto installare?

Ciao

EDIT: ho provato ad installare libc6, ma mi dice essere già installato all'ultima versione.


/usr/bin/ld: crt1.o: No such file: No such file or directory



per questo ti mancano i pacchetti di sviluppo di libc, sul mio sistema il pacchetto è:


[xxxxx@t61 Desktop]$ rpm -qf /usr/lib/crt1.o
glibc-devel-2.15-58.fc17.i686

Gimli[2BV!2B]
15-01-2013, 19:17
libc6-dev (http://packages.debian.org/search?keywords=libc6-dev)?

ribbaldone
15-01-2013, 21:51
;38865789']libc6-dev (http://packages.debian.org/search?keywords=libc6-dev)?

HA FUNZIONATOOOOOOOO!!!!!!!

Grazie mille!!!

Ciao

Gimli[2BV!2B]
15-01-2013, 22:01
Bene :)
Ciao!