Re: [lfs-support] can't compile gcc pass 1

2013-01-06 Thread Simon Geard
On Sun, 2013-01-06 at 09:06 -0500, Roy Birk wrote: > And I might have been better off copying and pasting. It's difficult to > tell the difference, in the book, between the number one and the letter > L (lower case). I checked man pages and went with whichever seemed more > sensible, but got it wro

Re: [lfs-support] Cannot build test program in 6.10

2013-01-06 Thread Simon Geard
On Sun, 2013-01-06 at 14:56 -0600, Bruce Dubbs wrote: > binutils is critical. I wouldn't want to try to use a system with these > errors. I suggest starting over. That, and after installing binutils next time, check for the existence of /tools/tools thing, make sure you've not made the same mis

Re: [lfs-support] can't compile gcc pass 1

2013-01-06 Thread Simon Geard
On Sun, 2013-01-06 at 12:35 +0100, Tobias Gasser wrote: > > AWK=`readlink -f /usr/bin/awk` > > awk=/usr/bin/awk > > [ "$AWK" == "/usr/bin/gawk" ] || die "$awk is not a symlink to gawk" > > some distros started to drop the /usr hierarchy > > the script should be a little smarter to accept the fil

Re: [lfs-support] can't compile gcc pass 1

2013-01-06 Thread Simon Geard
On Sun, 2013-01-06 at 12:35 +0100, Tobias Gasser wrote: > > AWK=`readlink -f /usr/bin/awk` > > awk=/usr/bin/awk > > [ "$AWK" == "/usr/bin/gawk" ] || die "$awk is not a symlink to gawk" > > some distros started to drop the /usr hierarchy Out of curiosity, which ones? The only one I know that's me

Re: [lfs-support] Cannot build test program in 6.10

2013-01-06 Thread matthew gruda
On Sun, Jan 6, 2013 at 3:56 PM, Bruce Dubbs wrote: > matthew gruda wrote: > > >> What is the result of: > >> > >> $ find /tools -name ld\* -type f -exec ls -l {} \; > > > i got : > > root:/# find /tools -name ld\* -type f -exec ls -l {} \; > > -rwxr-xr-x 159442 Jan 6 01:39 /tools/lib/ld-2.16.so

Re: [lfs-support] Cannot build test program in 6.10

2013-01-06 Thread Bruce Dubbs
matthew gruda wrote: >> What is the result of: >> >> $ find /tools -name ld\* -type f -exec ls -l {} \; > i got : > root:/# find /tools -name ld\* -type f -exec ls -l {} \; > -rwxr-xr-x 159442 Jan 6 01:39 /tools/lib/ld-2.16.so > -rwxr-xr-x 915560 Jan 6 01:40 /tools/sbin/ldconfig > -rw-r--r--

Re: [lfs-support] error by compiling gettext in chapter 6.44

2013-01-06 Thread Sven Bartscher
Am 06.01.2013 18:46, schrieb Ken Moffat: > On Sun, Jan 06, 2013 at 02:47:22PM +0100, Sven Bartscher wrote: >> Hey guys! >> I'm building LFS on Ubuntu 12.10 64bit and tried to compile gettext >> in chapter 6.44 but got this error >> /usr/lib/libncursesw.a: could not read symbols: Bad value >> collec

Re: [lfs-support] Cannot build test program in 6.10

2013-01-06 Thread matthew gruda
On Sun, Jan 6, 2013 at 1:57 PM, Bruce Dubbs wrote: > matthew gruda wrote: > > We prefer you not top post. > > > $ cat `dirname $(gcc --print-libgcc-file-name)`/specs: > > That looks OK. > > > On Sun, Jan 6, 2013 at 12:57 PM, Bruce Dubbs > wrote: > > >> Lets break this down: > >> > > >>> LIBRAR

Re: [lfs-support] Cannot build test program in 6.10

2013-01-06 Thread Bruce Dubbs
matthew gruda wrote: We prefer you not top post. > $ cat `dirname $(gcc --print-libgcc-file-name)`/specs: That looks OK. > On Sun, Jan 6, 2013 at 12:57 PM, Bruce Dubbs wrote: >> Lets break this down: >> >>> LIBRARY_PATH=/tools/lib/gcc/x86_64-unknown-linux-gnu/4.7.1/: >>> /usr/lib/../lib64/

Re: [lfs-support] Cannot build test program in 6.10

2013-01-06 Thread matthew gruda
$ cat `dirname $(gcc --print-libgcc-file-name)`/specs: *asm: %{m32:--32} %{m32|mx32:;:--64} %{mx32:--x32} %{!mno-sse2avx:%{mavx:-msse2avx}} %{msse2avx:%{!mavx:-msse2avx}} *asm_debug: %{!g0:%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}} %{fdebug-prefix-map=*:--debug-prefix-map %*} *asm_final:

Re: [lfs-support] Cannot build test program in 6.10

2013-01-06 Thread Ken Moffat
On Sun, Jan 06, 2013 at 11:57:41AM -0600, Bruce Dubbs wrote: > 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-unk

Re: [lfs-support] Cannot build test program in 6.10

2013-01-06 Thread Bruce Dubbs
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/libex

Re: [lfs-support] (no subject)

2013-01-06 Thread matthew gruda
im fairly sure i did that. also i noticed that ommiting "-Wl," will succesfully compile, with readelf on a.out giving me [Requesting program interpreter: /lib64/ld-linux-x86-64.so.2] On Sun, Jan 6, 2013 at 12:24 PM, Roy Birk wrote: > Did you do this part in 5.8, > > make -C ld clean > make

Re: [lfs-support] error by compiling gettext in chapter 6.44

