erlang-r16 failed to build on 10.8.4 #142

Closed
justinweiss opened this Issue Jun 7, 2013 · 14 comments

Projects

None yet

8 participants

@justinweiss

I'm having trouble building erlang-r16:

erl -noshell -noinput -run prepare_templates gen_asn1ct_rtt \
           asn1rtt_check.beam asn1rtt_ext.beam asn1rtt_per_common.beam asn1rtt_real_common.beam asn1rtt_ber.beam asn1rtt_per.beam asn1rtt_uper.beam >asn1ct_rtt.erl
Running Erlang
Running Erlang
erlc -W  +debug_info -I/private/tmp/erlang-r16-Qn0J/otp-OTP_R16B/lib/stdlib -Werror -o../ebin asn1ct_rtt.erl
Running Erlang
asn1ct_rtt.erl:1: syntax error before: Running
asn1ct_rtt.erl:14: no module definition
make[2]: *** [../ebin/asn1ct_rtt.beam] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [opt] Error 2
make: *** [secondary_bootstrap_build] Error 2

Gist: https://gist.github.com/justinweiss/6a20e9a292d501fc11d8

@artisonian

I'm also having trouble building Erlang on the new Macbook Air. ~/Library/Logs/Homebrew/erlang-r16/config.log shows --with-gcc is being ignored.

@artisonian

After a bit of digging, I was able to build from source:

CC=gcc-4.2 MAKEFLAGS='-j 3' ./configure \
--prefix=/usr/local/Cellar/erlang/R16B --disable-hipe --enable-kernel-poll \
--enable-threads --enable-smp-support \
--enable-darwin-64bit && make && make install && brew link erlang
@adamv adamv referenced this issue in Homebrew/legacy-homebrew Jul 3, 2013
Closed

erlang-r16 failed to build on 10.8.4 #20823

@mistydemeo
Contributor

@artisonian Can I see your brew --config, please?

@justinweiss

I was able to get around this by reverting to Homebrew/legacy-homebrew@f0f9ebe#Library/Formula/erlang.rb and installing from the bottle.

@artisonian

@mistydemeo

HOMEBREW_VERSION: 0.9.4
ORIGIN: https://github.com/mxcl/homebrew
HEAD: 6aa54f42d10358544b48c9883c165703eb537be7
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit haswell
OS X: 10.8.4-x86_64
Xcode: 4.6.3
CLT: 4.6.0.0.1.1365549073
GCC-4.2: build 5666
LLVM-GCC: build 2336
Clang: 4.2 build 425
X11: N/A
System Ruby: 1.8.7-358
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.5/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /Users/leroy/.rbenv/shims/ruby

I'm using the new Macbook Air (1.3GHz i5) which should be reporting as dual-core haswell if I'm correct about the new chip.

@mikeclymer

@artisonian I was able to get it installed with homebrew, on a new Macbook Air, by forcing the use of gcc.

brew install --use-gcc -v erlang-r16

@artisonian

@mikeclymer You're right. It works properly with --use-gcc (I mistakenly used --with-gcc before).

@manphiz
Contributor
manphiz commented Aug 14, 2013

@HusseinMorsy If you are using Lion or Mountain Lion, gcc-4.2 is not shipped with XCode anymore. To install it from homebrew, you need to brew tap homebrew/dupes and brew install apple-gcc42

@HusseinMorsy

@manphiz thanks. Yes you are right. Now it is working. Sorry I deleted my privious message: "gcc-4.2 not found!".

@HusseinMorsy

I could also install erlang without gcc with the brew formular from https://gist.github.com/AlexanderEkdahl/6126022/raw/erlang.rb

@mistydemeo
Contributor

That formula is installing an older version of erlang, R16B instead of R16B01.

@HusseinMorsy

@mistydemeo thanks for the hint.Ok. I will use the "official way" with brew install --use-gcc -v erlang-r16

@kuno
kuno commented Sep 3, 2013

Before you that, you need install gcc 4.2

brew tap homebrew/dupes
brew install apple-gcc42
@jacknagel
Contributor

Closing since R16 is in core now.

@jacknagel jacknagel closed this Nov 28, 2013
@homebrew-version-migration-bot homebrew-version-migration-bot added a commit to HaraldNordgren/homebrew-versions-reference that referenced this issue Dec 3, 2016
@homebrew-version-migration-bot homebrew-version-migration-bot Migrated fc16962: 'autoconf213: remove keg-only limitation
Don't make autoconf213 keg only. Since it's being built with a version
suffix as autoconf213, there shouldn't be any conflicts.

Closes #142.

[jn: remove unnecessary gawk dep, style things]

Signed-off-by: Jack Nagel <jacknagel@gmail.com>'
5c3f1cc
@HaraldNordgren HaraldNordgren pushed a commit to HaraldNordgren/homebrew-versions-reference that referenced this issue Dec 3, 2016
@homebrew-version-migration-bot homebrew-version-migration-bot Migrated fc16962: 'autoconf213: remove keg-only limitation
Don't make autoconf213 keg only. Since it's being built with a version
suffix as autoconf213, there shouldn't be any conflicts.

Closes #142.

[jn: remove unnecessary gawk dep, style things]

Signed-off-by: Jack Nagel <jacknagel@gmail.com>'
463ab0a
@homebrew-version-migration-bot homebrew-version-migration-bot added a commit to HaraldNordgren/homebrew-versions-reference that referenced this issue Dec 3, 2016
@homebrew-version-migration-bot homebrew-version-migration-bot Migrated fc16962: 'autoconf213: remove keg-only limitation
Don't make autoconf213 keg only. Since it's being built with a version
suffix as autoconf213, there shouldn't be any conflicts.

Closes #142.

[jn: remove unnecessary gawk dep, style things]

Signed-off-by: Jack Nagel <jacknagel@gmail.com>'
107a89d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment