LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices



Reply
 
Search this Thread
Old 12-17-2010, 01:47 PM   #1
prakashsince92
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.10 Maverick
Posts: 37

Rep: Reputation: 0
LFS 6.7: section 6.9 Glibc make test error


Hi,

I'm using LFS 6.7 book and ubuntu 10.10 as my host.Right now i'm in section 6.9 Glibc 2.12.1

I got some errors after running the make test commands

Quote:
root:/sources/glibc-build# grep Error glibc-check-log
make[2]: *** [/sources/glibc-build/math/test-float.out] Error 1
make[2]: *** [/sources/glibc-build/math/test-ifloat.out] Error 1
make[1]: *** [math/tests] Error 2
make[2]: *** [/sources/glibc-build/stdio-common/bug22.out] Error 1
make[1]: *** [stdio-common/tests] Error 2
make[2]: [/sources/glibc-build/posix/annexc.out] Error 1 (ignored)
make[2]: *** [/sources/glibc-build/rt/tst-cpuclock2.out] Error 1
make[1]: *** [rt/tests] Error 2
make: *** [check] Error 2
few of them are math tests errors and cpuclock2 error annexc.out errors.
some inclde stdio-comon/bugg22.out

Is it safe to ignore these errors and move ahead?
Or what should i do to override them?

Note:
As the section 6.1 Introduction suggests I've avoided the usage of compiler optimizations in the glibc build.

So i used,
Code:
case `uname -m` in
i?86) echo "CFLAGS += -march=i486 -mtune=native" > configparms ;;
esac
instead of
-mtune=native -03 -pipe.
Is that alright?

Any valuable comments will help me ,Thanks
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 12-17-2010, 02:05 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

I would redo the glibc chapter with the values given in the book (this: -mtune=native -03 -pipe).

6.1 talks about optimization flags in general, the flags given here
Code:
case `uname -m` in
  i?86) echo "CFLAGS += -march=i486 -mtune=native -O3 -pipe" > configparms ;;
esac
are set specifically and you should not change them.

You do need to remove the source and build directory and start fresh with unpacking the glibc package.

These you can ignore:
- make[2]: [/sources/glibc-build/posix/annexc.out] Error 1 (ignored)
- make[2]: *** [/sources/glibc-build/rt/tst-cpuclock2.out] Error 1

And if this is true: The math tests sometimes fail when running on systems where the CPU is not a relatively new genuine Intel or authentic AMD processor. you can ignore these as well:
- make[2]: *** [/sources/glibc-build/math/test-float.out] Error 1
- make[2]: *** [/sources/glibc-build/math/test-ifloat.out] Error 1

That leaves this one (assuming you do have an older cpu type):
- make[2]: *** [/sources/glibc-build/stdio-common/bug22.out] Error 1

If you still have problems after redoing the chapter post a follow-up message.

Hope this helps.
 
Old 12-17-2010, 02:17 PM   #3
prakashsince92
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.10 Maverick
Posts: 37

Original Poster
Rep: Reputation: 0
Hi druuna,
Alright i will redo the glibc compilation with the optimizations

Quote:

That leaves this one (assuming you do have an older cpu type):
- make[2]: *** [/sources/glibc-build/stdio-common/bug22.out] Error 1
I have an Intel core2duo CPU. So is it fine to get that error?

Thanks for the quick reply
 
Old 12-17-2010, 02:30 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

Intel's Core 2 was first introduced in 2006 and the latest Core 2 model was introduced in early 2009. I'm not really sure if that is old or not, my feeling says: No, not (too) old......

Maybe the errors are time-out related and if that is so, using the flags mentioned in the book should fix that.
 
Old 12-17-2010, 03:12 PM   #5
prakashsince92
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.10 Maverick
Posts: 37

Original Poster
Rep: Reputation: 0
Hi,

I recompiled Glibc with optimizations.But, I'm still getting the same set of errors as I've reported earlier.
Any idea?
 
Old 12-17-2010, 03:48 PM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

Have you checked if the bug22.out error is time-out related (check glibc-check-log manually, search for bug22)? If you want to make sure you could redo glibc once more and use:
Code:
TIMEOUTFACTOR=16 make -k check 2>&1 | tee glibc-check-log
That should get rid of all the time-out related errors (as mentioned in the book).

Hope this helps.

Last edited by druuna; 12-17-2010 at 03:49 PM.
 
2 members found this post helpful.
Old 12-17-2010, 04:58 PM   #7
prakashsince92
Member
 
Registered: Jan 2010
Distribution: Ubuntu 10.10 Maverick
Posts: 37

Original Poster
Rep: Reputation: 0
Code:
TIMEOUTFACTOR=16 make -k check 2>&1 | tee glibc-check-log
after executing this make test command i get the following errors

Quote:
root:/sources/glibc-build# grep Error glibc-check-log
make[2]: *** [/sources/glibc-build/math/test-float.out] Error 1
make[2]: *** [/sources/glibc-build/math/test-ifloat.out] Error 1
make[1]: *** [math/tests] Error 2
make[2]: [/sources/glibc-build/posix/annexc.out] Error 1 (ignored)
make[2]: *** [/sources/glibc-build/rt/tst-cpuclock2.out] Error 1
make[1]: *** [rt/tests] Error 2
make: *** [check] Error 2
These are math errors,cpuclock2 and annexc.out errors. So i can safely ignore them as per the book. RIGHT??

Thanks for your help druuna
 
Old 12-17-2010, 05:05 PM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Yes, you can!

And: You're welcome
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
lfs 6.5 make error with glibc-2.10.1 section 5.7.1 from LiveCD-6.3-r2160 [fixed] Expertsetup Linux From Scratch 2 01-21-2010 06:52 PM
LFS 6.5 Glibc 2.10.1 --> error when running make Soulman Linux From Scratch 1 01-17-2010 05:54 AM
make doesn't work in section 5.7. Glibc-2.8-20080929 in lfs aahiqmir Linux - Newbie 4 03-28-2009 09:17 AM
LFS 6.2 Section 5.6 - Error making glibc-2.3.6 dustin_wielenga Linux From Scratch 3 01-05-2008 03:01 PM
make glibc error (LFS) gatblast45 Linux - Software 3 12-21-2004 12:30 PM


All times are GMT -5. The time now is 11:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration