joao.moreira | 5 Jun 2012 22:49
Picon
Favicon

Errors compiling glibc in chapter 6

Hi all,

This is my second attempt at LFS, many years ago I successfully got counted as number 7178 with LFS 4.0 :-)

Now I've followed the stable 7.1 version of book, even though I knew from the outset that my host did not
conform to the requirements, as you can see in the attached file. The host's gcc and glibc are too recent,
and have not been tested... well, maybe now I *have* tested them, and they don't work, I don't know. Oh well,
I tried. This is a Fedora 16 system on an HP Pavilion dv7 (Core i5, 64 bits). I followed the book without any
issue until installing man pages in chapter 6. Then I get a problem with glibc.

Here's what goes wrong (summary, details below) :

1. First, when configuring glibc 2.14.1, it complains about missing autoconf (strange, but probably harmless)

2. Then I start building it and get many many errors such as :

make[2]: *** No rule to make target `/sources/glibc-build/iconv/stamp.o', needed by `/sources/glibc-build/libc.a'.

3. This is followed by many more messages such as :

make[2]: Target `tests' not remade because of errors.

4. It finally ends with 

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

Actually, I don't even know if these are fatal errors, maybe I should try to continue from here...
(Continue reading)

Ken Moffat | 6 Jun 2012 00:25

Re: Errors compiling glibc in chapter 6

On Tue, Jun 05, 2012 at 10:49:01PM +0200, joao.moreira <at> free.fr wrote:
> Hi all,
> 
> This is my second attempt at LFS, many years ago I successfully got counted as number 7178 with LFS 4.0 :-)
> 
> Now I've followed the stable 7.1 version of book, even though I knew from the outset that my host did not
conform to the requirements, as you can see in the attached file. The host's gcc and glibc are too recent,
and have not been tested... well, maybe now I *have* tested them, and they don't work, I don't know. Oh well,
I tried. This is a Fedora 16 system on an HP Pavilion dv7 (Core i5, 64 bits). I followed the book without any
issue until installing man pages in chapter 6. Then I get a problem with glibc.

 I *doubt* that newer versions of gcc and glibc are the problem.
But, I do remember that sometime in the past newer versions from
redhat or fedora did cause problems.

> 2. Then I start building it and get many many errors such as :
> 
> make[2]: *** No rule to make target `/sources/glibc-build/iconv/stamp.o', needed by `/sources/glibc-build/libc.a'.

 That's probably the key, but I don't recognise the error.
> 
> 3. This is followed by many more messages such as :
> 
> make[2]: Target `tests' not remade because of errors.
> 
> 4. It finally ends with 
> 
> make[1]: Target `check' not remade because of errors.
> make[1]: Leaving directory `/sources/glibc-2.14.1'
> make: *** [check] Error 2
(Continue reading)

Bruce Dubbs | 6 Jun 2012 00:41
Picon

Re: Errors compiling glibc in chapter 6

Ken Moffat wrote:
> On Tue, Jun 05, 2012 at 10:49:01PM +0200, joao.moreira <at> free.fr wrote:

>> bison (GNU Bison) 2.5
>> yacc not found

I'm pretty sure gcc needs this.

$ cat /usr/bin/yacc
#! /bin/sh
exec '/usr/bin/bison' -y "$ <at> "

   -- Bruce
--

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

Ken Moffat | 6 Jun 2012 01:12

Re: Errors compiling glibc in chapter 6

On Tue, Jun 05, 2012 at 05:41:12PM -0500, Bruce Dubbs wrote:
> Ken Moffat wrote:
> > On Tue, Jun 05, 2012 at 10:49:01PM +0200, joao.moreira <at> free.fr wrote:
> 
> 
> >> bison (GNU Bison) 2.5
> >> yacc not found
> 
> I'm pretty sure gcc needs this.
> 
> $ cat /usr/bin/yacc
> #! /bin/sh
> exec '/usr/bin/bison' -y "$ <at> "
> 
>    -- Bruce

 I believed the OP when he said his versions of gcc and glibc
failed.  But, he *appears* to have built gcc in chapter 5 without
any problems ?

ĸen
-- 
das eine Mal als Tragödie, das andere Mal als Farce
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page
joao.moreira | 6 Jun 2012 22:19
Picon
Favicon

Re: Errors compiling glibc in chapter 6

Hi guys,

> Did you run 'make' before you ran 'make check' ?

Well, this is soooo embarassing... I've been following the book instructions scrupulously, and yet I
missed the line that says "compile the package" :-( No, I did NOT run 'make', it didn't SEE that command ! And
the amazing thing is, I started this procedure over again maybe five times, and never saw it. I guess my eyes
just jumped over it to that big "IMPORTANT" box about the test suite... Oh well. So I will now go and hide my
shame, remove the glibc source and build directories, and try again. I'll keep you posted.

As for the discussion below : only glibc failed in chapter 6. In chapter 5, gcc pass 1, glibc, and gcc pass 2
were built just fine, no problems. But it's true that my host system doesn't have that yacc link to bison,
I'll add that now. And if I have any more compilation problems, I'll start over from chapter 5, with the yacc
link added. 

Thanks for your help,
Joao

----- Mail original -----
De: "Ken Moffat" <zarniwhoop <at> ntlworld.com>
À: "LFS Support List" <lfs-support <at> linuxfromscratch.org>
Envoyé: Mercredi 6 Juin 2012 01:12:37
Objet: Re: [lfs-support] Errors compiling glibc in chapter 6

On Tue, Jun 05, 2012 at 05:41:12PM -0500, Bruce Dubbs wrote:
> Ken Moffat wrote:
> > On Tue, Jun 05, 2012 at 10:49:01PM +0200, joao.moreira <at> free.fr wrote:
> 
> 
> >> bison (GNU Bison) 2.5
(Continue reading)


Gmane