Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 May 2018 09:47:48 +0200
From:      Oliver Pinter <oliver.pinter@hardenedbsd.org>
To:        Emeric POUPON <emeric.poupon@stormshield.eu>
Cc:        freebsd-arch <freebsd-arch@freebsd.org>
Subject:   Re: Can't build kernel anymore: amd64 kernel requires linker ifunc support
Message-ID:  <CAPQ4fftBd1YQ0_VGk5iRPAYA11fGbajYZ4-3t=RSrW1tOKzftw@mail.gmail.com>
In-Reply-To: <1427128516.12874490.1526456240718.JavaMail.zimbra@stormshield.eu>
References:  <1427128516.12874490.1526456240718.JavaMail.zimbra@stormshield.eu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday, May 16, 2018, Emeric POUPON <emeric.poupon@stormshield.eu>
wrote:

> Hello,
>
> Maybe I missed something, but I recently updated /usr/src (HEAD) and I
> can't build the kernel anymore, I get this:
>
> # make -j4 buildkernel
> --- buildkernel ---
> make[1]: "/usr/src/Makefile.inc1" line 166: SYSTEM_COMPILER: Determined
> that CC=cc matches the source tree.  Not bootstrapping a cross-compiler.
> --- buildkernel ---
>
> --------------------------------------------------------------
> >>> Kernel build for GENERIC started on Wed May 16 09:35:03 CEST 2018
> --------------------------------------------------------------
> ===> GENERIC
> mkdir -p /usr/obj/usr/src/amd64.amd64/sys
> --------------------------------------------------------------
> >>> stage 1: configuring the kernel
> --------------------------------------------------------------
> cd /usr/src/sys/amd64/conf;  PATH=/usr/obj/usr/src/amd64.
> amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src/amd64.amd64/
> tmp/legacy/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/
> legacy/bin:/usr/obj/usr/src/amd64.amd64/tmp/usr/sbin:/usr/
> obj/usr/src/amd64.amd64/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin
> config  -d /usr/obj/usr/src/amd64.amd64/sys/GENERIC  -I
> '/usr/src/sys/amd64/conf' '/usr/src/sys/amd64/conf/GENERIC'
> Kernel build directory is /usr/obj/usr/src/amd64.amd64/sys/GENERIC
> Don't forget to do ``make cleandepend && make depend''
> --------------------------------------------------------------
> >>> stage 2.1: cleaning up the object tree
> --------------------------------------------------------------
> cd /usr/obj/usr/src/amd64.amd64/sys/GENERIC; COMPILER_VERSION=60000
> COMPILER_FEATURES=" c++11 retpoline" COMPILER_TYPE=clang
> COMPILER_FREEBSD_VERSION=1200014 MACHINE_ARCH=amd64 MACHINE=amd64
> CPUTYPE= CC="cc -target x86_64-unknown-freebsd12.0
> --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin"
> CXX="c++  -target x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp
> -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin" CPP="cpp -target
> x86_64-unknown-freebsd12.0 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp
> -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin" AS="as" AR="ar" LD="ld"
> LLVM_LINK="" NM=nm OBJCOPY="objcopy" RANLIB=ranlib STRINGS= SIZE="size"
> INSTALL="sh /usr/src/tools/install.sh" PATH=/usr/obj/usr/src/amd64.
> amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src/amd64.amd64/
> tmp/legacy/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/
> legacy/bin:/usr/obj/usr/src/amd64.amd64/tmp/usr/sbin:/usr/
> obj/usr/src/amd64.amd64/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin make
> -j 4 -
>  J 15,16 -m /usr/src/share/mk  KERNEL=kernel cleandir
> make[2]: "/usr/src/sys/conf/kern.pre.mk" line 125: amd64 kernel requires
> linker ifunc support
> *** [buildkernel] Error code 1
>
> make[1]: stopped in /usr/src
> 1 error
>
>
>
> How can I proceed?


Please consult the ${srctop}/UPDATING file or search back on freebsd
current mail list.

Hint: buildworld before kernel


>
> Regards,
> _______________________________________________
> freebsd-arch@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arch
> To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPQ4fftBd1YQ0_VGk5iRPAYA11fGbajYZ4-3t=RSrW1tOKzftw>