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

erlang R14B does not install #2713

Closed
alexkwolfe opened this issue Oct 5, 2010 · 7 comments
Closed

erlang R14B does not install #2713

alexkwolfe opened this issue Oct 5, 2010 · 7 comments

Comments

@alexkwolfe
Copy link

Erlang R14B does not install on my machine, while it works fine on those of my coworkers. I'm not sure why. It fails here:

cd lib && \
      ERL_TOP=/private/tmp/homebrew-erlang-R14B-bSHe PATH=/private/tmp/homebrew-erlang-R14B-bSHe/bootstrap/bin:${PATH} \
        make opt SECONDARY_BOOTSTRAP=true
=== Entering application hipe
(cd ../main && make hipe.hrl)
sed -e "s;%VSN%;3.7.7;" ../../hipe/main/hipe.hrl.src > ../../hipe/main/hipe.hrl
erlc -W  +debug_info +inline -o../ebin hipe_rtl.erl
(no error logger present) error: "Error in process <0.1.0> with exit value: {{badfun,[<<5 bytes>>,<<48 bytes>>,<<9 bytes>>,<<3 bytes>>,<<2 bytes>>,<<5 bytes>>,<<11 bytes>>,<<2 bytes>>,<<8 bytes>>,<<8 bytes>>,<<5 bytes>>,<<7 bytes>>,<<5 bytes>>,<<11 bytes>>,<<2 bytes>>,<<11 bytes>>,<<15 bytes>>,<<4 bytes>>,<<51 bytes>>,<<5 bytes>>,<<1 byte>>,<<7 bytes>>,<<10 bytes>>,<<7 bytes>>,<<6 bytes>>,<<7 bytes>>,<<7 bytes>>,<<6 bytes>>,<<12 bytes>>]},[{erlang,apply,2}]}\n"
@adamv
Copy link
Contributor

adamv commented Oct 5, 2010

"brew --config".
You owe me donuts if you have Xcode 4 beta installed and your /bin/cc is symlinked to LLVM.

@alexkwolfe
Copy link
Author

Gah. I see this now: http://github.com/mxcl/homebrew/issues/issue/2056. Too bad github didn't tell me about it when i searched for closed "erlang" cases: http://github.com/mxcl/homebrew/issuesearch?state=closed&q=erlang

your donut: http://bit.ly/9GKpgn

@timshadel
Copy link
Contributor

So, I've seen this issue, and #120 and #2056 and none of them gives a series of instructions that actually fixes the issue. Can anybody help out here?

I've got to have XCode4 (and since it's gone GM now, most new brew installations will use it soon, I assume), and I'd really like to install erlang, and recipes like riak require it to be installed via brew (which I'd prefer over manual install).

I've tried the methods of commenting out the following as suggested in 2056:

def install
  ENV.deparallelize
  # fails_with_llvm "See https://github.com/mxcl/homebrew/issues/issue/120", :build => 2326
  ENV.append 'CFLAGS', '-Qunused-arguments'

And then I run the following command line

brew install --use-llvm erlang --disable-hipe -v

And it still fails with the above error, exactly. Any hints? Pretty please? :-)

@adamv
Copy link
Contributor

adamv commented Feb 23, 2011

You need to force the use of "gcc"; the refactor branch has a 'install --use-gcc' switch, but that hasn't been back-ported to master.

@jacortinas
Copy link
Contributor

This issue is still going on, the lastest release of erlang R14B02 is broken with the same error. The biggest issue is that now XCode 4 is the standard and publicly released.

@ivkosh
Copy link
Contributor

ivkosh commented Mar 17, 2011

I successfully compiled erlang R14B02 with Xcode4 with gcc, not gcc-llvm, which is in xcode4 the default. I used --use-gcc option:

brew install --use-gcc -v erlang

@timshadel
Copy link
Contributor

Worked for me after updating homebrew. Thanks! :-)

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
This issue was closed.
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

5 participants