Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 12-27-2005, 10:51 AM   #1
Registered: Jan 2005
Posts: 189

Rep: Reputation: 30
test suit errors on gcc during pass-2

Hallo all,

i am a new member!

i downloaded the 6.1.1 book (pdf) and following it to make lfs on my slackware-10.2 machine

i have created a special user lfs for it and according to the hint i m working with linux_from_scratch directory..

i could smoothly go upto the pass-2 of the Gcc-3.4.3 installation. when running the test

make -k check.. I have recived following output for libstdc++ test.. the above test (gcc and g++) gave me same result as shown on the url in the i m just pasting where the output starts differing...

                === libstdc++ tests ===

Schedule of variations:

Running target unix
Using /tools/share/dejagnu/baseboards/unix.exp as board description file for target.
Using /tools/share/dejagnu/config/unix.exp as generic interface file for target.
Using /home/lfs/linux_from_scratch/sources/gcc-3.4.3/libstdc++-v3/testsuite/config/default.exp as tool-and-target-specific interface file.
Running /home/lfs/linux_from_scratch/sources/gcc-3.4.3/libstdc++-v3/testsuite/libstdc++-dg/normal.exp ...
XPASS: 22_locale/locale/cons/ execution test

                === libstdc++ Summary ===

# of expected passes            2722
# of unexpected successes       1
# of expected failures          6
make[3]: *** [check-DEJAGNU] Error 1

                === libstdc++-v3 check-abi Summary ===

# of added symbols:              56
# of missing symbols:            46
# of incompatible symbols:       46

using: /home/lfs/linux_from_scratch/sources/gcc-3.4.3/libstdc++-v3/config/abi/i486-linux-gnu/baseline_symbols.txt
make[3]: Leaving directory `/home/lfs/linux_from_scratch/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/testsuite'
make[2]: *** [check-am] Error 2
make[2]: Target `check' not remade because of errors.
make[2]: Leaving directory `/home/lfs/linux_from_scratch/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3/testsuite'
make[2]: Entering directory `/home/lfs/linux_from_scratch/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
: make ; exec make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CC_FOR_TARGET=/home/lfs/linux_from_scratch/sources/gcc-build/gcc/xgcc -B/home/lfs/linux_from_scratch/sources/gcc-build/gcc/ -B/tools/i686-pc-linux-gnu/bin/ -B/tools/i686-pc-linux-gnu/lib/ -isystem /tools/i686-pc-linux-gnu/include -isystem /tools/i686-pc-linux-gnu/sys-include" "CFLAGS=-O2 -g -O2" "CXXFLAGS=-g -O2 -D_GNU_SOURCE" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-O2 -g -O2" "INSTALL=/usr/bin/ginstall -c" "INSTALL_DATA=/usr/bin/ginstall -c -m 644" "INSTALL_PROGRAM=/usr/bin/ginstall -c" "INSTALL_SCRIPT=/usr/bin/ginstall -c" "LDFLAGS=" "LIBCFLAGS=-O2 -g -O2" "LIBCFLAGS_FOR_TARGET=-O2 -g -O2" "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000  " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/tools" "infodir=/tools/info" "libdir=/tools/lib" "includedir=/tools/include" "prefix=/tools" "tooldir=/tools/i686-pc-linux-gnu" "gxx_include_dir=/tools/include/c++/3.4.3" "AR=ar" "AS=/tools/i686-pc-linux-gnu/bin/as" "LD=/tools/i686-pc-linux-gnu/bin/ld" "LIBCFLAGS=-O2 -g -O2" "PICFLAG=" "RANLIB=ranlib" "NM=/tools/i686-pc-linux-gnu/bin/nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=/tools/i686-pc-linux-gnu/bin/nm" "DESTDIR=" "WERROR=" DO=all multi-do
make[3]: Entering directory `/home/lfs/linux_from_scratch/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
if [ -z "" ]; then \
  true; \
else \
  rootpre=`${PWDCMD-pwd}`/; export rootpre; \
  srcrootpre=`cd ../../../gcc-3.4.3/libstdc++-v3; ${PWDCMD-pwd}`/; export srcrootpre; \
  lib=`echo ${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
  compiler="/home/lfs/linux_from_scratch/sources/gcc-build/gcc/xgcc -B/home/lfs/linux_from_scratch/sources/gcc-build/gcc/ -B/tools/i686-pc-linux-gnu/bin/ -B/tools/i686-pc-linux-gnu/lib/ -isystem /tools/i686-pc-linux-gnu/include -isystem /tools/i686-pc-linux-gnu/sys-include"; \
  for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
    dir=`echo $i | sed -e 's/;.*$//'`; \
    if [ "${dir}" = "." ]; then \
      true; \
    else \
      if [ -d ../${dir}/${lib} ]; then \
        flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
        if (cd ../${dir}/${lib}; make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CC_FOR_TARGET=/home/lfs/linux_from_scratch/sources/gcc-build/gcc/xgcc -B/home/lfs/linux_from_scratch/sources/gcc-build/gcc/ -B/tools/i686-pc-linux-gnu/bin/ -B/tools/i686-pc-linux-gnu/lib/ -isystem /tools/i686-pc-linux-gnu/include -isystem /tools/i686-pc-linux-gnu/sys-include" "CFLAGS=-O2 -g -O2" "CXXFLAGS=-g -O2 -D_GNU_SOURCE" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-O2 -g -O2" "INSTALL=/usr/bin/ginstall -c" "INSTALL_DATA=/usr/bin/ginstall -c -m 644" "INSTALL_PROGRAM=/usr/bin/ginstall -c" "INSTALL_SCRIPT=/usr/bin/ginstall -c" "LDFLAGS=" "LIBCFLAGS=-O2 -g -O2" "LIBCFLAGS_FOR_TARGET=-O2 -g -O2" "MAKE=make" "MAKEINFO=makeinfo --split-size=5000000   " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/tools" "infodir=/tools/info" "libdir=/tools/lib" "includedir=/tools/include" "prefix=/tools" "tooldir=/tools/i686-pc-linux-gnu" "gxx_include_dir=/tools/include/c++/3.4.3" "AR=ar" "AS=/tools/i686-pc-linux-gnu/bin/as" "LD=/tools/i686-pc-linux-gnu/bin/ld" "LIBCFLAGS=-O2 -g -O2" "PICFLAG=" "RANLIB=ranlib" "NM=/tools/i686-pc-linux-gnu/bin/nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=/tools/i686-pc-linux-gnu/bin/nm" "DESTDIR=" "WERROR=" \
                        CFLAGS="-O2 -g -O2 ${flags}" \
                        prefix="/tools" \
                        exec_prefix="/tools" \
                        GCJFLAGS=" ${flags}" \
                        CXXFLAGS="-g -O2 -D_GNU_SOURCE ${flags}" \
                        LIBCFLAGS="-O2 -g -O2 ${flags}" \
                        LIBCXXFLAGS="-g -O2 -D_GNU_SOURCE -fno-implicit-templates ${flags}" \
                        LDFLAGS=" ${flags}" \
                        MULTIFLAGS="${flags}" \
                        DESTDIR="" \
                        INSTALL="/usr/bin/ginstall -c" \
                        INSTALL_DATA="/usr/bin/ginstall -c -m 644" \
                        INSTALL_PROGRAM="/usr/bin/ginstall -c" \
                        INSTALL_SCRIPT="/usr/bin/ginstall -c" \
                        all); then \
          true; \
        else \
          exit 1; \
        fi; \
      else true; \
      fi; \
    fi; \
  done; \
make[3]: Leaving directory `/home/lfs/linux_from_scratch/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
make[2]: Leaving directory `/home/lfs/linux_from_scratch/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
make[1]: *** [check-recursive] Error 1
make[1]: Target `check' not remade because of errors.
make[1]: Leaving directory `/home/lfs/linux_from_scratch/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3'
make: *** [check-target-libstdc++-v3] Error 2
make[1]: Entering directory `/home/lfs/linux_from_scratch/sources/gcc-build/i686-pc-linux-gnu/libiberty'
make[2]: Entering directory `/home/lfs/linux_from_scratch/sources/gcc-build/i686-pc-linux-gnu/libiberty/testsuite'
make[2]: Nothing to be done for `check'.
make[2]: Leaving directory `/home/lfs/linux_from_scratch/sources/gcc-build/i686-pc-linux-gnu/libiberty/testsuite'
make[1]: Leaving directory `/home/lfs/linux_from_scratch/sources/gcc-build/i686-pc-linux-gnu/libiberty'
make: Target `check' not remade because of errors.

i want to know why this result could be differing and what harm does it bring ?

Old 12-28-2005, 03:52 AM   #2
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
They are harmless, some tests are known to fail, RTFM.
Old 12-28-2005, 04:33 AM   #3
Registered: Jan 2005
Posts: 189

Original Poster
Rep: Reputation: 30
hi mr_demilrd,

thanks for ur answer, but I think the main advantage of making LFS is to learn linux and so I just wanted to know why could such error arise and what difference they could make in fucntioning of the newly installed gcc ...

i have read the FM and already started compiling further but I think if I accept everything as it is written, the whole procedure will loose the educational value attached with LFS.. it will be just like another distro where u have to type a lot !!!

any way thanks,


Last edited by rangalo; 12-28-2005 at 04:38 AM.


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
FC3: Media test pass - but MD5SUM is wrong Vikinghat Fedora - Installation 9 10-24-2006 05:58 AM
questions on GCC-3.4.3 - Pass 2 and Binutils- - Pass 2 satimis Linux From Scratch 7 12-26-2005 10:23 PM
GCC second pass Mystified Linux From Scratch 6 07-28-2005 10:21 PM
GCC First Pass throwing errors...pls help! chakkaradeepcc Linux From Scratch 2 04-11-2005 02:20 PM
Glibc Pass II Test Results g_goblin Linux From Scratch 0 11-17-2003 01:42 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 09:27 PM.

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