This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: glibc-2.3.5 addon for ColdFire trouble using crosstool


Ok, I've updated to crosstool-0.31 with some nasty changes(since I
need "m68k-linux" for the compiler/binutils, but "coldfire-linux" for
the glibc due to the add-on. 

Now I'm in a quandary.

I have a libc.so.6 library built and installed, but when I try to
build the userland for the embedded ColdFire kernel, it croaks with:

/opt/logicpd/Coldfire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5/bin/m68k-linux-gcc -I/home/peter/work/cvs-logic/logic/ColdFire/evb-LinuxBSP-22012005/user/busybox/include -I/home/peter/work/cvs-logic/logic/ColdFire/evb-LinuxBSP-22012005/user/busybox/include -I/home/peter/work/cvs-logic/logic/ColdFire/evb-LinuxBSP-22012005/user/busybox/libbb -g -Wall -Wstrict-prototypes -Wshadow -Os -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG   -mcfv4e  -c -o /home/peter/work/cvs-logic/logic/ColdFire/evb-LinuxBSP-22012005/user/busybox/modutils/modprobe.o /home/peter/work/cvs-logic/logic/ColdFire/evb-LinuxBSP-22012005/user/busybox/modutils/modprobe.c
/opt/logicpd/Coldfire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5/bin/m68k-linux-gcc -I/home/peter/work/cvs-logic/logic/ColdFire/evb-LinuxBSP-22012005/user/busybox/include -I/home/peter/work/cvs-logic/logic/ColdFire/evb-LinuxBSP-22012005/user/busybox/include -I/home/peter/work/cvs-logic/logic/ColdFire/evb-LinuxBSP-22012005/user/busybox/libbb -g -Wall -Wstrict-prototypes -Wshadow -Os -fomit-frame-pointer -D_GNU_SOURCE -DNDEBUG   -mcfv4e  -c -o /home/peter/work/cvs-logic/logic/ColdFire/evb-LinuxBSP-22012005/user/busybox/modutils/rmmod.o /home/peter/work/cvs-logic/logic/ColdFire/evb-LinuxBSP-22012005/user/busybox/modutils/rmmod.c
In file included from /home/peter/work/cvs-logic/logic/ColdFire/evb-LinuxBSP-22012005/user/busybox/modutils/rmmod.c:30:
/opt/logicpd/Coldfire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5/lib/gcc/m68k-linux/3.4.3/../../../../m68k-linux/sys-include/sys/syscall.h:32:27: bits/syscall.h: No such file or directory
make[2]: *** [/home/peter/work/cvs-logic/logic/ColdFire/evb-LinuxBSP-22012005/user/busybox/modutils/rmmod.o] Error 1
make[2]: Leaving directory `/home/peter/work/cvs-logic/logic/ColdFire/evb-LinuxBSP-22012005/user/busybox'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/peter/work/cvs-logic/logic/ColdFire/evb-LinuxBSP-22012005/user'
make: *** [user] Error 1
[peter@thunk evb-LinuxBSP-22012005]$ 

Here are the particulars of interest(I hope) from the crosstool
process(that being the .../configure command lines):

+ make ARCH=m68k oldconfig
make[1]: Entering directory `/home/peter/work/cvs-logic/logic/ColdFire/LinuxBSP/linux-2.4.26'
rm -f include/asm
( cd include ; ln -sf asm-m68k asm)
/bin/sh scripts/Configure -d arch/m68k/config.in


+ mkdir -p build-binutils
+ cd build-binutils
+ test '!' -f Makefile
+ /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/binutils-2.15/configure --target=m68k-linux --host=i686-host_pc-linux-gnu --prefix=/opt/logicpd/Coldfire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5 --disable-nls --with-sysroot=/opt/logicpd/Coldfire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5/m68k-linux


+ mkdir -p build-glibc-headers
+ cd build-glibc-headers
+ test '!' -f Makefile
+ libc_cv_ppc_machine=yes
+ CC=gcc
+ /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/glibc-2.3.5/configure --prefix= --build=i686-pc-linux-gnu --host=coldfire-linux --target=coldfire-linux --without-cvs --disable-sanity-checks --with-headers=/opt/logicpd/Coldfire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5/m68k-linux/include --enable-hacker-mode --enable-add-ons=linuxthreads,ports, --verbose


+ mkdir -p build-gcc-core
+ cd build-gcc-core
+ test '!' -f Makefile
+ /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/gcc-3.4.3/configure --target=m68k-linux --host=i686-host_pc-linux-gnu --prefix=/opt/logicpd/Coldfire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5 --with-local-prefix=/opt/logicpd/Coldfire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5/m68k-linux --with-newlib --without-headers --with-headers=/opt/logicpd/Coldfire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5/m68k-linux/include --enable-threads=no --enable-languages=c --disable-shared


+ mkdir -p build-glibc
+ cd build-glibc
+ echo
+ test '!' -f Makefile
+ BUILD_CC=gcc
+ CC='m68k-linux-gcc -mcfv4e'
+ CFLAGS='-mcfv4e -O2'
+ LDFLAGS=-mcfv4e
+ AR=m68k-linux-ar
+ RANLIB=m68k-linux-ranlib
+ /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/glibc-2.3.5/configure --prefix= --build=i686-pc-linux-gnu --host=coldfire-linux --target=coldfire-linux --without-cvs --disable-profile --without-gd --without-tls --without-__thread --enable-shared --enable-add-ons=linuxthreads,ports, --with-headers=/opt/logicpd/Coldfire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5/m68k-linux/include


+ mkdir -p build-gcc
+ cd build-gcc
+ test '!' -f Makefile
+ /home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/gcc-3.4.3/configure --target=m68k-linux --host=i686-host_pc-linux-gnu --prefix=/opt/logicpd/Coldfire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5 --with-headers=/opt/logicpd/Coldfire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5/m68k-linux/include --with-local-prefix=/opt/logicpd/Coldfire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5/m68k-linux --enable-threads=posix --enable-languages=c --enable-shared --with-libs=/opt/logicpd/Coldfire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5/m68k-linux/lib


+ cd build-glibc
+ make LD=m68k-linux-ld RANLIB=m68k-linux-ranlib
make[1]: Entering directory `/home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc'


+ make install_root=/opt/logicpd/Coldfire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5/m68k-linux prefix= install-bin install-rootsbin install-sbin install-data
make[1]: Entering directory `/home/peter/work/cvs-logic/logic/ColdFire/LinuxTools/crosstool-0.31/build/m68k-linux/gcc-3.4.3-glibc-2.3.5/build-glibc'


the end result is that I have a library, but not the particular headers
needed to use it; 

/opt/logicpd/Coldfire-new14/m68k-linux/gcc-3.4.3-glibc-2.3.5/lib/gcc/m68k-linux/3.4.3/../../../../m68k-linux/sys-include/sys/syscall.h
tries to include <bits/syscall.h> which doesn't exist.

All suggestions on what's causing this to go *way* wrong are higly
appreciated.  The answer may be int he buil log for glibc, but I don't
know where to look...

Thanks!

-- 
Peter Barada
peter@the-baradas.com

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]