On Monday, July 02, 2012 01:50:44 Ken Moffat wrote:
> On Mon, Jul 02, 2012 at 08:07:32AM +0800, Archie Arevalo wrote:
> > > lfs:/mnt/lfs/sources/gcc-build$ cat i686-lfs-linux-gnu/libgcc/config.log
snip
> > Thread model: single
> > gcc version 4.6.2 (GCC)
> > configure:3039: $? = 0
> > configure:3028: /mnt/lfs/sources/gcc-build/./gcc/xgcc
> > -B/mnt/lfs/sources/gcc- build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/
> > -B/tools/i686-lfs-linux-gnu/lib/ -isystem
> > /tools/i686-lfs-linux-gnu/include -isystem /tools/i686-lfs-linux-
> > gnu/sys-include    -V >&5
> > xgcc: error: unrecognized option '-V'
> > xgcc: fatal error: no input files
> > compilation terminated.
> 
>  I'm surprised it doesn't say *what* it was testing for here, but
> the result looks ok.
> 
> > configure:3039: $? = 1
> > configure:3028: /mnt/lfs/sources/gcc-build/./gcc/xgcc
> > -B/mnt/lfs/sources/gcc- build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/
> > -B/tools/i686-lfs-linux-gnu/lib/ -isystem
> > /tools/i686-lfs-linux-gnu/include -isystem /tools/i686-lfs-linux-
> > gnu/sys-include    -qversion >&5
> > xgcc: error: unrecognized option '-qversion'
> > xgcc: fatal error: no input files
> > compilation terminated.
> > configure:3039: $? = 1
> 
>  Again, ok
> 
> > configure:3055: /mnt/lfs/sources/gcc-build/./gcc/xgcc
> > -B/mnt/lfs/sources/gcc- build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/
> > -B/tools/i686-lfs-linux-gnu/lib/ -isystem
> > /tools/i686-lfs-linux-gnu/include -isystem /tools/i686-lfs-linux-
> > gnu/sys-include    -o conftest -g -O2   conftest.c  >&5
> > /mnt/lfs/sources/gcc-build/./gcc/as: line 87: exec: --: invalid option
> > exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection
> > ...] configure:3058: $? = 1
> > configure:3246: checking for suffix of object files
> > configure:3268: /mnt/lfs/sources/gcc-build/./gcc/xgcc
> > -B/mnt/lfs/sources/gcc- build/./gcc/ -B/tools/i686-lfs-linux-gnu/bin/
> > -B/tools/i686-lfs-linux-gnu/lib/ -isystem
> > /tools/i686-lfs-linux-gnu/include -isystem /tools/i686-lfs-linux-
> > gnu/sys-include    -c -g -O2  conftest.c >&5
> > /mnt/lfs/sources/gcc-build/./gcc/as: line 87: exec: --: invalid option
> > exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection
> > ...] configure:3272: $? = 1
> 
>  Those exec: --: invalid option messages from 'as' are the problem.
> Looking for similar errors on google suggests that your
> cross-binutils is not installed correctly.

Line 87:    exec $original ${1+"$@"}
> 
>  I'm lacking ideas.  Is your PATH /tools/bin:/bin:/usr/bin ?

lfs:~$ echo $PATH
/tools/bin:/bin:/usr/bin
> 
>  Is /tools a symlink to /mnt/lfs/tools ?

lfs:/mnt/lfs$ ls -l
total 24
drwx------ 2 root root 16384 Jun 29 17:27 lost+found
drwxrwxrwt 4 lfs  lfs   4096 Jun 30 19:15 sources
drwxr-xr-x 6 lfs  lfs   4096 Jun 29 18:39 tools

I'm pretty sure I executed, ln -sv $LFS/tools /

> 
>  Can you see the binutils programs in
> /mnt/lfs/tools/i686-lfs-linux-gnu/bin/ ?

lfs:/mnt/lfs$ ls -l tools/i686-lfs-linux-gnu/bin/ 
total 34908
-rwxr-xr-x 2 lfs lfs 3336578 Jun 29 18:39 ar
-rwxr-xr-x 2 lfs lfs 4721536 Jun 29 18:39 as
-rwxr-xr-x 4 lfs lfs 4485086 Jun 29 18:39 ld
-rwxr-xr-x 4 lfs lfs 4485086 Jun 29 18:39 ld.bfd
-rwxr-xr-x 2 lfs lfs 3228995 Jun 29 18:39 nm
-rwxr-xr-x 2 lfs lfs 3817294 Jun 29 18:39 objcopy
-rwxr-xr-x 2 lfs lfs 4438182 Jun 29 18:39 objdump
-rwxr-xr-x 2 lfs lfs 3336573 Jun 29 18:39 ranlib
-rwxr-xr-x 2 lfs lfs 3817289 Jun 29 18:39 strip

> What do 'file' and 'ldd' say about the 'as' program there ?

Sorry, I don't know how to answer that.

> 
>  Sorry, I'm scratching around for ideas and getting nowhere.

You're the one helping me out. Thank you so much and sorry for giving you a 
headache. ;)

> 
>  Can you run 'i686-lfs-linux-gnu-ld -V' ?  It ought to say it's GNU
> ld and report a few lines of emulations.  ( It's the same file as
> i686-lfs-linux-gnu-bin/ld i.e. they are hardlinks, but the plain
> 'ld' version is not on your PATH )

lfs:/mnt/lfs$ i686-lfs-linux-gnu-ld -V
bash: i686-lfs-linux-gnu-ld: command not found
lfs:/mnt/lfs$ ld -V
GNU ld (Linux/GNU Binutils) 2.21.52.0.2.20110610
  Supported emulations:
   elf_i386
   i386linux
   elf_x86_64
   elf32_x86_64
   elf_l1om

> 
>  Desperate question : You're not really on x86_64 are you ?

lfs:/mnt/lfs$ uname -m
i686

Thank you, Ken. 
> 
> ĸen

Peace and much respect,
Archie Arevalo
-- 
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