Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Nov 2013 14:15:02 +0100
From:      Michael Gmelin <freebsd@grem.de>
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:  <20131117141502.5c203a99@bsd64.grem.de>
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 <mail@ozzmosis.com> wrote:

> Following up on my question from yesterday...
>=20
> On Sun 2013-11-17 00:22:13 UTC+1100, andrew clarke
> (mail@ozzmosis.com) wrote:
>=20
> > I'm running FreeBSD 8.4-RELEASE-p4.
> >=20
> > www/aria2 1.18.1 requires lang/clang33. Is this really necessary?
> > Previous aria2 versions didn't require clang.
>=20
> 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...

=46rom a developer's standpoint this makes a lot of sense, since C++11 is
more productive and a lot more fun to use.

>=20
> If I set CXX=3Dclang++-devel in make.conf, the aria2 configure script
> still fails though, complaining of missing C++11 support. Odd.
>=20
> 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.
>=20
> 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=3Dc++11 ... no checking
> whether /usr/local/bin/clang++33 supports C++11 features with
> -std=3Dc++11 -stdlib=3Dlibc++... no checking
> whether /usr/local/bin/clang++33 supports C++11 features with
> -std=3Dc++0x ... no checking whether /usr/local/bin/clang++33 supports
> C++11 features with -std=3Dc++0x -stdlib=3Dlibc++... no configure: error:
> *** A compiler with support for C++11 language features is required.
> =3D=3D=3D>  Script "configure" failed unexpectedly.
>=20
> Any suggestions?

I just built sudo successfully on 9.1 using system clang 3.1 and
CXX=3Dclang++
CXXFLAGS+=3D-std=3Dc++11 -stdlib=3Dlibc++

The problem you're facing is probably the lack of libc++, which
contains all the C++11 library features. You can use C++11 using the
old gcc standard C++ library, but then you won't have access to about
2/3 of the new features which are all implemented in the library. To
get those on a system that doesn't ship with clang already you could
install devel/libc++. Unfortunately this won't build on older hosts due
to the lack of aligned_alloc. While this can be worked around by
defining your local aligned_alloc, you'll probably trip over the lack of
xlocale(3) support, which is required to build libc++ successfully and
first appeared in 9.1.

So basically I see two options for you:
- Update to 9.2-RELEASE, 8.4 will be EoL soon anyway
- Try building aria with a recent gcc instead

Cheers,
Michael



--=20
Michael Gmelin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131117141502.5c203a99>