Skip to content

Erlexec > 2.0.2 does not play well with nerves systems #197

@SteffenDE

Description

@SteffenDE

Hey there,

I sadly don't have the time to debug this at the moment, I just wanted to report this in case anyone knows an easy fix:

With erlexec 2.0.2 it was very easy to use inside of a nerves system. When building MIX_TARGET=qemu_aarch64 mix firmware one could see

===> Compiling c_src/ei++.cpp
===> Compiling c_src/exec.cpp
===> Compiling c_src/exec_impl.cpp
===> Linking /Users/steffen/oss/nerves_containers/docker_example/_build/qemu_aarch64_dev/lib/erlexec/priv/aarch64-nerves-linux-gnu/exec-port

(it used the correct aarch64-nerves-linux-gnu target).

When using 2.0.3 or later, it crashes with

mkdir -p "/Users/steffen/oss/nerves_containers/docker_example/deps/erlexec/priv/aarch64-apple-darwin24.4.0/"
/Users/steffen/.nerves/artifacts/nerves_toolchain_aarch64_nerves_linux_gnu-darwin_arm-13.2.0/bin/aarch64-nerves-linux-gnu-g++ ei++.o exec_impl.o exec.o --sysroot=/Users/steffen/.nerves/artifacts/nerves_containers_qemu_aarch64-portable-0.1.1/staging -flat_namespace -undefined suppress  -L/Users/steffen/.nerves/artifacts/nerves_containers_qemu_aarch64-portable-0.1.1/staging/usr/lib/erlang/lib/erl_interface-5.5.2/lib -lei -lei -o /Users/steffen/oss/nerves_containers/docker_example/deps/erlexec/priv/aarch64-apple-darwin24.4.0/exec-port
aarch64-nerves-linux-gnu-g++: error: unrecognized command-line option '-flat_namespace'
make: *** [/Users/steffen/oss/nerves_containers/docker_example/deps/erlexec/priv/aarch64-apple-darwin24.4.0/exec-port] Error 1
===> Hook for compile failed!

(it also includes aarch64-apple-darwin24.4.0 which may indicate that it tries to use the wrong target?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions