[ ] --remove-section/-R, and also multiple instances of it
There is most likely more hiding behind issues mentioned above.
In the meantime zig clang can be used as CC and zig cc can be used as HOSTCC, the biggest issue right now is it the requirement of llvm-objcopy/objcopy:
make CC="zig clang" HOSTCC="zig cc -lc" AR="zig ar" OBJCOPY="llvm-objcopy"
This is a list of missing features required to build linux kernel:
zig cc:
-nostdinc
with--target=x86_64-linux-gnu
is trying to link glibc(this can be workaround by adding -nostdlib)zig objcopy:
--remove-section
/-R
, and also multiple instances of itThere is most likely more hiding behind issues mentioned above.
In the meantime
zig clang
can be used asCC
andzig cc
can be used asHOSTCC
, the biggest issue right now is it the requirement ofllvm-objcopy
/objcopy
: