r246057: buildworld fails with: /usr/obj/usr/src/tmp/usr/lib/libc++.so: undefined reference to `std::bad_alloc::~bad_alloc()'

David Chisnall theraven at FreeBSD.org
Thu Jan 31 09:10:55 UTC 2013


On 31 Jan 2013, at 04:37, O. Hartmann wrote:

> First, I suspected the c++ option "-std=c++11" I issued in /etc/src.conf
> when building the sources - I did this before without any problems.
> Then, leaving the build without "-std=c++11" option, I get the following
> error below and compilation stops.
> 
> Maybe this reveals the real issue.
> 
> The revision of the OS I compile on and where it fails is FreeBSD
> 10.0-CURRENT #2 r245995: Sun Jan 27 19:56:47 CET 2013. This is maybe of
> any help.

If you are going to compile with -stdlib=libc++ and not -std=c++11, then you probably need to add -Wno-c++11-extensions.  Some C++11isms have crept into the libc++ headers.  I think some have been fixed upstream, so I'll do a new import soon and see.

David

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20130131/60f75341/attachment.sig>


More information about the freebsd-current mailing list