PDA

Bekijk de volledige versie : Installing toolchain - please help



RoofCat
02-03-2005, 15:07
Hello, all

While trying to deploy environment for building some binaries for wl-500g I ran over some problems. Could any kind soul help me in building environment?

I use Colinux 0.6.2 as host system. I've managed to install it and make it running, downloaded ASUS GPL distribution on separate partition and untarred it. Then, according to ASUS README file created sym link to
/opt/brcm/hndtools-mipsel-uclibc/bin pointing to /opt/broadcom/opt/brcm/hndtools-mipsel-uclibc-3.2.3/bin/
and added /opt/brcm/hndtools-mipsel-uclibc/bin to PATH
After then while trying to compile "Hello world" program I got


colinux:~# mipsel-uclibc-gcc hello.c
/opt/brcm/hndtools-mipsel-linux-3.2.3/lib/gcc-lib/mipsel-linux/3.2.3/../../../../mipsel-linux/bin/ld: /lib/libc.so.6: version `GLIBC_2.3' not found (required by /opt/brcm/hndtools-mipsel-linux-3.2.3/lib/gcc-lib/mipsel-linux/3.2.3/../../../../mipsel-linux/bin/ld)
collect2: ld returned 1 exit status


I definetely messed some steps :( , but what steps ? :confused:

I am not a Linux man, and probably missed some specifics like apt-get or smthg?

Please help,
and thanks in advance.
Roofcat

PS. I will readily create step-by-step instructions based on mine expirience.

Oleg
02-03-2005, 15:49
You do not need to create symbolic link, just move toolchain as is, i.e. it should be /opt/brcm/...

RoofCat
02-03-2005, 16:31
You do not need to create symbolic link, just move toolchain as is, i.e. it should be /opt/brcm/...

Ok, tried it this way - same story.

I've got two suspects:

1) I've noticed that in
colinux:~# mipsel-uclibc-gcc hello.c
/opt/brcm/hndtools-mipsel-linux-3.2.3/lib/gcc-lib/mipsel-linux/3.2.3/../../../../mipsel-linux/bin/ld: /lib/libc.so.6: version `GLIBC_2.3' not found
(required by /opt/brcm/hndtools-mipsel-linux-3.2.3/lib/gcc-lib/mipsel-linux/3.2.3/../../../../mipsel-linux/bin/ld)
collect2: ld returned 1 exit status

hndtools-mipsel-linux-3.2.3 is mentioned but I added hndtools-mipsel-uclibc/bin to my PATH. Does it matter?

2) Colinux 0.6.2 use 2.6 kernel

colinux:~# uname -a
Linux colinux 2.6.10-co-0.6.2 #5 Sat Feb 5 10:19:16 IST 2005 i686 unknown
Should I use earlier version with 2.4 kernel instead?

Regards,
Roofcat

Oleg
02-03-2005, 16:45
your GLIBC is outdated - you may want to try other colinux distribution... This is not toolchain related.