I got this error from compiling the kernel by using LLVM's ld for llvm80 and 
llvm70. I didn't try it with llvm60. It must be from newer LLVM ports' updates. 
(Reminder that I have already removed LLVM and linker from my base system).

 kernel.full
 ld.lld: error: unknown -z value: common-page-size=4096

I then installed binutils from ports, and linked /usr/bin/ld to 
/usr/local/x86_64-unknown-freebsd12.0/bin/ld by both softlink and by setting LD 
in make.conf. This worked to allow the kernel build. That file directory shows 
my actual architecture and FreeBSD version.

Someone mentioned that maybe LLVM's ld from ports may possibly not be 
compatible with the -z option of "common-page-size".


Now, I think that LD was intentionally disabled in make.conf, because of common 
problems with builds with LLVM linkers through ports.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-toolchain
To unsubscribe, send any mail to "[email protected]"

Reply via email to