From owner-freebsd-arm@freebsd.org Sat Oct 21 02:00:22 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 8072BE46A70 for ; Sat, 21 Oct 2017 02:00:22 +0000 (UTC) (envelope-from jon@brawn.org) Received: from ahs1.r4l.com (ahs1.r4l.com [198.27.81.125]) (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 556C86DBC1 for ; Sat, 21 Oct 2017 02:00:21 +0000 (UTC) (envelope-from jon@brawn.org) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=brawn.org; s=default; h=Message-Id:In-Reply-To:To:References:Date:Subject:Mime-Version: Content-Transfer-Encoding:Content-Type:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=SAV15P5pdBtjwdeIT9gCuW4AuvhKreOMFOxvPqfCJ7k=; b=xrSazDFSAZqr0c06bXjfPQvPvF EvoDYGIXuQ5MFriq40Oe34VoEh/ZTUPQq7FANG/NeJDSBLBIJr3Z88ba1kiC/5avFYZd8y2xQhlHf pLj17F0y2G0h7ppQA8oJ6LjV4m24F6O6LIo2feqrD5AHhCUn1FY5deUw86B4jgtBGjjD1so6hhdq7 Hu3W8SEuw/aUeaLqc0IlxHq2x3CV/M2zQyE7st27wwHmEkH03iQvSLK+5fBp6pLvz120SCDmTdl+o yqT2yOaIesWqO4mqK4EMiI0CF1O3lkSp1pwfmZXgzwNCB41XLLY3h9kHF1tCpcfTJrjmMLEndaj7E w0+o5K6A==; Received: from [136.62.171.86] (port=61562 helo=[192.168.1.159]) by ahs1.r4l.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89) (envelope-from ) id 1e5j5F-004KDE-VU for freebsd-arm@freebsd.org; Fri, 20 Oct 2017 22:00:18 -0400 From: Jon Brawn Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Spot of bother compiling an ARMv8 kernel... Date: Fri, 20 Oct 2017 21:00:16 -0500 References: To: freebsd-arm@freebsd.org In-Reply-To: Message-Id: <50540920-3CE1-477B-A820-5226E0D71477@brawn.org> X-Mailer: Apple Mail (2.3273) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ahs1.r4l.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - brawn.org X-Get-Message-Sender-Via: ahs1.r4l.com: authenticated_id: jon@brawn.org X-Authenticated-Sender: ahs1.r4l.com: jon@brawn.org X-Source: X-Source-Args: X-Source-Dir: 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: Sat, 21 Oct 2017 02:00:22 -0000 Thanks to all that replied - buildworld before buildkernel does indeed = work. Jon. > On Oct 19, 2017, at 11:25 PM, Jon Brawn wrote: >=20 > Wotcha! >=20 > I=E2=80=99ve got use of a SoftIron OverDrive 1000, and I thought it = was about time I updated it to a newer version of 12.0 CURRENT, so I = dutifully downloaded the mini memory stick image, installed all the = options that the installer offers, rebooted off of the hard drive, and = decided that the first thing that one has to do with a new system is = build a spangly new kernel. >=20 > So: >=20 > root@brax:/usr/src # make TARGET=3Darm64 TARGET_ARCH=3Daarch64 = KERNCONF=3DGENERIC-NODEBUG kernel >=20 > And off it went. >=20 > Then, alas, it stopped: >=20 > cc -target aarch64-unknown-freebsd12.0 --sysroot=3D/usr/obj/usr/src/tmp = -B/usr/obj/usr/src/tmp/usr/bin -c -O3 -pipe -fno-strict-aliasing -Werror = -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -include = /usr/obj/usr/src/sys/GENERIC-NODEBUG/opt_global.h -I. -I/usr/src/sys = -fno-common -g -fPIC -I/usr/obj/usr/src/sys/GENERIC-NODEBUG -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 = -Wno-error-address-of-packed-member -std=3Diso9899:1999 -Werror = -march=3Darmv8-a+crypto /usr/src/sys/crypto/armv8/armv8_crypto_wrap.c > In file included from = /usr/src/sys/crypto/armv8/armv8_crypto_wrap.c:46: > /usr/lib/clang/5.0.0/include/arm_neon.h:31:10: fatal error: 'stdint.h' = file not > found > #include > ^~~~~~~~~~ > 1 error generated. > *** Error code 1 >=20 > Stop. >=20 > What is the freebsd-arm protocol for dealing with this kind of issue? = Do I file a bugzilla on it? Or just ask nicely on this list, and someone = will say, =E2=80=9CAh, yes, you need to install and everything = will be alright. Must remember to put that on my to-do list!=E2=80=9D? I = can work around it easily enough using =E2=80=9CThe Mark Of Brawn=E2=80=9D= (what others might call, less charitably, =E2=80=9Ca bodge=E2=80=9D). >=20 > Jon. > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"