View previous topic :: View next topic |
Author |
Message |
Elvin n00b
Joined: 15 Dec 2004 Posts: 6
|
Posted: Fri Dec 24, 2004 4:26 pm Post subject: [Cross Toolchain Problem] glibc complie error |
|
|
hi,
I am trying to build a set of cross tool chains for my O2 in a freebsd box.
I'v got binutils-2.15 and gcc-3.4.3 (c only) built successfully, but now stuck on the stage of glibc-2.3.3 building. No patches applied
binutils config line
Code: |
../binutils-2.1.5/configure --target=mips-unknown-linux-gnu --libdir='${exec_prefix}'/mips-unknown-linux-gnu/lib
|
gcc config line
Code: |
../gcc-3.4.3/configure --target=mips-unknown-linux-gnu --enable-languages=c --disable-shared --disable-nls --with-headers=/usr/local/mips-unknown-linux-gnu/include --disable-multilib
|
Note directory "/usr/local/mips-unknown-linux-gnu/include/" is just a copy of "/usr/include/" in my O2 box.
glibc config line
Code: | ../glibc-2.3.3/configure --build=i386-unknown-freebsd5.3 --host=mips-unknown-linux-gnu --enable-add-ons=linuxthreads --prefix=/usr
|
error messages
Code: |
nawk -v maxerr=`\
mips-unknown-linux-gnu-gcc -mabi=32 -S -I../include -I. -I/usr/home/mips/mips-glibc/stdio-common -I.. -I../libio -I/usr/home/mips/mips-glibc -I../sysdeps/mips/elf -I../linuxthreads/sysdeps/unix/sysv/linux/mips -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/mips -I../sysdeps/unix/sysv/linux/mips/mips32 -I../sysdeps/unix/sysv/linux/mips -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix/mips/mips32 -I../sysdeps/unix/mips -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/mips/mips32 -I../sysdeps/mips -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/wordsize-32 -I../sysdeps/mips/fpu -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -D_LIBC_REENTRANT -include ../include/libc-symbols.h -D_IO_MTSAFE_IO -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g -DNOT_IN_libc -DEMIT_ERR_MAX ../sysdeps/gnu/errlist.c -o - \
| sed -n 's/^.*@@@[^0-9]*\([0-9]*\)[^0-9]*@@@.*$/\1/p'` \
-f ../sysdeps/gnu/errlist-compat.awk \
../linuxthreads/sysdeps/unix/sysv/linux/Versions ../sysdeps/unix/sysv/linux/mips/Versions ../sysdeps/unix/sysv/linux/Versions ../sysdeps/unix/sysv/Versions ../sysdeps/wordsize-32/Versions ../linuxthreads/Versions > /usr/home/mips/mips-glibc/stdio-common/errlist-compat.cT
*** errlist.c count 1134 vs Versions sys_errlist@GLIBC_2.0 count 123
gmake[2]: *** [/usr/home/mips/mips-glibc/stdio-common/errlist-compat.c] error 1
gmake[2]: Leaving directory `/usr/home/mips/glibc-2.3.3/stdio-common'
gmake[1]: *** [stdio-common/subdir_lib] error 2
gmake[1]: Leaving directory `/usr/home/mips/glibc-2.3.3'
gmake: *** [all] error 2
|
I checked the file "glibc-2.3.3/sysdep/unix/sysv/linux/mips/Versions", it mentioned some "magic words" that i should change, but how? In fact , I did try to modify the errlist-compat line and got the building process continued until I got another error. So I think maybe I should not "do this blindly".
Maybe this is a stupid question, since I have no experience in program coding.
Sorry for my english speaking, it's not my native language at all.
Thanks. |
|
Back to top |
|
|
Kumba Developer
Joined: 16 Jul 2002 Posts: 393 Location: Sigma 957
|
Posted: Fri Dec 24, 2004 11:04 pm Post subject: |
|
|
Give look at the crossdev code in the InstallGlibc section, I believe I added a hack/workaround that did something to avoid that error; that or it's a glibc patch we've got. I've ran into that error before, but never recall what always fixes it.
Btw, for building a kernel, you only need a binutils/gcc cross-compiler. Glibc isn't required for that bit, only if you plan on building userland stuff as well.
--Kumba _________________ "The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between."
--Emperor Turhan, Centauri Republic |
|
Back to top |
|
|
sanchan Retired Dev
Joined: 09 May 2004 Posts: 74
|
Posted: Tue Feb 08, 2005 10:51 pm Post subject: |
|
|
Try with newlib. They are better in cross compilation. I'v just builded a cross compiler i686-pc-linux-gnu -> mips-sgi-irix6.5 .
The hard part of the work is getting a native compiler mips-sgi-irix6.5 from the cross compiler |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|