This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Cannot compile libstdc++ in gcc-3_0-branch


Hello!

I'm trying to compile gcc from CVS, branch "gcc-3_0-branch" on GNU/Linux
(RedHat 7.1, Pentium III) using gcc compiled fearlier from the same
branch soon after gcc 3.0 release - it worked that time.

I have the complete tree (I'm updating it by "cvs up -d") and I'm using
the top-level "configure" without arguments in the source directory (it's
name is /home/proski/src/gcc/).  Then I'm running make without arguments.

The compiler itself compiles, but libstdc++ does not.  Here's the error
message:

running mknumeric_limits
/home/proski/src/gcc/gcc/xgcc -B/home/proski/src/gcc/gcc/
-B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/
-isystem /usr/local/i686-pc-linux-gnu/include
-I/home/proski/src/gcc/i686-pc-linux-gnu/libstdc++-v3
-I./i686-pc-linux-gnu/bits/..
-I/home/proski/src/gcc/i686-pc-linux-gnu/libstdc++-v3 -fno-exceptions
-o /home/proski/src/gcc/i686-pc-linux-gnu/libstdc++-v3/src/gen-num-limits
/home/proski/src/gcc/i686-pc-linux-gnu/libstdc++-v3/src/gen-num-limits.cc
sed -e
'/^#/s/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*\)/_GLIBCPP_\1/g'
\
    -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
    < /home/proski/src/gcc/i686-pc-linux-gnu/libstdc++-v3/../gcc/gthr.h >
i686-pc-linux-gnu/bits/gthr.h
/bin/sh:
/home/proski/src/gcc/i686-pc-linux-gnu/libstdc++-v3/../gcc/gthr.h: No such
file or directory
make[3]: *** [i686-pc-linux-gnu/bits/gthr.h] Error 1
make[3]: Leaving directory
`/home/proski/src/gcc/i686-pc-linux-gnu/libstdc++-v3/include'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/proski/src/gcc/i686-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory
`/home/proski/src/gcc/i686-pc-linux-gnu/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2

Indeed /home/proski/src/gcc/i686-pc-linux-gnu/libstdc++-v3/../gcc/gthr.h
does not exist, but /home/proski/src/gcc/libstdc++-v3/../gcc/gthr.h does.

Looking into /i686-pc-linux-gnu/libstdc++-v3/include/Makefile I see

glibcpp_srcdir = /home/proski/src/gcc/i686-pc-linux-gnu/libstdc++-v3

which must be wrong.  It's not a source directory.  Looking further
reveals that i686-pc-linux-gnu/libstdc++-v3/configure is run in it's own
directory, so $srcdir is "." and glibcpp_srcdir is just an expanded
version of it.

Either the test for glibcpp_srcdir should be changed to find the "real"
source directory, or something else should be used in the rules for gthr.h
and other headers.

I have checked that no CVS files have been rebuilt on my system.
libstdc++-v3/configure is from CVS - it's built by Autoconf 2.13.

-- 
Regards,
Pavel Roskin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]