RPi3 Kernel Fails to Build

Mark Millard markmi at dsl-only.net
Mon Oct 9 17:33:18 UTC 2017


On 2017-Oct-9, at 8:02 AM, Monty Chaney-Geib <monty11ez at gmail.com> wrote:

> I'm trying to build a more up to date 12.0 system. I am currently running the raspbsd.org 12.0 version on my Pi 3 from February. 

Unfortunately WITH_LLD_BOOTSTRAP was not added until head
-r316647 on 2017-Apr-9.

It looks like as of now http://www.raspbsd.org/raspberrypi.html
has a build based on head -r320146 and so might avoid the need
for a specially handled ld for going forward from there.

> On Mon, Oct 9, 2017 at 1:40 AM, Mark Millard <markmi at dsl-only.net> wrote:
> 
> On 2017-Oct-8, at 8:58 PM, Monty Chaney-Geib <monty11ez at gmail.com> wrote:
> 
> > Yes I have version 2.28 installed.
> 
> But the commands you show have:
> 
> cc . . . -B/usr/obj/usr/src/tmp/usr/bin . . .
> 
> which leads to use of the system binutils
> built in that area, not the ones from ports,
> at least for that command.
> 
> If such also applies to the link of the
> kernel.full then. . .
> 
> What version of the system is running and what
> version of the system is being built? Is this
> a context where ld is lld from the system
> llvm/clang tool set? Or is ld from a build of
> the old system binutils?
> 
> > On Sat, Oct 7, 2017 at 12:47 PM, John Baldwin <jhb at freebsd.org> wrote:
> >
> >> On Thursday, October 05, 2017 10:24:03 PM Monty Chaney-Geib wrote:
> >>> I'm getting an error trying to build the kernel on hardware. What do you
> >>> guys recommend I do? There is the error:
> >>>
> >>> MAKE="make" sh /usr/src/sys/conf/newvers.sh  GENERIC
> >>> cc -target aarch64-unknown-freebsd12.0 --sysroot=/usr/obj/usr/src/tmp
> >>> -B/usr/obj/usr/src/tmp/usr/bin -c -O -pipe  -g -nostdinc  -I.
> >>> -I/usr/src/sys -I/usr/src/sys/contrib/libfdt -D_KERNEL
> >>> -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h
> >> -fno-omit-frame-pointer
> >>> -mno-omit-leaf-frame-pointer  -mgeneral-regs-only -ffixed-x18
> >>> -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall
> >> -Wredundant-decls
> >>> -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
> >>> -Winline -Wcast-qual -Wundef -Wno-pointer-sign
> >>> -D__printf__=__freebsd_kprintf__ -Wmissing-include-dirs
> >>> -fdiagnostics-show-option -Wno-unknown-pragmas
> >>> -Wno-error-tautological-compare -Wno-error-empty-body
> >>> -Wno-error-parentheses-equality -Wno-error-unused-function
> >>> -Wno-error-pointer-sign -Wno-error-shift-negative-value
> >>> -std=iso9899:1999 -Werror  vers.c
> >>> ctfconvert -L VERSION -g vers.o
> >>> linking kernel.full
> >>> unknown emulation: aarch64elf
> >>> line 19: : expected, but got (
> >>>  PROVIDE (etext = .);
> >>>          ^
> >>> *** Error code 1
> >>>
> >>> Stop.
> >>> make[2]: stopped in /usr/obj/usr/src/sys/GENERIC
> >>> *** Error code 1
> >>>
> >>> Stop.
> >>> make[1]: stopped in /usr/src
> >>> *** Error code 1
> >>>
> >>> Stop.
> >>> make: stopped in /usr/src
> >>
> >> Do you have the aarch64-binutils package installed?



===
Mark Millard
markmi at dsl-only.net





More information about the freebsd-arm mailing list