tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Fix Erlang on OSX




Hi,

Trying to get RabbitMQ installed on OSX and the first hurdle is that Erlang does not appear to build.

The build fails with errors on install, due to the strip command generating errors about symbols that can not be stripped as in the example error below. I edited the build scripts so that the specific file does not get strip run, and the build fails with the same error on another file and so on...

Iv'e attached a patch which fixes the issue (Setting INSTALL_UNSTRIPPED). With this Erlang builds and installs without error.

Is this the correct fix though ? arguably it looks like on OSX strip by default attempts to strip too many symbols, should binaries be stripped at all on install by default ?

Iv'e also attached a second patch that enables kernel poll on OSX.

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: symbols referenced by relocation entries that can't be stripped in: /Users/steven/work/git/pkgsrc/lang/erlang/work/.destdir/opt/pkg/lib/erlang/lib/runtime_tools-1.8.16/priv/obj/dyntrace.o
_erl_nif_user_trace_n
_erl_nif_user_trace_i4s4
_erl_nif_user_trace_s1
_atom_true
_enif_make_atom
L_.str7
L_.str6
L_.str5
L_.str4
L_.str3
L_.str2
_nif_init.entry
_user_trace_n
L_.str11
_user_trace_i4s4
L_.str10
_user_trace_s1
L_.str9
_available
L_.str8
L_.str1
_load
_nif_funcs
L_.str
install: child process failed: xcrun strip - /Users/steven/work/git/pkgsrc/lang/erlang/work/.destdir/opt/pkg/lib/erlang/lib/runtime_tools-1.8.16/priv/obj/dyntrace.o


Cheers
Steve.

Attachment: 0001-Do-not-strip-binaries.patch
Description: Binary data

Attachment: 0002-Enable-kernel-polling-on-Darwin.patch
Description: Binary data



Home | Main Index | Thread Index | Old Index