From owner-freebsd-stable@FreeBSD.ORG Sun Feb 3 10:39:26 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id EA9E6139 for ; Sun, 3 Feb 2013 10:39:26 +0000 (UTC) (envelope-from andrnils@gmail.com) Received: from mail-oa0-f43.google.com (mail-oa0-f43.google.com [209.85.219.43]) by mx1.freebsd.org (Postfix) with ESMTP id 8FCB916D for ; Sun, 3 Feb 2013 10:39:26 +0000 (UTC) Received: by mail-oa0-f43.google.com with SMTP id l10so5688156oag.30 for ; Sun, 03 Feb 2013 02:39:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=UUe9wsuJJs1VsF5GUDS1hHcepWg6fiGrydudKUUHrGs=; b=IF+qEpzwgJuDTrkTUSNctXSgFSU17vGBxUn11qvukfIuqflnri528ZVgRyInyWp4nd mR1x+TiHcRUtjEE/jGZEjgqRqTKiKaKAnzf8RRfFyiSdXLfK7aus2C5f3S0xA+XOxbtC otRhSpGh8T4D9g/i3/KoCg4K51HT13DCARTBXR7wUHulTdMONyviaWnOpVQYX08eVXrO B0nPFSPhoxlXtFJhH75QFHfGg92VGRkQSnj4uUyo9nmKBRTGn1FMwzgemnrkB1NnI9m8 65PW0wcDTXR7fyjn1XMx24m8teorae32pJIe4hjG+HEb6lP4IAyGmyljvpGM7fQRW7hr pYXA== MIME-Version: 1.0 X-Received: by 10.182.54.46 with SMTP id g14mr12199756obp.55.1359887960638; Sun, 03 Feb 2013 02:39:20 -0800 (PST) Received: by 10.76.10.105 with HTTP; Sun, 3 Feb 2013 02:39:20 -0800 (PST) Date: Sun, 3 Feb 2013 11:39:20 +0100 Message-ID: Subject: Ports and WITH_LIBCPLUSPLUS From: Andreas Nilsson To: FreeBSD Stable Mailing List Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Feb 2013 10:39:27 -0000 Hello, I wanted to try the new c++ stuff, ie clang-3.2, libc++ and libcxxrt, so I used poudriere to build a jail setup for that ( WITH_LIBCPLUSPLUS=yes in src.conf, CXXFLAGS+=-stdlib=libc++ and libsupc++.so.1 libcxxrt.so.1 in libmap.conf ), and started to build my normal set of packages ( see desktop.list ). Please note that I also have WITH_NEW_XORG=yes and WITH_KMS=yes, as well as using the devel xorg repo. First Great work for moving FreeBSD towards a more modern c++ world! Results: Some stuff works, some don't ;) Some may be due to clang and not just libc++. Here is a list of packages that fails: audio/libofa databases/akonadi devel/binutils devel/kBuild devel/libftdi devel/libplist devel/qca devel/qt4-qdbusviewer devel/qt4-script emulators/qemu-devel graphics/cairo graphics/graphite2 graphics/libfpx graphics/opencv-core graphics/podofo graphics/vigra lang/sbcl math/cln net-im/libmsn net-p2p/libtorrent net/hupnp net/ns3 net/xmlrpc-c-devel science/openbabel security/pinentry sysutils/fusefs-kmod sysutils/synergy textproc/clucene x11/nvidia-driver where at least ns3 can be ignored ( I created that port myself ). I think nvidia-driver and fusefs-kmod now fails due to -stdlib=libc++ in LDFLAGS, normally fusefs-kmod just fails install-phase due to missing pkg-message file. I saved the workdirs for poudriere, and they are available at http://benriach.widell.net/~andrnils/libc++/ , both as individual tarballs and one tarball that includes all the others. There is also the lists of packages I try to build, as well as the ones that fails. One general question: How am I supposed to include -stdlib=libc++ in LDFLAGS just for c++? Having -stdlib=libc++ in LDFLAGS causes c compiles to fail linking with "ld: unrecognized option '-stdlib=libc++'" Best regards Andreas