Subject: toolchain/24593: -current cannot compile c++ programs
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <mrauch@netbsd.org>
List: netbsd-bugs
Date: 02/28/2004 17:28:37
>Number:         24593
>Category:       toolchain
>Synopsis:       -current cannot compile c++ programs
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 28 16:29:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Michael Rauch
>Release:        NetBSD 1.6ZK
>Organization:
>Environment:
System: NetBSD zonk 1.6ZK NetBSD 1.6ZK (ZONK) #0: Sat Feb 28 02:15:36 CET 2004 root@zonk:/usr/obj/src/sys/arch/i386/compile.i386/ZONK i386
Architecture: i386
Machine: i386
>Description:
	After updating kernel and userland, the compiler can no longer compile
	c++ programs, but complains about undefined references.
	Look at "g++ -dumpspecs" output and see that the missing symbols have
	been split off into libgcc_eh.a but the compiler doesn't pass this
	library to the linker.
>How-To-Repeat:

bash-2.05b$ cat test.cxx 
#include <iostream>
using namespace std;
int main() {
  cout << "Hello world." << endl;
}
bash-2.05b$ g++ test.cxx 
/usr/lib/libstdc++.so: undefined reference to `_Unwind_GetIP'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_Resume_or_Rethrow'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_GetRegionStart'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_Resume'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_DeleteException'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_RaiseException'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_SetIP'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_GetTextRelBase'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_GetLanguageSpecificData'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_SetGR'
/usr/lib/libstdc++.so: undefined reference to `_Unwind_GetDataRelBase'
bash-2.05b$

>Fix:
	n/a
>Release-Note:
>Audit-Trail:
>Unformatted:
 	last updated Feb 27, about 21:00 UTC