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

From: David Chisnall <theraven_at_FreeBSD.org>
Date: Thu, 31 Jan 2013 09:10:34 +0000
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


Received on Thu Jan 31 2013 - 08:10:55 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:34 UTC