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

erlang-r16 failed to build on 10.8.4 #142

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

Comments

8 participants
@justinweiss

justinweiss commented Jun 7, 2013

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

This comment has been minimized.

Show comment
Hide comment
@artisonian

artisonian Jul 3, 2013

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 commented Jul 3, 2013

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

This comment has been minimized.

Show comment
Hide comment
@artisonian

artisonian Jul 3, 2013

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

artisonian commented Jul 3, 2013

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
@mistydemeo

This comment has been minimized.

Show comment
Hide comment
@mistydemeo

mistydemeo Jul 4, 2013

Contributor

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

Contributor

mistydemeo commented Jul 4, 2013

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

@justinweiss

This comment has been minimized.

Show comment
Hide comment
@justinweiss

justinweiss Jul 4, 2013

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

justinweiss commented Jul 4, 2013

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

@artisonian

This comment has been minimized.

Show comment
Hide comment
@artisonian

artisonian Jul 4, 2013

@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.

artisonian commented Jul 4, 2013

@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

This comment has been minimized.

Show comment
Hide comment
@mikeclymer

mikeclymer Jul 14, 2013

@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

mikeclymer commented Jul 14, 2013

@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

This comment has been minimized.

Show comment
Hide comment
@artisonian

artisonian Jul 14, 2013

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

artisonian commented Jul 14, 2013

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

@manphiz

This comment has been minimized.

Show comment
Hide comment
@manphiz

manphiz Aug 14, 2013

Contributor

@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

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

This comment has been minimized.

Show comment
Hide comment
@HusseinMorsy

HusseinMorsy Aug 14, 2013

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

HusseinMorsy commented Aug 14, 2013

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

@HusseinMorsy

This comment has been minimized.

Show comment
Hide comment
@HusseinMorsy

HusseinMorsy Aug 14, 2013

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

HusseinMorsy commented Aug 14, 2013

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

@mistydemeo

This comment has been minimized.

Show comment
Hide comment
@mistydemeo

mistydemeo Aug 14, 2013

Contributor

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

Contributor

mistydemeo commented Aug 14, 2013

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

@HusseinMorsy

This comment has been minimized.

Show comment
Hide comment
@HusseinMorsy

HusseinMorsy Aug 14, 2013

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

HusseinMorsy commented Aug 14, 2013

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

@kuno

This comment has been minimized.

Show comment
Hide comment
@kuno

kuno Sep 3, 2013

Before you that, you need install gcc 4.2

brew tap homebrew/dupes
brew install apple-gcc42

kuno commented Sep 3, 2013

Before you that, you need install gcc 4.2

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

This comment has been minimized.

Show comment
Hide comment
@jacknagel

jacknagel Nov 28, 2013

Contributor

Closing since R16 is in core now.

Contributor

jacknagel commented Nov 28, 2013

Closing since R16 is in core now.

@jacknagel jacknagel closed this Nov 28, 2013

minrk pushed a commit to minrk/homebrew-versions that referenced this issue Oct 30, 2014

homebrew-version-migration-bot added a commit to HaraldNordgren/homebrew-versions-reference that referenced this issue Dec 3, 2016

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>'

HaraldNordgren pushed a commit to HaraldNordgren/homebrew-versions-reference that referenced this issue Dec 3, 2016

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>'

homebrew-version-migration-bot added a commit to HaraldNordgren/homebrew-versions-reference that referenced this issue Dec 3, 2016

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>'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.