This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
unsuccessful built (segmentation fault)
- From: Oliver Kullmann <O dot Kullmann at Swansea dot ac dot uk>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 19 Dec 2002 22:10:37 +0000
- Subject: unsuccessful built (segmentation fault)
Hi,
I just tried to build gcc 3.2.1, but I failed:
-----------------------------------------------------------------
csoliver@cspcok:~/GCC> ls
Error_ostringstream.cpp Include_3.2.1 gcc-3.2.1.tar.gz libc.dvi
Imp_3.2.1 gcc-3.2.1 gcc-3.2.tar.gz
csoliver@cspcok:~/GCC> mkdir Imp_3.2.1
csoliver@cspcok:~/GCC> mkdir Include_3.2.1
csoliver@cspcok:~/GCC> cd Imp_3.2.1/
csoliver@cspcok:~/GCC/Imp_3.2.1> /compsci/partition1/csoliver/GCC/gcc-3.2.1/configure --enable-threads=posix --enable-long-long --prefix=/compsci/partition1/csoliver/GCC/gcc-3.2.1 --with-local-prefix=/compsci/partition1/csoliver/GCC/Include_3.2.1 --enable-languages=c,c++ --disable-nls --enable-shared
csoliver@cspcok:~/GCC/Imp_3.2.1> make bootstrap
csoliver@cspcok:~/GCC> ~/GCC/Imp_3.2.1/gcc/g++ -v
Using built-in specs.
Configured with: /compsci/partition1/csoliver/GCC/gcc-3.2.1/configure --enable-threads=posix --enable-long-long --prefix=/compsci/partition1/csoliver/GCC/gcc-3.2.1 --with-local-prefix=/compsci/partition1/csoliver/GCC/Include_3.2.1 --enable-languages=c,c++ --disable-nls --enable-shared
Thread model: posix
gcc version 3.2.1
csoliver@cspcok:~/GCC/Imp_3.2.1> make install
/compsci/partition1/csoliver/GCC/Imp_3.2.1/gcc/xgcc -B/compsci/partition1/csoliver/GCC/Imp_3.2.1/gcc/ -B/compsci/partition1/csoliver/GCC/gcc-3.2.1/i686-pc-linux-gnu/bin/ -B/compsci/partition1/csoliver/GCC/gcc-3.2.1/i686-pc-linux-gnu/lib/ -isystem /compsci/partition1/csoliver/GCC/gcc-3.2.1/i686-pc-linux-gnu/include -S tmp-dum.c
cc1: internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make[1]: *** [s-under] Fehler 1
make[1]: Verlassen des Verzeichnisses Verzeichnis »/compsci/partition1/csoliver/GCC/Imp_3.2.1/gcc«
make: *** [install-gcc] Fehler 2
------------------------------------------------------------------------------------
???
Any help appreciated!
Oliver
P.S. The reason why I wanted to build 3.2.1 is, that I found a bug with version 3.0.4, and I
wanted to see whether the problem was solved in a newer version. Here is the bug:
// Oliver Kullmann, 19.12.2002 (Swansea)
#include <sstream>
#include <iostream>
int main() {
std::ostringstream s("abcd", std::ios_base::app);
s << "xy";
std::cout << s.str() << "\n";
// outputs "xycd" (instead of the correct "abcdxy") for
/*
> g++ -v
Reading specs from /opt/experimental/lib/gcc-lib/i486-suse-linux/3.0.4/specs
Configured with: ../configure --enable-threads=posix --enable-long-long --prefix=/opt/experimental --with-local-prefix=/usr/local --enable-languages=c,c++,f77,objc,java --disable-nls --enable-shared i486-suse-linux
Thread model: posix
gcc version 3.0.4 (SuSE)
*/
}