[erlang-questions] R16B os x compile issues

Björn-Egil Dahlberg wallentin.dahlberg@REDACTED
Sat Mar 2 14:58:17 CET 2013


2013/3/2 Björn-Egil Dahlberg <wallentin.dahlberg@REDACTED>

>
>
> 2013/3/2 Max Lapshin <max.lapshin@REDACTED>
>
>> ./configure --prefix=/usr/local/Cellar/erlang/R16B --without-javac
>> --enable-smp-support --enable-halfword-emulator  --enable-threads
>> --enable-darwin-64bit   --enable-m64-build --enable-wx
>>
>> gcc  -mdynamic-no-pic -Werror=return-type  -m64 -m64 -g  -O3
>> -fomit-frame-pointer
>> -I/Users/max/Sites/otp_src_R16B/erts/x86_64-apple-darwin11.4.2
>> -D_XOPEN_SOURCE -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes
>> -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS
>> -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS
>> -Ix86_64-apple-darwin11.4.2/opt/smp -Ibeam -Isys/unix -Isys/common
>> -Ix86_64-apple-darwin11.4.2 -Izlib  -Ipcre -Ihipe -I../include
>> -I../include/x86_64-apple-darwin11.4.2 -I../include/internal
>> -I../include/internal/x86_64-apple-darwin11.4.2 -c sys/common/erl_mseg.c -o
>> obj/x86_64-apple-darwin11.4.2/opt/smp/erl_mseg.o
>> sys/common/erl_mseg.c: In function ‘mseg_realloc’:
>> sys/common/erl_mseg.c:1031: warning: passing argument 5 of ‘mseg_dealloc’
>> makes integer from pointer without a cast
>> sys/common/erl_mseg.c:1031: error: too few arguments to function
>> ‘mseg_dealloc’
>> make[3]: *** [obj/x86_64-apple-darwin11.4.2/opt/smp/erl_mseg.o] Error 1
>> make[2]: *** [opt] Error 2
>>
>>
> Wow - That's embarrassing. It is missing the 'flags' option as fifth
> argument, an easy fix.
>
> However, In your case, Mac OSX will not run halfword at all since brk/sbrk
> implementation on darwin is not actually functioning.
>

I know it says that you can run halfword on OSX in the comments of erl_mseg
but that cake is also a complete lie.



>
> // Björn-Egil
>
>
>
>
>>
>> What should I do to collect more information or fix it?
>>
>> _______________________________________________
>> 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/20130302/64557a96/attachment.htm>


More information about the erlang-questions mailing list