Hi,

I'm trying to cross-compile a toolchain from my x86 FC3 system so I can
build an x86_64 LFS system. I'm using Eric Johnson's guide as a rough
guide, but not following it completely.
FYI : http://home.ix.netcom.com/~ejohns/glfs-amd64/index.html
I'm using binutils 2.15, linux-libc-headers-2.6.11.2, gcc-3.4.3, and
glibc-2.3.4. 

After configuring glibc as so:
        ../glibc-$(VERSION)/configure \
                --build=$(BUILD) \
                --host=$(TARGET) \
                --prefix=$(PREFIX)/$(TARGET) \
                --enable-add-ons=linuxthreads \
                --with-headers=$(PREFIX)/$(TARGET)/include && \
        $(MAKE) $(MFLAGS) all && \
        $(MAKE) install

I get:

x86_64-pc-linux-gnu-gcc -std=gnu99 -O2 -Wall -Winline -Wstrict-prototypes
-Wwrite-strings -g      -I../include -I. -I/root/build/glibc-build/csu -I..
-I../libio  -I/root/build/glibc-build -I../sysdeps/x86_64/elf
-I../linuxthreads/sysdeps/unix/sysv/linux/x86_64
-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/x86_64
-I../sysdeps/unix/sysv/linux/x86_64
-I../sysdeps/unix/sysv/linux/wordsize-64 -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/x86_64
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/x86_64/fpu
-I../sysdeps/x86_64 -I../sysdeps/wordsize-64 -I../sysdeps/ieee754/ldbl-96
-I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32
-I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic
-nostdinc -isystem /opt/amd64/lib/gcc/x86_64-pc-linux-gnu/3.4.3/include
-isystem /opt/amd64/x86_64-pc-linux-gnu/include -D_LIBC_REENTRANT -include
../include/libc-symbols.h       -DHAVE_INITFINI x86_64 -c -o
/root/build/glibc-build/csu/Mcrt1.o -x c /dev/null
x86_64-pc-linux-gnu-gcc: x86_64: No such file or directory
make[4]: *** [/root/build/glibc-build/csu/Mcrt1.o] Error 1
make[4]: Leaving directory `/root/build/glibc-2.3.4/csu'
make[3]: *** [csu/subdir_lib] Error 2
make[3]: Leaving directory `/root/build/glibc-2.3.4'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/build/glibc-build'
make[1]: *** [_cross] Error 2
make[1]: Leaving directory `/home/mkipper/makelfs/cross-tools'
make: *** [all] Error 2


I figure it's a variable substitution problem, like 'gcc
$(BOGUS_VAR)x86_64' but who knows. I can't seem to track back the source of
the error, as it's very far in.
If anyone can help me out, that would be great.

Michael

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to