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

Dave Smith <>
Fri Sep 2 04:21:50 CEST 2011


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 <> 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
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list