LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 04-14-2008, 06:20 AM   #1
VelocideX
LQ Newbie
 
Registered: Oct 2007
Posts: 23

Rep: Reputation: 15
glibc "make check" fails on test-double.out


I have tried to compile glibc 2.6.1. Compilation completes successfully, but "make check" fails with this error message:

make[2]: *** [/root/glibc/glibc-2.6.1-build/math/test-double.out] Error 1
make[2]: Leaving directory `/root/glibc/glibc-2.6.1/math'
make[1]: *** [math/tests] Error 2
make[1]: Leaving directory `/root/glibc/glibc-2.6.1'
make: *** [check] Error 2

Any suggestions?
 
Old 04-15-2008, 07:39 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,745
Blog Entries: 1

Rep: Reputation: 224Reputation: 224Reputation: 224
You'll never complete the test suite without error. Execute the test suite thusly
Code:
make -k check >glibc-check-log 2>&1
The glibc math tests sometimes fail. Certain optimization settings are known to be a factor. Rethink your optimizations (if any). It may be that your gcc was built with i386 as the minimum target and you're building glibc on a >=i486 machine. That has caused problems with glibc's test-double failing.

Did you look at the file /root/glibc/glibc-2.6.1-build/math/test-double.out to see what the problem is? Try executing just the failed test with --verbose=2 and check the values.

Also, why are you building software as root?
 
Old 04-16-2008, 12:37 AM   #3
VelocideX
LQ Newbie
 
Registered: Oct 2007
Posts: 23

Original Poster
Rep: Reputation: 15
Regarding why build as root, I don't know? I agree it's silly, but have been quite sick this week and the thought didn't occur to me. (It's a home PC incidentally)

I have solved the test failing by using -march=i586, which is what this version of suse was compiled as.

I now get this:
make[2]: *** [/home/king/glibc/build/dlfcn/bug-atexit3.out] Error 1
make[2]: Leaving directory `/data/home/king/glibc/glibc-2.6.1/dlfcn'
make[1]: *** [dlfcn/tests] Error 2
make[1]: Leaving directory `/data/home/king/glibc/glibc-2.6.1'
make: *** [check] Error 2
king@speedy:~/glibc/build> less /home/king/glibc/build/dlfcn/bug-atexit3.out
dlopen failed: libstdc++.so.6: cannot open shared object file: No such file or directory

How do I run a specific test? Also, make doesn't accept --verbose as a command flag.

Thanks for your help!
 
Old 04-16-2008, 11:10 AM   #4
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,745
Blog Entries: 1

Rep: Reputation: 224Reputation: 224Reputation: 224
What difference does it make if it's a home PC? I still lock the doors and windows to my home.

You should build glibc by passing --with-arch=i486 to the configure script not adding -march=i586 to the CFLAGS. To execute just a specific test, for example this new failed test, you would
Code:
cd /home/king/glibc/build/dlfcn && make check
That will only run the tests found in the Makefile in /home/king/glibc/build/dlfcn.

As far as the bug-atexit3 test, I would ignore it (was it the only error you got?) and continue.
 
  


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
/tools/bin/ld: cannot find -lstdc++ -- Error in " make check " of Glibc lfs_rocks Linux From Scratch 1 02-15-2008 09:23 AM
glibc " make check " error in CHAPTER 6 lfs_rocks Linux From Scratch 5 02-12-2008 04:32 PM
glibc 2.3.5 "make check" invalid multibyte sequence sundialsvcs Linux - Software 8 09-09-2005 09:56 AM
LFS 6.0 error: glibc fails check with "g++: command not found" peristaltic Linux From Scratch 1 03-15-2005 07:52 PM
Problems with "make check" while compiling Glibc in Chapter 6.11 Spuckdung Linux From Scratch 2 02-13-2005 05:12 AM


All times are GMT -5. The time now is 07:17 PM.

Main Menu
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