Please help building a toolchain
Hi all
First, sorry if this is the wrong place, I don't know where I can post my question ! I'm bulding a toolchain for an i386 target using a linuxmint16 host. I've succussfully built the following: - binutils-2.22 - first pass gcc-4.6.4 - Installing linux-2.6.30 and eglibc-2.17 headers - second gcc pass But when I try to build the full eglibc I get this error: Code:
-o /home/toto/mydev/build/eglibc/nptl/cleanup_compat.os -MD -MP -MF /home/toto/mydev/build/eglibc/nptl/cleanup_compat.os.dt -MT /home/toto/mydev/build/eglibc/nptl/cleanup_compat.os |
Are you following an LFS book? If not, I suggest you do.
http://www.linuxfromscratch.org/lfs They have the whole system worked out fairly well. |
Thanks business_kid for the reply.
I'm following other tutorials found on the web. |
Better post a url for whatever you are following. Looking for help here, you really have to explain clearly what you are doing.
What's the difference between first & second pass at GCC? The toolchain usually consists of glibc(eglibc in your case) kernel headers, and gcc. So, to build eglibc, surely you will have to link it against the system glibc, which is not optimal, as it won't see the system glibc once you are running. LFS does a static build using the*system tools, then a dynamic build using the static tools, and gets around issues that way. It's probably not building for embedded. As for your error posted below in post #1: Error no. 1 is "Operation Not Permitted." Probably you have a permissions problem. |
|
Quote:
|
OK, here's more output:
Code:
-I../include -I/home/toto/mydev/build/eglibc/nptl -I/home/toto/mydev/build/eglibc -I../nptl/sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux/x86 -I../sysdeps/unix/sysv/linux/x86 -I../sysdeps/unix/sysv/linux/i386/nptl -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../ports/sysdeps/unix/sysv/linux -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/inet -I../nptl/sysdeps/unix/sysv -I../ports/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../ports/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/fpu -I../sysdeps/x86/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/x86 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic -I../nptl -I../ports -I.. -I../libio -I. -nostdinc -isystem /home/toto/mydev/tools/lib/gcc/i386-pc-linux/4.6.4/include -isystem /home/toto/mydev/tools/lib/gcc/i386-pc-linux/4.6.4/include-fixed -isystem /home/toto/mydev/sysroot/usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h -DPIC -DSHARED -DNOT_IN_libc=1 -DIS_IN_libpthread=1 -DIN_LIB=libpthread -o /home/toto/mydev/build/eglibc/nptl/cleanup.os -MD -MP -MF /home/toto/mydev/build/eglibc/nptl/cleanup.os.dt -MT /home/toto/mydev/build/eglibc/nptl/cleanup.os |
Code:
../nptl/sysdeps/unix/sysv/linux/sem_post.c:43:3: warning: implicit declaration of function ‘atomic_compare_and_exchange_bool_rel’ [-Wimplicit-function-declaration] That implies you are missing at least one file to include with the above. You have your system set up in /home/toto. Try something like Code:
cd /home/toto The "error expected expression before ‘do’ " looks more like a syntax error, but I wouldn't worry about that until you sort the others, as it will probably go away of it's own accord. BTW, I am an amateur with C :-P. I looked at the guide. I note it's for developers, not the public. Good luck with it. |
There's a bug in eglibc-2.17 !!
Probleme solved when migrating to 2.18. |
All times are GMT -5. The time now is 02:51 AM. |