From owner-freebsd-ports@FreeBSD.ORG Sun Nov 17 13:20:49 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6B3A5844; Sun, 17 Nov 2013 13:20:49 +0000 (UTC) Received: from mailrelay008.isp.belgacom.be (mailrelay008.isp.belgacom.be [195.238.6.174]) by mx1.freebsd.org (Postfix) with ESMTP id 8CDD42DB1; Sun, 17 Nov 2013 13:20:48 +0000 (UTC) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AngGAODBiFJbs6sV/2dsb2JhbABZgwc4v32BDxd0giUBAQU6HCMQCxgJJQ8qHgYTiAUBwQ4Xji4BAYE5B4QxA5gPkg6DKTuBNQ Received: from 21.171-179-91.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([91.179.171.21]) by relay.skynet.be with ESMTP; 17 Nov 2013 14:20:40 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.14.7/8.14.7) with ESMTP id rAHDKdxS012864; Sun, 17 Nov 2013 14:20:39 +0100 (CET) (envelope-from tijl@coosemans.org) Date: Sun, 17 Nov 2013 14:20:37 +0100 From: Tijl Coosemans To: andrew clarke Subject: Re: www/aria2 dependencies & lang/llvm33 build error Message-ID: <20131117142037.5ea1c04e@kalimero.tijl.coosemans.org> In-Reply-To: <20131117110145.GA63272@ozzmosis.com> References: <20131116132213.GA95852@ozzmosis.com> <20131117110145.GA63272@ozzmosis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: sunpoet@FreeBSD.org, brooks@FreeBSD.org, lwhsu@FreeBSD.org, freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Nov 2013 13:20:49 -0000 On Sun, 17 Nov 2013 22:01:45 +1100 andrew clarke wrote: > Following up on my question from yesterday... > > On Sun 2013-11-17 00:22:13 UTC+1100, andrew clarke (mail@ozzmosis.com) wrote: > > > I'm running FreeBSD 8.4-RELEASE-p4. > > > > www/aria2 1.18.1 requires lang/clang33. Is this really necessary? > > Previous aria2 versions didn't require clang. > > I've now had a chance to check the aria2 sources and evidently it now > requires C++11 support, which I find surprising, but that's progress I > suppose... > > > If so, I already have lang/clang-devel (3.4) installed, but the port > > still wants to build lang/clang33, which of course requires > > devel/llvm33. > > I've just noticed for lang/clang-devel, the actual clang binary has > been recently renamed to clang-devel, but this isn't mentioned in > /usr/ports/UPDATING. > > If I set CXX=clang++-devel in make.conf, the aria2 configure script > still fails though, complaining of missing C++11 support. Odd. > > > However on 8.4-REL, currently llvm33 fails to build: > > > > gmake[1]: Leaving directory `/usr/ports/devel/llvm33/work/llvm-3.3.src/bindings' > > llvm[0]: ***** Completed Release Build > > sphinx-build -b man -d _build/doctrees . _build/man > > Traceback (most recent call last): > > File "/usr/local/bin/sphinx-build", line 5, in > > from pkg_resources import load_entry_point > > File "build/bdist.freebsd-8.3-RELEASE-p3-amd64/egg/pkg_resources.py", line 2805, in > > File "build/bdist.freebsd-8.3-RELEASE-p3-amd64/egg/pkg_resources.py", line 696, in require > > File "build/bdist.freebsd-8.3-RELEASE-p3-amd64/egg/pkg_resources.py", line 594, in resolve > > pkg_resources.DistributionNotFound: markupsafe > > gmake: *** [man] Error 1 > > *** Error code 2 > > On a hunch I tried reinstalling textproc/py-sphinx, which failed with > the same error. Evidently py-sphinx is missing a dependency on > textproc/py-MarkupSafe. Once markupsafe is installed I could build & > install llvm33 & clang33. > > But even so, the aria2 build still complains about missing C++11 support: > > checking whether /usr/local/bin/clang++33 supports C++11 features by default... no > checking whether /usr/local/bin/clang++33 supports C++11 features with -std=c++11 ... no > checking whether /usr/local/bin/clang++33 supports C++11 features with -std=c++11 -stdlib=libc++... no > checking whether /usr/local/bin/clang++33 supports C++11 features with -std=c++0x ... no > checking whether /usr/local/bin/clang++33 supports C++11 features with -std=c++0x -stdlib=libc++... no > configure: error: *** A compiler with support for C++11 language features is required. > ===> Script "configure" failed unexpectedly. > > Any suggestions? Probably the port needs a C++11 library and not just a C++11 compiler. On FreeBSD 8 only the lang/gcc ports provide a C++11 library, so you could try the following. In the port Makefile there's a line like this: USES= compiler:c++11-lang pathfix pkgconfig Try changing "compiler:c++11-lang" into "compiler:c++11-lib".