raylib-zig
raylib-zig copied to clipboard
ld.lld error while building examples: archive member is neither ET_REL nor LLVM bitcode
When I run zig build examples with the latest code, I get the following error:
examples
+- zig build-exe texture_outline Debug native failure
error: warning(link): unexpected LLD stderr:
ld.lld: warning: /home/axelmagn/workspace/study/zig/raylib-zig/.zig-cache/o/c05d8ec9725499793bb6fd816ec66b55/libraylib.a: archive member '/lib64/libGLX.so' is neither ET_REL nor LLVM bitcode
ld.lld: warning: /home/axelmagn/workspace/study/zig/raylib-zig/.zig-cache/o/c05d8ec9725499793bb6fd816ec66b55/libraylib.a: archive member '/lib64/libX11.so' is neither ET_REL nor LLVM bitcode
ld.lld: warning: /home/axelmagn/workspace/study/zig/raylib-zig/.zig-cache/o/c05d8ec9725499793bb6fd816ec66b55/libraylib.a: archive member '/lib64/libXcursor.so' is neither ET_REL nor LLVM bitcode
ld.lld: warning: /home/axelmagn/workspace/study/zig/raylib-zig/.zig-cache/o/c05d8ec9725499793bb6fd816ec66b55/libraylib.a: archive member '/lib64/libXext.so' is neither ET_REL nor LLVM bitcode
ld.lld: warning: /home/axelmagn/workspace/study/zig/raylib-zig/.zig-cache/o/c05d8ec9725499793bb6fd816ec66b55/libraylib.a: archive member '/lib64/libXfixes.so' is neither ET_REL nor LLVM bitcode
ld.lld: warning: /home/axelmagn/workspace/study/zig/raylib-zig/.zig-cache/o/c05d8ec9725499793bb6fd816ec66b55/libraylib.a: archive member '/lib64/libXi.so' is neither ET_REL nor LLVM bitcode
ld.lld: warning: /home/axelmagn/workspace/study/zig/raylib-zig/.zig-cache/o/c05d8ec9725499793bb6fd816ec66b55/libraylib.a: archive member '/lib64/libXinerama.so' is neither ET_REL nor LLVM bitcode
ld.lld: warning: /home/axelmagn/workspace/study/zig/raylib-zig/.zig-cache/o/c05d8ec9725499793bb6fd816ec66b55/libraylib.a: archive member '/lib64/libXrandr.so' is neither ET_REL nor LLVM bitcode
ld.lld: warning: /home/axelmagn/workspace/study/zig/raylib-zig/.zig-cache/o/c05d8ec9725499793bb6fd816ec66b55/libraylib.a: archive member '/lib64/libXrender.so' is neither ET_REL nor LLVM bitcode
ld.lld: warning: /home/axelmagn/workspace/study/zig/raylib-zig/.zig-cache/o/c05d8ec9725499793bb6fd816ec66b55/libraylib.a: archive member '/lib64/libX11.so' is neither ET_REL nor LLVM bitcode
ld.lld: warning: /home/axelmagn/workspace/study/zig/raylib-zig/.zig-cache/o/c05d8ec9725499793bb6fd816ec66b55/libraylib.a: archive member '/lib64/libEGL.so' is neither ET_REL nor LLVM bitcode
ld.lld: warning: /home/axelmagn/workspace/study/zig/raylib-zig/.zig-cache/o/c05d8ec9725499793bb6fd816ec66b55/libraylib.a: archive member '/lib64/libwayland-client.so' is neither ET_REL nor LLVM bitcode
ld.lld: warning: /home/axelmagn/workspace/study/zig/raylib-zig/.zig-cache/o/c05d8ec9725499793bb6fd816ec66b55/libraylib.a: archive member '/lib64/libxkbcommon.so' is neither ET_REL nor LLVM bitcode
Things I've tried:
- I tried grepping for references to these object files in the repo, but couldn't find any.
- I looked up the files. They are all symlinks of the pattern
/lib64/libGLX.so -> /lib64/libGLX.so.0 -> /lib64/libGLX.so.0.0.0. - I confirmed that I can still build and run the raylib examples in the C repo, as well as a standalone raylib C project I created.
I am running wayland on EndeavorOS, which is based on Arch Linux.
Unfortunately I'm out of ideas for fixes.