Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install erlang 21.0 on Arch Linux #318

Open
semanavasco opened this issue Jul 31, 2024 · 9 comments
Open

Unable to install erlang 21.0 on Arch Linux #318

semanavasco opened this issue Jul 31, 2024 · 9 comments

Comments

@semanavasco
Copy link

semanavasco commented Jul 31, 2024

I am unable to install erlang 21.0 on Arch Linux.

Here is my log file :

otp_build_21.0.log

Here is my error message :

Downloading kerl...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 82830  100 82830    0     0  3524k      0 --:--:-- --:--:-- --:--:-- 3676k
ERROR: 'asdf_21.0' is not a kerl-managed Erlang/OTP installation.
Build 'asdf_21.0' has been deleted.
Extracting source code for normal build...
Building (normal) Erlang/OTP 21.0 (asdf_21.0); please wait...
Initializing (build) log file at /home/svasco/.asdf/plugins/erlang/kerl-home/builds/asdf_21.0/otp_build_21.0.log.
automake: error: 'configure.ac' is required
autoconf: error: no input file
APPLICATIONS INFORMATION (See: /home/svasco/.asdf/plugins/erlang/kerl-home/builds/asdf_21.0/otp_build_21.0.log)
 * wx             : Can not link the wx driver, wx will NOT be useable

ERROR: build failed.
 8311 |   branch_chain *bcptr, compile_data *cd, int *lengthptr)
      |                        ~~~~~~~~~~~~~~^~
make[4]: Leaving directory '/home/svasco/.asdf/plugins/erlang/kerl-home/builds/asdf_21.0/otp_src_21.0/erts/emulator'
make[3]: *** [/home/svasco/.asdf/plugins/erlang/kerl-home/builds/asdf_21.0/otp_src_21.0/make/run_make.mk:35: opt] Error 2
make[3]: Leaving directory '/home/svasco/.asdf/plugins/erlang/kerl-home/builds/asdf_21.0/otp_src_21.0/erts/emulator'
make[2]: *** [Makefile:45: opt] Error 2
make[2]: Leaving directory '/home/svasco/.asdf/plugins/erlang/kerl-home/builds/asdf_21.0/otp_src_21.0/erts'
make[1]: *** [Makefile:54: smp] Error 2
make[1]: Leaving directory '/home/svasco/.asdf/plugins/erlang/kerl-home/builds/asdf_21.0/otp_src_21.0/erts'
make: *** [Makefile:470: emulator] Error 2

Please see /home/svasco/.asdf/plugins/erlang/kerl-home/builds/asdf_21.0/otp_build_21.0.log for full details.
Auto cleaning all artifacts except the log file...
(use KERL_AUTOCLEAN=0 to keep build on failure, if desired)
Cleaning up compilation products for 'asdf_21.0' under:
  - /home/svasco/.asdf/plugins/erlang/kerl-home/builds...
  - /home/svasco/.asdf/downloads/erlang/21.0...
... done.

For the record, I have followed the "Before asdf install" until this part : "Older OTP builds may require wxgtk2, in that case install wxgtk2-dev from AUR." because wxgtk2-dev does not exist on the AUR.

Thanks !

@Tyrn
Copy link

Tyrn commented Aug 25, 2024

The same trouble here...

@garazdawi
Copy link

The build.log shows this error:

drivers/common/inet_drv.c:1419:30: error: static declaration ofin6addr_loopbackfollows non-static declaration
 1419 | static const struct in6_addr in6addr_loopback =
      |                              ^~~~~~~~~~~~~~~~

which suggests that the compiler in the system is more stict than what was used when developing Erlang/OTP 21. I suggest using an Erlang version that is still supported (24+), or disable that check in gcc using the relevant CFLAGS.

@garazdawi
Copy link

If you have the time, the kerl maintainers would appriciate help to fix the issue: kerl/kerl#546. kerl is what is used by mise and asdf under the hood to build Erlang.

@warmwaffles
Copy link

warmwaffles commented Oct 20, 2024

I'm getting this for OTP 26 as well.

EDIT I just found a comment I made back in May #286 (comment)

@garazdawi
Copy link

What is the "this" that you are getting?

@warmwaffles
Copy link

I meant to say I was receiving the same issue that #318 (comment) referenced. I resolved this by installing some missing wx components. And then reinstalling OTP 26 with the following exported:

export KERL_CONFIGURE_OPTIONS="--without-javac --with-odbc=/var/lib/pacman/local/unixodbc-$(pacman -Q unixodbc | cut -d' ' -f2)"

Installed just fine.

I can install OTP27 without having to do any exports.

@xeruf
Copy link

xeruf commented Nov 4, 2024

which wx components specifically?

@warmwaffles
Copy link

I installed wxwidgets-common and wxwidgets-gtk3

@xeruf
Copy link

xeruf commented Nov 5, 2024

Already installed, to no avail, same for the flag :c
Stuck with the same error as @garazdawi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants