jdx / mise

dev tools, env vars, task runner
https://mise.jdx.dev
MIT License
8.28k stars 219 forks source link

Erlang doesn't install anymore #2176

Open il-santo opened 1 month ago

il-santo commented 1 month ago

The last version I was able to build was 26.2.5.

Now, with version 27.0 (which builds fine, if done without mise), I get the following trace in the logs:

=== Entering application stdlib
make[3]: ingresso nella directory «/home/ivanhoe/.cache/mise/erlang/kerl/builds/27.0/otp_src_27.0/lib/stdlib/src»
make[3]: Nessuna operazione da eseguire per «docs».
make[3]: uscita dalla directory «/home/ivanhoe/.cache/mise/erlang/kerl/builds/27.0/otp_src_27.0/lib/stdlib/src»
make[3]: ingresso nella directory «/home/ivanhoe/.cache/mise/erlang/kerl/builds/27.0/otp_src_27.0/lib/stdlib/doc»
make[3]: ***  Nessuna regola per generare l'obiettivo «man», necessario per «docs».  Arresto.
make[3]: uscita dalla directory «/home/ivanhoe/.cache/mise/erlang/kerl/builds/27.0/otp_src_27.0/lib/stdlib/doc»
make[2]: *** [/home/ivanhoe/.cache/mise/erlang/kerl/builds/27.0/otp_src_27.0/make/otp_subdir.mk:29: docs] Error 2
make[2]: uscita dalla directory «/home/ivanhoe/.cache/mise/erlang/kerl/builds/27.0/otp_src_27.0/lib/stdlib»
make[1]: *** [/home/ivanhoe/.cache/mise/erlang/kerl/builds/27.0/otp_src_27.0/make/otp_subdir.mk:29: docs] Error 2
make[1]: uscita dalla directory «/home/ivanhoe/.cache/mise/erlang/kerl/builds/27.0/otp_src_27.0/lib»
make: *** [Makefile:439: docs] Error 2

It happens both with the core plugin and with adfs' one.

I'm on Fedora core 38.

TunkShif commented 1 month ago

I'm having the same problem here. I've checked the erlang build process log and it seems fine. Running the following command ends up errors from mise install script

$ RUST_BACKTRACE=full mise install erlang@26.2.5 --verbose

[ERROR] ~/.local/share/mise/plugins/erlang/bin/install failed
Error: 
   0: ~/.local/share/mise/plugins/erlang/bin/install exited with non-zero status: exit code 1

Location:
   src/plugins/script_manager.rs:178

Version:
   2024.5.21 linux-x64 (ef24c46 2024-05-23)

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  <empty backtrace>

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
TunkShif commented 1 month ago

After switching from asdf plugin to core plugin, now it works

il-santo commented 1 month ago

After switching from asdf plugin to core plugin, now it works

IMHO it was not the same problem.

il-santo commented 1 month ago

I was able to upgrade to 27.0 by unsetting KERL_DOC_TARGETS and KERL_INSTALL_MANPAGES and setting the following in my env variables: KERL_BUILD_DOCS=no

This was the only way to solve the issue.

But I'd like to be able to build erlang with docs again, because it is very useful to have documentation when doing development by using a language server.

vheathen commented 1 month ago

I also can't install OTP27.0 with docs, getting error:

Neither sha1sum nor sha256sum found to verify /Users/name/Library/Caches/mise/erlang/kerl/builds/27.0/otp_src_27.0/bin/ex_doc
Please check manually that the correct ex_doc was downloaded.

Tried different options including local (escript) ex_doc install etc. Nothing works.