Hi.
I am trying to build LFS 6.0 system on FC4. And I have some problems.
I know that FC4 contains GCC 4.0 and it is not supported by a lot of
programms. I have no other distribution, so I am forced to use FC4.

I installed compat-gcc-3.2.3. Then i created links to gcc32:
root$ ln /usr/bin/gcc32 /bin/gcc
root$ ln -s /usr/bin/gcc32 /usr/bin/cc
lfs:/mnt/lfs/sources/binutils-build$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --with-system-zlib --enable-__cxa_atexit
--enable-languages=c,c++,f77 --disable-libgcj --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-47.fc4)

Then i did all in chapter 5.4. No problem.
But when I'am trying to configure gcc ( chapter 5.5.1 )  I recieve this:
lfs:/mnt/lfs/sources/gcc-build$ ../gcc-3.4.1/configure --prefix=/tools
--libexecdir=/tools/lib --with-local-prefix=/tools --disable-nls
--enable-shared --enable-languages=c
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
/tools/bin/ld:/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libc.so:
file format not recognized; treating as linker script
/tools/bin/ld:/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libc.so:5:
syntax error
collect2: ld returned 1 exit status
*** The command 'gcc -o conftest -g -O2   conftest.c' failed.
*** You must set the environment variable CC to a working compiler.

I think the problem is with new ld ( /tools/bin/ld ), because when i use old ld:
lfs:/mnt/lfs/sources/gcc-build$ /usr/bin/ld
/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libc.so
it works.
Please help me.

P.S.
Excuse me for my terrible english.
-- 
Best Regards
Bolt
--
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