note: purpose of this issue is to record status/patches/workarounds (issue will be closed immediately)
| status |
os |
arch |
command |
llvm13-patches |
note |
| ✅ |
netbsd 9.2 |
amd64 |
sudo -E zig build test |
netbsd.zip |
note 1 |
| ✅ |
openbsd 7.0 |
amd64 |
MALLOC_OPTIONS=CFGJ zig build test |
openbsd.zip |
note 2,3,4 |
| ✅ |
dragonfly 6.0 |
x86_64 |
zig build test |
|
|
note 1 (netbsd) workaround file lock limit
- must run as root to overcome per-user file lock limits
note 2 (openbsd) open file limit
- triggered by
zig build-exe hello.zig -target native-linux -lc
- edit /etc/login.conf
- bump per-user open file limit in
default class to:
:openfiles-max=2048:\
:openfiles-cur=2048:\
- logout/login to effect changes
note 3 (openbsd) increase file lock limit
- triggered by
zig build-exe hello.zig -target native-linux -lc
sysctl kern.maxlocksperuid=2048
note 4 (openbsd) workaround use-after-free
- use-after-free is triggered by test
'undefined as field type is rejected' failed: CompilationCrashed
- workaround by just fiddling with malloc options to not do whatever default openbsd behavior is
note: purpose of this issue is to record status/patches/workarounds (issue will be closed immediately)
sudo -E zig build testMALLOC_OPTIONS=CFGJ zig build testzig build testnote 1 (netbsd) workaround file lock limit
note 2 (openbsd) open file limit
zig build-exe hello.zig -target native-linux -lcdefaultclass to:note 3 (openbsd) increase file lock limit
zig build-exe hello.zig -target native-linux -lcnote 4 (openbsd) workaround use-after-free
'undefined as field type is rejected' failed: CompilationCrashed