2013-01-06 Thread Ken Moffat
On Sun, Jan 06, 2013 at 02:47:22PM +0100, Sven Bartscher wrote: > Hey guys! > I'm building LFS on Ubuntu 12.10 64bit and tried to compile gettext > in chapter 6.44 but got this error > /usr/lib/libncursesw.a: could not read symbols: Bad value > collect2: error: ld returned 1 exit status > make[4]:

Re: [lfs-support] error by compiling gettext in chapter 6.44

2013-01-06 Thread Bruce Dubbs
Sven Bartscher wrote: > Hey guys! > I'm building LFS on Ubuntu 12.10 64bit and tried to compile gettext in > chapter 6.44 but got this error > /usr/lib/libncursesw.a: could not read symbols: Bad value > collect2: error: ld returned 1 exit status > make[4]: *** [libgettextlib.la] Error 1 What is th

Re: [lfs-support] (no subject)

2013-01-06 Thread Roy Birk
Did you do this part in 5.8, make -C ld clean make -C ld LIB_PATH=/usr/lib:/lib cp -v ld/ld-new /tools/bin On Jan 6, 2013, at 11:48 AM, matthew gruda wrote: > im fairly sure i did everything for 64 bit though... > > On Sun, Jan 6, 2013 at 11:37 AM, Roy Birk wrote: > It seems like there's mo

Re: [lfs-support] (no subject)

2013-01-06 Thread matthew gruda
im fairly sure i did everything for 64 bit though... On Sun, Jan 6, 2013 at 11:37 AM, Roy Birk wrote: > It seems like there's more to it than just the architecture, but you > should probably re-read the intro portion on "LFS Target Architectures". I > think you might need to start over and be su

Re: [lfs-support] (no subject)

2013-01-06 Thread Roy Birk
It seems like there's more to it than just the architecture, but you should probably re-read the intro portion on "LFS Target Architectures". I think you might need to start over and be sure to follow the parts of the book for 64-bit systems, but hopefully one of the gurus will respond if I've s

Re: [lfs-support] (no subject)

2013-01-06 Thread matthew gruda
so how do i fix this? On Sun, Jan 6, 2013 at 10:44 AM, Roy Birk wrote: > I think it's because you're on a 64-bit system. > > > > On Jan 6, 2013, at 8:51 AM, matthew gruda wrote: > > > now i got up to 6.10 and i tried: > > echo 'main(){}' > dummy.c > > cc dummy.c -v -Wl, --verbose > > > > and go

Re: [lfs-support] (no subject)

2013-01-06 Thread Roy Birk
I think it's because you're on a 64-bit system. On Jan 6, 2013, at 8:51 AM, 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: > GNU assembler version 2.22 (x86_64-unknown-linux-gnu) using BFD version (GNU > Binut

Re: [lfs-support] can't compile gcc pass 1

2013-01-06 Thread Roy Birk
And I might have been better off copying and pasting. It's difficult to tell the difference, in the book, between the number one and the letter L (lower case). I checked man pages and went with whichever seemed more sensible, but got it wrong a couple of times with the -W1 option. On Jan 6, 2

Re: [lfs-support] can't compile gcc pass 1

2013-01-06 Thread Baho Utot
Simon Geard wrote: > On Sat, 2013-01-05 at 11:39 -0600, Bruce Dubbs wrote: >> The idea of the script was that it should be short. Generally the >> problem is that the symlinks are not set and occasionally makeinfo is >> not installed. Rarely is the problem an out-of-date executable. > My issue wi

[lfs-support] (no subject)

2013-01-06 Thread matthew gruda
now i got up to 6.10 and i tried: echo 'main(){}' > dummy.c cc dummy.c -v -Wl, --verbose and got: 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

[lfs-support] error by compiling gettext in chapter 6.44

2013-01-06 Thread Sven Bartscher
Hey guys! I'm building LFS on Ubuntu 12.10 64bit and tried to compile gettext in chapter 6.44 but got this error /usr/lib/libncursesw.a: could not read symbols: Bad value collect2: error: ld returned 1 exit status make[4]: *** [libgettextlib.la] Error 1 make[4]: Leaving directory `/sources/gett

Re: [lfs-support] can't compile gcc pass 1

2013-01-06 Thread Fernando de Oliveira
--- Em dom, 6/1/13, Tobias Gasser escreveu: > De: Tobias Gasser > Assunto: Re: [lfs-support] can't compile gcc pass 1 > Para: "LFS Support List" > Data: Domingo, 6 de Janeiro de 2013, 8:35 > > > AWK=`readlink -f /usr/bin/awk` > > awk=/usr/bin/awk > > [ "$AWK" == "/usr/bin/gawk" ] || die "$awk is

Re: [lfs-support] can't compile gcc pass 1

2013-01-06 Thread Fernando de Oliveira
--- Em dom, 6/1/13, Bruce Dubbs escreveu: > De: Bruce Dubbs > Assunto: Re: [lfs-support] can't compile gcc pass 1 > Para: "LFS Support List" > Data: Domingo, 6 de Janeiro de 2013, 1:09 > Fernando de Oliveira wrote: > > > I like this. Output from > > > > $ cat /etc/lfs-release > > SVN-20120311 >

Re: [lfs-support] can't compile gcc pass 1

2013-01-06 Thread Tobias Gasser
> AWK=`readlink -f /usr/bin/awk` > awk=/usr/bin/awk > [ "$AWK" == "/usr/bin/gawk" ] || die "$awk is not a symlink to gawk" some distros started to drop the /usr hierarchy the script should be a little smarter to accept the files not only in /usr/bin but just anywhere in $PATH something like