Date: Sun, 17 Nov 2013 14:20:37 +0100 From: Tijl Coosemans <tijl@coosemans.org> To: andrew clarke <mail@ozzmosis.com> Cc: sunpoet@FreeBSD.org, brooks@FreeBSD.org, lwhsu@FreeBSD.org, freebsd-ports@freebsd.org 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>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <module> > > from pkg_resources import load_entry_point > > File "build/bdist.freebsd-8.3-RELEASE-p3-amd64/egg/pkg_resources.py", line 2805, in <module> > > 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".
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131117142037.5ea1c04e>