Glibc test failure

2010-02-14 Thread bchaffin
I am attempting to run the glibc tests from within my chroot environment.
I keep getting the following errors:

make[2]: Entering directory `/sources/glibc-2.10.1/posix'
/bin/sh -e globtest.sh /sources/glibc-build/ /sources/glibc-build/elf/ \
 ld-linux.so.2
globtest.sh: command substitution: line 32: syntax error near unexpected token 
`)'
make[2]: *** [/sources/glibc-build/posix/globtest.out] Error 2
make[2]: Target `tests' not remade because of errors.
make[2]: Leaving directory `/sources/glibc-2.10.1/posix'
make[1]: *** [posix/tests] Error 2


make[1]: Target `check' not remade because of errors.
make[1]: Leaving directory `/sources/glibc-2.10.1'
make: *** [check] Error 2

Before and between these sections, everything else compiled fine.
The initial building of glibc was error free,but the test portion keeps failing.

This is my first time with LFS. I am using Book 6.5

What could be causing this?

Thanks for any advice. I'll take it.:)
 


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


Re: Glibc test failure

2010-02-14 Thread bchaffin

I did this command. It worked fine:

 cp -v ../glibc-2.10.1/iconvdata/gconv-modules iconvdata

This is the command it fails on:

make -k check 21 | tee glibc-check-log

 And here are the results of the final command if I issue it:

make[2]: *** [posix/tests] Error 2
make[2]: *** [check]Error 2





-Original Message-
From: stosss sto...@gmail.com
To: LFS Support List lfs-support@linuxfromscratch.org
Sent: Sun, Feb 14, 2010 3:33 am
Subject: Re: Glibc test failure


 I am attempting to run the glibc tests from within my chroot environment.
 I keep getting the following errors:

 make[2]: Entering directory `/sources/glibc-2.10.1/posix'
 /bin/sh -e globtest.sh /sources/glibc-build/ /sources/glibc-build/elf/ \
  ld-linux.so.2
 globtest.sh: command substitution: line 32: syntax error near unexpected
 token `)'
 make[2]: *** [/sources/glibc-build/posix/globtest.out] Error 2
 make[2]: Target `tests' not remade because of errors.
 make[2]: Leaving directory `/sources/glibc-2.10.1/posix'
 make[1]: *** [posix/tests] Error 2


 make[1]: Target `check' not remade because of errors.
 make[1]: Leaving directory `/sources/glibc-2.10.1'
 make: *** [check] Error 2

 Before and between these sections, everything else compiled fine.
 The initial building of glibc was error free,but the test portion keeps
 failing.

 This is my first time with LFS. I am using Book 6.5

 What could be causing this?

Did you do this yet?

cp -v ../glibc-2.10.1/iconvdata/gconv-modules iconvdata
make -k check 21 | tee glibc-check-log
grep Error glibc-check-log

After doing this you will know if you have a problem.
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

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


Output: glibc-check-log

2010-02-14 Thread bchaffin

 Hi all,

Here is the output from the test check. I am beginning to suspect a larger 
problem myself..
Checking into before asking didn't turn up a situation quite like this,which is 
what brought me here.
Thanks for your help


 root:/sources/glibc-build# grep Error glibc-check-log  
make[2]: *** [/sources/glibc-build/posix/globtest.out] Error 2
make[1]: *** [posix/tests] Error 2
make: *** [check] Error 2

Brice


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


Re: Glibc test failure

2010-02-14 Thread bchaffin

 I got past the DL= and similar errors by realizing those commands seemed to be 
extraction/substitutions. I pulled the command itself from the the script and 
ran it directly from a prompt to extract the information the script was looking 
for and used that information directly in the command that needed it, rather 
than relying on the substitution.

In considering all your thoughts and my own observations, I am beginning to 
suspect a bad bash rather than a problem with the book.

I am building 32 bit. My host system is a 1.6 Ghz. Pentium 4 with 343 MB of 
available RAM.
I am running Fedora 10 as the current OS.

 


 

 

-Original Message-
From: Ken Moffat zarniwhoo...@googlemail.com
To: LFS Support List lfs-support@linuxfromscratch.org
Sent: Sun, Feb 14, 2010 6:44 pm
Subject: Re: Glibc test failure


On 14 February 2010 08:18,  bchaf...@programmer.net wrote:
 I am attempting to run the glibc tests from within my chroot environment.
 I keep getting the following errors:

 make[2]: Entering directory `/sources/glibc-2.10.1/posix'
 /bin/sh -e globtest.sh /sources/glibc-build/ /sources/glibc-build/elf/ \
  ld-linux.so.2
 globtest.sh: command substitution: line 32: syntax error near unexpected
 token `)'
 make[2]: *** [/sources/glibc-build/posix/globtest.out] Error 2
 make[2]: Target `tests' not remade because of errors.
 make[2]: Leaving directory `/sources/glibc-2.10.1/posix'
 make[1]: *** [posix/tests] Error 2

 This looks worryingly similar to your earlier post without a
subject (syntax error on the line DL=...).  I use the expression
worryingly both because sh syntax errors in the book are
uncommon, and also because you *apparently* got past that
earlier problem after Bruce gave you some advice on debugging
the error, but the list has no idea _how_ you got past that
problem.

 Sometimes, it is worth recording solutions, so that if someone
else repeats the problem they can find the solution.  I don't
know if this is one of those cases.

 Looking at repeated problems apparently stemming from bash
in chroot, I start to wonder if your version of bash in /tools is
somehow broken (I can remember having that sort of problem
in cross-lfs, but that was specific to cross-compiling), or else if
you have somehow omitted or miscreated the /bin/bash -
/tools/bin/bash or /tools/bin/sh - bash symlinks, although it
seems unlikely those would do this.

 You said you were using 6.5.  Is this 64-bit or 32-bit, and
what is your host system ?

ĸen
-- 
After tragedy, and farce, OMG poneys!
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

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


[no subject]

2010-02-12 Thread bchaffin

 

  I am working from book 6.5
I am up to the stage of building Glibc from within the system proper, chap
ter  6 section 9.1
This command:
DL=3D$(readelf -l /bin/sh | sed -n 
's...@.*interpret.*/tools\(.*\)]...@\1@p')
produces the following output:
bash: command substitution: line 35: syntax error near unexpected token `)
'
bash: command substitution: line 35: `readelf -l /bin/sh | sed -n 
's...@.*int
erpret.*/tools\(.*\)]...@\1@p')'
Any ideas?


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


GCC patch failure LFS 6.5

2010-02-11 Thread bchaffin

 

 First off, hello everyone.

I am doing my first build of LFS, and I seem to have hit a little snag.

I am using book version 6.5, and I am up to 5.10: GCC-4.4.1 Pass 2

Up until now, I have had no apparent errors.

I am using Fedora 10 with GCC 4.3.2 and patch 2.6 on a Pentium 4 as my build 
host.


This command: patch -Np1 -i ../gcc-4.4.1-startfiles_fix-1.patch

fails with the following error:

patching file gcc/gcc.c
Hunk #1 FAILED at 6370.
1 out of 1 hunk FAILED -- saving rejects to file gcc/gcc.c.rej

At first, I thought it might be a corrupt file, so I downloaded it again. No 
joy.

SInce the list  search and LFS FAQ failed to answer my question I figured it 
was time to ask.

I am no stranger to Linux or compiling software, but haven't patched too many 
times in the past.

Any suggestions are greatly appreciated.

Thanks.:)

Brice


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


Re: GCC patch failure LFS 6.5

2010-02-11 Thread bchaffin

 Thanks Randy.

Actually, it did help. Looking at your success gave me a chance to take a 
closer look at my failure.
It was a problem with the command vs my directory structure. My fault. Fixed 
now.



 


 

 

-Original Message-
From: Randy McMurchy lfs.u...@mcmurchy.com
To: LFS Support List lfs-support@linuxfromscratch.org
Sent: Thu, Feb 11, 2010 9:49 am
Subject: Re: GCC patch failure LFS 6.5


bchaf...@programmer.net wrote these words on 02/11/10 08:13 CST:
 This command: patch -Np1 -i ../gcc-4.4.1-startfiles_fix-1.patch
 
 fails with the following error:
 
 patching file gcc/gcc.c
 Hunk #1 FAILED at 6370.
 1 out of 1 hunk FAILED -- saving rejects to file gcc/gcc.c.rej

You said you downloaded the gcc tarball (again), so I'm assuming you
unpacked it and changed into the gcc-4.4.1 directory and ran the
patch command. I cannot understand it failing. I just built LFS-6.5
and here is what happened when I ran it:

r...@rmlinux: /mnt/rml6/build  tar xf Sources/gcc-4.4.1.tar.gz
r...@rmlinux: /mnt/rml6/build  cd gcc-4.4*
r...@rmlinux: /mnt/rml6/build/gcc-4.4.1  patch -Np1 -i 
../Sources/gcc-4.4.1-startfiles_fix-1.patch
patching file gcc/gcc.c
Hunk #1 succeeded at 6467 (offset 97 lines).
r...@rmlinux: /mnt/rml6/build/gcc-4.4.1 


As you can see, it patch the file as expected. I wish I could be of
more help, but it is simply a mystery to me why it doesn't work for
you.

Perhaps your version of patch (or whatever in the Fedora OS) takes
a hunk that succeeds, but has offsets as a failure. Just a guess.

-- 
Randy

rmlscsi: [bogomips 1003.22] [GNU ld version 2.16.1] [gcc (GCC) 4.0.3]
[GNU C Library stable release version 2.3.6] [Linux 2.6.14.3 i686]
08:48:00 up 46 days, 13:56, 1 user, load average: 0.20, 0.20, 0.08
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

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