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 07-22-2003, 05:46 AM   #1
nomad_2k3
LQ Newbie
 
Registered: Jul 2003
Location: romania
Distribution: RedHat 9.0
Posts: 3

Rep: Reputation: 0
glibc-2.3.2 make check problem


hi!
I'm having problems installing glibc-2.3.2. I'm using the CVS version of the LFS book(which aparently is the same as the PURE_LFS.txt found at LFS Hints).
Glibc compiled ok but stoped in the middle of make check.

-------------------------------------------------------------------------
make[2]: [/mnt/lfs/_src/glibc-build/posix/annexc.out] Error 1 (ignored)
/mnt/lfs/_src/glibc-build/io/test-utime.o(.text+0x1c): In function `main':
: the use of `tmpnam' is dangerous, better use `mkstemp'
/mnt/lfs/_src/glibc-build/misc/tst-mntent.o(.text+0x128): In function `main':
: the use of `tmpnam' is dangerous, better use `mkstemp'
Starting process a
Starting process b
Examples/ex13.c: In function `main':
Examples/ex13.c:109: warning: dereferencing type-punned pointer will break strict-aliasing rules
tst-cancel.c:30: warning: `t1' defined but not used
tst-cancel.c:49: warning: `t2' defined but not used
tst-cancel.c:69: warning: `t3' defined but not used
Starting process a
Starting process b
test-ifaddrs.c: In function `main':
test-ifaddrs.c:52: warning: inlining failed in call to `addr_string'
test-ifaddrs.c:79: warning: called from here
test-ifaddrs.c:52: warning: inlining failed in call to `addr_string'
test-ifaddrs.c:79: warning: called from here
test-ifaddrs.c:52: warning: inlining failed in call to `addr_string'
test-ifaddrs.c:79: warning: called from here
make[2]: *** [/mnt/lfs/_src/glibc-build/inet/test-ifaddrs.out] Error 1
make[1]: *** [inet/tests] Error 2
make: *** [check] Error 2
-------------------------------------------------------------------------

I used for the host os RedHat 9.0 with default config and packages.
For the LFS system i used binutils-2.14, gcc-3.3, glibc-2.3.2 and the 2.4.21 kernel.

Should I use binutils-2.13.2, gcc-3.2 and linux-2.4.20, as specified in the book? Could this be the problem?
 
Old 07-22-2003, 03:41 PM   #2
itsjustme
Senior Member
 
Registered: Mar 2003
Location: Earth
Distribution: Slackware, Ubuntu, Smoothwall
Posts: 1,571

Rep: Reputation: 47
Is this your first LFS build?

Did you read this in the FAQ :

"If this is your first time building LFS, using a version not in the book or varying from the book in any way is not a good idea. The IRC channel regulars have a saying, "FBBG". As rms, the resident bot, is quick to say, this means, "Follow Book, Book Good." They and the people on the lists have helped many an unhappy newbie who deviated from the book during that first build.

Once you've built a system "by the book", you have a stable knowledge base from which to experiment to your heart's content (or pain, as is often the case.)"


Sorry, I am new at this, so I can't specifically answer your questions, yet. Maybe you are already past the initial build and now you're 'experimenting to your heart's content'.

There isn't a lot of activity in this forum, although the interaction I have received so far is very good.

Good luck...

Edit: Hey, on that same page of the FAQ it says:

To help you on your travails, err travels, here are some notes for specific releases:
.
glibc-2.3.2: Add to your build instructions:

touch /etc/ld.so.conf &&
ln -s /static/bin/pwd /bin/pwd &&
touch /usr/include/assert.h &&


Last edited by itsjustme; 07-22-2003 at 03:44 PM.
 
Old 07-22-2003, 07:49 PM   #3
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
If this is the first time you've tried to build an LFS system, then I'd have to agree with itsjustme. Try not to stray from the book. Once you get the LFS system running the first time, you'll know what you're in for. Besides that, you can upgrade the software after the system is running, just like any other distribution. It doesn't have to be perfect out-of-the-gate.

Second thing I'd like to mention is, personally, I don't ever use CVS sources for anything. Go with a standard release unless you are trying to beta test the book, are a developer, or something along those lines.

Last edited by Dark_Helmet; 07-22-2003 at 07:51 PM.
 
Old 08-19-2003, 04:20 AM   #4
feifeier
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
gcc3.3.1+glibc2.3.2 compile has some bugs

gcc3.3.1+glibc2.3.2

