On Sat, Aug 26, 2017 at 2:41 AM, Aijaz Baig <aijazba...@gmail.com> wrote:
> Has anyone been able to successfully compile the kernel using GCC as
> against CLANG the default compiler on most later versions of FreeBSD? I was
> able to successfully buildworld. After which I reboot and now /usr/bin/cc
> points to GCC as requested. However kernel fails to link
> make -D KERNFAST -m /usr/src/share/mk KERNEL=kernel all -DNO_MODULES_OBJ
> linking kernel.full
> ck_array.o: In function `ck_cc_popcount':
> /usr/src/sys/contrib/ck/include/gcc/ck_cc.h:139: undefined reference to
Do you need ck? Can you share your KERNCONF? And the branch and
revision you are building?
I have been building an amd64 GENERIC kernel on head with various gccs.
I think that does not build ck. The main method I have been focusing on
for now is
make CROSS_TOOLCHAIN=amd64-gcc TARGET=amd64 TARGET_ARCH=amd64 buildkernel
with the amd64-xtoolchain-gcc-0.2 package installed. But I have also
built kernel-only successfully with gcc 6 with src.conf e.g. as below.
% cat /etc/src.conf.gcc6
email@example.com mailing list
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"