axelson
Scenic Core Team
Unable to install erlang 21.3.8.17 with asdf
I’ve been having issues installing older erlang versions recently and I’m not sure if I’ve broken something in my development environment. I’m trying to install erlang 21.3 with:
asdf install erlang 21.3.8.17
But it is failing with:
Build failed.
make[4]: *** [x86_64-unknown-linux-gnu/Makefile:665: /home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/bin/x86_64-unknown-linux-gnu/erl_call] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/src'
make[3]: *** [Makefile:30: opt] Error 2
make[3]: Leaving directory '/home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/src'
make[2]: *** [/home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/make/otp_subdir.mk:29: opt] Error 2
make[2]: Leaving directory '/home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface'
make[1]: *** [/home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/make/otp_subdir.mk:29: opt] Error 2
make[1]: Leaving directory '/home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib'
make: *** [Makefile:490: libs] Error 2
Looking at the build log it looks like the issue is that ld is failing:
/usr/bin/ld: /home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/obj/x86_64-unknown-linux-gnu/libei.a(eirecv.o):/home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/src/misc/ei_portio.h:50: multiple definition of `ei_default_socket_callbacks'; /home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/obj/x86_64-unknown-linux-gnu/libei.a(ei_connect.o):/home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/src/misc/ei_portio.h:50: first defined here
/usr/bin/ld: /home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/obj/x86_64-unknown-linux-gnu/libei.a(send.o):/home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/src/misc/ei_portio.h:50: multiple definition of `ei_default_socket_callbacks'; /home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/obj/x86_64-unknown-linux-gnu/libei.a(ei_connect.o):/home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/src/misc/ei_portio.h:50: first defined here
/usr/bin/ld: /home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/obj/x86_64-unknown-linux-gnu/libei.a(send_reg.o):/home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/src/misc/ei_portio.h:50: multiple definition of `ei_default_socket_callbacks'; /home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/obj/x86_64-unknown-linux-gnu/libei.a(ei_connect.o):/home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/src/misc/ei_portio.h:50: first defined here
/usr/bin/ld: /home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/obj/x86_64-unknown-linux-gnu/libei.a(epmd_port.o):/home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/src/misc/ei_portio.h:50: multiple definition of `ei_default_socket_callbacks'; /home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/obj/x86_64-unknown-linux-gnu/libei.a(ei_connect.o):/home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/src/misc/ei_portio.h:50: first defined here
/usr/bin/ld: /home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/obj/x86_64-unknown-linux-gnu/libei.a(ei_portio.o):/home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/src/misc/ei_portio.h:50: multiple definition of `ei_default_socket_callbacks'; /home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/obj/x86_64-unknown-linux-gnu/libei.a(ei_connect.o):/home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/src/misc/ei_portio.h:50: first defined here
RANLIB /home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/obj/x86_64-unknown-linux-gnu/liberl_interface.a
collect2: error: ld returned 1 exit status
make[4]: *** [x86_64-unknown-linux-gnu/Makefile:665: /home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/bin/x86_64-unknown-linux-gnu/erl_call] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/home/jason/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_src_21.3.8.17/lib/erl_interface/src'
make[3]: *** [Makefile:30: opt] Error 2
Are other people getting similar errors? Does this point to an issue with my environment somehow?
Marked As Solved
axelson
Scenic Core Team
Okay, for me on Arch Linux after installing the gcc-9 package this command worked:
env CC=gcc-9 asdf install erlang 21.3.8.17
2
Also Liked
jawakarD
I tried the same command asdf install erlang 21.3.8.17
with some relevent envs from Build Fails on macOS 10.15 Catalina · Issue #116 · asdf-vm/asdf-erlang · GitHub
export KERL_CONFIGURE_OPTIONS="--without-javac --with-ssl=$(brew --prefix openssl)"
export CFLAGS="-O2 -g -fno-stack-check"
Output
asdf install erlang 21.3.8.17
asdf_21.3.8.17 is not a kerl-managed Erlang/OTP installation
No build named asdf_21.3.8.17
Downloading OTP-21.3.8.17.tar.gz to /Users/jawakar/.asdf/plugins/erlang/kerl-home/archives
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 125 100 125 0 0 132 0 --:--:-- --:--:-- --:--:-- 132
100 51.5M 0 51.5M 0 0 332k 0 --:--:-- 0:02:38 --:--:-- 1049k
Extracting source code
Building Erlang/OTP 21.3.8.17 (asdf_21.3.8.17), please wait...
/Users/jawakar/.asdf/plugins/erlang/kerl: line 661: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild: No such file or directory
APPLICATIONS DISABLED (See: /Users/jawakar/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_build_21.3.8.17.log)
* jinterface : Java compiler disabled by user
DOCUMENTATION INFORMATION (See: /Users/jawakar/.asdf/plugins/erlang/kerl-home/builds/asdf_21.3.8.17/otp_build_21.3.8.17.log)
* documentation :
* fop is missing.
* Using fakefop to generate placeholder PDF files.
Erlang/OTP 21.3.8.17 (asdf_21.3.8.17) has been successfully built
Installing Erlang/OTP 21.3.8.17 (asdf_21.3.8.17) in /Users/jawakar/.asdf/installs/erlang/21.3.8.17...
You can activate this installation running the following command:
. /Users/jawakar/.asdf/installs/erlang/21.3.8.17/activate
Later on, you can leave the installation typing:
kerl_deactivate
Cleaning up compilation products for
Cleaned up compilation products for under /Users/jawakar/.asdf/plugins/erlang/kerl-home/builds
Erlang 21.3.8.17 has been installed. Activate globally with:
asdf global erlang 21.3.8.17
Activate locally in the current folder with:
asdf local erlang 21.3.8.17
Let me know how I can help.
1
Popular in Questions
Hi All,
I set a environment variables in dev.exs , like below code.
when i start server, how can i set the ${enable} value?
thanks.
d...
New
How to bind a phoenix app to a specific ip address?
could not find anything about that, nowhere, unfortunately, but for me this is quite...
New
I will often find my self writing things similar to:
case some_value do
nil -> something()
"" -> something()
_ -> somethi...
New
If I have a post route which an argument:
post /my_post_route/:my_param1, MyController.my_post_handler
How would get the post params ...
New
Hi guys, i’m new in the Elixir world, and i have to say, that i love it!
i’m having some problem to understand anonymous functions with ...
New
Hello everybody,
usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
Hi everyone,
I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
In the Dialyzer docs ( dialyzer — OTP 29.0.2 (dialyzer 6.0.1) ), there is a way to turn off a specific warning for a function:
-dialyzer...
New
Is there a way to rollback a specific migration and only that one (“skipping” all the other ones)?
Would
mix ecto.rollback -v 200809061...
New
Other popular topics
Hi All,
I set a environment variables in dev.exs , like below code.
when i start server, how can i set the ${enable} value?
thanks.
d...
New
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch.
This project took far...
New
Hi guys, i’m new in the Elixir world, and i have to say, that i love it!
i’m having some problem to understand anonymous functions with ...
New
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set?
Thanks.
New
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum.
...
New
Hey,
Just curious what are the main benefits of Elixir compared to Clojure?
When is Elixir more useful than Clojure and vice versa?
Th...
New
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
Hi there,
I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









