[lfs-support] can't set dynamic linker in step 6.9

2012-01-26 Thread Dave H
Hi again,

At the stage to change the dynamic linker but for some reason,
cut/pasting didn't seem to work:
===
root:/sources/glibc-2.14.1# DL=$(readelf -l /bin/sh | sed -n
's@.*interpret.*/tools\(.*\)]$@\1@p')
bash: command substitution: line 47: syntax error near unexpected token `)'
bash: command substitution: line 47: `readelf -l /bin/sh | sed -n
's@.*interpret.*/tools\(.*\)]$@\1@p')'
===

So I did this and it appeared to set $DL:
===
root:/sources/glibc-2.14.1# readelf -l /bin/sh | sed -n
's@.*interpret.*/tools\(.*\)]$@\1@p'
/lib64/ld-linux-x86-64.so.2
root:/sources/glibc-2.14.1# DL=/lib64/ld-linux-x86-64.so.2
root:/sources/glibc-2.14.1# echo $DL
/lib64/ld-linux-x86-64.so.2
===

However, I don't think it did anything:
===
root:/sources/glibc-2.14.1# sed -i s|libs -o|libs -L/usr/lib
-Wl,-dynamic-linker=$DL -o| \
 scripts/test-installation.pl
root:/sources/glibc-2.14.1# cat scripts/test-installation.pl | grep
dynamic-linker*
open GCC, $CC /tmp/test-prg$$.c $link_libs -L/usr/lib
-Wl,-dynamic-linker= -o /tmp/test-prg$$ 21 |
===

Shouldn't
 -dynamic-linker=
now be
 -dynamic-linker=/lib64/ld-linux-x86-64.so.2
?

Thanks again for your time.  I'd be back 2 chapters still if it wern't
for you guys.

Dave
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Problems with GCC Pass 1 in Chapter 5

2012-01-26 Thread Mario Meier

 Original-Nachricht 
 Datum: Tue, 24 Jan 2012 20:21:30 +0100
 Von: Matijn Woudt tijn...@gmail.com
 An: LFS Support List lfs-support@linuxfromscratch.org
 Betreff: Re: [lfs-support] Problems with GCC Pass 1 in Chapter 5

 On Tue, Jan 24, 2012 at 8:17 PM, Mario Meier bea...@gmx.at wrote:
 
  Bruce Dubbs wrote:
  Mario Meier wrote:
   !! I am not english native speaker. I am from Austria and maybe I
   will post sentences that are grammatically wrong. Please ask me if
   you do not understand me.
 
  Sometimes non-native speakers know more about our language than
  native-speakers.  :)
 
   I have a big problem. I already tried to build LFS multiple times. My
   current try is from a VirtualBox VM with a Win7 host and an openSUSE
   guest system.
  
   I put the source tarballs to a directory on the host system
   (accessable as shared folder at /mnt/host), but I use the LINUX tar
   to extract the archives. I know that using Windows applications may
   cause errors.
  
   I have extracted GCC to /mnt/lfs/sources (I will call it /sources in
   the rest of the mail) and have set the $src variable to /mnt/host.
  
   I always used this command to extract an archive:
  
   tar -xvaf package*.tar*
  
   That should allow me to leave out the version number and the
   compression file extension. The -a flag means that TAR automatically
   detects the compression method.
 
   In the german support channel, they told me to leave out -a. I did so
   and also left out the stars and wrote the full path.
 
  The -a is not necessary.  I don't really care to watch the output of
 tar
  any more, so I just use 'tar -xf $DIR/$PROGRAM.tar.?z*' in my scripts.
  That gets .tar.gz, .tar.bz2, and .tar.xz.  It misses the occasional
 .tgz.
 
   I had tested if that worked. It now says, libmprf not found or uses
   different ABI
  
   Could you help me please?
 
  I'm not sure what your question is.  You have openSUSE and it doesn't
  extract the tarfiles?  What version of tar do you have?  'tar
 --version'.
 
 
  My question is that it does not find MPFR!
  I am sorry, I did not read through the message before sending it.
  What my question is: Why does the GCC compilation brake?
  I am in 'make' process and it says it does not find libmpfr!
 
  My TAR Version:
 
  tar (GNU tar) 1.26
  Copyright © 2011 Free Software Foundation, Inc.
  (...)
 
  I left out the license part, because it is in german and (as I see) not
 relevant.
 
  I will go to vacation next week, but will be happy about an answer in my 
  letterbox when I get back.

I am very sorry: I'm leaving Sat 4th, not Sat 28th.

 
  Thanks in advance,
  *Bean*Me
 
 Well, if make breaks, you should send your output from make where the
 error occurs, and a few lines above of that.

I don't have any output anymore. I have tried it out multiple times and always 
the same error occured.

 
 Matijn

*Bean*Me
-- 
Feel free - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Problems with GCC Pass 1 in Chapter 5

2012-01-26 Thread Mario Meier

 Original-Nachricht 
 Datum: Tue, 24 Jan 2012 13:31:37 -0600
 Von: Bruce Dubbs bruce.du...@gmail.com
 An: LFS Support List lfs-support@linuxfromscratch.org
 Betreff: Re: [lfs-support] Problems with GCC Pass 1 in Chapter 5

 Mario Meier wrote:
  Bruce Dubbs wrote:
  Mario Meier wrote:
  !! I am not english native speaker. I am from Austria and maybe I
  will post sentences that are grammatically wrong. Please ask me if
  you do not understand me.
  Sometimes non-native speakers know more about our language than 
  native-speakers.  :)
 
  I have a big problem. I already tried to build LFS multiple times. My
  current try is from a VirtualBox VM with a Win7 host and an openSUSE
  guest system.
 
  I put the source tarballs to a directory on the host system
  (accessable as shared folder at /mnt/host), but I use the LINUX tar
  to extract the archives. I know that using Windows applications may
  cause errors.
 
  I have extracted GCC to /mnt/lfs/sources (I will call it /sources in
  the rest of the mail) and have set the $src variable to /mnt/host.
 
  I always used this command to extract an archive:
 
  tar -xvaf package*.tar*
 
  That should allow me to leave out the version number and the
  compression file extension. The -a flag means that TAR automatically
  detects the compression method.
  In the german support channel, they told me to leave out -a. I did so
  and also left out the stars and wrote the full path.
  The -a is not necessary.  I don't really care to watch the output of
 tar 
  any more, so I just use 'tar -xf $DIR/$PROGRAM.tar.?z*' in my scripts. 
  That gets .tar.gz, .tar.bz2, and .tar.xz.  It misses the occasional
 .tgz.
 
  I had tested if that worked. It now says, libmprf not found or uses
  different ABI
 
  Could you help me please?
  I'm not sure what your question is.  You have openSUSE and it doesn't 
  extract the tarfiles?  What version of tar do you have?  'tar
 --version'.
 
  
  My question is that it does not find MPFR!
  I am sorry, I did not read through the message before sending it.
  What my question is: Why does the GCC compilation brake?
  I am in 'make' process and it says it does not find libmpfr!
 
 You probably didn't follow the instructions in section 5.3:
 
 1. Extract the package, in this case gcc.
 2. Change to the directory created when the package was extracted.
 
 Now follow the instructions:
 tar -jxf ../mpfr-3.1.0.tar.bz2
 mv -v mpfr-3.1.0 mpfr

I DID follow these instructions!

 
 etc
 
 You probably missed step 2.
 
  My TAR Version:
  
  tar (GNU tar) 1.26
 
 That's fine.
-- 
Feel free - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Problems with GCC Pass 1 in Chapter 5

2012-01-26 Thread Mario Meier
 On Jan 24, 2012 7:32 PM, Bruce Dubbs bruce.du...@gmail.com wrote:
 
  Mario Meier wrote:
   Bruce Dubbs wrote:
   Mario Meier wrote:
   !! I am not english native speaker. I am from Austria and maybe I
   will post sentences that are grammatically wrong. Please ask me if
   you do not understand me.
   Sometimes non-native speakers know more about our language than
   native-speakers.  :)
  
   I have a big problem. I already tried to build LFS multiple times.
 My
   current try is from a VirtualBox VM with a Win7 host and an openSUSE
   guest system.
  
   I put the source tarballs to a directory on the host system
   (accessable as shared folder at /mnt/host), but I use the LINUX tar
   to extract the archives. I know that using Windows applications may
   cause errors.
  
   I have extracted GCC to /mnt/lfs/sources (I will call it /sources in
   the rest of the mail) and have set the $src variable to /mnt/host.
  
   I always used this command to extract an archive:
  
   tar -xvaf package*.tar*
  
   That should allow me to leave out the version number and the
   compression file extension. The -a flag means that TAR automatically
   detects the compression method.
   In the german support channel, they told me to leave out -a. I did
 so
   and also left out the stars and wrote the full path.
   The -a is not necessary.  I don't really care to watch the output of
 tar
   any more, so I just use 'tar -xf $DIR/$PROGRAM.tar.?z*' in my
 scripts.
   That gets .tar.gz, .tar.bz2, and .tar.xz.  It misses the occasional
 .tgz.
  
   I had tested if that worked. It now says, libmprf not found or uses
   different ABI
  
   Could you help me please?
   I'm not sure what your question is.  You have openSUSE and it doesn't
   extract the tarfiles?  What version of tar do you have?  'tar
 --version'.
  
  
   My question is that it does not find MPFR!
   I am sorry, I did not read through the message before sending it.
   What my question is: Why does the GCC compilation brake?
   I am in 'make' process and it says it does not find libmpfr!
 
  You probably didn't follow the instructions in section 5.3:
 
  1. Extract the package, in this case gcc.
  2. Change to the directory created when the package was extracted.
 
  Now follow the instructions:
  tar -jxf ../mpfr-3.1.0.tar.bz2
  mv -v mpfr-3.1.0 mpfr
 
 
 ../ needs to be replaced with $src/
 e.g.
 
 tar -xf $src/mpfr-3.1.0.tar.bz2
 
 or, symlink everything before extraction
 
 ln -s $src/* .
 tar -xf gcc*tar.*z*
 cd gcc-version
 
 this way the commands in the book will work without needing to manually
 adapt them
 
  etc
 
  You probably missed step 2.
 
   My TAR Version:
  
   tar (GNU tar) 1.26
 
  That's fine.

Dear Support team,

I can't believe it! I retried and it works!

I think that the problem was a typo:
I wrote:
   --with-mpfr-lib=$(pwd)/../mpfr/src/.libs
Instead of:
   --with-mpfr-lib=$(pwd)/mpfr/src/.libs

I am sorry that I was wasting your time.

Thanks anyway
*Bean*Me

-- 
Feel free - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


[lfs-support] Another problem: Glibc in Chapter 5.7

2012-01-26 Thread Mario Meier
Dear Support,

I have another problem: Building Glibc (Chapter 5.7) fails during make.

This time, I have copied the output immediately:

mv -f /mnt/lfs/sources/glibc-build/libc.so.6.new 
/mnt/lfs/sources/glibc-build/libc.so.6
i686-pc-linux-gnu-gcc -nostdlib -nostartfiles -o 
/mnt/lfs/sources/glibc-build/iconv/iconvconfig  
-Wl,-dynamic-linker=/tools/lib/ld-linux.so.2   -Wl,-z,combreloc -Wl,-z,relro 
-Wl,--hash-style=both /mnt/lfs/sources/glibc-build/csu/crt1.o 
/mnt/lfs/sources/glibc-build/csu/crti.o `i686-pc-linux-gnu-gcc  
--print-file-name=crtbegin.o` /mnt/lfs/sources/glibc-build/iconv/iconvconfig.o 
/mnt/lfs/sources/glibc-build/iconv/strtab.o 
/mnt/lfs/sources/glibc-build/iconv/xmalloc.o 
/mnt/lfs/sources/glibc-build/iconv/hash-string.o  
-Wl,-rpath-link=/mnt/lfs/sources/glibc-build:/mnt/lfs/sources/glibc-build/math:/mnt/lfs/sources/glibc-build/elf:/mnt/lfs/sources/glibc-build/dlfcn:/mnt/lfs/sources/glibc-build/nss:/mnt/lfs/sources/glibc-build/nis:/mnt/lfs/sources/glibc-build/rt:/mnt/lfs/sources/glibc-build/resolv:/mnt/lfs/sources/glibc-build/crypt:/mnt/lfs/sources/glibc-build/nptl
 /mnt/lfs/sources/glibc-build/libc.so.6 
/mnt/lfs/sources/glibc-build/libc_nonshared.a  
/mnt/lfs/sources/glibc-build/elf/ld.
 so  -lgcc -lgcc_eh  `i686-pc-linux-gnu-gcc  --print-file-name=crtend.o` 
/mnt/lfs/sources/glibc-build/csu/crtn.o
/mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.6.1/../../../../i686-pc-linux-gnu/bin/ld:
 cannot find -lgcc_eh
collect2: ld returned 1 exit status
make[2]: *** [/mnt/lfs/sources/glibc-build/iconv/iconvconfig] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.14.1/iconv'
make[1]: *** [iconv/others] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.14.1'
make: *** [all] Error 2

Could you help me please?

Thanks in advance,
*Bean*Me
-- 
Feel free - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] Another problem: Glibc in Chapter 5.7

2012-01-26 Thread Andrew Benton
On Thu, 26 Jan 2012 20:35:19 +0100
Mario Meier bea...@gmx.at wrote:

 Dear Support,
 
 I have another problem: Building Glibc (Chapter 5.7) fails during make.
 
 This time, I have copied the output immediately:
 
 mv -f /mnt/lfs/sources/glibc-build/libc.so.6.new 
 /mnt/lfs/sources/glibc-build/libc.so.6
 i686-pc-linux-gnu-gcc -nostdlib -nostartfiles -o 
 /mnt/lfs/sources/glibc-build/iconv/iconvconfig  
 -Wl,-dynamic-linker=/tools/lib/ld-linux.so.2   -Wl,-z,combreloc -Wl,-z,relro 
 -Wl,--hash-style=both /mnt/lfs/sources/glibc-build/csu/crt1.o 
 /mnt/lfs/sources/glibc-build/csu/crti.o `i686-pc-linux-gnu-gcc  
 --print-file-name=crtbegin.o` 
 /mnt/lfs/sources/glibc-build/iconv/iconvconfig.o 
 /mnt/lfs/sources/glibc-build/iconv/strtab.o 
 /mnt/lfs/sources/glibc-build/iconv/xmalloc.o 
 /mnt/lfs/sources/glibc-build/iconv/hash-string.o  
 -Wl,-rpath-link=/mnt/lfs/sources/glibc-build:/mnt/lfs/sources/glibc-build/math:/mnt/lfs/sources/glibc-build/elf:/mnt/lfs/sources/glibc-build/dlfcn:/mnt/lfs/sources/glibc-build/nss:/mnt/lfs/sources/glibc-build/nis:/mnt/lfs/sources/glibc-build/rt:/mnt/lfs/sources/glibc-build/resolv:/mnt/lfs/sources/glibc-build/crypt:/mnt/lfs/sources/glibc-build/nptl
  /mnt/lfs/sources/glibc-build/libc.so.6 
 /mnt/lfs/sources/glibc-build/libc_nonshared.a  
 /mnt/lfs/sources/glibc-build/elf/l
 d.
  so  -lgcc -lgcc_eh  `i686-pc-linux-gnu-gcc  --print-file-name=crtend.o` 
 /mnt/lfs/sources/glibc-build/csu/crtn.o
 /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/4.6.1/../../../../i686-pc-linux-gnu/bin/ld:
  cannot find -lgcc_eh

It seems something went wrong when you installed gcc. The first pass of
gcc should be calling itself i686-lfs-linux-gnu, not i686-pc-linux-gnu.
ld cannot find libgcc_eh.a which should have been installed as part of
gcc. You gcc is b0rken. I would start again. Make sure you follow the
book carefully.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page