Skip to content

Unable to install OTP 25 on Arch #338

@niklas

Description

@niklas

I tried to install different versions of erlang 25:

asdf install erlang 25.1.2  

But the build fails

make[4]: *** [x86_64-pc-linux-gnu/Makefile:888: obj/x86_64-pc-linux-gnu/opt/jit/dist.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/home/niklas/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1.2/otp_src_25.1.2/erts/emulator'
make[3]: *** [/home/niklas/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1.2/otp_src_25.1.2/make/run_make.mk:35: opt] Error 2
make[3]: Leaving directory '/home/niklas/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1.2/otp_src_25.1.2/erts/emulator'
make[2]: *** [Makefile:45: opt] Error 2
make[2]: Leaving directory '/home/niklas/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1.2/otp_src_25.1.2/erts'
make[1]: *** [Makefile:60: jit] Error 2
make[1]: Leaving directory '/home/niklas/.asdf/plugins/erlang/kerl-home/builds/asdf_25.1.2/otp_src_25.1.2/erts'
make: *** [Makefile:503: emulator] Error 2

Happens with all subversions of OTP 25, but OTP 27 compiles.

I guess the relevant error is:

beam/dist.c: In function ‘erts_internal_dist_spawn_request_4’:
beam/dist.c:5723:15: error: two or more data types in declaration specifiers
 5723 |         Eterm bool = ((monitor_oflags & ERTS_ML_FLG_SPAWN_MONITOR)
      |               ^~~~
beam/dist.c:5723:20: error: expected identifier or ‘(’ before ‘=’ token
 5723 |         Eterm bool = ((monitor_oflags & ERTS_ML_FLG_SPAWN_MONITOR)
      |                    ^
In file included from beam/erl_threads.h:244,
                 from beam/sys.h:539,
                 from beam/dist.c:37:
beam/erl_term.h:496:22: error: expected expression before ‘,’ token
  496 |         (t)[2] = (e2), \
      |                      ^
beam/dist.c:5726:21: note: in expansion of macro ‘TUPLE2’
 5726 |         ok_result = TUPLE2(hp, ref, bool);
      |                     ^~~~~~
beam/erl_term.h:496:22: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  496 |         (t)[2] = (e2), \
      |                      ^
beam/dist.c:5726:21: note: in expansion of macro ‘TUPLE2’
 5726 |         ok_result = TUPLE2(hp, ref, bool);
      |                     ^~~~~~

I tried setting and unsetting flags for wx and javac to no change.

otp_build_25.1.2.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions