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-28-2005, 10:06 AM   #1
rangalo
Member
 
Registered: Jan 2005
Posts: 189

Rep: Reputation: 30
Glibc testsuit failed in chroot env


Hallo again,

now I am in 6th chapter and compiled glibc-2.3.4.
this is the out put of

grep Error glibc-check-log
Code:
make[2]: *** [/sources/glibc-build/libio/tst-fopenloc.check] Error 127
make[1]: *** [libio/tests] Error 2
make[2]: [/sources/glibc-build/posix/annexc.out] Error 1 (ignored)
make[2]: *** [/sources/glibc-build/posix/bug-regex2-mem] Error 127
make[2]: *** [/sources/glibc-build/posix/bug-regex14-mem] Error 127
make[2]: *** [/sources/glibc-build/posix/bug-regex21-mem] Error 127
make[2]: *** [/sources/glibc-build/posix/tst-rxspencer-mem] Error 127
make[2]: *** [/sources/glibc-build/posix/tst-pcre-mem] Error 127
make[2]: *** [/sources/glibc-build/posix/tst-boost-mem] Error 127
make[2]: *** [/sources/glibc-build/posix/bug-glob2-mem] Error 127
make[1]: *** [posix/tests] Error 2
make[2]: *** [/sources/glibc-build/nptl/tst-stack3-mem] Error 127
make[1]: *** [nptl/tests] Error 2
make: *** [check] Error 2

now this time the book says that the test should be generally not produce any errors...

is it ok to continue ?

thanks,
Hardik
 
Old 12-29-2005, 05:26 AM   #2
rangalo
Member
 
Registered: Jan 2005
Posts: 189

Original Poster
Rep: Reputation: 30
hi,

when I ignored the testsuite and tried make install, it failed !!

so now I cannot go further

can anyone tell me what could be wrong ?

i checked the config.log the only thing i found odd was one warning regarding not found autoconf..

i know we havent installed it yet..

perl was found and ldd /tools/bin/perl gave proper results...

thanks,
Hardik
 
Old 12-30-2005, 03:13 AM   #3
rangalo
Member
 
Registered: Jan 2005
Posts: 189

Original Poster
Rep: Reputation: 30
Hallo all,

i figured out and solved the problem..

it was Perl problem .. perl was installed ok but in /tools/lib/perl5, the name of the lib dir was wrong in my case .. it should be from the perl-version 5.8.7 and i had 5.7.8 ...a typo ..

So, for anybody else having the same problem ...i recommend following.

in chroot env test for perl before compiling glibc ..

following tests should be performed.

Code:
perl -v (to know if perl exists)

- check the perl sym link in /bin 

ldd /tools/bin/perl (should give libraries in /tools/lib dir)

perl -V:apiversion (should return 'UNKNOWN' or something else but must not fail ..)
(this command checks apis in /tools/lib/perl5/[perl-version-dir] )
cheers,
Hardik.
 
Old 01-04-2006, 03:19 AM   #4
weaver6999
LQ Newbie
 
Registered: Jan 2006
Posts: 1

Rep: Reputation: 0
perl problem

Awesome, this was my exact problem. Thanks for the solution.
 
Old 01-05-2006, 05:38 AM   #5
nurmi
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
i've the same problem, (but my perl-dir) was correctly set.

after i executed the check again (make -k check >glibc-check-log 2>&1), i got no errors.
maybe all targets was already created.

note: i work with the live-cd too, and i did NOT apply the patches prior compiling glibc as in the book written:
patch -Np1 -i ../glibc-2.3.4-rtld_search_dirs-1.patch
patch -Np1 -i ../glibc-2.3.4-fix_test-1.patch
patch -Np1 -i ../glibc-2.3.4-tls_assert-1.patch

could it be the reason? if yes, how can i take the patches to my machine (the patches are not on the live-cd).
 
Old 01-05-2006, 07:22 AM   #6
rangalo
Member
 
Registered: Jan 2005
Posts: 189

Original Poster
Rep: Reputation: 30
Hi nurmi,

could be because of the second patch .. it is for test suit ..

i dont have idea about live cd, but you can also find the pathes on internet , I fould everything at the mentioned url ..
 
Old 01-27-2006, 04:03 AM   #7
nurmi
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
found my bug.
i've taken the wrong perl version 5.8.6 (as on the live-cd)

i restarted to build the toolchain again
prior checking the live-cd with the 6.1.1. book, and updated some packages:

bash-doc-3.0.tar.gz,
binutils-2.15.94.0.2.2-gcc4-1.patch,
bzip2-1.0.3-bzgrep_security-1.patch,
bzip2-1.0.3-install_docs-1.patch,
glibc-2.3.4-fix_test-1.patch,
glibc-2.3.4-rtld_search_dirs-1.patch,
glibc-2.3.4-tls_assert-1.patch,
perl-5.8.7-libc-1.patch,
perl-5.8.7.tar.bz2,
texinfo-4.8-tempfile_fix-1.patch,
util-linux-2.12q-umount_fix-1.patch,
zlib-1.2.3.tar.bz2


have lfs completed successfully, thanks for your hints.

now on to blfs :-)
 
Old 02-12-2006, 11:32 AM   #8
yanni
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
Hi,

I'm having a similiar problem. The only line returned by grep is:
Quote:
make[2]: [/sources/glibc-build/posix/annexc.out] Error 1 (ignored)
(which is also contained in rangalo's log)

Perl should be alright and the patches have been applied.
The host system is Mandrake 10.1.
Do you have any ideas?

Thanks,
yannick
 
  


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
etc of the host changes while working in chroot env sharmashikha Linux From Scratch 3 06-15-2005 12:20 PM
intaling GCC-3.3.3. in chroot env FAILS tests xtrem Linux From Scratch 1 02-18-2005 12:24 PM
help? gettext fails test under chroot env jobesd Linux From Scratch 2 01-19-2005 07:13 PM
Cannot Enter chroot /usr/bin/env directory not found Zero-0-Effect Linux From Scratch 2 03-13-2004 12:41 PM
chroot problem (thinks 'env' is a directory) d33pdream Linux - General 1 02-23-2003 02:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:27 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
Open Source Consulting | Domain Registration