Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aarch64-linux-gnu support #3

Open
pfgithub opened this issue Sep 6, 2024 · 3 comments
Open

aarch64-linux-gnu support #3

pfgithub opened this issue Sep 6, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@pfgithub
Copy link

pfgithub commented Sep 6, 2024

Reproduction: On an aarch64-linux-gnu machine, clone zig-gamedev and run zig build gui_test_wgpu, or on another machine run zig build gui_test_wgpu -Dtarget=aarch64-linux-gnu

Some of the errors, when building for native target (zig build gui_test_wgpu)

error: ld.lld: /home/pfg/.cache/zig/p/12205cd13f6849f94ef7688ee88c6b74c7918a5dfb514f8a403fcc2929a0aa342627/libdawn.a(/home/runner/work/mach-gpu-dawn/mach-gpu-dawn/zig-cache/o/2d07bc639da54e61162c5dc2347f6982/type.o) is incompatible with elf64-littleaarch64
error: ld.lld: /home/pfg/.cache/zig/p/12205cd13f6849f94ef7688ee88c6b74c7918a5dfb514f8a403fcc2929a0aa342627/libdawn.a(/home/runner/work/mach-gpu-dawn/mach-gpu-dawn/zig-cache/o/20e302dae5f2729b63bc579233d31fa8/module.o) is incompatible with elf64-littleaarch64
error: ld.lld: /home/pfg/.cache/zig/p/12205cd13f6849f94ef7688ee88c6b74c7918a5dfb514f8a403fcc2929a0aa342627/libdawn.a(/home/runner/work/mach-gpu-dawn/mach-gpu-dawn/zig-cache/o/2d5bacf236a8502b4c441fa76bfac557/continue_statement.o) is incompatible with elf64-littleaarch64
error: ld.lld: /home/pfg/.cache/zig/p/12205cd13f6849f94ef7688ee88c6b74c7918a5dfb514f8a403fcc2929a0aa342627/libdawn.a(/home/runner/work/mach-gpu-dawn/mach-gpu-dawn/zig-cache/o/47c67c6aa3786116782278ad96ad4b77/internal_attribute.o) is incompatible with elf64-littleaarch64
error: ld.lld: /home/pfg/.cache/zig/p/12205cd13f6849f94ef7688ee88c6b74c7918a5dfb514f8a403fcc2929a0aa342627/libdawn.a(/home/runner/work/mach-gpu-dawn/mach-gpu-dawn/zig-cache/o/3206bf80fd358e6a292573d552b1bdf3/stride_attribute.o) is incompatible with elf64-littleaarch64

Alternatively, when building with zig build gui_test_wgpu -Dtarget=aarch64-linux-gnu

error: ld.lld: /home/pfg/.cache/zig/p/12205cd13f6849f94ef7688ee88c6b74c7918a5dfb514f8a403fcc2929a0aa342627/libdawn.a(/home/runner/work/mach-gpu-dawn/mach-gpu-dawn/zig-cache/o/85a75da374a17c316c0107677988e869/function.o) is incompatible with aarch64linux
error: ld.lld: /home/pfg/.cache/zig/p/12205cd13f6849f94ef7688ee88c6b74c7918a5dfb514f8a403fcc2929a0aa342627/libdawn.a(/home/runner/work/mach-gpu-dawn/mach-gpu-dawn/zig-cache/o/b782c2827f06e615d50a04e6726ad61d/builder.o) is incompatible with aarch64linux
error: ld.lld: /home/pfg/.cache/zig/p/12205cd13f6849f94ef7688ee88c6b74c7918a5dfb514f8a403fcc2929a0aa342627/libdawn.a(/home/runner/work/mach-gpu-dawn/mach-gpu-dawn/zig-cache/o/d527fbc0ba85ef0fc63d8a5161708253/instruction.o) is incompatible with aarch64linux
error: ld.lld: /home/pfg/.cache/zig/p/12205cd13f6849f94ef7688ee88c6b74c7918a5dfb514f8a403fcc2929a0aa342627/libdawn.a(/home/runner/work/mach-gpu-dawn/mach-gpu-dawn/zig-cache/o/637cacb19b9660adcb609478241f70eb/operand.o) is incompatible with aarch64linux
error: ld.lld: /home/pfg/.cache/zig/p/12205cd13f6849f94ef7688ee88c6b74c7918a5dfb514f8a403fcc2929a0aa342627/libdawn.a(/home/runner/work/mach-gpu-dawn/mach-gpu-dawn/zig-cache/o/9fdc09b4cce8852c606ee506104c1725/binary_writer.o) is incompatible with aarch64linux
error: ld.lld: /home/pfg/.cache/zig/p/12205cd13f6849f94ef7688ee88c6b74c7918a5dfb514f8a403fcc2929a0aa342627/libdawn.a(/home/runner/work/mach-gpu-dawn/mach-gpu-dawn/zig-cache/o/1483fa6b2cd74427a8f7951e0d9dc136/token.o) is incompatible with aarch64linux
error: ld.lld: /home/pfg/.cache/zig/p/12205cd13f6849f94ef7688ee88c6b74c7918a5dfb514f8a403fcc2929a0aa342627/libdawn.a(/home/runner/work/mach-gpu-dawn/mach-gpu-dawn/zig-cache/o/93ed71fb4868dcd884ee3af03b386526/classify_template_args.o) is incompatible with aarch64linux

I'm not sure what target the archive was built for, but it doesn't seem to be aarch64-linux-gnu

@hazeycode
Copy link
Member

Sorry but we do not currently support linux on aarch64.

@hazeycode hazeycode added the enhancement New feature or request label Sep 6, 2024
@pfgithub
Copy link
Author

pfgithub commented Sep 7, 2024

Why does https://github.com/michal-z/webgpu_dawn-aarch64-linux-gnu exist but contain libdawn.a full of x86_64 .o files?

...
vertex_pulling.o:                            ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
VertexFormat.o:                              ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
void.o:                                      ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
VulkanBackend.o:                             ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
VulkanError.o:                               ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
VulkanExtensions.o:                          ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
VulkanFunctions.o:                           ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
VulkanInfo.o:                                ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
waiter.o:                                    ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped

@hazeycode
Copy link
Member

hazeycode commented Sep 7, 2024

I guess it was a mistake. I don't think anyone has actually used it.

I completely overlooked what looks like some effort to support aarch64_linux_gnu. Maybe it will just work if we compile a binary for aarch64 and put it there.

@hazeycode hazeycode transferred this issue from zig-gamedev/zig-gamedev Nov 5, 2024
@hazeycode hazeycode changed the title Can't use zgpu on aarch64-linux-gnu aarch64-linux-gnu support Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants