[erlang-questions] building erlang/otp dev on mac os x?

Michal Niec michal.niec@REDACTED
Fri Sep 2 10:23:34 CEST 2011


You can also download the 64 bit Mac OS X Lion package from Erlang Solutions website: http://www.erlang-solutions.com/section/98/downloads/ . 
It was built using CFLAGS=-O0 ./configure --enable-darwin-64bit. You can also view the OTP test suite results for the package to decide if it will fulfill your requirements. 

Best regards,
Michal Niec

On Sep 2, 2011, at 4:21 AM, Dave Smith wrote:

> LLVM on Lion appears to generate bad code when used with default
> optimizations. Use:
> 
> CFLAGS=-O0 ./configure ....
> 
> Be sure to start from a fresh unpack of OTP source too...
> 
> D.
> 
> On Thu, Sep 1, 2011 at 8:00 PM, Paul Fisher <pfisher@REDACTED> wrote:
>> I get roughly the following for both 32-bit and 64-bit builds on lion.  Has anyone specifically diagnosed the issue building current releases up to, and including the current dev branch, on mac os x?  Is this considered an gcc-llvm or otp issue?
>> 
>> $ ./configure --enable-darwin-64bit --disable-hipe
>> $ make
>> 
>> <…>
>> 
>> === Entering application hipe
>> erlc -W  +debug_info +warn_exported_vars +warn_missing_spec +warn_untyped_record -o../ebin hipe_consttab.erl
>> (no error logger present) error: "Error in process <0.1.0> with exit value: {{badfun,[<<5 bytes>>,<<36 bytes>>,<<9 bytes>>,<<3 bytes>>,<<2 bytes>>,<<5 bytes>>,<<14 bytes>>,<<2 bytes>>,<<8 bytes>>,<<8 bytes>>,<<5 bytes>>,<<7 bytes>>,<<5 bytes>>,<<11 bytes>>,<<2 bytes>>,<<11 bytes>>,<<15 bytes>>,<<4 bytes>>,<<40 bytes>>,<<5 bytes>>,<<1 byte>>,<<7 bytes>>,<<10 bytes>>,<<7 bytes>>,<<18 bytes>>,<<7 bytes>>,<<17 bytes>>,<<7 bytes>>,<<19 bytes>>,<<7 bytes>>,<<7 bytes>>,<<6 bytes>>,<<17 bytes>>]},[{erlang,apply,2}]}\n"
>> ^C
>> 
>> 
>> $ gcc --version
>> i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
>> Copyright (C) 2007 Free Software Foundation, Inc.
>> This is free software; see the source for copying conditions.  There is NO
>> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>> 
>> 
>> --
>> paul
>> 
>> director, platform services
>> alertlogic, inc.
>> 713-484-8383 x2314
>> 
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110902/3df8f513/attachment.htm>


More information about the erlang-questions mailing list