Repository navigation
Closed
Description
note: this is different from the SSL issues noted in #105
Took me a while to track it down but I think this might be an upstream issue to do with version identification that is already fixed in kerl and that could hopefully be solved by updating the kerl version used.
See the kerl PR here: kerl/kerl#324
2 additional points...
- I was hoping there would be a way to set a custom
kerlversion using an env var so I could test the build before opening this issue but it looks like the version is hardcoded and validated here - It looks like there is a new
kerlrelease1.8.6see here But it doesn't look like it's been tagged in git as previous versions were so thehttps://raw.githubusercontent.com/kerl/kerl/1.8.6/kerlisn't working like it does for 1.8.5.
In case it helps or I have identified the issue incorrectly...
config
KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=/usr/local/Cellar/openssl@1.1/1.1.1d"
asdf install erlang 21.3.8
Downloading OTP-21.3.8.tar.gz to /Users/andy/.asdf/plugins/erlang/kerl-home/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 122 0 122 0 0 451 0 --:--:-- --:--:-- --:--:-- 451
100 51.5M 0 51.5M 0 0 8641k 0 --:--:-- 0:00:06 --:--:-- 11.3M
Extracting source code
Building Erlang/OTP 21.3.8 (asdf_21.3.8), please wait...
APPLICATIONS DISABLED (See: /Users/andy/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8/otp_build_21.3.8.log)
* jinterface : Java compiler disabled by user
DOCUMENTATION INFORMATION (See: /Users/andy/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8/otp_build_21.3.8.log)
* documentation :
* fop is missing.
* Using fakefop to generate placeholder PDF files.
Build failed.
MAKE emulator
MAKE opt
GEN x86_64-apple-darwin19.0.0/gen_git_version.mk
PROFILE beam.prof.smp
/bin/sh: line 1: 32416 Segmentation fault: 11 LLVM_PROFILE_FILE="obj/x86_64-apple-darwin19.0.0/opt/smp/erlc-%m.profraw" ERL_FLAGS="-emu_type prof +S 1" erlc -W -DPGO -o obj/x86_64-apple-darwin19.0.0/opt/smp test/estone_SUITE.erl > obj/x86_64-apple-darwin19.0.0/opt/smp/PROFILE_LOG
make[4]: *** [obj/x86_64-apple-darwin19.0.0/opt/smp/PROFILE] Error 139
make[3]: *** [opt] Error 2
make[2]: *** [opt] Error 2
make[1]: *** [smp] Error 2
make: *** [emulator] Error 2
Please see /Users/andy/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8/otp_build_21.3.8.log for full details.
asdf install erlang 22.1.1
Downloading kerl...
Downloading OTP-22.1.1.tar.gz to /Users/andy/.asdf/plugins/erlang/kerl-home/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 122 0 122 0 0 437 0 --:--:-- --:--:-- --:--:-- 437
100 52.4M 0 52.4M 0 0 8495k 0 --:--:-- 0:00:06 --:--:-- 10.5M
Extracting source code
Building Erlang/OTP 22.1.1 (asdf_22.1.1), please wait...
APPLICATIONS DISABLED (See: /Users/andy/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.1/otp_build_22.1.1.log)
* jinterface : Java compiler disabled by user
DOCUMENTATION INFORMATION (See: /Users/andy/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.1/otp_build_22.1.1.log)
* documentation :
* fop is missing.
* Using fakefop to generate placeholder PDF files.
Build failed.
make[3]: *** [../ebin/hipe_icode2rtl.beam] Error 139
/bin/sh: line 1: 99049 Segmentation fault: 11 erlc -W +debug_info -DUSE_ESOCK=true +inline +warn_unused_import +warn_export_vars -Werror -o../ebin hipe_tagscheme.erl
make[3]: *** [../ebin/hipe_tagscheme.beam] Error 139
/bin/sh: line 1: 99070 Segmentation fault: 11 erlc -W +debug_info -DUSE_ESOCK=true +inline +warn_unused_import +warn_export_vars -Werror -o../ebin hipe_rtl_cfg.erl
make[3]: *** [../ebin/hipe_rtl_cfg.beam] Error 139
/bin/sh: line 1: 99047 Segmentation fault: 11 erlc -W +debug_info -DUSE_ESOCK=true +inline +warn_unused_import +warn_export_vars -Werror -o../ebin hipe_rtl_arch.erl
make[3]: *** [../ebin/hipe_rtl_arch.beam] Error 139
make[2]: *** [opt] Error 2
make[1]: *** [opt] Error 2
make: *** [secondary_bootstrap_build] Error 2
Please see /Users/andy/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.1/otp_build_22.1.1.log for full details.
Reacted by Gabriel Rinaldi, Sora Morimoto, Bertrand Dubaut, George Bezerra, Ricardo Alberto Harari, Riccardo Persiani, Salimane Adjao Moustapha, Cristian Rengifo, Daniel Lizik, Krutov Alexander and 10 more
Metadata
Metadata
Assignees
Labels
No labels
Activity
andykent commentedon Oct 5, 2019
Now this is fixed in kerl maybe we can bump the version here?
I can make a PR a bit later today if you are happy with that @Stratus3D ? Unless of course you are already on it?
Stratus3D commentedon Oct 5, 2019
asdf-erlang has been updated to use kerl version 1.8.6. Can you try updating asdf-erlang and see if that fixes the problem?
asdf plugin-update erlangshould do the trick.andykent commentedon Oct 5, 2019
Thanks for the fast turn around. Much appreciated.
I just tried updating (and also removing and re-adding the plugin) I can report...
KERL_CONFIGURE_OPTIONS="--without-javac"set I still get the Java popup so I think maybeKERL_CONFIGURE_OPTIONSis being ignored, might be a1.8.6regression but not 100%.I've attached the output log from both
22.1.1and21.3.822.1.1
otp_build_22.1.1.log
21.3.8
otp_build_21.3.8.log
amadeu01 commentedon Oct 5, 2019
Same problem here.
gabrielrinaldi commentedon Oct 6, 2019
Same here, the auto-detection of the brew installed version of openssl also works for me, but different than @andykent
--without-javacis working for me.asdf-erlang sha:
274e4154fed0674140efa6f4c4ad7a9be0b63291asdf version:
v0.7.4Here is how I am trying to install it:
KERL_CONFIGURE_OPTIONS="--without-javac" asdf install erlang 22.1.1Produces the following output:
otp_build_22.1.1.log
jadeallenx commentedon Oct 7, 2019
I don't know why HIPE is failing to build but I do not it's not going to be fully supported by upstream in OTP 22: http://erlang.org/download/otp_src_22.0.readme
As far as the javac pop-up - that is provoked by autoconf not kerl. As far as I am aware, there is no way to disable probing for javac no matter what OTP build flags are passed through.
andykent commentedon Oct 7, 2019
I tried running with
--without-hipeflag set but it just bails out on yecc next.Stratus3D commentedon Oct 7, 2019
@andykent can you look at
/Users/andy/.asdf/plugins/erlang/kerl-home/builds/asdf_22.1.1/otp_build_22.1.1.logand share any portions you think are relevant to this problem?andykent commentedon Oct 7, 2019
OK so in the interest of completeness. Here's 3 complete logs...
--without-javacchokes on hipe - without-javac.log--without-javac --without-hipechokes on yecc - without-hipe.log--without-javac --without-hipe --without-parsetoolschokes on asn1? - without-hipe-without-parsetools.logI'm probably not the best person to make a call on what the relevant part of the log is (sorry). But they do all seem to blow up with some variation of
garazdawi commentedon Oct 8, 2019
It is not HiPE that fails, it is erlc that segfaults. HiPE just happens to be the first application to be compiled.
garazdawi commentedon Oct 8, 2019
I don't have access to that OS X version, could someone please try to compile while setting:
./configure --disable-pgoIf that still does not it would be great to try to compile with a debug compiled beam. So after that build fails to this:
dimitarvp commentedon Oct 8, 2019
@garazdawi Is this to be ran from a freshly cloned
erlang/otprepo? Because I am getting this:And I don't know what to pass to
autoconforautomakeif they are to be ran before./configure.Can you post more steps on how to attempt compilation on macOS Catalina? I am willing to help when I get those.
garazdawi commentedon Oct 8, 2019
No, in a repo that already had failed to build. In a clean repo do this:
benoitc commentedon Oct 8, 2019
@garazdawi do you want the full log or anything else?
garazdawi commentedon Oct 8, 2019
@benoitc Whatever is printed to stdout to start with :)
I wonder what the OS X people broke/changed this time...
45 remaining items
miguelcoba commentedon Nov 25, 2019
@garazdawi thanks for the info, I didn't know. I learned something new. I will leave them on the CFLAGS then.
r-guimaraes commentedon Nov 25, 2019
@miguelcoba @garazdawi very good to know. thank you!
namjitharavind commentedon Dec 5, 2019
I have intalled OTP-22.1.8 in mac os catilina 10.15.1 by doing following
brew install autoconf automake libtool openssl@1.1 wxmac
brew install wxwidgets
brew install unixodbc
brew install fop
and as per above comments i have applied the below commands
export KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl)"
export CFLAGS="-O2 -g -fno-stack-check"
but it won't work because java compiler is disabled by above command, So i put back by following command.
export KERL_CONFIGURE_OPTIONS=" --with-ssl=$(brew --prefix openssl)"
Now you can run your build by following commands
kerl build git https://github.com/erlang/otp.git OTP-22.1.8 OTP-22.1.8
kerl install OTP-22.1.8 /Users/namjitharavind/.kerl/erlangs/OTP-22.1.8
. /Users/namjitharavind/.kerl/erlangs/OTP-22.1.8/activate
Change your home directory as yours.
kolosy commentedon Jan 2, 2020
I'm having a similar issue, and though the explicit failure isn't a segfault, it's a memory issue of some sort and feels related. Feel free to tell me to open a separate issue if need be.
22.0.7 installs fine, with no extra config params needed. 20.1 chokes. I've tried the settings above, and it's always a similar failure. What's interesting is that the message varies slightly failure to failure -- the error is the same, but the text gets mangled. Here's another example:
The machine itself is a fresh install, fwiw.
I've verified that I'm running the latest versions of asdf, the erlang plugin (and by extension -- kerl)
hexchung commentedon Jan 27, 2020
@kolosy did you find a solution to this? having the exact same problem. tried the flags and env vars in above comments, but still having no luck. trying to install erlang 20.3.8
kolosy commentedon Jan 27, 2020
@hexchung haven't tried again since posting. resorted to installing erlang via homebrew and symlinking into the asdf directories. it's ugly, but it works.
rwx222 commentedon Feb 12, 2020
This worked for me: https://dev.to/drebits/how-to-install-erlang-on-macos-with-asdf-3p1c
hexchung commentedon Feb 12, 2020
@drebits that was my solution as well. the key for me was the
--disable hipeflag.Stratus3D commentedon Feb 18, 2020
Closing since this is not an issue with asdf-erlang.
abdul-hamid-achik commentedon Oct 5, 2020
Anyone knows why would i get this error?
Stratus3D commentedon Oct 6, 2020
@sicksid no idea. Did you follow the steps in the readme for installing Erlang on OSX? Do you have Xcode installed?
abdul-hamid-achik commentedon Oct 6, 2020
yes @Stratus3D , i created an issue here just in case explaining the situation
#167
ospaarmann commentedon Nov 26, 2020
@Stratus3D this did the trick for me. Thanks!
asdf plugin-update erlangasdf install erlang 22.3.4.12rickard-green commentedon Mar 26, 2022
This should be fixed by erlang/otp#5825 which will be released in a patch soon