This repository has been archived by the owner. It is now read-only.

Gnu Prolog failed to build on 10.8.3 and Xcode 4.6.1 #18488

Closed
dwaite opened this Issue Mar 15, 2013 · 6 comments

Comments

Projects
None yet
3 participants
Contributor

dwaite commented Mar 15, 2013

Suspected expansion of issue #12536

Fails with segmentation violation based on environment

for HOMEBREW_CC when unset, or with values llvm or clang, get a segmentation fault.

for HOMEBREW_CC=gcc, compile succeeds

Included, a run with HOMEBREW_CC unset:
https://gist.github.com/dwaite/230383de74e26ac68775

Contributor

adamv commented Mar 15, 2013

MacPorts seems to force gcc: https://trac.macports.org/browser/trunk/dports/lang/gprolog/Portfile?order=name

Not much we can do here other than suggest use of gcc?

Contributor

jacknagel commented Mar 16, 2013

This should be tested with --env=std also, and possibly from source outside of Homebrew completely, and then reported upstream if it persists.

Contributor

adamv commented May 2, 2013

Tagging with "homebrewed-gcc"; eventually we want to allow use of GCC 4.{6,7,8,whatever} from Homebrew for things that only compile w/ GCC.

Contributor

adamv commented Aug 5, 2013

Builds for me on Lion with:

$ brew --config
HOMEBREW_VERSION: 0.9.4
ORIGIN: git@github.com:adamv/homebrew.git
HEAD: de9ff43b8103e3e19ec13f03e16db19b8761f6f8
HOMEBREW_PREFIX: /Users/vandenbe/brew
HOMEBREW_CELLAR: /Users/vandenbe/brew/Cellar
CPU: quad-core 64-bit sandybridge
OS X: 10.7.5-x86_64
Xcode: 4.6.3
CLT: 4.6.0.0.1.1365549073
LLVM-GCC: build 2336
Clang: 4.2 build 425
X11: 2.6.5 => /usr/X11
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /Users/vandenbe/brew/Cellar/python/2.7.5/bin/python => /Users/vandenbe/brew/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

Can anyone reproduce this with Mountain Lion?

Contributor

adamv commented Aug 5, 2013

Please brew update and try again; we've made many fixes to superenv since this was opened, including fixes to select the proper compiler in various circumstances. If it still happens, provide updated build failure output.

@adamv adamv closed this Aug 5, 2013

@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.