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 https://github.com/asdf-vm/asdf-erlang/issues/116
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
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
Hello!
Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
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 record...
New
Good day to you all.
I have been struggling to get a query involving like and ilike to work.
Can anyone assist me on this, please?
pro...
New
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this
"1000"
What is the ...
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’ve been re-reading swift book again and noticed that multiline strings there don’t have a trailing line break, unlike in elixir
iex(2)...
New
Other popular topics
Manning 2016 Halloween weekend sale via Deal of the Day
Friday, October 28 - Half off all MEAPs - code WM102816LT
Saturday, October 29 ...
New
I would like to know that is there any online source for learning Phoenix Framework for building E-Commerce Store? Any advantage on build...
New
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
Hi all,
Trying to get some more clarity over utc_datetime and naive_datetime for Ecto:
https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
New
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this:
...
New
The Elixir Typespec docs show the following syntax for keyword lists in typespecs:
# ...
| [key: type] # keyword lis...
New
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: )
Hello all, this is ...
New
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New