make do-check NOTPARALLEL=parallel-ok
make[1]: Entering directory `/mnt/lfs/stage1/src/binutils-build'
make[2]: Entering directory `/mnt/lfs/stage1/src/binutils-build/intl'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/mnt/lfs/stage1/src/binutils-build/intl'
make[2]: Entering directory `/mnt/lfs/stage1/src/binutils-build/libiberty'
make[3]: Entering directory `/mnt/lfs/stage1/src/binutils-build/libiberty/testsuite'
gcc -DHAVE_CONFIG_H -O2 -pipe -I.. -I../../../binutils-2.14/libiberty/testsuite/../../include -o test-demangle \
../../../binutils-2.14/libiberty/testsuite/test-demangle.c ../libiberty.a
./test-demangle < ../../../binutils-2.14/libiberty/testsuite/demangle-expected
./test-demangle: 649 tests, 0 failures
make[3]: Leaving directory `/mnt/lfs/stage1/src/binutils-build/libiberty/testsuite'
make[2]: Leaving directory `/mnt/lfs/stage1/src/binutils-build/libiberty'
make[2]: Entering directory `/mnt/lfs/stage1/src/binutils-build/opcodes'
Making check in po
make[3]: Entering directory `/mnt/lfs/stage1/src/binutils-build/opcodes/po'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/mnt/lfs/stage1/src/binutils-build/opcodes/po'
make[3]: Entering directory `/mnt/lfs/stage1/src/binutils-build/opcodes'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/mnt/lfs/stage1/src/binutils-build/opcodes'
make[2]: Leaving directory `/mnt/lfs/stage1/src/binutils-build/opcodes'
make[2]: Entering directory `/mnt/lfs/stage1/src/binutils-build/bfd'
Making check in doc
make[3]: Entering directory `/mnt/lfs/stage1/src/binutils-build/bfd/doc'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/mnt/lfs/stage1/src/binutils-build/bfd/doc'
Making check in po
make[3]: Entering directory `/mnt/lfs/stage1/src/binutils-build/bfd/po'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/mnt/lfs/stage1/src/binutils-build/bfd/po'
make[3]: Entering directory `/mnt/lfs/stage1/src/binutils-build/bfd'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/mnt/lfs/stage1/src/binutils-build/bfd'
make[2]: Leaving directory `/mnt/lfs/stage1/src/binutils-build/bfd'
make[2]: Entering directory `/mnt/lfs/stage1/src/binutils-build/binutils'
Making check in doc
make[3]: Entering directory `/mnt/lfs/stage1/src/binutils-build/binutils/doc'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/mnt/lfs/stage1/src/binutils-build/binutils/doc'
Making check in po
make[3]: Entering directory `/mnt/lfs/stage1/src/binutils-build/binutils/po'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/mnt/lfs/stage1/src/binutils-build/binutils/po'
make[3]: Entering directory `/mnt/lfs/stage1/src/binutils-build/binutils'
make check-DEJAGNU
make[4]: Entering directory `/mnt/lfs/stage1/src/binutils-build/binutils'
Making a new site.exp file...
srcdir=`cd ../../binutils-2.14/binutils && pwd`; export srcdir; \
r=`pwd`; export r; \
EXPECT=expect; export EXPECT; \
if [ -f ./../expect/expect ]; then \
TCL_LIBRARY=`cd ../../binutils-2.14/binutils/../tcl/library && pwd`; \
export TCL_LIBRARY; \
fi; \
runtest=runtest; \
if /bin/sh -c "$runtest --version" > /dev/null 2>&1; then \
CC_FOR_TARGET="gcc -L/mnt/lfs/stage1/src/binutils-build/ld" CFLAGS_FOR_TARGET="-O2 -pipe" \
$runtest --tool binutils --srcdir ${srcdir}/testsuite \
; \
else echo "WARNING: could not find \`runtest'" 1>&2; :;\
fi
WARNING: Couldn't find the global config file.
WARNING: Couldn't find tool init file
Test Run By lfs on Tue Aug 19 08:37:10 2003
Native configuration is i686-pc-linux-gnu

=== binutils tests ===

Schedule of variations:
unix

