Am Donnerstag 26 Juni 2008 12:26:26 schrieb Tom Browder: > On Thu, Jun 26, 2008 at 4:53 AM, Maik Beckmann > <beckmann.maik@xxxxxxxxxxxxxx> wrote: > ... > > > All I wait for filing a bug report is someone out there saying that > > vanilla gcc-4.3.1 on his/her debian/ubuntu/redhat/fedora x86-64 (aka. > > amd64) box causes the same segfault with -O3 on the code I posted. > > While you're waiting, try reinstalling gcc-4.3.1 by following EXACTLY > the installation instructions found here: > > http://gcc.gnu.org/install/configure.html > > Do NOT use a script, and make sure your build directory is NOT in or > under the gcc source tree. > > -Tom {{{ $ ls PKGBUILD gcc-fortran-4.3.1.tar.bz2 PKGBUILD~ gcc-g++-4.3.1.tar.bz2 gcc-4.3.1 gcc-java-4.3.1.tar.bz2 gcc-4.3.1-1-x86_64.pkg.tar.gz gcc-objc-4.3.1.tar.bz2 gcc-4.3.1_bak gcc_pure64.patch gcc-core-4.3.1.tar.bz2 libstdc++-man-20080118.tar.bz2 $ rm gcc-4.3.1 -rf $ tar xjf gcc-core-4.3.1.tar.bz2 $ tar xjf gcc-g++-4.3.1.tar.bz2 $ mkdir objdir $ cd objdir/ $ ../gcc-4.3.1/configure --prefix=/opt --enable-languages=c++ --disable-multilib ... $ make -j3 ... $ sudo make install ... $ cd ~/workspace/tester/gcc43/ $ export LD_LIBRARY_PATH=/opt/lib:/opt/lib64/ $ /opt/bin/g++ -O3 test.cpp -o test $ ./test Speicherzugriffsfehler $ /opt/bin/g++ -static -O3 test.cpp -o test $ ./test Speicherzugriffsfehler }}} where "Speicherzugriffsfehler" means "segmentation fault". I've read objdir being a subdirectory if the gcc source tree isn't support, like you said. I will file a bug report to arch linux on this. Thanks, -- Maik