This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc-3.0.1 fails to build
- To: gcc-bugs at gcc dot gnu dot org
- Subject: gcc-3.0.1 fails to build
- From: nisse at lysator dot liu dot se (Niels Möller)
- Date: 28 Aug 2001 10:27:42 +0200
I tried building gcc-3.0.1 with the following procedure:
./configure && make bootstrap
This was on a sparc-unknown-linux-gnu box (a sparcstation 4 running
debian).
Generation of some include file in libstdc++ failed like this:
make[4]: Entering directory `/home/src/gcc-3.0.1/sparc-unknown-linux-gnu/libstdc++-v3/include'
echo `date` > stamp-sparc-unknown-linux-gnu
ln: ./basic_file.h: File exists
ln: ./basic_ios.h: File exists
[... snip ...]
ln: ./hash_set: File exists
ln: ./stl_hashtable.h: File exists
ln: ./stl_hash_fun.h: File exists
sed -e '/^#/s/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*\)/_GLIBCPP_\1/g' \
-e 's,^#include "\(.*\)",#include <bits/\1>,g' \
< /usr/local/src/gcc-3.0.1/sparc-unknown-linux-gnu/libstdc++-v3/../gcc/gthr.h > sparc-unknown-linux-gnu/bits/gthr.h
/bin/sh: /usr/local/src/gcc-3.0.1/sparc-unknown-linux-gnu/libstdc++-v3/../gcc/gthr.h: No such file or directory
make[4]: *** [sparc-unknown-linux-gnu/bits/gthr.h] Error 1
make[4]: Leaving directory `/home/src/gcc-3.0.1/sparc-unknown-linux-gnu/libstdc++-v3/include'
libstdc++/include/Makefile.am contains three rules of the form
${thread_builddir}/gthr.h:
sed -e '/^#/s/\(${uppercase}${uppercase}*\)/_GLIBCPP_\1/g' \
-e 's,^#include "\(.*\)",#include <bits/\1>,g' \
< ${glibcpp_srcdir}/../gcc/gthr.h > $@
${thread_builddir}/gthr-single.h:
sed -e 's/\(UNUSED\)/_GLIBCPP_\1/g' \
-e 's/\(GCC${uppercase}*_H\)/_GLIBCPP_\1/g' \
< ${glibcpp_srcdir}/../gcc/gthr-single.h > $@
${thread_builddir}/gthr-default.h:
sed -e 's/\(UNUSED\)/_GLIBCPP_\1/g' \
-e 's/\(GCC${uppercase}*_H\)/_GLIBCPP_\1/g' \
-e 's/\(${uppercase}*WEAK\)/_GLIBCPP_\1/g' \
< ${glibcpp_srcdir}/../gcc/${glibcpp_thread_h} > $@
It seems it is the referrence ${glibcpp_srcdir}/../gcc/ that is
broken.
The Makefile sets these variables:
glibcpp_srcdir = /usr/local/src/gcc-3.0.1/sparc-unknown-linux-gnu/libstdc++-v3
glibcpp_builddir = /usr/local/src/gcc-3.0.1/sparc-unknown-linux-gnu/libstdc++-v3
To me, it seems that the forst line should be
glibcpp_srcdir = /usr/local/src/gcc-3.0.1/libstdc++-v3
Next, I'll try building in a separate directory to see if that works
better.
Ah, and one more thing: I couldn't find any information about 3.0.1 in
the NEWS file.
Regards,
/Niels