[uClibc] help needed !!!!

anuj pachoree anuj_pachoree at rediffmail.com
Tue Mar 2 11:27:35 UTC 2004


An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/uclibc/attachments/20040302/622b3ee7/attachment-0001.htm 
-------------- next part --------------
Hi,

I am beginner on uClibc.

I am trying to build a gcc cross compiler for ARM based on uClibc.
I am working on a Linux PC.

I have downloaded the following from uClibc site:

1. kernel-headers-2.4.25.tar.tar
2. binutils-2.14.tar.gz
3. gcc-20011006.tar.gz
4. uClibc-0.9.26.tar.gz

I do the following.

1. Untar kernel-headers-2.4.25.tar.tar in /usr/src/

Then, in /home/anuj I do the following

2. tar xvzf binutils-2.14.tar.gz
3. tar xvzf gcc-20011006.tar.gz
4. tar xvzf uClibc-0.9.26.tar.gz

5. cd binutils-2.14
6. mkdir build
7. cd build
8. ../configure --target=arm-linux-elf --prefix=/usr/local/arm-linux-uclibc
7. make
8. make install.
9. cd ../..
10.cd gcc-20011006
11. mkdir build
12. cd build
13. ../configure --target=arm-linux-elf --prefix=/usr/local/arm-linux-uclibc
14. make LANGUAGES="c"
15. make install
16. cd ../..
17. cd uClibc-0.9.26
18. make menuconfig
    Here I select target as "arm"
19. make clean
20. make CROSS=arm-linux-elf-

After this I get the following error.


make[4]: Entering directory `/home/anuj/uClibc/uClibc-0.9.26/libc/sysdeps/linux/arm'
arm-linux-elf-gcc  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing  -fstrict-aliasing -Os    -mlittle-endian -fno-builtin -nostdinc -D_LIBC -I../../../../include -I. -I/usr/local/arm-linux-uclibc/lib/gcc-lib/arm-linux-elf/2.95.4/include -DNDEBUG -fPIC -c ioperm.c -o ioperm.o
ioperm.c: In function `init_iosys':
ioperm.c:103: `BUS_ISA' undeclared (first use in this function)
ioperm.c:103: (Each undeclared identifier is reported only once
ioperm.c:103: for each function it appears in.)
ioperm.c:103: initializer element is not constant
ioperm.c:103: (near initialization for `iobase_name[1]')
ioperm.c:104: initializer element is not constant
ioperm.c:104: (near initialization for `ioshift_name[1]')
make[4]: *** [ioperm.o] Error 1
make[4]: Leaving directory `/home/anuj/uClibc/uClibc-0.9.26/libc/sysdeps/linux/arm'
make[3]: *** [arm] Error 2
make[3]: Leaving directory `/home/anuj/uClibc/uClibc-0.9.26/libc/sysdeps/linux'
make[2]: *** [_dir_linux] Error 2
make[2]: Leaving directory `/home/anuj/uClibc/uClibc-0.9.26/libc/sysdeps'
make[1]: *** [_dir_sysdeps] Error 2
make[1]: Leaving directory `/home/anuj/uClibc/uClibc-0.9.26/libc'
make: *** [_dir_libc] Error 2

Please tell me whether the downloads that I am using are compatible with each other or not. Also please let me know if I am following the right steps needed to make a ARM-gcc cross compiler based on uClibc.

Please guide me !!!!
Thanks,
Anuj



More information about the uClibc mailing list