andrewrk / zig-window

window client library
117 stars 13 forks source link

Fails on NixOS with AMD Ryzen #10

Open sridher opened 3 years ago

sridher commented 3 years ago
OS: NixOS 20.09 (Nightingale) x86_64
CPU: AMD Ryzen 3 2200U with Radeon Vega Mobile Gfx (4) @ 2.500GHz
GPU: AMD ATI Radeon Vega Series / Radeon Vega Mobile Series

❯ git pull zig-window on  master via ↯ v0.7.0+3599fb9bf ❯ rm -rf zig-cache

zig-window on  master via ↯ v0.7.0+3599fb9bf ❯ zig build -Dtarget=x86_64-linux Code Generation [1585/2067] std.io.writer.Writer(std.fs.file.File,std.os.WriteEr..Code Generation [318/1042] std.hash_map.HashMapUnmanaged(usize,std.debug.Module..Code Generation [666/1042] std.hash_map.HashMapUnmanaged([:0]const u8,void,hash.. zig-window on  master via ↯ v0.7.0+3599fb9bf took 19s ❯ patchelf --remove-needed libdummy.so.0 zig-cache/bin/static-window

zig-window on  master via ↯ v0.7.0+3599fb9bf

❯ ./zig-cache/bin/static-window

fish: “./zig-cache/bin/static-window” terminated by signal SIGSEGV (Address boundary error)

zig-window on  master via ↯ v0.7.0+3599fb9bf

❯ ~/Downloads/static-window9

debug: detecting whether we are running in the dynamic linker
debug: we're not. detecting the dynamic linker path
debug: prepare to execve reload
debug: dyld_path=/nix/store/33idnvrkvfgd5lsx2pwgwwi955adl6sk-glibc-2.31/lib/ld-linux-x86-64.so.2
debug: setting environment variable 'LD_PRELOAD=libdl.so.2 libpthread.so.0'
debug: detecting whether we are running in the dynamic linker
debug: got dlopen. detect libc
debug: initialize vulkan
debug: vulkan initialized, dlopening xcb
debug: connecting to X11
debug: opening window
debug: main loop