Re: GCC Grundeinstellung ist daneben
Am 06.08.2011 um 14:01 schrieb Hartmut Niemann:
> Auf einem Squeeze-Rechner ist das Setup von gcc irgendwie daneben.
> Draufgekommen bin ich, weil ein configure-Skript gemosert hat:
>
> checking whether the C compiler works... no
> configure: error: in `/home/ha/dvbcut/dvbcut':
> configure: error: C compiler cannot create executables
>
> Deswegen habe ich es ganz simpel probiert:
>
> hello.c ist das typische Helloworld.
>
> $ gcc hello.c
> /usr/bin/ld: crt1.o: No such file: No such file or directory
> collect2: ld returned 1 exit status
>
> Das sollte doch eigentlich ohne irgendwelche Zusatzangaben funktionieren, oder?
>
> $ locate crt1.o
> /usr/lib/i386-linux-gnu/Mcrt1.o
> /usr/lib/i386-linux-gnu/Scrt1.o
> /usr/lib/i386-linux-gnu/crt1.o
> /usr/lib/i386-linux-gnu/gcrt1.o
Das ist kein Squeeze-Rechner.
> und das Paket libc6-dev, von dem mir ein Google-Treffer erzählt hat, dass crt1.o drin wäre, ist auch installiert.
In Version 2.13-5 oder höher, warum auch immer.
> Weiss jemand, was da zu tun ist?
Einen Compiler aus Wheezy verwenden. Siehe
z.B. http://bugs.debian.org/631907.
Sven
Reply to: