Building GCC first time, getting test errors

Dev Guy devguy.ca@gmail.com
Thu Nov 5 00:29:00 GMT 2015


Hello all this is my first time building GCC, I am able to
successfully build GCC but when I run the "make -k check" I get
errors.

I tried building gcc-5.2.0 first, the tests were failing, so I tired
to build gcc-5.1.0 and the check stopped with an Error mid way.

I am building on a fresh debain install.

$ uname -a
Linux karma 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u5
(2015-10-09) x86_64 GNU/Linux

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.9/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian
4.9.2-10' --with-bugurl=file:///usr/share/doc/gcc-4.9/README.Bugs
--enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.9 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.9
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes
--enable-gnu-unique-object --disable-vtable-verify --enable-plugin
--with-system-zlib --disable-browser-plugin --enable-java-awt=gtk
--enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64/jre
--enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.9-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.9-amd64
--with-arch-directory=amd64
--with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc
--enable-multiarch --with-arch-32=i586 --with-abi=m64
--with-multilib-list=m32,m64,mx32 --enable-multilib
--with-tune=generic --enable-checking=release --build=x86_64-linux-gnu
--host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.9.2 (Debian 4.9.2-10)


The errors I got with gcc-5.1 is below

                === libitm Summary ===

# of expected passes            26
# of expected failures          3
# of unsupported tests          1
make[4]: Leaving directory
'/opt/downloads/build/x86_64-unknown-linux-gnu/libitm/testsuite'
make[3]: Leaving directory
'/opt/downloads/build/x86_64-unknown-linux-gnu/libitm/testsuite'
make[3]: Entering directory
'/opt/downloads/build/x86_64-unknown-linux-gnu/libitm'
true  DO=all multi-do # make
make[3]: Leaving directory
'/opt/downloads/build/x86_64-unknown-linux-gnu/libitm'
make[2]: Leaving directory
'/opt/downloads/build/x86_64-unknown-linux-gnu/libitm'
make[2]: Entering directory
'/opt/downloads/build/x86_64-unknown-linux-gnu/libatomic'
Making check in testsuite
make[3]: Entering directory
'/opt/downloads/build/x86_64-unknown-linux-gnu/libatomic/testsuite'
make  check-DEJAGNU
make[4]: Entering directory
'/opt/downloads/build/x86_64-unknown-linux-gnu/libatomic/testsuite'
Making a new site.exp file...
srcdir='../../../../gcc-5.1.0/libatomic/testsuite'; export srcdir; \
EXPECT=expect; export EXPECT; \
runtest=runtest; \
if /bin/bash -c "$runtest --version" > /dev/null 2>&1; then \
  exit_status=0; l='libatomic'; for tool in $l; do \
    if $runtest  --tool $tool --srcdir $srcdir ; \
    then :; else exit_status=1; fi; \
  done; \
else echo "WARNING: could not find \`runtest'" 1>&2; :;\
fi; \
exit $exit_status
Test Run By devguy on Wed Nov  4 04:28:03 2015
Native configuration is x86_64-unknown-linux-gnu

                === libatomic tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file
for target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using ../../../../gcc-5.1.0/libatomic/testsuite/config/default.exp as
tool-and-target-specific interface file.
Running ../../../../gcc-5.1.0/libatomic/testsuite/libatomic.c/c.exp ...

                === libatomic Summary ===

# of expected passes            54
make[4]: Leaving directory
'/opt/downloads/build/x86_64-unknown-linux-gnu/libatomic/testsuite'
make[3]: Leaving directory
'/opt/downloads/build/x86_64-unknown-linux-gnu/libatomic/testsuite'
make[3]: Entering directory
'/opt/downloads/build/x86_64-unknown-linux-gnu/libatomic'
true  DO=all multi-do # make
make[3]: Leaving directory
'/opt/downloads/build/x86_64-unknown-linux-gnu/libatomic'
make[2]: Leaving directory
'/opt/downloads/build/x86_64-unknown-linux-gnu/libatomic'
make[1]: Target 'check-target' not remade because of errors.
make[1]: Leaving directory '/opt/downloads/build'
Makefile:2269: recipe for target 'do-check' failed
make: *** [do-check] Error 2
make: Target 'check' not remade because of errors.


Any suggestions on how to run the test and see them pass?



More information about the Gcc-help mailing list