Re: [lfs-support] 6.9.1. Installation of Glibc command substitution error

2011-11-20 Thread Andrew Benton
On Sat, 19 Nov 2011 23:14:19 -0600
Bruce Dubbs bruce.du...@gmail.com wrote:

 Zhu Bicen wrote:
  Hi all,
  
  I am using stable LFS7.0 book, and doing the build step by step.
  Every thing goes well before 6.9.1. Installation of Glibc.
  But within 6.9.1. Installation of Glibc, I encountered two errors which are
  both about the command substitution.
  After I encountered these two errors, I suspect I missed something import
  point, So I did it again from a fresh begin,
  but the two errors occurred again.  The first time I am using debian 5 ,and
  second try is using ubuntu 11.10.
  Any body have some comments?
 
 Are you using bash as specified in Section vii. Host System Requirements?
 

In chapter 6 he's on chroot, using the bash we install into /tools.
Won't the host system requirements be academic if he's got that far?

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


Re: [lfs-support] 6.9.1. Installation of Glibc command substitution error

2011-11-20 Thread Bruce Dubbs
Andrew Benton wrote:
 On Sat, 19 Nov 2011 23:14:19 -0600
 Bruce Dubbs bruce.du...@gmail.com wrote:
 
 Zhu Bicen wrote:
 Hi all,

 I am using stable LFS7.0 book, and doing the build step by step.
 Every thing goes well before 6.9.1. Installation of Glibc.
 But within 6.9.1. Installation of Glibc, I encountered two errors which are
 both about the command substitution.
 After I encountered these two errors, I suspect I missed something import
 point, So I did it again from a fresh begin,
 but the two errors occurred again.  The first time I am using debian 5 ,and
 second try is using ubuntu 11.10.
 Any body have some comments?
 Are you using bash as specified in Section vii. Host System Requirements?

 
 In chapter 6 he's on chroot, using the bash we install into /tools.
 Won't the host system requirements be academic if he's got that far?

Yes. You're right.

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


[lfs-support] 6.9.1. Installation of Glibc command substitution error

2011-11-19 Thread Zhu Bicen
Hi all,

I am using stable LFS7.0 book, and doing the build step by step.
Every thing goes well before 6.9.1. Installation of Glibc.
But within 6.9.1. Installation of Glibc, I encountered two errors which are
both about the command substitution.
After I encountered these two errors, I suspect I missed something import
point, So I did it again from a fresh begin,
but the two errors occured again.  The first time I am using debian 5 ,and
second try is using ubuntu 11.10.
Any body have some comments?
Thanks!


the first is:
root:/sources/glibc-2.14.1# DL=$(readelf -l /bin/sh | sed -n 's@
.*interpret.*/tools\(.*\)]$@\1@p')
bash: command substitution: line 39: syntax error near unexpected token `)'
bash: command substitution: line 39: `readelf -l /bin/sh | sed -n 's@
.*interpret.*/tools\(.*\)]$@\1@p')'


and the second happened when issuing make for glibc:
./scripts/mkinstalldirs /sources/glibc-build/linkobj
mkdir /sources/glibc-build/linkobj
(cd /sources/glibc-build/linkobj; \
 /tools/lib/gcc/i686-pc-linux-gnu/4.6.1/../../../../i686-pc-linux-gnu/bin/ar
x ../libc_pic.a; \
 rm
$(/tools/lib/gcc/i686-pc-linux-gnu/4.6.1/../../../../i686-pc-linux-gnu/bin/ar
t ../sunrpc/librpc_compat_pic.a | sed 's/^compat-//'); \
 /tools/lib/gcc/i686-pc-linux-gnu/4.6.1/../../../../i686-pc-linux-gnu/bin/ar
x ../sunrpc/librpc_compat_pic.a; \
 /tools/lib/gcc/i686-pc-linux-gnu/4.6.1/../../../../i686-pc-linux-gnu/bin/ar
cr libc_pic.a *.os; \
 rm *.os)
/bin/sh: command substitution: line 3: syntax error near unexpected token
`)'
/bin/sh: command substitution: line 3:
`/tools/lib/gcc/i686-pc-linux-gnu/4.6.1/../../../../i686-pc-linux-gnu/bin/ar
t ../sunrpc/librpc_compat_pic.a | sed 's/^compat-//')'
make[1]: *** [/sources/glibc-build/linkobj/libc_pic.a] Error 1
make[1]: Leaving directory `/sources/glibc-2.14.1'
make: *** [all] Error 2
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


Re: [lfs-support] 6.9.1. Installation of Glibc command substitution error

2011-11-19 Thread Bruce Dubbs
Zhu Bicen wrote:
 Hi all,
 
 I am using stable LFS7.0 book, and doing the build step by step.
 Every thing goes well before 6.9.1. Installation of Glibc.
 But within 6.9.1. Installation of Glibc, I encountered two errors which are
 both about the command substitution.
 After I encountered these two errors, I suspect I missed something import
 point, So I did it again from a fresh begin,
 but the two errors occured again.  The first time I am using debian 5 ,and
 second try is using ubuntu 11.10.
 Any body have some comments?

Are you using bash as specified in Section vii. Host System Requirements?

   -- Bruce

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


Re: [lfs-support] 6.9.1. Installation of Glibc command substitution error

2011-11-19 Thread Zhu Bicen
Hi Bruce,

Thank you for your reply!
It seems I skipped the Preface section of the Book, therefor I didn't
note the Host Requirement.
and I run the version check.sh, and found that my bash version is 4.XX.
I think this should be the cause.  Thank you very much! I'll try again.

2011/11/20 Bruce Dubbs bruce.du...@gmail.com

 Zhu Bicen wrote:

 Hi all,

 I am using stable LFS7.0 book, and doing the build step by step.
 Every thing goes well before 6.9.1. Installation of Glibc.
 But within 6.9.1. Installation of Glibc, I encountered two errors which
 are
 both about the command substitution.
 After I encountered these two errors, I suspect I missed something import
 point, So I did it again from a fresh begin,
 but the two errors occured again.  The first time I am using debian 5 ,and
 second try is using ubuntu 11.10.
 Any body have some comments?


 Are you using bash as specified in Section vii. Host System Requirements?

  -- Bruce




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


Re: [lfs-support] 6.9.1. Installation of Glibc command substitution error

2011-11-19 Thread Bruce Dubbs
Zhu Bicen wrote:
 Hi Bruce, Is there any one linux distributions can satisfy all the Host
 Requirements to build LFS?

Please don't top post.

Most major distros will satisfy the LFS requirements, but you may have 
to install some -devel packages and change some symbolic links.

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