public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
@ 2010-04-27 17:06 dougmencken at gmail dot com
2010-04-27 17:15 ` [Bug c++/43911] " redi at gcc dot gnu dot org
` (28 more replies)
0 siblings, 29 replies; 30+ messages in thread
From: dougmencken at gmail dot com @ 2010-04-27 17:06 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 3304 bytes --]
The test code which fails to compile with g++ on both 4.4.3 and 4.5.0:
#include <iostream>
int main(void)
{
std::cout << "Hello." << std::endl;
return 0;
}
$ gcc test.c++
/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/../../../libstdc++.so: undefined
reference to `_Unwind_GetIPInfo'
collect2: ld returned 1 exit status
---- 4.4.2 (last working version with good g++) ----
Target: powerpc-gnu-linux-uclibc
Configured with: ./configure --prefix=/usr --build=powerpc-gnu-linux-uclibc
--host=powerpc-gnu-linux-uclibc --target=powerpc-gnu-linux-uclibc --disable-nls
--with-system-zlib --disable-checking --disable-werror --disable-multilib
--disable-libssp --enable-languages=c,c++ --enable-shared
--enable-threads=posix --disable-__cxa_atexit
Thread model: posix
---- 4.4.3 (doesn't work) ----
Configured with: ./configure --prefix=/usr --sysconfdir=/etc
--mandir=/usr/share/man --build=powerpc-gnu-linux-uclibc
--host=powerpc-gnu-linux-uclibc --target=powerpc-gnu-linux-uclibc --disable-nls
--with-system-zlib --disable-checking --disable-werror --disable-multilib
--disable-libssp --enable-languages=c,c++ --enable-shared
--enable-threads=posix --disable-__cxa_atexit
Thread model: posix
---- 4.5.0 (doesn't work too) ----
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/powerpc-gnu-linux-uclibc/4.5.0/lto-wrapper
Target: powerpc-gnu-linux-uclibc
Configured with: ./configure --prefix=/usr --sysconfdir=/etc
--mandir=/usr/share/man --build=powerpc-gnu-linux-uclibc
--host=powerpc-gnu-linux-uclibc --target=powerpc-gnu-linux-uclibc
--with-system-zlib --enable-languages=c,c++,fortran --disable-nls
--disable-werror --disable-multilib --disable-libssp --enable-checking=assert
--enable-shared --enable-threads=posix --disable-__cxa_atexit
Thread model: posix
I also tried to bootstrap with "--disable-libunwind-exceptions" appended to
./configure params no success.
Here are problem binaries of 4.4.3 and 4.5.0:
http://ftp.osuosl.org/pub/manulix/binpkg/buggy/gcc-4.4.3-powerpc-gnu-linux-uclibc.b2.binpkg.tar.bz2
http://ftp.osuosl.org/pub/manulix/binpkg/buggy/gcc-4.5.0-powerpc-gnu-linux-uclibc.binpkg.tar.bz2
md5sums:
4b964382b69440491aaf982816d244c5
gcc-4.4.3-powerpc-gnu-linux-uclibc.b2.binpkg.tar.bz2
3264685eb6a9e7cb1a87070a478ae0c4
gcc-4.5.0-powerpc-gnu-linux-uclibc.binpkg.tar.bz2
They have been built with GMP 5.0.0 and MPFR 2.4.2-p3 (and MPC 0.8.1 for
4.5.0). If you don't have an access to real powerpc hardware, you can test them
in some emulator (like qemu), I think. Also to reproduce you can try to
bootstrap native gcc > 4.4.2 on some real/emulated powerpc host (*not* i386 nor
i486 nor i586 nor i586mmx nor i686 nor x86_64 etc.).
--
Summary: [4.4.3/4.5.0 regression] g++ can't compile any even
trivial c++ source: undefined reference to
`_Unwind_GetIPInfo'
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dougmencken at gmail dot com
GCC build triplet: powerpc-gnu-linux-uclibc
GCC host triplet: powerpc-gnu-linux-uclibc
GCC target triplet: powerpc-gnu-linux-uclibc
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
@ 2010-04-27 17:15 ` redi at gcc dot gnu dot org
2010-04-27 17:16 ` redi at gcc dot gnu dot org
` (27 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-04-27 17:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from redi at gcc dot gnu dot org 2010-04-27 17:15 -------
that symbol is defined in libgcc_s.so - is that file present in the same
directory as libstdc++.so?
If you add -v to the compilation command it will show you the directories gcc
searches, is libgcc_s.so in any of those directories?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
2010-04-27 17:15 ` [Bug c++/43911] " redi at gcc dot gnu dot org
@ 2010-04-27 17:16 ` redi at gcc dot gnu dot org
2010-04-27 17:18 ` dougmencken at gmail dot com
` (26 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-04-27 17:16 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from redi at gcc dot gnu dot org 2010-04-27 17:16 -------
oh wait a second ... what happens if you compile with g++ not gcc?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
2010-04-27 17:15 ` [Bug c++/43911] " redi at gcc dot gnu dot org
2010-04-27 17:16 ` redi at gcc dot gnu dot org
@ 2010-04-27 17:18 ` dougmencken at gmail dot com
2010-04-27 17:20 ` dougmencken at gmail dot com
` (25 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: dougmencken at gmail dot com @ 2010-04-27 17:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from dougmencken at gmail dot com 2010-04-27 17:18 -------
I do not compile c++ sources with gcc. Yes, I mistyped gcc instead of g++ in
the first message, sorry.
$ g++ test.c\+\+
/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/../../../libstdc++.so: undefined
reference to `_Unwind_GetIPInfo'
collect2: ld returned 1 exit status
$ gcc test.c\+\+
/tmp/ccfXg3T4.o: In function `main':
test.c++:(.text+0x16): undefined reference to `std::cout'
test.c++:(.text+0x1a): undefined reference to `std::cout'
test.c++:(.text+0x24): undefined reference to `std::basic_ostream<char,
std::char_traits<char> >& std::operator<< <std::char_traits<char>
>(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
test.c++:(.text+0x32): undefined reference to `std::basic_ostream<char,
std::char_traits<char> >& std::endl<char, std::char_traits<char>
>(std::basic_ostream<char, std::char_traits<char> >&)'
test.c++:(.text+0x36): undefined reference to `std::basic_ostream<char,
std::char_traits<char> >& std::endl<char, std::char_traits<char>
>(std::basic_ostream<char, std::char_traits<char> >&)'
test.c++:(.text+0x38): undefined reference to `std::basic_ostream<char,
std::char_traits<char> >::operator<<(std::basic_ostream<char,
std::char_traits<char> >& (*)(std::basic_ostream<char, std::char_traits<char>
>&))'
/tmp/ccfXg3T4.o: In function `__static_initialization_and_destruction_0(int,
int)':
test.c++:(.text+0xa0): undefined reference to `std::ios_base::Init::Init()'
test.c++:(.text+0xcc): undefined reference to `std::ios_base::Init::~Init()'
collect2: ld returned 1 exit status
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (2 preceding siblings ...)
2010-04-27 17:18 ` dougmencken at gmail dot com
@ 2010-04-27 17:20 ` dougmencken at gmail dot com
2010-04-27 17:29 ` dougmencken at gmail dot com
` (24 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: dougmencken at gmail dot com @ 2010-04-27 17:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from dougmencken at gmail dot com 2010-04-27 17:20 -------
$ g++ -v test.c\+\+
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/powerpc-gnu-linux-uclibc/4.5.0/lto-wrapper
Target: powerpc-gnu-linux-uclibc
Configured with: ./configure --prefix=/usr --sysconfdir=/etc
--mandir=/usr/share/man --build=powerpc-gnu-linux-uclibc
--host=powerpc-gnu-linux-uclibc --target=powerpc-gnu-linux-uclibc
--with-system-zlib --enable-languages=c,c++,fortran --disable-nls
--disable-werror --disable-multilib --disable-libssp --enable-checking=assert
--enable-shared --enable-threads=posix --disable-__cxa_atexit
Thread model: posix
gcc version 4.5.0 (GCC)
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc'
/usr/libexec/gcc/powerpc-gnu-linux-uclibc/4.5.0/cc1plus -quiet -v
-D_GNU_SOURCE -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux
-D__linux -Asystem=linux -Asystem=unix -Asystem=posix test.c++ -quiet -dumpbase
test.c++ -auxbase test -version -o /tmp/ccABZmgZ.s
GNU C++ (GCC) version 4.5.0 (powerpc-gnu-linux-uclibc)
compiled by GNU C version 4.5.0, GMP version 5.0.0, MPFR version
2.4.2-p3, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/../../../../powerpc-gnu-linux-uclibc/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/../../../../include/c++/4.5.0
/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/../../../../include/c++/4.5.0/powerpc-gnu-linux-uclibc
/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/../../../../include/c++/4.5.0/backward
/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/include
/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/include-fixed
/usr/include
End of search list.
GNU C++ (GCC) version 4.5.0 (powerpc-gnu-linux-uclibc)
compiled by GNU C version 4.5.0, GMP version 5.0.0, MPFR version
2.4.2-p3, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 9800195b3ab13a9307f06b4b9405431e
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc'
/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/../../../../powerpc-gnu-linux-uclibc/bin/as
-mppc -many -V -Qy -o /tmp/ccMsA7lx.o /tmp/ccABZmgZ.s
GNU assembler version 2.20.51 (powerpc-gnu-linux-uclibc) using BFD version (GNU
Binutils) 2.20.51.20100213
COMPILER_PATH=/usr/libexec/gcc/powerpc-gnu-linux-uclibc/4.5.0/:/usr/libexec/gcc/powerpc-gnu-linux-uclibc/4.5.0/:/usr/libexec/gcc/powerpc-gnu-linux-uclibc/:/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/:/usr/lib/gcc/powerpc-gnu-linux-uclibc/:/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/../../../../powerpc-gnu-linux-uclibc/bin/
LIBRARY_PATH=/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/:/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/../../../../powerpc-gnu-linux-uclibc/lib/:/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-v' '-shared-libgcc'
/usr/libexec/gcc/powerpc-gnu-linux-uclibc/4.5.0/collect2 --eh-frame-hdr -V -Qy
-m elf32ppclinux -dynamic-linker /lib/ld-uClibc.so.0
/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/../../../crt1.o
/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/../../../crti.o
/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/crtbegin.o
-L/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0
-L/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/../../../../powerpc-gnu-linux-uclibc/lib
-L/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/../../.. /tmp/ccMsA7lx.o -lstdc++
-lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/crtend.o
/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/../../../crtn.o
GNU ld (GNU Binutils) 2.20.51.20100213
Supported emulations:
elf32ppclinux
elf32ppc
elf32ppcsim/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/../../../libstdc++.so:
undefined reference to `_Unwind_GetIPInfo'
collect2: ld returned 1 exit status
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (3 preceding siblings ...)
2010-04-27 17:20 ` dougmencken at gmail dot com
@ 2010-04-27 17:29 ` dougmencken at gmail dot com
2010-04-27 19:15 ` dougmencken at gmail dot com
` (23 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: dougmencken at gmail dot com @ 2010-04-27 17:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from dougmencken at gmail dot com 2010-04-27 17:28 -------
$ find / -name libgcc_s.so
/usr/lib/libgcc_s.so
$ objdump -x /usr/lib/libgcc_s.so
objdump: /usr/lib/libgcc_s.so: File format not recognized
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (4 preceding siblings ...)
2010-04-27 17:29 ` dougmencken at gmail dot com
@ 2010-04-27 19:15 ` dougmencken at gmail dot com
2010-04-27 19:17 ` pinskia at gcc dot gnu dot org
` (22 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: dougmencken at gmail dot com @ 2010-04-27 19:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from dougmencken at gmail dot com 2010-04-27 19:15 -------
$ cat /usr/lib/libgcc_s.so
/* GNU ld script
Use the shared library, but some functions are only in
the static library. */
GROUP ( libgcc_s.so.1 libgcc.a )
$ readelf -s /usr/lib/libgcc_s.so.1 | grep Unwind
3: 00010a80 580 FUNC GLOBAL DEFAULT 9 _Unwind_Find_FDE@@GCC_3.0
11: 0000bd78 8 FUNC GLOBAL DEFAULT 9 _Unwind_GetIP@@GCC_3.0
19: 0000e84c 496 FUNC GLOBAL DEFAULT 9
_Unwind_Resume_or_Rethrow@@GCC_3.3
26: 0000bda4 8 FUNC GLOBAL DEFAULT 9
_Unwind_GetRegionStart@@GCC_3.0
27: 0000ea74 456 FUNC GLOBAL DEFAULT 9 _Unwind_Backtrace@@GCC_3.3
30: 0000bccc 8 FUNC GLOBAL DEFAULT 9 _Unwind_GetCFA@@GCC_3.3
68: 0000e654 504 FUNC GLOBAL DEFAULT 9 _Unwind_Resume@@GCC_3.0
69: 0000ea3c 56 FUNC GLOBAL DEFAULT 9
_Unwind_DeleteException@@GCC_3.0
89: 0000e1e0 648 FUNC GLOBAL DEFAULT 9
_Unwind_RaiseException@@GCC_3.0
94: 0000bd94 8 FUNC GLOBAL DEFAULT 9 _Unwind_SetIP@@GCC_3.0
116: 0000bdec 8 FUNC GLOBAL DEFAULT 9
_Unwind_GetTextRelBase@@GCC_3.0
118: 0000bdac 56 FUNC GLOBAL DEFAULT 9
_Unwind_FindEnclosingFunc@@GCC_3.3
119: 0000bd9c 8 FUNC GLOBAL DEFAULT 9
_Unwind_GetLanguageSpecif@@GCC_3.0
122: 0000e468 492 FUNC GLOBAL DEFAULT 9
_Unwind_ForcedUnwind@@GCC_3.0
126: 0000bcd8 160 FUNC GLOBAL DEFAULT 9 _Unwind_SetGR@@GCC_3.0
132: 0000bc44 136 FUNC GLOBAL DEFAULT 9 _Unwind_GetGR@@GCC_3.0
136: 0000bde4 8 FUNC GLOBAL DEFAULT 9
_Unwind_GetDataRelBase@@GCC_3.0
159: 0000b6a4 4 FUNC LOCAL DEFAULT 9 _Unwind_DebugHook
169: 0000debc 276 FUNC LOCAL DEFAULT 9 _Unwind_ForcedUnwind_Phas
170: 0000dfd0 244 FUNC LOCAL DEFAULT 9 _Unwind_RaiseException_Ph
189: 000100e8 1308 FUNC LOCAL DEFAULT 9 _Unwind_IteratePhdrCallba
212: 0000bd80 20 FUNC LOCAL DEFAULT 9 _Unwind_GetIPInfo
242: 00010a80 580 FUNC GLOBAL DEFAULT 9 _Unwind_Find_FDE
250: 0000bd78 8 FUNC GLOBAL DEFAULT 9 _Unwind_GetIP
258: 0000e84c 496 FUNC GLOBAL DEFAULT 9 _Unwind_Resume_or_Rethrow
265: 0000bda4 8 FUNC GLOBAL DEFAULT 9 _Unwind_GetRegionStart
266: 0000ea74 456 FUNC GLOBAL DEFAULT 9 _Unwind_Backtrace
269: 0000bccc 8 FUNC GLOBAL DEFAULT 9 _Unwind_GetCFA
307: 0000e654 504 FUNC GLOBAL DEFAULT 9 _Unwind_Resume
308: 0000ea3c 56 FUNC GLOBAL DEFAULT 9 _Unwind_DeleteException
328: 0000e1e0 648 FUNC GLOBAL DEFAULT 9 _Unwind_RaiseException
333: 0000bd94 8 FUNC GLOBAL DEFAULT 9 _Unwind_SetIP
355: 0000bdec 8 FUNC GLOBAL DEFAULT 9 _Unwind_GetTextRelBase
357: 0000bdac 56 FUNC GLOBAL DEFAULT 9 _Unwind_FindEnclosingFunc
358: 0000bd9c 8 FUNC GLOBAL DEFAULT 9 _Unwind_GetLanguageSpecif
361: 0000e468 492 FUNC GLOBAL DEFAULT 9 _Unwind_ForcedUnwind
365: 0000bcd8 160 FUNC GLOBAL DEFAULT 9 _Unwind_SetGR
371: 0000bc44 136 FUNC GLOBAL DEFAULT 9 _Unwind_GetGR
375: 0000bde4 8 FUNC GLOBAL DEFAULT 9 _Unwind_GetDataRelBase
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (5 preceding siblings ...)
2010-04-27 19:15 ` dougmencken at gmail dot com
@ 2010-04-27 19:17 ` pinskia at gcc dot gnu dot org
2010-04-27 19:22 ` dougmencken at gmail dot com
` (21 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-04-27 19:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from pinskia at gcc dot gnu dot org 2010-04-27 19:17 -------
Are you sure that the newly built libgcc_s.so.1 is being installed?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (6 preceding siblings ...)
2010-04-27 19:17 ` pinskia at gcc dot gnu dot org
@ 2010-04-27 19:22 ` dougmencken at gmail dot com
2010-04-27 20:36 ` dougmencken at gmail dot com
` (20 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: dougmencken at gmail dot com @ 2010-04-27 19:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from dougmencken at gmail dot com 2010-04-27 19:22 -------
Yes, I'm sure, I'm using http://manulix.wikidot.com/files:prepare-mx-chroot-sh
script with --fresh option, so I do always have a fresh chroot environment in 5
minutes for powerpc uclibc, and I can also easily switch between fresh chroots
by specifying BUILDFARM_DIR in that script.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (7 preceding siblings ...)
2010-04-27 19:22 ` dougmencken at gmail dot com
@ 2010-04-27 20:36 ` dougmencken at gmail dot com
2010-04-27 20:48 ` dougmencken at gmail dot com
` (19 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: dougmencken at gmail dot com @ 2010-04-27 20:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from dougmencken at gmail dot com 2010-04-27 20:35 -------
$ objcopy --globalize-symbol _Unwind_GetIPInfo /usr/lib/libgcc_s.so.1
/usr/lib/libgcc_s.so.2
$ readelf -s /usr/lib/libgcc_s.so.2 | grep _Unwind_GetIPInfo
240: 0000bd80 20 FUNC GLOBAL DEFAULT 9 _Unwind_GetIPInfo
$ rm /usr/lib/libgcc_s.so.1 && mv /usr/lib/libgcc_s.so.2 /usr/lib/libgcc_s.so.1
$ g++ test.c\+\+
/usr/lib/gcc/powerpc-gnu-linux-uclibc/4.5.0/../../../libstdc++.so: undefined
reference to `_Unwind_GetIPInfo'
collect2: ld returned 1 exit status
$ mv /usr/lib/libgcc_s.so.1 /
$ g++ test.c\+\+
g++: can't load library 'libgcc_s.so.1'
$ readelf -s /libgcc_s.so.1 | grep _Unwind_GetIPInfo
readelf: can't load library 'libgcc_s.so.1'
$ cp /libgcc_s.so.1 /usr/lib/
$ readelf -s /libgcc_s.so.1 | grep _Unwind_GetIPInfo
240: 0000bd80 20 FUNC GLOBAL DEFAULT 9 _Unwind_GetIPInfo
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (8 preceding siblings ...)
2010-04-27 20:36 ` dougmencken at gmail dot com
@ 2010-04-27 20:48 ` dougmencken at gmail dot com
2010-04-28 9:14 ` [Bug c++/43911] [4.4/4.5 Regression] " rguenth at gcc dot gnu dot org
` (18 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: dougmencken at gmail dot com @ 2010-04-27 20:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from dougmencken at gmail dot com 2010-04-27 20:48 -------
And may I repeat, please? It's definitely not-x86[_64] bug. I don't know can it
be revealed with cross toolchain (because all of you do test gcc only and only
on x86[_64] as host).
So, if you don't have an access to real powerpc hardware, you can test it
in some emulator (like qemu). Also to reproduce you can try to
bootstrap native gcc > 4.4.2 on some real/emulated powerpc host (*not* i386 nor
i486 nor i586 nor i586mmx nor i686 nor x86_64 etc.).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4/4.5 Regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (9 preceding siblings ...)
2010-04-27 20:48 ` dougmencken at gmail dot com
@ 2010-04-28 9:14 ` rguenth at gcc dot gnu dot org
2010-04-28 9:24 ` rguenth at gcc dot gnu dot org
` (17 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-28 9:14 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |4.4.3 4.5.0
Summary|[4.4.3/4.5.0 regression] g++|[4.4/4.5 Regression] g++
|can't compile any even |can't compile any even
|trivial c++ source: |trivial c++ source:
|undefined reference to |undefined reference to
|`_Unwind_GetIPInfo' |`_Unwind_GetIPInfo'
Target Milestone|--- |4.4.4
Version|unknown |4.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4/4.5 Regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (10 preceding siblings ...)
2010-04-28 9:14 ` [Bug c++/43911] [4.4/4.5 Regression] " rguenth at gcc dot gnu dot org
@ 2010-04-28 9:24 ` rguenth at gcc dot gnu dot org
2010-04-28 19:36 ` dougmencken at gmail dot com
` (16 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-28 9:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from rguenth at gcc dot gnu dot org 2010-04-28 09:23 -------
_Unwind_GetIPInfo is exported since 4.2.0, the symbol should be
> objdump -T /lib/libgcc_s.so.1 | grep GetIPI
00013f30 g DF .text 00000016 GCC_4.2.0 _Unwind_GetIPInfo
what binutils version are you using (why does your libgcc not have
symbol versions?)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4/4.5 Regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (11 preceding siblings ...)
2010-04-28 9:24 ` rguenth at gcc dot gnu dot org
@ 2010-04-28 19:36 ` dougmencken at gmail dot com
2010-04-28 19:57 ` dougmencken at gmail dot com
` (15 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: dougmencken at gmail dot com @ 2010-04-28 19:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from dougmencken at gmail dot com 2010-04-28 19:36 -------
$ objdump -T /usr/lib/libgcc_s.so.1 | grep GetIPI
# i.e. nothing
$ objdump -T /usr/lib/libgcc_s.so.1 | grep Unwind
00010a80 g DF .text 00000244 GCC_3.0 _Unwind_Find_FDE
0000bd78 g DF .text 00000008 GCC_3.0 _Unwind_GetIP
0000e84c g DF .text 000001f0 GCC_3.3 _Unwind_Resume_or_Rethrow
0000bda4 g DF .text 00000008 GCC_3.0 _Unwind_GetRegionStart
0000ea74 g DF .text 000001c8 GCC_3.3 _Unwind_Backtrace
0000bccc g DF .text 00000008 GCC_3.3 _Unwind_GetCFA
0000e654 g DF .text 000001f8 GCC_3.0 _Unwind_Resume
0000ea3c g DF .text 00000038 GCC_3.0 _Unwind_DeleteException
0000e1e0 g DF .text 00000288 GCC_3.0 _Unwind_RaiseException
0000bd94 g DF .text 00000008 GCC_3.0 _Unwind_SetIP
0000bdec g DF .text 00000008 GCC_3.0 _Unwind_GetTextRelBase
0000bdac g DF .text 00000038 GCC_3.3 _Unwind_FindEnclosingFunction
0000bd9c g DF .text 00000008 GCC_3.0 _Unwind_GetLanguageSpecificData
0000e468 g DF .text 000001ec GCC_3.0 _Unwind_ForcedUnwind
0000bcd8 g DF .text 000000a0 GCC_3.0 _Unwind_SetGR
0000bc44 g DF .text 00000088 GCC_3.0 _Unwind_GetGR
0000bde4 g DF .text 00000008 GCC_3.0 _Unwind_GetDataRelBase
Hmm... 3.x, but I bootstrapped it with 4.4.2.
$ objdump -v | head -2
GNU objdump (GNU Binutils) 2.20.51.20100213
Copyright 2010 Free Software Foundation, Inc.
$ objdump -T /home/build-farm/binpkg/working-gcc-4.4.2/usr/lib/libgcc_s.so.1 |
grep Unwind
00010ea8 g DF .text 00000260 GCC_3.0 _Unwind_Find_FDE
0000bcb4 g DF .text 00000014 GCC_4.2.0 _Unwind_GetIPInfo
0000bcac g DF .text 00000008 GCC_3.0 _Unwind_GetIP
0000f144 g DF .text 000001dc GCC_3.3 _Unwind_Resume_or_Rethrow
0000bcd8 g DF .text 00000008 GCC_3.0 _Unwind_GetRegionStart
0000e63c g DF .text 000001c8 GCC_3.3 _Unwind_Backtrace
0000bc30 g DF .text 00000008 GCC_3.3 _Unwind_GetCFA
0000ebd0 g DF .text 000001e0 GCC_3.0 _Unwind_Resume
0000bcf0 g DF .text 00000038 GCC_3.0 _Unwind_DeleteException
0000eed0 g DF .text 00000274 GCC_3.0 _Unwind_RaiseException
0000bcc8 g DF .text 00000008 GCC_3.0 _Unwind_SetIP
0000bce8 g DF .text 00000008 GCC_3.0 _Unwind_GetTextRelBase
0000bf7c g DF .text 00000038 GCC_3.3 _Unwind_FindEnclosingFunction
0000bcd0 g DF .text 00000008 GCC_3.0 _Unwind_GetLanguageSpecificData
0000e918 g DF .text 000001e4 GCC_3.0 _Unwind_ForcedUnwind
0000bc38 g DF .text 00000074 GCC_3.0 _Unwind_SetGR
0000bbd4 g DF .text 0000005c GCC_3.0 _Unwind_GetGR
0000bce0 g DF .text 00000008 GCC_3.0 _Unwind_GetDataRelBase
Hmm...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4/4.5 Regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (12 preceding siblings ...)
2010-04-28 19:36 ` dougmencken at gmail dot com
@ 2010-04-28 19:57 ` dougmencken at gmail dot com
2010-04-28 20:09 ` redi at gcc dot gnu dot org
` (14 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: dougmencken at gmail dot com @ 2010-04-28 19:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from dougmencken at gmail dot com 2010-04-28 19:57 -------
Created an attachment (id=20510)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20510&action=view)
./powerpc-gnu-linux-uclibc/libstdc++-v3/config.log
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4/4.5 Regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (13 preceding siblings ...)
2010-04-28 19:57 ` dougmencken at gmail dot com
@ 2010-04-28 20:09 ` redi at gcc dot gnu dot org
2010-04-28 20:46 ` dougmencken at gmail dot com
` (13 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-04-28 20:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from redi at gcc dot gnu dot org 2010-04-28 20:08 -------
(In reply to comment #4)
> $ g++ -v test.c\+\+
>
> Using built-in specs.
> COLLECT_GCC=g++
> COLLECT_LTO_WRAPPER=/usr/libexec/gcc/powerpc-gnu-linux-uclibc/4.5.0/lto-wrapper
> Target: powerpc-gnu-linux-uclibc
> Configured with: ./configure --prefix=/usr --sysconfdir=/etc
does it make any difference if you don't build in the srcdir as recommended at
http://gcc.gnu.org/install/configure.html
?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4/4.5 Regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (14 preceding siblings ...)
2010-04-28 20:09 ` redi at gcc dot gnu dot org
@ 2010-04-28 20:46 ` dougmencken at gmail dot com
2010-04-29 9:57 ` rguenth at gcc dot gnu dot org
` (12 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: dougmencken at gmail dot com @ 2010-04-28 20:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #15 from dougmencken at gmail dot com 2010-04-28 20:46 -------
(In reply to comment #14)
$ ../gcc-4.5.0.srcpkg/configure --prefix=/usr --sysconfdir=/etc
--mandir=/usr/share/man \
> --with-system-zlib --enable-languages=c,c++,fortran \
> --disable-nls --disable-werror --disable-multilib --disable-libssp \
> --enable-checking=assert --enable-shared --enable-threads=posix \
> --disable-__cxa_atexit
configure: error: cannot run /bin/sh ../gcc-4.5.0.srcpkg/config.sub
$ ls -l ../gcc-4.5.0.srcpkg/config.sub
-rwxr-xr-x 1 500 501 34850 Mar 23 14:26
../gcc-4.5.0.srcpkg/config.sub
$ ${HOME}/build-farm/gcc-4.5.0.srcpkg/configure --prefix=/usr --sysconfdir=/etc
--mandir=/usr/share/man \
> --with-system-zlib --enable-languages=c,c++,fortran \
> --disable-nls --disable-werror --disable-multilib --disable-libssp \
> --enable-checking=assert --enable-shared --enable-threads=posix \
> --disable-__cxa_atexit
configure: error: cannot run /bin/sh
/root/build-farm/gcc-4.5.0.srcpkg/config.sub
Can't configure this way. What's wrong?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4/4.5 Regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (15 preceding siblings ...)
2010-04-28 20:46 ` dougmencken at gmail dot com
@ 2010-04-29 9:57 ` rguenth at gcc dot gnu dot org
2010-04-29 20:40 ` dougmencken at gmail dot com
` (11 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-04-29 9:57 UTC (permalink / raw)
To: gcc-bugs
------- Comment #16 from rguenth at gcc dot gnu dot org 2010-04-29 09:57 -------
(In reply to comment #12)
> $ objdump -T /usr/lib/libgcc_s.so.1 | grep GetIPI
> # i.e. nothing
> $ objdump -T /usr/lib/libgcc_s.so.1 | grep Unwind
> 00010a80 g DF .text 00000244 GCC_3.0 _Unwind_Find_FDE
> 0000bd78 g DF .text 00000008 GCC_3.0 _Unwind_GetIP
> 0000e84c g DF .text 000001f0 GCC_3.3 _Unwind_Resume_or_Rethrow
> 0000bda4 g DF .text 00000008 GCC_3.0 _Unwind_GetRegionStart
> 0000ea74 g DF .text 000001c8 GCC_3.3 _Unwind_Backtrace
> 0000bccc g DF .text 00000008 GCC_3.3 _Unwind_GetCFA
> 0000e654 g DF .text 000001f8 GCC_3.0 _Unwind_Resume
> 0000ea3c g DF .text 00000038 GCC_3.0 _Unwind_DeleteException
> 0000e1e0 g DF .text 00000288 GCC_3.0 _Unwind_RaiseException
> 0000bd94 g DF .text 00000008 GCC_3.0 _Unwind_SetIP
> 0000bdec g DF .text 00000008 GCC_3.0 _Unwind_GetTextRelBase
> 0000bdac g DF .text 00000038 GCC_3.3 _Unwind_FindEnclosingFunction
> 0000bd9c g DF .text 00000008 GCC_3.0 _Unwind_GetLanguageSpecificData
> 0000e468 g DF .text 000001ec GCC_3.0 _Unwind_ForcedUnwind
> 0000bcd8 g DF .text 000000a0 GCC_3.0 _Unwind_SetGR
> 0000bc44 g DF .text 00000088 GCC_3.0 _Unwind_GetGR
> 0000bde4 g DF .text 00000008 GCC_3.0 _Unwind_GetDataRelBase
>
> Hmm... 3.x, but I bootstrapped it with 4.4.2.
>
> $ objdump -v | head -2
> GNU objdump (GNU Binutils) 2.20.51.20100213
> Copyright 2010 Free Software Foundation, Inc.
>
> $ objdump -T /home/build-farm/binpkg/working-gcc-4.4.2/usr/lib/libgcc_s.so.1 |
> grep Unwind
> 00010ea8 g DF .text 00000260 GCC_3.0 _Unwind_Find_FDE
> 0000bcb4 g DF .text 00000014 GCC_4.2.0 _Unwind_GetIPInfo
> 0000bcac g DF .text 00000008 GCC_3.0 _Unwind_GetIP
> 0000f144 g DF .text 000001dc GCC_3.3 _Unwind_Resume_or_Rethrow
> 0000bcd8 g DF .text 00000008 GCC_3.0 _Unwind_GetRegionStart
> 0000e63c g DF .text 000001c8 GCC_3.3 _Unwind_Backtrace
> 0000bc30 g DF .text 00000008 GCC_3.3 _Unwind_GetCFA
> 0000ebd0 g DF .text 000001e0 GCC_3.0 _Unwind_Resume
> 0000bcf0 g DF .text 00000038 GCC_3.0 _Unwind_DeleteException
> 0000eed0 g DF .text 00000274 GCC_3.0 _Unwind_RaiseException
> 0000bcc8 g DF .text 00000008 GCC_3.0 _Unwind_SetIP
> 0000bce8 g DF .text 00000008 GCC_3.0 _Unwind_GetTextRelBase
> 0000bf7c g DF .text 00000038 GCC_3.3 _Unwind_FindEnclosingFunction
> 0000bcd0 g DF .text 00000008 GCC_3.0 _Unwind_GetLanguageSpecificData
> 0000e918 g DF .text 000001e4 GCC_3.0 _Unwind_ForcedUnwind
> 0000bc38 g DF .text 00000074 GCC_3.0 _Unwind_SetGR
> 0000bbd4 g DF .text 0000005c GCC_3.0 _Unwind_GetGR
> 0000bce0 g DF .text 00000008 GCC_3.0 _Unwind_GetDataRelBase
>
> Hmm...
This means you didn't install libgcc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4/4.5 Regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (16 preceding siblings ...)
2010-04-29 9:57 ` rguenth at gcc dot gnu dot org
@ 2010-04-29 20:40 ` dougmencken at gmail dot com
2010-04-30 9:25 ` jakub at gcc dot gnu dot org
` (10 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: dougmencken at gmail dot com @ 2010-04-29 20:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #17 from dougmencken at gmail dot com 2010-04-29 20:40 -------
(In reply to comment #16)
>
> This means you didn't install libgcc.
>
So can you please tell me how to "install libgcc" then? I posted all options I
sent to ./configure for each 4.4.2, 4.4.3 and 4.5.0. I also posted links to
compiled GCC binaries (so you can check all that readelf/objdump by
yourselves).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4/4.5 Regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (17 preceding siblings ...)
2010-04-29 20:40 ` dougmencken at gmail dot com
@ 2010-04-30 9:25 ` jakub at gcc dot gnu dot org
2010-05-02 13:30 ` dougmencken at gmail dot com
` (9 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: jakub at gcc dot gnu dot org @ 2010-04-30 9:25 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.4.4 |4.4.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4/4.5 Regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (18 preceding siblings ...)
2010-04-30 9:25 ` jakub at gcc dot gnu dot org
@ 2010-05-02 13:30 ` dougmencken at gmail dot com
2010-05-10 14:03 ` dougmencken at gmail dot com
` (8 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: dougmencken at gmail dot com @ 2010-05-02 13:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #18 from dougmencken at gmail dot com 2010-05-02 13:30 -------
I can add that on glibc-based system (not uclibc one) 4.5.0 bootstraps
configured with "Configured with: ../gcc-4.5.0/configure --prefix=/usr
--sysconfdir=/etc --mandir=/usr/share/man --with-system-zlib
--enable-languages=c,c++,fortran --disable-nls --disable-werror
--disable-multilib --disable-libssp --enable-checking=assert --enable-shared
--enable-threads=posix --disable-__cxa_atexit" (out-of-source-tree build)
prefectly with working g++.
So it might be uclibc related.
Leaving bug open for now to find out more info on that.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4/4.5 Regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (19 preceding siblings ...)
2010-05-02 13:30 ` dougmencken at gmail dot com
@ 2010-05-10 14:03 ` dougmencken at gmail dot com
2010-05-10 16:24 ` dougmencken at gmail dot com
` (7 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: dougmencken at gmail dot com @ 2010-05-10 14:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #19 from dougmencken at gmail dot com 2010-05-10 14:03 -------
It works on powerpc-uclibc host, but if bootstrapped the following way:
----
Configured with: ./configure --prefix=/usr --sysconfdir=/etc
--mandir=/usr/share/man --build=powerpc-gnu-linux-uclibc
--host=powerpc-gnu-linux-uclibc --target=powerpc-gnu-linux-uclibc
--with-system-zlib --enable-languages=c,c++,fortran --disable-nls
--disable-werror --disable-multilib --disable-libssp --disable-shared
--enable-threads=posix --disable-__cxa_atexit
Thread model: posix
gcc version 4.5.0 (GCC)
----
I just changed --enable-shared to --disable-shared and got working g++.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4/4.5 Regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (20 preceding siblings ...)
2010-05-10 14:03 ` dougmencken at gmail dot com
@ 2010-05-10 16:24 ` dougmencken at gmail dot com
2010-05-10 16:31 ` pluto at agmk dot net
` (6 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: dougmencken at gmail dot com @ 2010-05-10 16:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #20 from dougmencken at gmail dot com 2010-05-10 16:23 -------
But how to rebuild binutils to remove libgcc_s.so.1 dependency from ld?
$ ./print-sharedlib-deps.sh /usr/bin/ld
/usr/bin/ld:
libz.so.1
libc.so.0
libgcc_s.so.1
Now I'm using libgcc_s.so.1 copied from 4.4.2 (the last working one), and tried
to build binutils with --disable-shared too, but the above list (it is from
this build) does show that this lib is still required for ld to work (i.e. for
any non-static program to work). I can't imagine how long 4.4.2's libgcc_s.so.1
will remain binary compatible with any new GCC release.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4/4.5 Regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (21 preceding siblings ...)
2010-05-10 16:24 ` dougmencken at gmail dot com
@ 2010-05-10 16:31 ` pluto at agmk dot net
2010-05-10 17:28 ` redi at gcc dot gnu dot org
` (5 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: pluto at agmk dot net @ 2010-05-10 16:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #21 from pluto at agmk dot net 2010-05-10 16:31 -------
(In reply to comment #20)
> But how to rebuild binutils to remove libgcc_s.so.1 dependency from ld?
configure binutils with --disable-shared --enable-static and build
with make AM_LDFLAGS="-all-static". you also need to have installed
static version of glibc.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4/4.5 Regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (22 preceding siblings ...)
2010-05-10 16:31 ` pluto at agmk dot net
@ 2010-05-10 17:28 ` redi at gcc dot gnu dot org
2010-05-11 5:53 ` dougmencken at gmail dot com
` (4 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-05-10 17:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #22 from redi at gcc dot gnu dot org 2010-05-10 17:28 -------
(In reply to comment #17)
> So can you please tell me how to "install libgcc" then?
"make install" should do it. if it's not, look to see if libgcc_s.so is built,
is it in the build tree? does the one in the build tree have the right symbols
with the right versions?
does "make install" even try to install it? the output should show.
there should be lots more things you can check to see why a working libgcc_s
isn't being installed
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4/4.5 Regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (23 preceding siblings ...)
2010-05-10 17:28 ` redi at gcc dot gnu dot org
@ 2010-05-11 5:53 ` dougmencken at gmail dot com
2010-05-11 6:51 ` mikpe at it dot uu dot se
` (3 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: dougmencken at gmail dot com @ 2010-05-11 5:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #23 from dougmencken at gmail dot com 2010-05-11 05:53 -------
(In reply to comment #22)
> "make install" should do it
make install of course does it (if --enable-shared is supplied to ./configure)
> look to see if libgcc_s.so is built, is it in the build tree?
I'm now on stage2:
$ cat stage_current stage_final
stage2
stage3
and have the following inside bootstrap directory:
$ find . -name *libgcc_s*
./prev-gcc/libgcc_s.so.1
./prev-gcc/libgcc_s.so
./prev-powerpc-gnu-linux-uclibc/libgcc/libgcc_s.so.1
./prev-powerpc-gnu-linux-uclibc/libgcc/libgcc_s.so
I don't know, is it the same or not, but none of this does include
Unwind_GetIPInfo:
$ objdump -T ./prev-powerpc-gnu-linux-uclibc/libgcc/libgcc_s.so.1 | grep
Unwind_Get
0000bd78 g DF .text 00000008 GCC_3.0 _Unwind_GetIP
0000bda4 g DF .text 00000008 GCC_3.0 _Unwind_GetRegionStart
0000bccc g DF .text 00000008 GCC_3.3 _Unwind_GetCFA
0000bdec g DF .text 00000008 GCC_3.0 _Unwind_GetTextRelBase
0000bd9c g DF .text 00000008 GCC_3.0 _Unwind_GetLanguageSpecificData
0000bc44 g DF .text 00000088 GCC_3.0 _Unwind_GetGR
0000bde4 g DF .text 00000008 GCC_3.0 _Unwind_GetDataRelBase
$ objdump -T ./prev-gcc/libgcc_s.so.1 | grep Unwind_Get
0000bd78 g DF .text 00000008 GCC_3.0 _Unwind_GetIP
0000bda4 g DF .text 00000008 GCC_3.0 _Unwind_GetRegionStart
0000bccc g DF .text 00000008 GCC_3.3 _Unwind_GetCFA
0000bdec g DF .text 00000008 GCC_3.0 _Unwind_GetTextRelBase
0000bd9c g DF .text 00000008 GCC_3.0 _Unwind_GetLanguageSpecificData
0000bc44 g DF .text 00000088 GCC_3.0 _Unwind_GetGR
0000bde4 g DF .text 00000008 GCC_3.0 _Unwind_GetDataRelBase
So, it's stage1 or stage2 problem, not install problem.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4/4.5 Regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (24 preceding siblings ...)
2010-05-11 5:53 ` dougmencken at gmail dot com
@ 2010-05-11 6:51 ` mikpe at it dot uu dot se
2010-05-11 11:32 ` dougmencken at gmail dot com
` (2 subsequent siblings)
28 siblings, 0 replies; 30+ messages in thread
From: mikpe at it dot uu dot se @ 2010-05-11 6:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #24 from mikpe at it dot uu dot se 2010-05-11 06:51 -------
Your gcc appears confused about whether to use the newer _Unwind_GetIPInfo() or
the older _Unwind_GetIP(). Most likely it's because you're building for uclibc
rather than glibc. I think you need to bisect between the last working gcc and
the first broken one to identify the responsible commit. Once that's done the
fix may be apparent.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4/4.5 Regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (25 preceding siblings ...)
2010-05-11 6:51 ` mikpe at it dot uu dot se
@ 2010-05-11 11:32 ` dougmencken at gmail dot com
2010-05-12 22:29 ` dougmencken at gmail dot com
2010-05-16 9:15 ` dougmencken at gmail dot com
28 siblings, 0 replies; 30+ messages in thread
From: dougmencken at gmail dot com @ 2010-05-11 11:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #25 from dougmencken at gmail dot com 2010-05-11 11:31 -------
(In reply to comment #24)
Okay, I'm ready to bisect. I know it would take weeks. I cloned gcc repo using
git clone git://git.infradead.org/toolchain/gcc.git gcc-git , but this repo
doesn't use tags (i.e. I can't specify that 4.4.2 is good and 4.4.3 is bad).
Can you please tell me which sha1 is for 4.4.2 and which one is for 4.4.3?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4/4.5 Regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (26 preceding siblings ...)
2010-05-11 11:32 ` dougmencken at gmail dot com
@ 2010-05-12 22:29 ` dougmencken at gmail dot com
2010-05-16 9:15 ` dougmencken at gmail dot com
28 siblings, 0 replies; 30+ messages in thread
From: dougmencken at gmail dot com @ 2010-05-12 22:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #26 from dougmencken at gmail dot com 2010-05-12 22:29 -------
Some results:
October 15, 2009
GCC 4.4.2 has been released.
January 21, 2010
GCC 4.4.3 has been released.
initially bad: 1a47c687053db495606b79a42ddefd0671ce3b15 (2010-01-21)
initially good: e5f3e814b30565641f3b4c55c37d9e68b9984f6d (2009-10-15)
----------------------------------------
[bad] fa2e3a2c9483e5ca826addb69670f7117e52c729 (2009-11-27):
$ objdump -T ./stage1-powerpc-gnu-linux-uclibc/libgcc/libgcc_s.so.1 | grep
Unwind_GetIP
0000c020 g DF .text 00000008 GCC_3.0 _Unwind_GetIP
[bad] 5cb65cdfb7c87b5e1919752c286dbb8eecdc2732 (2009-11-06):
$ objdump -T ./prev-powerpc-gnu-linux-uclibc/libgcc/libgcc_s.so.1 | grep
Unwind_GetIP
0000c020 g DF .text 00000008 GCC_3.0 _Unwind_GetIP
[bad] 98b2109eead9249c73d66d3d55c3dd2cdbcbcaca (2009-10-27):
$ objdump -T ./prev-powerpc-gnu-linux-uclibc/libgcc/libgcc_s.so.1 | grep
Unwind_GetIP
0000c020 g DF .text 00000008 GCC_3.0 _Unwind_GetIP
[bad] 3c692e317294e8858003ca92d3ae4e1bf7d3c8ca (2009-10-17):
$ objdump -T ./prev-powerpc-gnu-linux-uclibc/libgcc/libgcc_s.so.1 | grep
Unwind_GetIP
0000c020 g DF .text 00000008 GCC_3.0 _Unwind_GetIP
----------------------------------------
git-bisect log:
git bisect start
# bad: [1a47c687053db495606b79a42ddefd0671ce3b15] 2010-01-21 Martin Jambor
<mjambor@suse.cz>
git bisect bad 1a47c687053db495606b79a42ddefd0671ce3b15
# good: [e5f3e814b30565641f3b4c55c37d9e68b9984f6d] * config/h8300/h8300.c (F):
New. (Fpa): New. (h8300_emit_stack_adjustment): Call them. (push): Likewise.
(h8300_push_pop): Likewise. (h8300_expand_prologue): Likewise. *
config/h8300/h8300.h (DWARF2_DEBUGGING_INFO): Define.
(MUST_USE_SJLJ_EXCEPTIONS): Define. (INCOMING_RETURN_ADDR_RTX): Define.
(INCOMING_FRAME_SP_OFFSET): Define. (DWARF_CIE_DATA_ALIGNMENT): Define.
git bisect good e5f3e814b30565641f3b4c55c37d9e68b9984f6d
# bad: [fa2e3a2c9483e5ca826addb69670f7117e52c729] * config/i386/i386.c
(ix86_emit_restore_sse_regs_using_mov): Remove unused insn variable. *
genemit.c (output_peephole2_scratches): Only declare and initialize
_regs_allocated if it will be ever used. * cfgloopmanip.c
(create_empty_if_region_on_edge): Remove unused succ_bb variable.
(create_empty_loop_on_edge): Remove unused freq and cnt variables. *
unwind-c.c (PERSONALITY_FUNCTION): Remove unused action_record variable.
git bisect bad fa2e3a2c9483e5ca826addb69670f7117e52c729
# bad: [5cb65cdfb7c87b5e1919752c286dbb8eecdc2732] 2009-11-06 Jerry DeLisle
<jvdelisle@gcc.gnu.org>
git bisect bad 5cb65cdfb7c87b5e1919752c286dbb8eecdc2732
# bad: [98b2109eead9249c73d66d3d55c3dd2cdbcbcaca] * ChangeLog: Fix
formatting. * testsuite/ChangeLog: Ditto.
git bisect bad 98b2109eead9249c73d66d3d55c3dd2cdbcbcaca
# skip: [a90b5ee3aa9ae1aa5ca5269afefcdc5a7f8c44ca] 2009-10-20 Paolo Carlini
<paolo.carlini@oracle.com>
git bisect skip a90b5ee3aa9ae1aa5ca5269afefcdc5a7f8c44ca
# bad: [3c692e317294e8858003ca92d3ae4e1bf7d3c8ca] * gcc.pot: Regenerate.
git bisect bad 3c692e317294e8858003ca92d3ae4e1bf7d3c8ca
----
Now I'm going to find "good" one (as I got, it might be not Oct 15, 2009 due to
some "freeze" or such). And will build "retail" 4.4.2 and 4.4.3. Bootstrap
directories will be packed and uploaded.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
* [Bug c++/43911] [4.4/4.5 Regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo'
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
` (27 preceding siblings ...)
2010-05-12 22:29 ` dougmencken at gmail dot com
@ 2010-05-16 9:15 ` dougmencken at gmail dot com
28 siblings, 0 replies; 30+ messages in thread
From: dougmencken at gmail dot com @ 2010-05-16 9:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #27 from dougmencken at gmail dot com 2010-05-16 09:15 -------
This is actually not a regression. It all belongs to my setup: I'm using
busybox (without any coreutils and other shells) and uclibc. Here's the diff
made from bootstrap directories from my setup and gentoo stage 2 uclibc:
http://ftp.osuosl.org/pub/manulix/misc/diff-gcc-4.4.2-bootstraps.out
libgcc/libgcc.map in the second doesn't include _Unwind_GetIPInfo and a bunch
of others. This might be due to uname -p = unknown and such. But it is not a
regression in GCC.
Now closing this bug as WORKSFORME. Sorry for your time.
--
dougmencken at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WORKSFORME
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43911
^ permalink raw reply [flat|nested] 30+ messages in thread
end of thread, other threads:[~2010-05-16 9:15 UTC | newest]
Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-27 17:06 [Bug c++/43911] New: [4.4.3/4.5.0 regression] g++ can't compile any even trivial c++ source: undefined reference to `_Unwind_GetIPInfo' dougmencken at gmail dot com
2010-04-27 17:15 ` [Bug c++/43911] " redi at gcc dot gnu dot org
2010-04-27 17:16 ` redi at gcc dot gnu dot org
2010-04-27 17:18 ` dougmencken at gmail dot com
2010-04-27 17:20 ` dougmencken at gmail dot com
2010-04-27 17:29 ` dougmencken at gmail dot com
2010-04-27 19:15 ` dougmencken at gmail dot com
2010-04-27 19:17 ` pinskia at gcc dot gnu dot org
2010-04-27 19:22 ` dougmencken at gmail dot com
2010-04-27 20:36 ` dougmencken at gmail dot com
2010-04-27 20:48 ` dougmencken at gmail dot com
2010-04-28 9:14 ` [Bug c++/43911] [4.4/4.5 Regression] " rguenth at gcc dot gnu dot org
2010-04-28 9:24 ` rguenth at gcc dot gnu dot org
2010-04-28 19:36 ` dougmencken at gmail dot com
2010-04-28 19:57 ` dougmencken at gmail dot com
2010-04-28 20:09 ` redi at gcc dot gnu dot org
2010-04-28 20:46 ` dougmencken at gmail dot com
2010-04-29 9:57 ` rguenth at gcc dot gnu dot org
2010-04-29 20:40 ` dougmencken at gmail dot com
2010-04-30 9:25 ` jakub at gcc dot gnu dot org
2010-05-02 13:30 ` dougmencken at gmail dot com
2010-05-10 14:03 ` dougmencken at gmail dot com
2010-05-10 16:24 ` dougmencken at gmail dot com
2010-05-10 16:31 ` pluto at agmk dot net
2010-05-10 17:28 ` redi at gcc dot gnu dot org
2010-05-11 5:53 ` dougmencken at gmail dot com
2010-05-11 6:51 ` mikpe at it dot uu dot se
2010-05-11 11:32 ` dougmencken at gmail dot com
2010-05-12 22:29 ` dougmencken at gmail dot com
2010-05-16 9:15 ` dougmencken at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).