Re: www/aria2 dependencies & lang/llvm33 build error

2013-11-26 Thread Matthias Andree
Am 22.11.2013 15:20, schrieb andrew clarke:
> On Sun 2013-11-17 14:15:02 UTC+0100, Michael Gmelin (free...@grem.de) wrote:
> 
 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...
>>
>> From a developer's standpoint this makes a lot of sense, since C++11 is
>> more productive and a lot more fun to use.
> 
> Sounds good. I just wonder about the logic behind doing that for a
> minor 1.17 -> 1.18 release though.

Without asking the aria2 developers, I would argue that once you've got
it built, it's likely compatible with the previous 1.X versions with
respect to its public interfaces (shell, possibly library API,
configuration files) so the developers did not move to a major 2.X release.

Also you could argue that C++11 has caught on relatively quickly so it
might appear to the aria2 developers to be a minor move.

> Out of curiosity I tried building devel/libc++ under 9.2 but it failed with:
> 
> Shared object "libz.so.5" not found, required by "libLLVM-3.3.so"
> 
> Evidently the fix is to add "libz.so.5 libz.so" to /etc/libmap.conf.

No, the fix is to rebuild libLLVM-3.3.so after the system upgrade.

https://wiki.freebsd.org/NewC%2B%2BStack

>> - Try building aria with a recent gcc instead
> 
> I've had no success with that either!

Was the configure complaining, or the build after you'd hacked the
configure script?  I presume you'd have to use gcc48.
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: www/aria2 dependencies & lang/llvm33 build error

2013-11-26 Thread Matthias Andree
Am 22.11.2013 15:56, schrieb andrew clarke:
> On Fri 2013-11-22 15:51:14 UTC+0100, Michael Gmelin (free...@grem.de) wrote:
> 
>>> Then the obvious question is... How did you get aria2 to build in 9.1
>>> when I can't get it to build in 9.2? ;-)
>>
>> I built 9.1 from source using:
>>
>> WITH_LIBCPLUSPLUS=YES
>> (and later WITH_CLANG_EXTRAS=1)
>>
>> (make buildworld installworld kernel)
>>
>> So I've got libc++.
>>
>> All ports are built using:
>> CC=clang
>> CXX=clang++
>> CXXFLAGS+= -std=c++11 -stdlib=libc++
>> CPP=clang-cpp
> 
> I see! I'll give that a try if I get some free time, although the
> effort required seems excessive just to build the latest aria2 . :)

Have you got it working?  If you get it working, feeding back what
you've got to the port's maintainer would be good so it can be marked
broken on 8.X and made to work on 9.X with proper instructions if libc++
is missing.

___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: www/aria2 dependencies & lang/llvm33 build error

2013-11-22 Thread andrew clarke
On Fri 2013-11-22 15:51:14 UTC+0100, Michael Gmelin (free...@grem.de) wrote:

> > Then the obvious question is... How did you get aria2 to build in 9.1
> > when I can't get it to build in 9.2? ;-)
> 
> I built 9.1 from source using:
> 
> WITH_LIBCPLUSPLUS=YES
> (and later WITH_CLANG_EXTRAS=1)
> 
> (make buildworld installworld kernel)
> 
> So I've got libc++.
> 
> All ports are built using:
> CC=clang
> CXX=clang++
> CXXFLAGS+= -std=c++11 -stdlib=libc++
> CPP=clang-cpp

I see! I'll give that a try if I get some free time, although the
effort required seems excessive just to build the latest aria2 . :)

Thanks Michael,

Regards
Andrew
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: www/aria2 dependencies & lang/llvm33 build error

2013-11-22 Thread Michael Gmelin
On Sat, 23 Nov 2013 01:41:25 +1100
andrew clarke  wrote:

> On Fri 2013-11-22 15:37:56 UTC+0100, Michael Gmelin (free...@grem.de)
> wrote:
> 
> > > > I just built sudo successfully on 9.1 using system clang 3.1 and
> > > > CXX=clang++
> > > > CXXFLAGS+=-std=c++11 -stdlib=libc++
> > > 
> > > Yeah, I have no problem building sudo with clang. The sudo code
> > > is all C though, not C++.
> > 
> > Well, that was supposed to be "aria2" and not "sudo" (no idea why I
> > wrote sudo in the first place, probably multitasking when I
> > shouldn't have). A tried it specifically because it didn't build
> > about two weeks earlier due to being incompatible with C++11. So it
> > went straight from not working with C++11 to requiring C++11. Good
> > times :)
> 
> Ah.
> 
> Then the obvious question is... How did you get aria2 to build in 9.1
> when I can't get it to build in 9.2? ;-)
> 

I built 9.1 from source using:

WITH_LIBCPLUSPLUS=YES
(and later WITH_CLANG_EXTRAS=1)

(make buildworld installworld kernel)

So I've got libc++.

All ports are built using:
CC=clang
CXX=clang++
CXXFLAGS+= -std=c++11 -stdlib=libc++
CPP=clang-cpp


-- 
Michael Gmelin
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: www/aria2 dependencies & lang/llvm33 build error

2013-11-22 Thread Michael Gmelin
On Sat, 23 Nov 2013 01:20:55 +1100
andrew clarke  wrote:

Slightly confused post on my part, sorry ;)

> On Sun 2013-11-17 14:15:02 UTC+0100, Michael Gmelin (free...@grem.de)
> wrote:
> 
> > > > 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...
> > 
> > From a developer's standpoint this makes a lot of sense, since
> > C++11 is more productive and a lot more fun to use.
> 
> Sounds good. I just wonder about the logic behind doing that for a
> minor 1.17 -> 1.18 release though.

True, that's not a very friendly move.

> 
> > I just built sudo successfully on 9.1 using system clang 3.1 and
> > CXX=clang++
> > CXXFLAGS+=-std=c++11 -stdlib=libc++
> 
> Yeah, I have no problem building sudo with clang. The sudo code is all
> C though, not C++.

Well, that was supposed to be "aria2" and not "sudo" (no idea why I
wrote sudo in the first place, probably multitasking when I shouldn't
have). A tried it specifically because it didn't build about two weeks
earlier due to being incompatible with C++11. So it went straight from
not working with C++11 to requiring C++11. Good times :)

> Upgrading from 8.4 to 9.2 was surprisingly painless though, so I'm not
> as concerned with future upgrades. My main worry was root on ZFS, and
> whether the pool would be bootable from the newer kernel. It all went
> swimmingly though. Disk performance seems to have improved a little
> too which is nice.

Yeah, updates to 9 have been really smooth compared to previous releases
(there is nothing like going from 4.11 to 5.3 :D). I have no numbers to
support this, but 9.2 feels snappier to me than 9.1 - like something
got "unstuck".

Cheers,
Michael

-- 
Michael Gmelin
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: www/aria2 dependencies & lang/llvm33 build error

2013-11-22 Thread andrew clarke
On Fri 2013-11-22 15:37:56 UTC+0100, Michael Gmelin (free...@grem.de) wrote:

> > > I just built sudo successfully on 9.1 using system clang 3.1 and
> > > CXX=clang++
> > > CXXFLAGS+=-std=c++11 -stdlib=libc++
> > 
> > Yeah, I have no problem building sudo with clang. The sudo code is all
> > C though, not C++.
> 
> Well, that was supposed to be "aria2" and not "sudo" (no idea why I
> wrote sudo in the first place, probably multitasking when I shouldn't
> have). A tried it specifically because it didn't build about two weeks
> earlier due to being incompatible with C++11. So it went straight from
> not working with C++11 to requiring C++11. Good times :)

Ah.

Then the obvious question is... How did you get aria2 to build in 9.1
when I can't get it to build in 9.2? ;-)

Regards
Andrew
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: www/aria2 dependencies & lang/llvm33 build error

2013-11-22 Thread andrew clarke
On Sun 2013-11-17 14:15:02 UTC+0100, Michael Gmelin (free...@grem.de) wrote:

> > > 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...
> 
> From a developer's standpoint this makes a lot of sense, since C++11 is
> more productive and a lot more fun to use.

Sounds good. I just wonder about the logic behind doing that for a
minor 1.17 -> 1.18 release though.

> I just built sudo successfully on 9.1 using system clang 3.1 and
> CXX=clang++
> CXXFLAGS+=-std=c++11 -stdlib=libc++

Yeah, I have no problem building sudo with clang. The sudo code is all
C though, not C++.

I upgraded from FreeBSD 8.4-REL to 9.2-REL during the week. Trying to
build aria2 with or without the above in /etc/make.conf still results
in:

"checking whether clang++ supports C++11 features by default... no"

The only place I can get aria2 1.18 to build successfully is under
FreeBSD 10.0-BETA(3) (tested in a VM). So that tends to rule out
aria2's configure script being broken at least.

For the time being I'm using portdowngrade to install aria2 1.17. Not
a big deal, and I suspect I'll be upgrading my servers from FreeBSD
9.2 to 10.x sometime early next year, whereby this issue will fix
itself...

> 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.

Out of curiosity I tried building devel/libc++ under 9.2 but it failed with:

Shared object "libz.so.5" not found, required by "libLLVM-3.3.so"

Evidently the fix is to add "libz.so.5 libz.so" to /etc/libmap.conf.

I then point /etc/make.conf to lang/clang33:

CC=clang33
CXX=clang++33
CPP=clang++33 -E

aria2 1.18's configure still breaks though, darn:

checking whether clang++33 supports C++11 features by default... no

> So basically I see two options for you:
> - Update to 9.2-RELEASE, 8.4 will be EoL soon anyway

FWIW the reason I stuck with 8.4 was because it's EoL in June 2015,
whereas 9.2 is EoL in September 2014.

http://www.freebsd.org/security/security.html#sup

Upgrading from 8.4 to 9.2 was surprisingly painless though, so I'm not
as concerned with future upgrades. My main worry was root on ZFS, and
whether the pool would be bootable from the newer kernel. It all went
swimmingly though. Disk performance seems to have improved a little
too which is nice.

> - Try building aria with a recent gcc instead

I've had no success with that either!

Thanks for the pointers, though.

Regards
Andrew
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: www/aria2 dependencies & lang/llvm33 build error

2013-11-17 Thread Tijl Coosemans
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 (m...@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".
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: www/aria2 dependencies & lang/llvm33 build error

2013-11-17 Thread Michael Gmelin
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
> (m...@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...

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

> 
> If I set CXX=clang++-devel in make.conf, the aria2 configure script
> still fails though, complaining of missing C++11 support. Odd.
> 
> 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?

I just built sudo successfully on 9.1 using system clang 3.1 and
CXX=clang++
CXXFLAGS+=-std=c++11 -stdlib=libc++

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



-- 
Michael Gmelin
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: www/aria2 dependencies & lang/llvm33 build error

2013-11-17 Thread andrew clarke
Following up on my question from yesterday...

On Sun 2013-11-17 00:22:13 UTC+1100, andrew clarke (m...@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?

Regards
Andrew
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


www/aria2 dependencies & lang/llvm33 build error

2013-11-16 Thread andrew clarke
Hi,

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.

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.

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

Stop in /usr/ports/devel/llvm33.
*** Error code 1

Thanks.

Regards
Andrew
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"