From owner-freebsd-current@FreeBSD.ORG Sun Dec 18 08:44:12 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 05767106566C for ; Sun, 18 Dec 2011 08:44:12 +0000 (UTC) (envelope-from jbeich@tormail.net) Received: from server2.hudsonvalleyhost.com (server2.hudsonvalleyhost.com [66.7.195.77]) by mx1.freebsd.org (Postfix) with ESMTP id B21A88FC12 for ; Sun, 18 Dec 2011 08:44:11 +0000 (UTC) Received: from exit-01d.noisetor.net ([173.254.216.69]:50361 helo=internal.tormail.net) by server2.hudsonvalleyhost.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.69) (envelope-from ) id 1RcCLo-00028S-Ul; Sun, 18 Dec 2011 03:44:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tormail.net; s=tm; h=Message-Id:X-TorMail-User:Content-Type:MIME-Version:References:Date:Subject:Cc:To:From; bh=rQ8lBIGEg3vXhMR/7oyksbEPiUMryW0ZOF0pKPoJoh0=; b=iw+sKXVhlXuTAy2Rj50e4+Y5xBcQ36QTZEak8gKOvkmD0lk9Viwkt3BDVwh2gLvP7Li6XviSC5hQ8fJAtwP3beB4UbQVFs1Qqhyj+t+FhTwOJHYvP5N9r9SdIhtCbYGslSY7zeBu7ZN0d8GUnM1in9I23eTmdXiNvVSFrTohYXY=; Received: from jbeich by internal.tormail.net with local (Exim 4.63) (envelope-from ) id 1RcCLJ-000MeI-MC; Sun, 18 Dec 2011 08:43:40 +0000 From: Jan Beich To: David Chisnall Date: Sun, 18 Dec 2011 17:40:36 +0900 References: <55EF58C0-0E9A-4701-B309-95317913A384@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain X-TorMail-User: jbeich Message-Id: <1RcCLJ-000MeI-MC@internal.tormail.net> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server2.hudsonvalleyhost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tormail.net X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-current@FreeBSD.org Subject: Re: Heads up: New C++ stack 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: Sun, 18 Dec 2011 08:44:12 -0000 David Chisnall writes: [...] > 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). Does the option work when building world with -jX ? $ make -sj2 buildworld [...] ===> lib/libcompiler_rt (obj,depend,all,install) ===> lib/libc (obj,depend,all,install) ===> lib/libcxxrt (obj,depend,all,install) /usr/obj/usr/src/tmp/usr/bin/ld: cannot find -lgcc_s clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [libcxxrt.so.1] Error code 1 And later in silent build --verbose in LDFLAGS for libc++ produces noise that's neither a warning nor a build directory. ===> lib/libcxxrt (all) ===> lib/libc++ (all) FreeBSD clang version 3.0 (tags/RELEASE_30/final 145349) 20111210 Target: x86_64-unknown-freebsd10.0 Thread model: posix "/usr/obj/usr/src/tmp/usr/bin/ld" --eh-frame-hdr -Bshareable -o libc++.so.1 /usr/obj/usr/src/tmp/usr/lib/crti.o /usr/obj/usr/src/tmp/usr/lib/crtbeginS.o -L/usr/obj/usr/src/lib/libc++/../libcxxrt/ -L/usr/obj/usr/src/tmp/usr/lib -x --fatal-warnings --warn-shared-textrel -soname libc++.so.1 valarray.So utility.So strstream.So regex.So random.So iostream.So debug.So chrono.So bind.So algorithm.So hash.So thread.So future.So new.So locale.So typeinfo.So mutex.So memory.So ios.So condition_variable.So system_error.So string.So stdexcept.So exception.So -lcxxrt -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/obj/usr/src/tmp/usr/lib/crtendS.o /usr/obj/usr/src/tmp/usr/lib/crtn.o