From owner-freebsd-toolchain@freebsd.org Mon Jun 19 06:58:16 2017 Return-Path: Delivered-To: freebsd-toolchain@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 21FCCD97276; Mon, 19 Jun 2017 06:58:16 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D8A0B66A2D; Mon, 19 Jun 2017 06:58:15 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from [IPv6:2001:470:7a58::1844:6e86:51da:285f] (unknown [IPv6:2001:470:7a58:0:1844:6e86:51da:285f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 3DC151DDF7; Mon, 19 Jun 2017 08:58:07 +0200 (CEST) From: Dimitry Andric Message-Id: Content-Type: multipart/signed; boundary="Apple-Mail=_8BCD7550-BEF8-4E57-9A25-5FBD27DC51AB"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: arm64 on head -r320059 (e.g.) fails buildkernel with only kernel-toolchain first (not buildworld) [Bugzilla 220125] Date: Mon, 19 Jun 2017 08:57:57 +0200 In-Reply-To: <9B6857F6-FD8E-43B7-B142-050E51EE68AB@dsl-only.net> Cc: freebsd-arm , FreeBSD Toolchain To: Mark Millard References: <9B6857F6-FD8E-43B7-B142-050E51EE68AB@dsl-only.net> X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2017 06:58:16 -0000 --Apple-Mail=_8BCD7550-BEF8-4E57-9A25-5FBD27DC51AB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 19 Jun 2017, at 08:46, Mark Millard wrote: >=20 > This is a variant of the wording in bugzilla 220125: >=20 > Unless buildworld (not just kernel-toolchain) is used before > buildkernel the result for arm64 is: >=20 > --- armv8_crypto_wrap.o --- > In file included from = /usr/src/sys/crypto/armv8/armv8_crypto_wrap.c:46: > = /usr/obj/cortexA53dbg_clang/arm64.aarch64/usr/src/tmp/usr/bin/../lib/clang= /4.0.0/include/arm_neon.h:31:10: > fatal error: 'stdint.h' file not found ... > A) kernel-toolchain needs to establish a stdint.h > that would be found > vs. > B) arm_neon.h needs to avoid needing stdint.h > (presumes armv8_crypto_wrap.c is correct to > include arm_neon.h ) >=20 > at least if the kernel-toolchain then buildkernel > sequence is to be supported for arm64. Solution A is problematic because it then would require to install headers into ${WORLDTMP}. This is what buildworld does. Solution B is problematic because arm_neon.h uses stdint.h types extensively. Maybe the solution with the least amount of work is to provide a kernel-specific wrapper header with the stdint.h types. Otherwise, just use buildworld before buildkernel. -Dimitry --Apple-Mail=_8BCD7550-BEF8-4E57-9A25-5FBD27DC51AB Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.30 iEYEARECAAYFAllHdgEACgkQsF6jCi4glqNR/gCZAXSo9eVtCuqjIVeKgs/XMEtg 7u4AoIwiE22tjwL/5g06Txfrqv2mtf0y =Qfey -----END PGP SIGNATURE----- --Apple-Mail=_8BCD7550-BEF8-4E57-9A25-5FBD27DC51AB--