From owner-freebsd-arm@freebsd.org Mon Oct 9 15:02:40 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 15D54E32A2D for ; Mon, 9 Oct 2017 15:02:40 +0000 (UTC) (envelope-from monty11ez@gmail.com) Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0017E72A44; Mon, 9 Oct 2017 15:02:38 +0000 (UTC) (envelope-from monty11ez@gmail.com) Received: by mail-wm0-x241.google.com with SMTP id q124so21283839wmb.5; Mon, 09 Oct 2017 08:02:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=vHVVVmvcM3PWss6m9A57Jm8tQNl9mhnjKEd2VYyibS8=; b=Dd9+E7h6eYrD7+P4o1O8cCX7xpyQopHU7DzSGmI8kUB66SazvWcOKbegPUmBcTS5V0 fQdOgWDjXyw4rq5whkZmyKh1y9JPUR9FVbu2GMp06iS+DdTRZjPK/ZFtNbNmtQXAlRrB KGeju5XPpjYGIap4OF+rtzcWuOlOQFMEE6NYIe+XhAv2NfSdMf2YEyRggPPSv0V3mv6Q tRuuAePs04+eXPPMNZSXtfTrrkMfFRwyHlIDKjxgjEjAcxYfDJhJHnjpUQcZt3dDVRbn qOQiCr8g6rsXFkXsx2dQGrAcsNxiRdy0n96+2/SI6ZvuabxnhNvAiK8UMBlyLZIt+R9f qISw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=vHVVVmvcM3PWss6m9A57Jm8tQNl9mhnjKEd2VYyibS8=; b=LQulIgk8wdZPXbmbIMmqpOQXRl1RqZGievoBX/nJ12wJ26L6CMJMR1SDYH4497ah7l +kjh30NYMCjsuvOPYWrm1Ivyt/0NW4p3koGuO4Esk5Q6wuThC7SVMEGbBkBJnEFndTCv 7KKOUWKlYWFa61FzPU9vqdfZtP68nrIRcZbCJINxrohPn4F1R+bNUi8I6Q33eLSfd7Ua ZrZo9oeqVFEiqXO2A6fIYXu2A+xAP8XQ9uGI8PjYPF3vmh+26OLHTbXWgE9TjmrRAq4h ZdEHMDxF2P6obPb0hfCUFiSaNxnzdnT2NC2Kgfv5VMYMZbuyF8SsnwCxe36JMOyJZerq Wbpg== X-Gm-Message-State: AMCzsaUgSrMoDTOFDaS05B9c6o5aPpzXxQTrUdxcpwyUgkXYcP3SZuH+ XCSwmwgYxboDWd81UnxaF+VdvclgpMms0d2x6XOdGQ== X-Google-Smtp-Source: AOwi7QBTIf9PM0ejVe+lpBXKeffDggH+eYqlvjcoJL8fR9EX2rMU9gRsPD/RcXrkESAo+adPuceoJCqURfm467iyZ88= X-Received: by 10.80.181.27 with SMTP id y27mr1934748edd.297.1507561357190; Mon, 09 Oct 2017 08:02:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.129.226 with HTTP; Mon, 9 Oct 2017 08:02:36 -0700 (PDT) In-Reply-To: <8ED4F645-8F3A-4D45-BE2F-0491D73DC9F5@dsl-only.net> References: <1628757.voU4eBV2gm@ralph.baldwin.cx> <8ED4F645-8F3A-4D45-BE2F-0491D73DC9F5@dsl-only.net> From: Monty Chaney-Geib Date: Mon, 9 Oct 2017 11:02:36 -0400 Message-ID: Subject: Re: RPi3 Kernel Fails to Build To: Mark Millard Cc: John Baldwin , freebsd-arm@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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 15:02:40 -0000 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. On Mon, Oct 9, 2017 at 1:40 AM, Mark Millard wrote: > > On 2017-Oct-8, at 8:58 PM, Monty Chaney-Geib > 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 > 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 > >