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

From: O. Hartmann <ohartman_at_zedat.fu-berlin.de>
Date: Sun, 03 Feb 2013 15:00:41 +0100
Am 01/31/13 10:10, schrieb David Chisnall:
> 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
> 


Since world can not be build anymore at the moment with the use of
-stdlib=libc++, wouldn't it be well-advised to make a note in UPDATING?
I was wondering that so few CURRENT users are going to use the new
libc++ for building world.

If it is an official advise NOT to use libc++ at the moment and I simply
didn't get the message, please consider my complain without a subject
anymore.

Regards,
Oliver


Received on Sun Feb 03 2013 - 13:00:56 UTC

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