gcc cant find cc1, g++ cant find crt1.o

H. Rosmanith moko at wildsau.enemy.org
Fri Aug 1 17:19:00 CEST 2008


I've installed gcc, g++ and binutils natively. However,
I cannot compile even a
"void printf(char *); int main() { printf("220 helo herp\n"); }" (1)

First, "cc" or "gcc" cannot be found, there are only gcc directories,
but no gcc executable. However, there is a:



    root at om-gta02:~# /opt/usr/bin/arm-angstrom-linux-gnueabi-gcc -o helo helo.c
    arm-angstrom-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory

this doesnt happen because some PATH settings are wrong, but because
there's no cc1 binary in /opt.

Since I've also installed g++, cc1plus is present, in:

But this is not being used by gcc. 

Using g++ helps. A bit.... at least, it doesnt complain about cc1, because
it's using cc1plus. But it still doesnt succeed, because it cant find crt1.o:

    root at om-gta02:~# /opt/usr/bin/arm-angstrom-linux-gnueabi-g++ -o helo helo.c
    /opt/usr/bin/../lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/../../../../arm-angstrom-linux-gnueabi/bin/ld: crt1.o: No such file: No such file or directory
    collect2: ld returned 1 exit status

The only crt* files are:

    root at om-gta02:~# find / | grep crt
    root at om-gta02:~# 

Well ... long mail, short question: which packages do I need in order
to make gcc (and g++) work?

kind regards,
H. Rosmanith

(1) I'm prototyping printf() because .... stdio.h isn't present, of course ;-)

More information about the support mailing list