[erlang-questions] Compiling R16B on Mac OS X Mountain Lion
Patrik Nyblom
pan@REDACTED
Wed Mar 13 12:10:59 CET 2013
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
More information about the erlang-questions
mailing list