Closed melonedo closed 2 years ago
This doesn't seem like a problem with setup-julia
but rather with the GitHub Actions environment itself, since Julia seems to be installed just fine (otherwise it wouldn't even run the tests). It's probably better to ask on Zulip, Slack or Discourse. Feel free to reopen the issue if you think it's a bug with setup-julia
but it doesn't look like one to me.
I don't know anything about cmake or gcc either, my best guess is that there might be a misunderstanding about the x86
flag. Setting the x86
architecture input in setup-julia
installs Julia's 32-bit binaries. However, the architecture of the GitHub Actions runner/environment itself is x64.
Describe the bug The simple
cmake -B build && cmake --build build
method can not compile binary for native use. if specify-m32
flag, gcc can not compile a simple program; if we specify-mnative
, the binary can not be used because "wrong ELF class: ELFCLASS64".To Reproduce This PR contains scripts to build such a binary (and fails).
Specifically, the build command: https://github.com/JuliaInterop/Clang.jl/blob/b76e9ae49b5ccb0316f9d1d61ece5a3ee545b258/test/test_bitfield.jl#L7-L25
I do not know how to put that into a workflow file however.
Expected behavior Like any other platforms, compile native binary for testing.
Screenshots/Build logs with
-m32
:with
-mnative
: