Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

clang segmentation fault during mpfr install #15061

Closed
boriskro opened this Issue · 14 comments

7 participants

@boriskro

I cannot install mpfr. I have all the latest updates for Xcode/command-line tools/homebrew and 'brew doctor' runs cleanly.

https://gist.github.com/3768907

Any ideas?

@bytecruncher

I got the same problem. It is possible that mpfr is broken with the new Xcode/command line tools because I successfully compiled it with the previous version. Probably new patches are needed.

@bilke

For me adding the option --use-llvm to brew install worked.

@bytecruncher

You're right, adding --use-llvm worked. Apparently there was something wrong with make and that is why I got "Error: Failed executing: make" (build environment issue perhaps?) before. Thanks!

@boriskro

Adding --use-llvm worked here as well. Thanks!

@boriskro boriskro closed this
@adamv adamv reopened this
@adamv
Owner

Reopening until we address this.

@samueljohn

Confirmed. I also get the segmentation fault.

@adamv MacPorts adds --disable-thread-safe to configure. Not sure, if we want that.

Using --env=std fixes this segmentation fault for me. Here is the log of a successful build (you'll have to click "raw" because it's long).

So if anyone can confirm that --env=std solves this, I can add env :std into the formula.

@pvstodghill

I can confirm that "brew install --env=std mpfr" works for me on OSX 10.8.2 with Xcode 4.5.1.

@samueljohn

@pvstodghill thanks. I did a PR.

@mxcl
Collaborator

Superenv passes more flags to clang than stdenv, I guess in this case we expose a bug in clang because of it. Don't close this, I need to look into it.

@adamv
Owner

Should I pull the pull request in the meantime?

@adamv
Owner

Probably fixed in 137d488

@adamv adamv closed this
@samueljohn

I need to look into it. -- @mxcl

Did you had the chance to do so already?

@samueljohn

On 10.8.3 (Xcode-only) with Clang: 4.2 build 425 can build this with superenv.

@rghammonds rghammonds referenced this issue in mistydemeo/tigerbrew
Closed

mpfr failed to build on 10.4.11 #15

@molinari molinari referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@nesv nesv referenced this issue from a commit in nesv/homebrew
@samueljohn samueljohn mpfr: With clang build 425 it works in superenv
See #15061
eee6263
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.