compile error with gcc-3.0.1

Harry Putnam reader@newsguy.com
Thu Oct 25 08:50:00 GMT 2001


Setup: Redhat Linux 7.1
       rpm -q gcc = gcc-2.96-85

First let me ask if the jargonized instruction at:
  file:/home/reader/t/newtar/gcc-3.0.1/INSTALL/configure.html

>> First, we highly recommend that GCC be built into a separate directory
>> than the sources which does not reside within the source tree. This is
>> how we generally build GCC; building where srcdir == objdir should
>> still work, but doesn't get extensive testing; building where objdir
>> is a subdirectory of srcdir is unsupported.

Means something besides:
tar czvf gcc*3.tar.gz
cd gcc*3
./configure
make
make install

If so, that may be the source of my trouble.  I followed the
proceedure above.

I'm not savvy enough about compiler errors to know what this means.
Attempting to compile gcc-3.0.1 I get an error on `make install', the tail of
which looks like:

[....]

make[1]: Leaving directory `/home/reader/t/newtar/gcc-3.0.1/libiberty'
make[1]: Entering directory `/home/reader/t/newtar/gcc-3.0.1/i586-pc-linux-gnu/l
ibstdc++-v3'
Making install in include
make[2]: Entering directory `/home/reader/t/newtar/gcc-3.0.1/i586-pc-linux-gnu/l
ibstdc++-v3/include'
sed -e '/^#/s/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*\)/_G
LIBCPP_\1/g' \
    -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
    < /home/reader/t/newtar/gcc-3.0.1/i586-pc-linux-gnu/libstdc++-v3/../gcc/gthr
.h > i586-pc-linux-gnu/bits/gthr.h
/bin/sh: /home/reader/t/newtar/gcc-3.0.1/i586-pc-linux-gnu/libstdc++-v3/../gcc/g
thr.h: No such file or directory
make[2]: *** [i586-pc-linux-gnu/bits/gthr.h] Error 1
make[2]: Leaving directory `/home/reader/t/newtar/gcc-3.0.1/i586-pc-linux-gnu/li
bstdc++-v3/include'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/reader/t/newtar/gcc-3.0.1/i586-pc-linux-gnu/li
bstdc++-v3'
make: *** [install-target-libstdc++-v3] Error 2



More information about the Gcc-help mailing list