SuSE: gcc compiliert nicht

hi.

wenn ich ./configure ausführe - egal um welches package es sich handelt -
bekomme ich folgende meldung:

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


hier mal der wohl interessante teil aus der config.log, bei einer versuchten winex 3.3 installation:

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

configure:1545: checking build system type
configure:1563: result: i686-pc-linux-gnu
configure:1571: checking host system type
configure:1585: result: i686-pc-linux-gnu
configure:1593: checking target system type
configure:1607: result: i686-pc-linux-gnu
configure:1621: checking whether make sets $(MAKE)
configure:1645: result: no
configure:1696: checking for gcc
configure:1712: found /usr/bin/gcc
configure:1722: result: gcc
configure:1966: checking for C compiler version
configure:1969: gcc --version </dev/null >&5
gcc (GCC) 3.3.4 (pre 3.3.5 20040809)
Copyright (C) 2003 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:1972: $? = 0
configure:1974: gcc -v </dev/null >&5
Reading specs from /usr/lib/gcc-lib/i586-suse-linux/3.3.4/specs
Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada --disable-checking --libdir=/usr/lib --enable-libgcj --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit i586-suse-linux
Thread model: posix
gcc version 3.3.4 (pre 3.3.5 20040809)
configure:1977: $? = 0
configure:1979: gcc -V </dev/null >&5
gcc: `-V' option must have argument
configure:1982: $? = 1
configure:2005: checking for C compiler default output file name
configure:2008: gcc conftest.c >&5
/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: unrecognized option '--as-needed'
/usr/lib/gcc-lib/i586-suse-linux/3.3.4/../../../../i586-suse-linux/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
configure:2011: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "Cedega"
| #define PACKAGE_TARNAME "cedega"
| #define PACKAGE_VERSION "20020228"
| #define PACKAGE_STRING "Cedega 20020228"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2050: error: C compiler cannot create executables
See `config.log' for more details.

ich probiere und google jetzt schon knapp 2 stunden rum, und bin bis jetzt nicht weiter gekommen. habe einige rpm's installiert, die gcc eventuell gebrauchen könnte, aber nichts hat was gebracht.

über google finde ich einiges zu dem thema, allerdings nichts was mich wirklich weiter bringt.

wäre sehr nett, wenn man mir helfen könnte.

Verwende übrigens SuSE 9.1

mfg,
little
 
So wie es aussieht fehlen dir Pakete. Ich habe mal schnell gegoogelt und die Pakete die bei dieser Meldung üblicherweise fehlen sind folgende:

build-essential, cpp, gcc, und g++

Du musst nur mal schauen, wie die Dinger unter Suse heißen, es kann sein, dass der Name leicht abgewandelt ist.

Ich hoffe ich konnte dir helfen :)
 
danke für die schnelle antwort :-)

cpp, gcc, und g++ sind installiert.


was ist build-essential?

rpmseek.com findet dabei nichts für suse.
google auch nicht.
 
Funktioniert der compiler denn _ueberhaupt_?
Wenn du zb ein hallo-welt code compilierst?

mfg
 
daran lang es ;-)

habe die binutils nachinstalliert, dann ging alles.

rpmseek.com erleichtert einem das leben wirklich erheblich :D
 
Zurück
Oben