This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32116] New: Relocation error with -O3, recent CVS
- From: "mckelvey at maskull dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 May 2007 00:54:43 -0000
- Subject: [Bug c++/32116] New: Relocation error with -O3, recent CVS
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
This error occurs at run time with -O3, but not with -O0:
testsuite/stest0.exe: relocation error: testsuite/stest0.exe:
symbol
_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l,
version GLIBCXX_3.4.9 not defined in file libstdc++.so.6
with link time reference
alpha1:PD>uname -a
Linux alpha1 2.4.9-40 #1 Mon Sep 23 08:14:02 EDT 2002 alpha unknown
alpha1:PD>LDD testsuite/stest0.exe
libintl.so.3 => /usr/local/lib/libintl.so.3 (0x0000020000030000)
libstdc++.so.6 => /usr/local/lib/libstdc++.so.6 (0x000002000004e000)
libm.so.6.1 => /lib/libm.so.6.1 (0x0000020000190000)
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1 (0x0000020000230000)
libc.so.6.1 => /lib/libc.so.6.1 (0x000002000024e000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000020000000000)
alpha1:PD>alias CONFIGURECVS
alias CONFIGURECVS='../gcc/configure --verbose --enable-languages=c++
--disable-linux-futex --disable-nls --disable-tls >clog 2>&1 &'
alpha1:PD>alias BUILD
alias BUILD='nice gmake CFLAGS='\'''\'' BOOT_CFLAGS='\'''\''
LIBCFLAGS='\''-g'\'' LIBCXXFLAGS='\''-g'\'' bootstrap >log 2>&1 &'
/usr/local/bin/g++ -c -O3 -DNDEBUG -Wuninitialized -pedantic-errors
-Werror -ansi -fno-common -Wall -Wold-style-cast -Wsign-promo -Wpointer-arith
-Wundef -Wwrite-strings -Winvalid-pch -Woverloaded-virtual -Wcast-qual -Wextra
-Wredundant-decls -Wshadow -Wcast-align -Wcomment -fstrict-aliasing -Winit-self
-Wmissing-include-dirs -Wswitch-default -Wswitch-enum -Wlogical-op -Wunused
-fvisibility-inlines-hidden -MMD -fimplicit-templates -I. -I.. -o stest0.o
stest0.cc
/usr/local/bin/g++ -O3 -DNDEBUG -Wuninitialized -pedantic-errors -Werror
-ansi -fno-common -Wall -Wold-style-cast -Wsign-promo -Wpointer-arith -Wundef
-Wwrite-strings -Winvalid-pch -Woverloaded-virtual -Wcast-qual -Wextra
-Wredundant-decls -Wshadow -Wcast-align -Wcomment -fstrict-aliasing -Winit-self
-Wmissing-include-dirs -Wswitch-default -Wswitch-enum -Wlogical-op -Wunused
-fvisibility-inlines-hidden -MMD -fimplicit-templates -Wl,-warn-common
-L.. -o stest0.exe stest0.o -lPatternDriver -lintl
lrwxrwxrwx 1 root root 18 May 27 17:49 /usr/local/lib/libstdc++.so.6 ->
libstdc++.so.6.0.9*
alpha1:PD>g++ -v
Using built-in specs.
Target: alphaev56-unknown-linux-gnu
Configured with: ../gcc/configure --verbose --enable-languages=c++
--disable-linux-futex --disable-nls --disable-tls
Thread model: posix
gcc version 4.3.0 20070527 (experimental)
--
Summary: Relocation error with -O3, recent CVS
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: mckelvey at maskull dot com
GCC build triplet: alphaev56-unknown-linux-gnu
GCC host triplet: alphaev56-unknown-linux-gnu
GCC target triplet: alphaev56-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32116