First add a subject

matthew gruda wrote:
> now i got up to 6.10 and i tried:
> echo 'main(){}' > dummy.c
> cc dummy.c -v -Wl, --verbose
>
> and got:

Lets break this down:

> GNU assembler version 2.22 (x86_64-unknown-linux-gnu) using BFD version
> (GNU Binutils) 2.22

> COMPILER_PATH=/tools/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/:
 > /tools/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/:
 > /tools/libexec/gcc/x86_64-unknown-linux-gnu/:
 > /tools/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/:
 > /tools/lib/gcc/x86_64-unknown-linux-gnu/:
 > /tools/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/
 >   ../../../../x86_64-unknown-linux-gnu/bin/

This indicates to me that the previous sed was not done properly.  The 
/tools portions should have been removed.

What are the contents of

$ cat `dirname $(gcc --print-libgcc-file-name)`/specs

   -- Bruce


> LIBRARY_PATH=/tools/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/:
 > /usr/lib/../lib64/:
> /tools/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/
> ../../../../x86_64-unknown-linux-gnu/lib/:
 > /usr/lib/

>  COLLECT_GCC_OPTIONS='-v' '-v' '-mtune=generic' '-march=x86-64'

> /tools/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/collect2
 > --eh-frame-hdr
> -m elf_x86_64
 > -dynamic-linker /lib64/ld-linux-x86-64.so.2
> /usr/lib/../lib64/crt1.o
 > /usr/lib/../lib64/crti.o
> /tools/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/crtbegin.o
> -L/tools/lib/gcc/x86_64-unknown-linux-gnu/4.7.1
 > -L/usr/lib/../lib64
> -L/tools/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/
 >    ../../../../x86_64-unknown-linux-gnu/lib
> /tmp/ccm2lzhu.o
 > ""
 > -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc
> --as-needed -lgcc_s --no-as-needed
> /tools/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/crtend.o
> /usr/lib/../lib64/crtn.o
> /tools/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/
 >    ../../../../x86_64-unknown-linux-gnu/bin/ld:
> cannot find : No such file or directory
> collect2: error: ld returned 1 exit status
>
> so why? glibc was just checked and installed right, and set up, and i
> followed instructions for changing the path




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