From owner-freebsd-current@FreeBSD.ORG Mon Nov 28 23:20:48 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A0841065673; Mon, 28 Nov 2011 23:20:48 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id C8C718FC14; Mon, 28 Nov 2011 23:20:47 +0000 (UTC) Received: by ywp17 with SMTP id 17so6086535ywp.13 for ; Mon, 28 Nov 2011 15:20:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8D2EoEkyGRoi5gMO/xO1a9tqS5lSg6z3bstt6mQCnEM=; b=ZUx4vAjc3D3tqpHfUs29qecnrIvm1ueLzUNSntC7eD3Zd/Gt8M+hS33HfpVJjji4i9 CT3xSmiRonIYh4I9+OqlXgri2j6sbwBNNt9EG3NvjrXzjT6iwp7R5Il280QiNGe/Lrw9 UBvinyl9GTtzVXkz7e8kysBxbFh3Cm4lj3FGw= MIME-Version: 1.0 Received: by 10.182.218.100 with SMTP id pf4mr1296924obc.12.1322522447254; Mon, 28 Nov 2011 15:20:47 -0800 (PST) Received: by 10.182.62.227 with HTTP; Mon, 28 Nov 2011 15:20:47 -0800 (PST) In-Reply-To: <4ED41243.4060209@zedat.fu-berlin.de> References: <4ED26CE9.3020107@zedat.fu-berlin.de> <4ED3CEB8.6090409@zedat.fu-berlin.de> <4ED41243.4060209@zedat.fu-berlin.de> Date: Mon, 28 Nov 2011 15:20:47 -0800 Message-ID: From: Garrett Cooper To: "O. Hartmann" Content-Type: text/plain; charset=ISO-8859-1 Cc: Current FreeBSD , David Chisnall Subject: Re: Building FreeBSD 10.0-CURRENT/amd64 of today fails (with clang and WITH_LIBCPLUSPLUS=YES) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Nov 2011 23:20:48 -0000 On Mon, Nov 28, 2011 at 2:59 PM, O. Hartmann wrote: > Am 11/28/11 20:10, schrieb Garrett Cooper: >> On Mon, Nov 28, 2011 at 10:11 AM, O. Hartmann >> wrote: >>> Am 11/27/11 22:05, schrieb Garrett Cooper: >>>> On Sun, Nov 27, 2011 at 9:01 AM, O. Hartmann >>>> wrote: >>>>> Sources of FreeBSD 10.0-CUR/amd64 as svn-ed recently: >>>>> >>>>> Path: . >>>>> Working Copy Root Path: /usr/src >>>>> URL: svn://svn.freebsd.org/base/head >>>>> Repository Root: svn://svn.freebsd.org/base >>>>> Repository UUID: ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f >>>>> Revision: 228029 >>>>> Node Kind: directory >>>>> Schedule: normal >>>>> Last Changed Author: trociny >>>>> Last Changed Rev: 228029 >>>>> Last Changed Date: 2011-11-27 17:56:01 +0100 (Sun, 27 Nov 2011) >>>>> >>>>> fail to build with the following error: >>>> >>>> Look for the first "Error code" in your output -- the line before that >>>> is the real error. That being said, there were some additional CFLAGS >>>> that needed to be fed in to make things work with libc++ and libcxxrt >>>> IIRC. >>>> Cheers, >>>> -Garrett >>> >>> >>> ... thanks for the advice. >>> Is there any chance to find out which Flags one has to set (the WIKI >>> seems not to mention anything)? >> >> Should be off by default; it can be enabled via WITH_LIBCPLUSPLUS. >> -Garrett >> _______________________________________________ > > > Hello Garrett. > Yes, it is off by default and the system build well with this feature > off by default. But when enabling WITH_LIBCPLUSPLUS in /etc/src.conf, > I get always the error I started this thread with. > > Well, either this is a real error and I should PR, or it is my > impatience that tries to use something still getting merged. > > I tried to look at the wiki for that, but it does not mention anything > else apart the flag WITH_LIBCPLUSPLUS. No additional CFLAGS or something > ... so I'm a little bit confused. Read through http://osdir.com/ml/freebsd-current/2011-11/msg00718.html -- in particular: "libcxxrt and libc++ are now in contrib and building with the base system, but are not used by anything (and are only built if you set WITH_LIBCPLUSPLUS=yes when building world, not by default). If you want to test some code with the new stack, you need to build it and then specify >> -stdlib=libc++ << to clang++ (both when compiling and linking)." That being said, if there's something else that's required I've CCed David for visibility. I would definitely include the full build log somewhere else so someone can analyze the error. Cheers, -Garrett