rabbitmq / erlang-rpm

Latest Erlang/OTP releases packaged as a zero dependency RPM, just enough for running RabbitMQ
https://rabbitmq.com/install-rpm.html
Other
545 stars 117 forks source link

Erlang Does Not Build on ARM Based Amazon Linux 2023 #114

Closed CSimpiFoN closed 1 year ago

CSimpiFoN commented 1 year ago

Describe the bug

When I try to build on ARM based Amazon Linux 2, the following error is dropped: checking for systemd/sd-daemon.h... no configure: error: in /tmp/erlang-rpm-25.3/BUILD/otp-OTP-25.3/erts': configure: error: --enable-systemd was given, but test for systemd failed See config.log' for more details ERROR: /tmp/erlang-rpm-25.3/BUILD/otp-OTP-25.3/erts/configure failed! ./configure: line 370: kill: (-39330) - No such process D: waitpid(39138) rc 39138 status 100 D: /bin/sh failed: 100 error: Bad exit status from /tmp/erlang-rpm-25.3/tmp/rpm-tmp.RtzobR (%build)

RPM build errors: line 54: It's not recommended to have unversioned Obsoletes: Obsoletes: erlang-docbuilder Bad exit status from /tmp/erlang-rpm-25.3/tmp/rpm-tmp.RtzobR (%build) ufdio: 1 reads, 17654 total bytes in 0.000011 secs ufdio: 1 reads, 5707 total bytes in 0.000003 secs ufdio: 1 reads, 17654 total bytes in 0.000002 secs make: *** [Makefile:51: erlang] Error 1

Reproduction steps

  1. Download https://github.com/rabbitmq/erlang-rpm/archive/refs/tags/v25.3.tar.gz
  2. Untar the archive
  3. Change the directory to the unarchived folder
  4. make (as per the README)

Expected behavior

To get Erlang built and ready to be used by RabbitMQ

Additional context

Want to install and use RabbitMQ on ARM based Amazon Linux 2023 server cat /etc/os-release NAME="Amazon Linux" VERSION="2023" ID="amzn" ID_LIKE="fedora" VERSION_ID="2023" PLATFORM_ID="platform:al2023" PRETTY_NAME="Amazon Linux 2023" ANSI_COLOR="0;33" CPE_NAME="cpe:2.3:o:amazon:amazon_linux:2023" HOME_URL="https://aws.amazon.com/linux/" BUG_REPORT_URL="https://github.com/amazonlinux/amazon-linux-2023" SUPPORT_END="2028-03-01"