From: Paul M. <pm...@MV...> - 2001-09-08 05:38:11
|
On Sat, Sep 08, 2001 at 12:22:15AM -0500, Renegade Muskrat wrote: > It looks to me like there are a lot of references to i386 stuff when i > probably want references to sh stuff. How do i correct this? If it would > help, below is the list of commands i've executed to get to this point; t= he > interesting stuff involving glibc is naturally at the bottom. Any help or > suggestions would be greatly appreciated. Thanks! >=20 >=20 > HOST=3Di686-pc-linux-gnu > TARGET=3Dsh-linux > ARCH=3Dsh > BASE=3D/home/build > PREFIX=3D/usr/local/${TARGET} > PATH=3D${PREFIX}/bin:${PATH} >=20 [snip] >=20 > # glibc >=20 > cd ${BASE} > tar -xvIf glibc-2.2.2.tar.bz2 > bunzip2 -c glibc-linuxthreads-2.2.2.tar.bz2 | \ > (cd glibc-2.2.2 ; tar -xvf -) > gunzip -c sh-glibc-2.2.2-pthread+arch+ver.diff.gz | patch -p0 > mkdir build-glibc > cd build-glibc > echo "CFLAGS :=3D -ml -m4 -O \$(CFLAGS) > ASFLAGS-.o :=3D -ml > LDFLAGS-relocatable :=3D -ml > crts-predefined=3Dyes > build-programs=3Dno > CC=3D${TARGET}-gcc -ml -m4 > RANLIB=3D${TARGET}-ranlib > AS=3D${TARGET}-gcc -ml > LD=3D${TARGET}-ld -ml > AR=3D${TARGET}-ar > BUILD_CC=3Dgcc" > configparms > CC=3D"${TARGET}-gcc -ml -m4" ../glibc-2.2.2/configure \ > --host=3D${HOST} --build=3D${HOST} --target=3D${TARGET} \ > --prefix=3D${PREFIX}/${TARGET} --enable-add-ons \ > --with-headers=3D${PREFIX}/linux/include \ > --with-binutils=3D${PREFIX}/bin \ > 2>&1 | tee -a configure.out > make -w all \ > 2>&1 | tee -a make.out >=20 >=20 This would very likely be breaking because TARGET=3DHOST in glibc.. so you'= re essentially building an i686-pc-linux-gnu glibc with your sh-linux version = of gcc -- no good can come of that. Change your --host=3D${HOST} to --host=3D${TARGET} and try again.. Regards, --=20 Paul Mundt <pm...@mv...> MontaVista Software, Inc. |