Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Can't install aria2 (standard library incompatibility) #24709

Closed
h31 opened this issue Nov 27, 2013 · 7 comments
Closed

Can't install aria2 (standard library incompatibility) #24709

h31 opened this issue Nov 27, 2013 · 7 comments

Comments

@h31
Copy link

h31 commented Nov 27, 2013

Hello. I tried to install aria2 and got this error. I'm using 10.8 with Xcode 5. Happens both with cc=clang and cc=gcc-4.8. Gmp is built with default flags.
$ brew install aria2
==> Downloading http://downloads.sourceforge.net/project/aria2/stable/aria2-1.18
Already downloaded: /Library/Caches/Homebrew/aria2-1.18.1.tar.bz2
==> ./configure --prefix=/usr/local/Cellar/aria2/1.18.1 --with-ca-bundle=/usr/lo
==> make install
Error: aria2 dependency gmp was built with the following
C++ standard library: libstdc++ (from clang)

This is incompatible with the standard library being used
to build aria2: libc++ (from clang)

Please reinstall gmp using a compatible compiler.
hint: Check https://github.com/mxcl/homebrew/wiki/C++-Standard-Libraries

@bensleveritt
Copy link

I'm seeing this too on 1.8.3

@bensleveritt
Copy link

Using the --with-appletls flag allowed me to install it (since it bypasses the need for gnutls/gmp).

@jacknagel
Copy link
Contributor

We should probably being using --with-appletls by default, at least on recent enough OS X.

@mistydemeo
Copy link
Member

Note though that reinstalling gmp should allow it to work without the option.

@jacknagel
Copy link
Contributor

Not on 10.8.

@mistydemeo
Copy link
Member

Oh right, sorry.

@jacknagel
Copy link
Contributor

Fixed by defaulting to --with-appletls.

ehershey pushed a commit to ehershey/homebrew that referenced this issue Apr 4, 2014
aria2 requires C++11, so its C++ dependencies (gnutls, gmp) must have
C++11 options as well, unless we use Apple's built-in TLS support
instead.

Fixes Homebrew#24709.
@Homebrew Homebrew locked and limited conversation to collaborators Feb 17, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants