Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Cross Toolchain Problem] glibc complie error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
Elvin
n00b
n00b


Joined: 15 Dec 2004
Posts: 6

PostPosted: Fri Dec 24, 2004 4:26 pm    Post subject: [Cross Toolchain Problem] glibc complie error Reply with quote

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
View user's profile Send private message
Kumba
Developer
Developer


Joined: 16 Jul 2002
Posts: 383
Location: Sigma 957

PostPosted: Fri Dec 24, 2004 11:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
sanchan
Retired Dev
Retired Dev


Joined: 09 May 2004
Posts: 74

PostPosted: Tue Feb 08, 2005 10:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
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