On Wed, 3 Aug 2005, Michael Kipper wrote:

> 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

 That's somewhat old now!  I also had difficulty trying to grok exactly
what he did at the end to build the ia32 toolchain.

> 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
[snip]
> x86_64-pc-linux-gnu-gcc: x86_64: No such file or directory

>
>
> 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
>
>

 I'm not familiar with this build process, but it looks as if something
isn't linked correctly, causing x86_64-pc-linux-gnu-gcc to be linked
against a non-existent library or interpreter.  It's a cross-compiler,
so ldd and readelf -l should be able to tell you what it's using.

 Also, 'make all' sounds odd. Usually, you want 'make all-gcc' for the
early stages (and not followed by just 'make install'), and later just
'make'.  But, I think Eric builds gcc fewer times in his method.

 Depending what you hope to achieve for the final system (pure or
multilib), you might want to consider my hint (alpha status, location in
this week's archives), Tooly's site, or Jim's cross-lfs branch.

Ken
-- 
 das eine Mal als Tragödie, das andere Mal als Farce

--
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