[erlang-questions] Compiling R16B on Mac OS X Mountain Lion
Rapsey
rapsey@REDACTED
Thu Mar 14 11:11:17 CET 2013
Why mac ports? Homebrew works a lot better and is more actively maintained.
http://mxcl.github.com/homebrew/
Sergej
On Thu, Mar 14, 2013 at 9:52 AM, Carlo Bertoldi
<carlo.bertoldi@REDACTED>wrote:
> Thanks Patrik, unsetting the compiler flags solved my problem :)
> But still, sourcing were compiled with -m32.
> So I switched to gcc-4.5 included in MacPorts, and finally got the
> expected -m64.
>
> Cheers,
> Carlo
>
>
> On 13/03/13 12:10, Patrik Nyblom wrote:
>
>> Hi!
>>
>> You should not need the macports PCRE lib, there's an erlang specific
>> version in the distribution. Remove (unset) LDFLAGS and CPPFLAGS, clean
>> and build again.
>>
>> Also it seems your error does not correspond to your configure flags,
>> the gcc command line includes -m32, but you have specified
>> --enable-darwin-64bit, so it should read gcc -m64. Strange.
>>
>> Try the simplest, use default compiler and no configure flags (and no
>> flags in environment) and then move forward from there.
>>
>> Cheers,
>> /Patrik
>>
>> On 03/11/2013 03:20 PM, Carlo Bertoldi wrote:
>>
>>> Hello everybody,
>>> this is the error I'm having:
>>>
>>> gcc -mdynamic-no-pic -Werror=return-type -m32 -g -O3
>>> -fomit-frame-pointer
>>> -I/Users/carlo/.kerl/builds/**r16b/otp_src_R16B/erts/x86_64-**
>>> apple-darwin12.2.0
>>> -I/opt/local/include -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-darwin12.2.0/**opt/smp -Ibeam -Isys/unix -Isys/common
>>> -Ix86_64-apple-darwin12.2.0 -Izlib -Ipcre -Ihipe -I../include
>>> -I../include/x86_64-apple-**darwin12.2.0 -I../include/internal
>>> -I../include/internal/x86_64-**apple-darwin12.2.0 -c beam/erl_bif_re.c
>>> -o obj/x86_64-apple-darwin12.2.0/**opt/smp/erl_bif_re.o
>>> beam/erl_bif_re.c: In function ‘erts_init_bif_re’:
>>> beam/erl_bif_re.c:68: error: ‘erts_pcre_malloc’ undeclared (first use
>>> in this function)
>>>
>>> Lib PCRE is installed with Mac Ports, and this is the configuration to
>>> include MacPorts libraries.
>>>
>>> export LDFLAGS='-L/opt/local/lib'
>>> export CPPFLAGS='-I/opt/local/**include'
>>> export LD_LIBRARY_PATH=/opt/local/lib
>>> export LD_INCLUDE_PATH=/opt/local/**include
>>>
>>> This is the command I'm using to compile.
>>>
>>> CC=/opt/local/bin/gcc-mp-4.5 CXX=/opt/local/bin/g++-mp-4.5 ./otp_build
>>> autoconf && ./configure --disable-hipe --enable-smp-support
>>> --enable-threads --enable-darwin-64bit --enable-kernel-poll
>>>
>>> Thanks for your time.
>>> Carlo
>>>
>>> ______________________________**_________________
>>> erlang-questions mailing list
>>> erlang-questions@REDACTED
>>> http://erlang.org/mailman/**listinfo/erlang-questions<http://erlang.org/mailman/listinfo/erlang-questions>
>>>
>>
>> ______________________________**_________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/**listinfo/erlang-questions<http://erlang.org/mailman/listinfo/erlang-questions>
>>
>
>
> --
> Ubiquity - A little bit forward
> *Carlo Bertoldi*
> Ubiquity
> Via Teodosio 65 - 20131, Milano
> Fisso: +39 02 288584.36 - Fax: +39 02 2829795
> Email: carlo.bertoldi@REDACTED
> Website: www.ubiquity.it
>
> ______________________________**_________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/**listinfo/erlang-questions<http://erlang.org/mailman/listinfo/erlang-questions>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130314/6612b6cf/attachment.htm>
More information about the erlang-questions
mailing list