This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/48120] New: libpwl test must use g++
- From: "ro at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 14 Mar 2011 19:50:36 +0000
- Subject: [Bug bootstrap/48120] New: libpwl test must use g++
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48120
Summary: libpwl test must use g++
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: ro@gcc.gnu.org
CC: spop@gcc.gnu.org
Host: i386-pc-solaris2.10
Target: i386-pc-solaris2.10
Build: i386-pc-solaris2.10
The libpwl test in toplevel configure is bogus: it tries to link with gcc, but
libpwl is a C++ library and needs symbols from libstdc++, as can be seen in
this
excerpt from config.log of a failing bootstrap:
configure:5755: gcc -o conftest -g -O2 -L/vol/gcc/lib conftest.c -lpwl >&5
Undefined first referenced
symbol in file
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::basic_st
ring(std::basic_string<char, std::char_traits<char>, std::allocator<char> >
cons
t&) /vol/gcc/lib/libpwl.a(Watchdog.o)
operator new(unsigned int) /vol/gcc/lib/libpwl.a(Watchdog.o)