Running target unix
Using /stage1/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /stage1/share/dejagnu/config/unix.exp as generic interface file for target.
Using /mnt/lfs/stage1/src/binutils-2.14/binutils/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /mnt/lfs/stage1/src/binutils-2.14/binutils/testsuite/binutils-all/ar.exp ...
FAIL: ar long file names
ERROR: /mnt/lfs/stage1/src/binutils-2.14/binutils/testsuite/binutils-all/bintest.s: assembly failed
Running /mnt/lfs/stage1/src/binutils-2.14/binutils/testsuite/binutils-all/dlltool.exp ...
Running /mnt/lfs/stage1/src/binutils-2.14/binutils/testsuite/binutils-all/hppa/objdump.exp ...
Running /mnt/lfs/stage1/src/binutils-2.14/binutils/testsuite/binutils-all/nm.exp ...
Version /mnt/lfs/stage1/src/binutils-build/binutils/nm-new reference
ERROR: /mnt/lfs/stage1/src/binutils-2.14/binutils/testsuite/binutils-all/bintest.s: assembly failed
Running /mnt/lfs/stage1/src/binutils-2.14/binutils/testsuite/binutils-all/objcopy.exp ...
Version /mnt/lfs/stage1/src/binutils-build/binutils/objcopy reference
ERROR: /mnt/lfs/stage1/src/binutils-2.14/binutils/testsuite/binutils-all/bintest.s: assembly failed
ERROR: unresolved 1
Running /mnt/lfs/stage1/src/binutils-2.14/binutils/testsuite/binutils-all/objdump.exp ...
Version /mnt/lfs/stage1/src/binutils-build/binutils/objdump reference
FAIL: objdump -i
ERROR: /mnt/lfs/stage1/src/binutils-2.14/binutils/testsuite/binutils-all/bintest.s: assembly failed
Running /mnt/lfs/stage1/src/binutils-2.14/binutils/testsuite/binutils-all/readelf.exp ...
Version /mnt/lfs/stage1/src/binutils-build/binutils/readelf 20030612
ERROR: /mnt/lfs/stage1/src/binutils-2.14/binutils/testsuite/binutils-all/bintest.s: assembly failed
ERROR: unresolved 1
Running /mnt/lfs/stage1/src/binutils-2.14/binutils/testsuite/binutils-all/size.exp ...
Version /mnt/lfs/stage1/src/binutils-build/binutils/size reference
ERROR: /mnt/lfs/stage1/src/binutils-2.14/binutils/testsuite/binutils-all/bintest.s: assembly failed
Running /mnt/lfs/stage1/src/binutils-2.14/binutils/testsuite/binutils-all/windres/windres.exp ...

=== binutils Summary ===

# of unexpected failures 2
# of unresolved testcases 3
make[4]: *** [check-DEJAGNU] Error 1
make[4]: Leaving directory `/mnt/lfs/stage1/src/binutils-build/binutils'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/mnt/lfs/stage1/src/binutils-build/binutils'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/mnt/lfs/stage1/src/binutils-build/binutils'
make[1]: *** [check-binutils] Error 2
make[1]: Leaving directory `/mnt/lfs/stage1/src/binutils-build'
make: *** [check] Error 2


make install___error
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.14/ld -I. -D_GNU_SOURCE
-I. -I../../binutils-2.14/ld -I../bfd -I../../binutils-2.14/ld/../bfd
-I../../binutils-2.14/ld/../include -I../../binutils-2.14/ld/../intl
-I../intl -O2 -pipe -DLOCALEDIR="\"/stage1/share/locale\""
-W -Wall -Wstrict-prototypes -Wmissing-prototypes
-O2 -pipe -c ../../binutils-2.14/ld/ldgram.c
/stage1/lib/gcc-lib/i686-pc-linux-gnu/3.3.1/../../../../i686-pc-linux-gnu/bin/as: relocation
error: /stage1/lib/libc.so.6: symbol __libc_stack_end,
version GLIBC_PRIVATE not defined in file ld-linux.so.2 with link time reference

gcc3.2.2+glibc2.3.1

make do-check NOTPARALLEL=parallel-ok
make[1]: Entering directory `/usr/lfs/src/binutils-build'
make[2]: Entering directory `/usr/lfs/src/binutils-build/intl'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/usr/lfs/src/binutils-build/intl'
make[2]: Entering directory `/usr/lfs/src/binutils-build/libiberty'
make[3]: Entering directory `/usr/lfs/src/binutils-build/libiberty/testsuite'
gcc -DHAVE_CONFIG_H -O2 -pipe -I.. -I../../../binutils-2.14/libiberty/testsuite/../../include -o test-demangle \
../../../binutils-2.14/libiberty/testsuite/test-demangle.c ../libiberty.a
./test-demangle < ../../../binutils-2.14/libiberty/testsuite/demangle-expected
./test-demangle: 649 tests, 0 failures
make[3]: Leaving directory `/usr/lfs/src/binutils-build/libiberty/testsuite'
make[2]: Leaving directory `/usr/lfs/src/binutils-build/libiberty'
make[2]: Entering directory `/usr/lfs/src/binutils-build/opcodes'
Making check in po
make[3]: Entering directory `/usr/lfs/src/binutils-build/opcodes/po'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/usr/lfs/src/binutils-build/opcodes/po'
make[3]: Entering directory `/usr/lfs/src/binutils-build/opcodes'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/usr/lfs/src/binutils-build/opcodes'
make[2]: Leaving directory `/usr/lfs/src/binutils-build/opcodes'
make[2]: Entering directory `/usr/lfs/src/binutils-build/bfd'
Making check in doc
make[3]: Entering directory `/usr/lfs/src/binutils-build/bfd/doc'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/usr/lfs/src/binutils-build/bfd/doc'
Making check in po
make[3]: Entering directory `/usr/lfs/src/binutils-build/bfd/po'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/usr/lfs/src/binutils-build/bfd/po'
make[3]: Entering directory `/usr/lfs/src/binutils-build/bfd'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/usr/lfs/src/binutils-build/bfd'
make[2]: Leaving directory `/usr/lfs/src/binutils-build/bfd'
make[2]: Entering directory `/usr/lfs/src/binutils-build/binutils'
Making check in doc
make[3]: Entering directory `/usr/lfs/src/binutils-build/binutils/doc'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/usr/lfs/src/binutils-build/binutils/doc'
Making check in po
make[3]: Entering directory `/usr/lfs/src/binutils-build/binutils/po'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/usr/lfs/src/binutils-build/binutils/po'
make[3]: Entering directory `/usr/lfs/src/binutils-build/binutils'
make check-DEJAGNU
make[4]: Entering directory `/usr/lfs/src/binutils-build/binutils'
Making a new site.exp file...
srcdir=`cd ../../binutils-2.14/binutils && pwd`; export srcdir; \
r=`pwd`; export r; \
EXPECT=expect; export EXPECT; \
if [ -f ./../expect/expect ]; then \
TCL_LIBRARY=`cd ../../binutils-2.14/binutils/../tcl/library && pwd`; \
export TCL_LIBRARY; \
fi; \
runtest=runtest; \
if /bin/sh -c "$runtest --version" > /dev/null 2>&1; then \
CC_FOR_TARGET="gcc -L/usr/lfs/src/binutils-build/ld" CFLAGS_FOR_TARGET="-O2 -pipe" \
$runtest --tool binutils --srcdir ${srcdir}/testsuite \
; \
else echo "WARNING: could not find \`runtest'" 1>&2; :;\
fi
WARNING: could not find `runtest'
make[4]: Leaving directory `/usr/lfs/src/binutils-build/binutils'
make[3]: Leaving directory `/usr/lfs/src/binutils-build/binutils'
make[2]: Leaving directory `/usr/lfs/src/binutils-build/binutils'
make[2]: Entering directory `/usr/lfs/src/binutils-build/gas'
Making check in doc
make[3]: Entering directory `/usr/lfs/src/binutils-build/gas/doc'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/usr/lfs/src/binutils-build/gas/doc'
Making check in po
make[3]: Entering directory `/usr/lfs/src/binutils-build/gas/po'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/usr/lfs/src/binutils-build/gas/po'
make[3]: Entering directory `/usr/lfs/src/binutils-build/gas'
make check-DEJAGNU
make[4]: Entering directory `/usr/lfs/src/binutils-build/gas'
Making a new site.exp file...
if [ -d testsuite ]; then \
true; \
else \
mkdir testsuite; \
fi
rm -f testsuite/site.exp
cp site.exp testsuite/site.exp
rootme=`pwd`; export rootme; \
srcdir=`cd ../../binutils-2.14/gas; pwd` ; export srcdir ; \
EXPECT=expect ; export EXPECT ; \
if [ -f ./../expect/expect ]; then \
TCL_LIBRARY=`cd ../../binutils-2.14/gas/../tcl/library && pwd`; \
export TCL_LIBRARY; \
fi; \
runtest=runtest; \
cd testsuite; \
if /bin/sh -c "$runtest --version" > /dev/null 2>&1; then \
$runtest --tool gas --srcdir ${srcdir}/testsuite \
; \
else echo "WARNING: could not find \`runtest'" 1>&2; :;\
fi
WARNING: could not find `runtest'
make[4]: Leaving directory `/usr/lfs/src/binutils-build/gas'
make[3]: Leaving directory `/usr/lfs/src/binutils-build/gas'
make[2]: Leaving directory `/usr/lfs/src/binutils-build/gas'
make[2]: Entering directory `/usr/lfs/src/binutils-build/ld'
Making check in po
make[3]: Entering directory `/usr/lfs/src/binutils-build/ld/po'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/usr/lfs/src/binutils-build/ld/po'
make[3]: Entering directory `/usr/lfs/src/binutils-build/ld'
make check-DEJAGNU
make[4]: Entering directory `/usr/lfs/src/binutils-build/ld'
Making a new site.exp file...
srcroot=`cd ../../binutils-2.14/ld && pwd`; export srcroot; \
r=`pwd`; export r; \
LC_COLLATE=; LC_ALL=; LANG=; export LC_COLLATE LC_ALL LANG; \
EXPECT=expect; export EXPECT; \
if [ -f ./../expect/expect ]; then \
TCL_LIBRARY=`cd ../../binutils-2.14/ld/../tcl/library && pwd`; \
export TCL_LIBRARY; \
fi; \
runtest=runtest; \
if /bin/sh -c "$runtest --version" > /dev/null 2>&1; then \
$runtest --tool ld --srcdir ${srcroot}/testsuite \
CC="gcc -L/usr/lfs/src/binutils-build/ld" CFLAGS="-O2 -pipe" \
CXX="c++ -L/usr/lfs/src/binutils-build/ld" CXXFLAGS="-g -O2" \
CC_FOR_HOST="gcc" CFLAGS_FOR_HOST="-O2 -pipe" \
OFILES="ldgram.o ldlex.o lexsup.o ldlang.o mri.o ldctor.o ldmain.o ldwrite.o ldexp.o ldemul.o ldver.o ldmisc.o ldfile.o ldcref.o eelf_i386.o ei386linux.o " BFDLIB="../bfd/.libs/libbfd.a" \
LIBIBERTY="../libiberty/libiberty.a " LIBS="" \
; \
else echo "WARNING: could not find \`runtest'" 1>&2; :;\
fi
WARNING: could not find `runtest'
make[4]: Leaving directory `/usr/lfs/src/binutils-build/ld'
make[3]: Leaving directory `/usr/lfs/src/binutils-build/ld'
make[2]: Leaving directory `/usr/lfs/src/binutils-build/ld'
make[2]: Entering directory `/usr/lfs/src/binutils-build/gprof'
Making check in po
make[3]: Entering directory `/usr/lfs/src/binutils-build/gprof/po'
make[3]: Nothing to be done for `check'.
make[3]: Leaving directory `/usr/lfs/src/binutils-build/gprof/po'
make[3]: Entering directory `/usr/lfs/src/binutils-build/gprof'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/usr/lfs/src/binutils-build/gprof'
make[2]: Leaving directory `/usr/lfs/src/binutils-build/gprof'
make[2]: Entering directory `/usr/lfs/src/binutils-build/etc'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/usr/lfs/src/binutils-build/etc'
make[1]: Leaving directory `/usr/lfs/src/binutils-build'

Last edited by feifeier; 08-19-2003 at 08:45 AM.
 
Old 08-19-2003, 02:31 PM   #5
feifeier
LQ Newbie
 
Registered: Aug 2003
Posts: 2

Rep: Reputation: 0
linux 2.14.9.0.5 release

i had test ,it can compile under glibc2.3.2 gcc3.3.1
good than 2.14.50
 
  


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
error in make check command of glibc(6.11) sharmashikha Linux From Scratch 2 08-16-2006 02:27 AM
Error:6.11 Glibc-2.3.4---make check ukyo Linux From Scratch 3 08-26-2005 05:33 PM
make check error glibc chap6 of lfs5.1.1 keyur Linux From Scratch 1 09-11-2004 07:50 PM
$make check / glibc impulze Linux From Scratch 1 04-29-2004 04:35 PM
Chapter 6: Glibc make check problems davemar Linux From Scratch 0 04-08-2004 05:17 PM

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

All times are GMT -5. The time now is 02:36 AM.

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