MIPS multilib cross-compiler build fails

Michael J. Hammel cross-lfs at graphics-muse.org
Wed Dec 21 14:28:44 PST 2005


I've built a build system around LFS that works fine for x86/AMD builds.
I'm now in the process of trying to convert it for use with cross
compiled environments.  The first goal is a MIPS64 cross compile
environment.

I should note that I've never built a cross compiler and associated
toolchain before.  The CrossFAQ seems to have disappeared and Dan
Keegel's website shows his crosstools script doesn't work with MIPS very
well - anyone know where there is some good information on building
cross compilers and associated toolchains other than the CLFS?  I'd be
willing to purchase a text if one exists.

I've looked at CLFS for both MIPS64 and MIPS multilib.  MIPS64 didn't
work (though I can't remember the exact cause) so I tried Multilib.
I've managed to get this further along.  I've got the LIBC Headers,
binutils and gcc built.  However, I've run into a problem building
glibc.  The output where the error occurs is included below.  This build
was for the 32bit glibc - the N32 and 64bit builds have not been tried
yet.

I wasn't sure if this list would get much response because the archives
appear to mostly be filled with repository change notices.  If there is
a better place to post problems like this, please let me know.  I'd be
happy to post updates for the MIP multilib CLFS docs if that would help,
assuming I have anything useful to add (like the solution to this
problem, perhaps).

Sidenote:  Kudos to everyone who works on LFS and companion sites - I've
learned a ton since building the build system around LFS/BLFS and the
LiveCD.  My build systems will eventually go online for others too use,
but the x86/AMD version is not quite ready for prime time.  Soon, I
hope.

mips-unknown-linux-gnu-gcc -mabi=32 ../sysdeps/generic/strtol.c -c -
std=gnu99 -O -Wall -Winline -Wstrict-prototypes -Wwrite-strings -g   -
fPIC    -I../include -I. -I/mnt/lfs/sources/bld/glibc-20051107/stdlib -
I.. -I../libio -I../nptl -I/mnt/lfs/sources/bld/glibc-20051107 -
I../sysdeps/mips/elf -I../sysdeps/unix/sysv/linux/mips/mips32 -
I../nptl/sysdeps/unix/sysv/linux/mips -I../sysdeps/unix/sysv/linux/mips
-I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -
I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -
I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -
I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -
I../sysdeps/unix/mips/mips32 -I../sysdeps/unix/mips -
I../libidn/sysdeps/unix -I../nptl/sysdeps/unix -I../sysdeps/unix -
I../sysdeps/posix -I../sysdeps/mips/mips32 -I../sysdeps/mips -
I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754/dbl-64 -
I../nptl/sysdeps/mips -I../sysdeps/wordsize-32 -I../sysdeps/mips/fpu -
I../nptl/sysdeps/generic -I../sysdeps/ieee754 -I../sysdeps/generic/elf -
I../sysdeps/generic -nostdinc -isystem /mnt/lfs/cross-
tools/bin/../lib/gcc/mips-unknown-linux-gnu/4.0.2/include -
isystem /tools/include -D_LIBC_REENTRANT -include ../include/libc-
symbols.h  -DPIC -DSHARED     -
o /mnt/lfs/sources/bld/glibc-20051107/stdlib/strtol.os -MD -MP -
MF /mnt/lfs/sources/bld/glibc-20051107/stdlib/strtol.os.dt -
MT /mnt/lfs/sources/bld/glibc-20051107/stdlib/strtol.os
In file included from ../sysdeps/generic/strtol.c:21:
../include/stdlib.h:33: warning: asm declaration ignored due to conflict
with previous rename
../include/stdlib.h:34: warning: asm declaration ignored due to conflict
with previous rename
../include/stdlib.h:35: warning: asm declaration ignored due to conflict
with previous rename
../include/stdlib.h:36: warning: asm declaration ignored due to conflict
with previous rename
../include/stdlib.h:37: warning: asm declaration ignored due to conflict
with previous rename
../include/stdlib.h:38: warning: asm declaration ignored due to conflict
with previous rename
../include/stdlib.h:39: warning: asm declaration ignored due to conflict
with previous rename
In file included from ../sysdeps/generic/strtol.c:22:
../include/wchar.h:21: warning: asm declaration ignored due to conflict
with previous rename
../include/wchar.h:22: warning: asm declaration ignored due to conflict
with previous rename
../include/wchar.h:23: warning: asm declaration ignored due to conflict
with previous rename
../include/wchar.h:24: warning: asm declaration ignored due to conflict
with previous rename
../include/wchar.h:25: warning: asm declaration ignored due to conflict
with previous rename
../include/wchar.h:26: warning: asm declaration ignored due to conflict
with previous rename
../include/wchar.h:27: warning: asm declaration ignored due to conflict
with previous rename
../include/wchar.h:41: warning: asm declaration ignored due to conflict
with previous rename
../include/wchar.h:69: warning: asm declaration ignored due to conflict
with previous rename
../sysdeps/generic/strtol.c:101: error: '__EI___strtol_internal' aliased
to undefined symbol '__GI___strtol_internal'
make[4]: *** [/mnt/lfs/sources/bld/glibc-20051107/stdlib/strtol.os]
Error 1
make[3]: *** [stdlib/subdir_lib] Error 2
make[2]: *** [all] Error 2

-- 
Michael J. Hammel           |
The Graphics Muse           |   Democracy is a beautiful thing, except for that
mjhammel at graphics-muse.org  |     part about letting just any old yokel vote.
http://www.graphics-muse.com 




More information about the cross-lfs mailing list