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

Steven ** montgoss at gmail.com
Fri Aug 1 18:01:13 CEST 2008


There are a few *-symlinks packages you'll want.  I believe it's
gcc-symlinks.  Just do "opkg list | grep symlink" and install the
relevant ones.

-Steven

On Fri, Aug 1, 2008 at 10:19 AM, H. Rosmanith <moko at wildsau.enemy.org> wrote:
>
> hello,
>
> 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:
>
>    /opt/usr/bin/arm-angstrom-linux-gnueabi-gcc
>
> but:
>
>    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:
>    /opt/usr/libexec/gcc/arm-angstrom-linux-gnueabi/4.1.2/cc1plus
>
> 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
>    /opt/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/crtendS.o
>    /opt/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/crtbeginS.o
>    /opt/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/crtend.o
>    /opt/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/crtbeginT.o
>    /opt/usr/lib/gcc/arm-angstrom-linux-gnueabi/4.1.2/crtbegin.o
>    /usr/share/curl/curl-ca-bundle.crt
>    /usr/share/terminfo/c/crt
>    /usr/share/terminfo/c/crt-vt220
>    /usr/share/tabset/stdcrt
>    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 ;-)
>
>
> _______________________________________________
> support mailing list
> support at lists.openmoko.org
> https://lists.openmoko.org/mailman/listinfo/support
>




More information about the support mailing list