WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Linux, UNIX, Open Source (http://www.wcm.at/forum/forumdisplay.php?f=13)
-   -   ubuntu: gcc cannot create executables (http://www.wcm.at/forum/showthread.php?t=187017)

RaistlinMajere 08.03.2006 01:48

ubuntu: gcc cannot create executables
 
beim kompilieren bekomme ich einen hinweis, daß der gcc keine executables erstellen kann.

im config.log nachgesehen zeigt sich, daß offenbar auf die datei

/usr/bin/ld

zugegriffen werden soll. die fehlermeldung meldet, daß diese nicht existiert, obwohl sie das sehr wohl tut. zugriffsrechte passen auch.

was hats da?

helios 08.03.2006 08:50

welche fehlermeldungen kommen denn genau?

käptn 08.03.2006 10:17

Überprüf mal ob du auch das gcc meta-package installiert hast:

Code:

mike@honeybadger:~$ dpkg -l gcc\*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name          Version        Description
+++-==============-==============-============================================
ii  gcc            4.0.1-3        The GNU C compiler
un  gcc-2.95      <none>        (no description available)
un  gcc-3.2        <none>        (no description available)
ii  gcc-3.3-base  3.3.6-8ubuntu1 The GNU Compiler Collection (base package)
un  gcc-3.5        <none>        (no description available)
un  gcc-3.5-base  <none>        (no description available)
un  gcc-3.5-doc    <none>        (no description available)
ii  gcc-4.0        4.0.1-4ubuntu9 The GNU C compiler
ii  gcc-4.0-base  4.0.1-4ubuntu9 The GNU Compiler Collection (base package)
ii  gcc-4.0-doc    4.0.1-4ubuntu9 Documentation for the GNU compilers (gcc, go

~

RaistlinMajere 08.03.2006 15:10

Zitat:

Original geschrieben von helios
welche fehlermeldungen kommen denn genau?
der aufruf von ./configure bewirkt folgendes:
Code:

beginning autoconfiguration process for libnet-1.1.2.1...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking for C compiler default output... configure: error: C compiler cannot create executables
See `config.log' for more details.

in der config.log steht dazu dann folgendes:

Code:

...
gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
configure:2097: $? = 0
configure:2099: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2102: $? = 1
configure:2126: checking for C compiler default output
configure:2129: gcc    conftest.c  >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2132: $? = 1
configure: failed program was:
...


helios 08.03.2006 15:48

also der linker (/usr/bin/ld) ist schon da, aber der findet die datei crt1.o nicht.

RaistlinMajere 09.03.2006 17:33

problem gelöst
 
es haben ein paar gcc-bibliotheken gefehlt.

nach installation von libc6-dev funzt das kompilieren jetzt.

danke an alle. :)


Alle Zeitangaben in WEZ +2. Es ist jetzt 05:37 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag