From owner-freebsd-arm@freebsd.org Mon Oct 9 17:33:17 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E52B1E374EB for ; Mon, 9 Oct 2017 17:33:17 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-18.reflexion.net [208.70.210.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8669073C7B for ; Mon, 9 Oct 2017 17:33:16 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 9459 invoked from network); 9 Oct 2017 17:33:10 -0000 Received: from unknown (HELO rtc-sm-01.app.dca.reflexion.local) (10.81.150.1) by 0 (rfx-qmail) with SMTP; 9 Oct 2017 17:33:10 -0000 Received: by rtc-sm-01.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Mon, 09 Oct 2017 13:33:10 -0400 (EDT) Received: (qmail 16727 invoked from network); 9 Oct 2017 17:33:10 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 9 Oct 2017 17:33:10 -0000 Received: from [192.168.1.26] (c-76-115-7-162.hsd1.or.comcast.net [76.115.7.162]) by iron2.pdx.net (Postfix) with ESMTPSA id 8143EEC952C; Mon, 9 Oct 2017 10:33:09 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: RPi3 Kernel Fails to Build From: Mark Millard In-Reply-To: Date: Mon, 9 Oct 2017 10:33:08 -0700 Cc: John Baldwin , freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <26DEBB20-12FC-4773-8F80-6F6ABC5E1D54@dsl-only.net> References: <1628757.voU4eBV2gm@ralph.baldwin.cx> <8ED4F645-8F3A-4D45-BE2F-0491D73DC9F5@dsl-only.net> To: Monty Chaney-Geib X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Oct 2017 17:33:18 -0000 On 2017-Oct-9, at 8:02 AM, Monty Chaney-Geib = 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.=20 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 = wrote: >=20 > On 2017-Oct-8, at 8:58 PM, Monty Chaney-Geib = wrote: >=20 > > Yes I have version 2.28 installed. >=20 > But the commands you show have: >=20 > cc . . . -B/usr/obj/usr/src/tmp/usr/bin . . . >=20 > which leads to use of the system binutils > built in that area, not the ones from ports, > at least for that command. >=20 > If such also applies to the link of the > kernel.full then. . . >=20 > 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? >=20 > > On Sat, Oct 7, 2017 at 12:47 PM, John Baldwin = 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=3D"make" sh /usr/src/sys/conf/newvers.sh GENERIC > >>> cc -target aarch64-unknown-freebsd12.0 = --sysroot=3D/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__=3D__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=3Diso9899:1999 -Werror vers.c > >>> ctfconvert -L VERSION -g vers.o > >>> linking kernel.full > >>> unknown emulation: aarch64elf > >>> line 19: : expected, but got ( > >>> PROVIDE (etext =3D .); > >>> ^ > >>> *** 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? =3D=3D=3D Mark Millard markmi at dsl-only.net