Open zacky1972 opened 3 years ago
I also tried to build the source from otp_src_24.0
with the SSL option --with-ssl=/usr/local/opt/openssl@1.1
directly, and I did it.
I guess kerl
and/or asdf-erlang
should not work well.
It the following issue (comment) related to it?
https://github.com/erlang/otp/issues/4821#issuecomment-840154032
same here
$ export KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl)"
$ asdf install erlang 24.0
asdf_24.0 is not a kerl-managed Erlang/OTP installation
The asdf_24.0 build has been deleted
Extracting source code
Building Erlang/OTP 24.0 (asdf_24.0), please wait...
Configure failed.
checking for compiler flags for loadable drivers... -Werror=undef -Werror=implicit -Werror=return-type -Wdeclaration-after-statement -Wall -Wstrict-prototypes -Wmissing-prototypes -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -fno-common -g -O2 -I/usr/local/opt/openssl@1.1/include -fPIC -fno-common
checking for linker for loadable drivers... clang
checking for linker flags for loadable drivers... -m64 -bundle -bundle_loader /Users/sbenitez/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0/otp_src_24.0/bin/x86_64-apple-darwin18.7.0/beam.smp
checking for 'runtime library path' linker flag... not found
checking for multiarch directory... not found
checking size of void *... 8
checking for static zlib... no
checking for OpenSSL header in /usr/local/opt/openssl@1.1... yes
checking for OpenSSL in /usr/local/opt/openssl@1.1... configure: error: neither static nor dynamic crypto library found in /usr/local/opt/openssl@1.1
ERROR: /Users/sbenitez/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0/otp_src_24.0/lib/crypto/configure failed!
Please see /Users/sbenitez/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0/otp_build_24.0.log for full details.
$ echo $KERL_CONFIGURE_OPTIONS
--without-javac --with-ssl=/usr/local/opt/openssl@1.1
Big Sur on M1 can't configure it due to the reason that seems the same to this issue.
For most folks, this is the result of attempting to build with Autoconf > 2.69. A change was made in 2.70 that changes how certain macros work, causing the configure scripts to generate incorrectly.
A workaround if you use homebrew (for now): https://github.com/erlang/otp/issues/4821#issuecomment-840719787
More discussion here: https://github.com/erlang/otp/issues/4821
Did you find this issue is the same to erlang/otp#4821 ?
Did you find this issue is the same to erlang/otp#4821 ?
Yes. The issues are the same.
Issue is still present with OTP-24.0.1 on macOS Mojave.
From a recent reply in the erlang/otp issue thread:
The solution should be to not set any
DED_*
variables on MacOS. It should work out of the box. If it is not you setting the variables, you need to talk to the maintainer of asdf about this.
EDIT: Later:
Looks like kerl is still setting
DED_*
flags for you, as you can still see them in your paste. Since it's kerl setting these, it'll need to be fixed by the kerl maintainer, otherwise you'll have to patch your kerl shell scripts to omit those flags.
and
Until
kerl
stops passing theseDED_*
flags you wont be able to build OTP 24 usingkerl
on MacOS.
I can build 24.0.1 by the following steps:
~/.asdf/plugins/erlang/kerl
according to the comment: https://github.com/erlang/otp/issues/4821#issuecomment-840342780DED_LDFLAGS="-m64 -bundle -bundle_loader ~/.asdf/plugins/erlang/kerl-home/builds/asdf_24.0.1/otp_src_24.0.1/bin/x86_64-apple-darwin19.6.0/beam.smp" asdf install erlang 24.0.1
I tested building OTP 24.0.1 without any patch and flags on Big Sur, but I can build it.
Was the issue fixed? Or it doesn't occur in case of Big Sur.
@zacky1972 Some members on the Elixir forum have also claimed 24.0.1 installs OK for them on Big Sur without patch. Still fails for me on Mojave, though.
@APB9785 the approach suggested by @zacky1972 worked for me in Catalina.
I believe this was resolved by #210.
asdf plugin-update erlang
asdf install erlang 24.0.2
Works for me on Catalina.
Works for me on Catalina.
Does it also work if you're installing 24.0
(asdf install erlang 24.0
)?
Works for me on Catalina.
Does it also work if you're installing
24.0
(asdf install erlang 24.0
)?
Sorry, unhelpfully I updated autoconf between then and now. I'm now on 2.71, but I think I was on 2.69 before. However I just tried, and:
24.0 fails with the same configure error as zacky1972 originally reported (https://github.com/erlang/otp/issues/4821?) 24.0.1 worked.
Hi,
I tried to build by
asdf install erlang 24.0
on macOS Catalina 10.15.7 with OpenSSL 1.1.1k installed by Homebrew, but I met the following error (from the log):The entire log is as follows: