From owner-freebsd-ppc@freebsd.org Thu Apr 14 20:41:50 2016 Return-Path: Delivered-To: freebsd-ppc@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 E5967AECB82; Thu, 14 Apr 2016 20:41:50 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id C52AD19CF; Thu, 14 Apr 2016 20:41:50 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id B3F4319A2; Thu, 14 Apr 2016 20:41:50 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id 7043A20979; Thu, 14 Apr 2016 20:41:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id iKWfLe5EqKD4; Thu, 14 Apr 2016 20:41:47 +0000 (UTC) Subject: Re: Fwd: 11.0: head/lib/libsysdecode/Makefile for . . ./libsoft/usr/include uses CPP when XCPP needed? [Makefile.libcompat issue] DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com 1116020974 To: Mark Millard , FreeBSD Current , FreeBSD PowerPC ML References: <3A6ED16B-F941-41FC-B844-50292894D5F4@dsl-only.net> <050EC0FA-21F9-4EAB-8771-B0F6E9DEE087@dsl-only.net> <9952A60C-C3F1-40C3-AEAE-96AF6CA6E829@dsl-only.net> <6311C740-362F-45AE-9044-B72E61FC04C9@dsl-only.net> Cc: Bryan Drewery From: Bryan Drewery Openpgp: id=F9173CB2C3AAEA7A5C8A1F0935D771BB6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Organization: FreeBSD Message-ID: <5710008C.6030602@FreeBSD.org> Date: Thu, 14 Apr 2016 13:41:48 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: <6311C740-362F-45AE-9044-B72E61FC04C9@dsl-only.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Ic6V6m0o7E4gROOmdKovmr3Sfj5xMutu8" X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Apr 2016 20:41:51 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Ic6V6m0o7E4gROOmdKovmr3Sfj5xMutu8 Content-Type: multipart/mixed; boundary="lD5oGMAVA2qw3j06stsHHPupd9VmEQXhU" From: Bryan Drewery To: Mark Millard , FreeBSD Current , FreeBSD PowerPC ML Cc: Bryan Drewery Message-ID: <5710008C.6030602@FreeBSD.org> Subject: Re: Fwd: 11.0: head/lib/libsysdecode/Makefile for . . ./libsoft/usr/include uses CPP when XCPP needed? [Makefile.libcompat issue] References: <3A6ED16B-F941-41FC-B844-50292894D5F4@dsl-only.net> <050EC0FA-21F9-4EAB-8771-B0F6E9DEE087@dsl-only.net> <9952A60C-C3F1-40C3-AEAE-96AF6CA6E829@dsl-only.net> <6311C740-362F-45AE-9044-B72E61FC04C9@dsl-only.net> In-Reply-To: <6311C740-362F-45AE-9044-B72E61FC04C9@dsl-only.net> --lD5oGMAVA2qw3j06stsHHPupd9VmEQXhU Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 4/6/2016 1:14 PM, Mark Millard wrote: > The below forwards an example of a possibly more general issue not nece= ssarily limited to arm context of the example: in a cross compile context= the host CPP is in use via Makefile.libcompat not involving "${XCPP}" an= d so various macro checks for the target context fail to work. >=20 > [The below and the material leading up to it was originally posted to f= reebsd-arm.] >=20 > =3D=3D=3D > Mark Millard > markmi at dsl-only.net >=20 > On 2016-Apr-4, at 2:02 PM, Mark Millard wrote:= >=20 > As a fix for >=20 >>> --- all_subdir_lib/libsysdecode --- >>> In file included from :17: >>> In file included from /usr/obj/clang/arm.armv6/usr/src/libsoft/usr/in= clude/dev/nvme/nvme.h:36: >>> In file included from /usr/obj/clang/arm.armv6/usr/src/libsoft/usr/in= clude/sys/param.h:135: >>> In file included from /usr/obj/clang/arm.armv6/usr/src/libsoft/usr/in= clude/machine/param.h:49: >>> /usr/obj/clang/arm.armv6/usr/src/libsoft/usr/include/machine/acle-com= pat.h:182:4: error: Unable to determine architecture version. >>> # error Unable to determine architecture version. >>> ^ >=20 > I tested building an amd64 -> arm cross-build based on >=20 >> # svnlite diff Makefile.libcompat >> Index: Makefile.libcompat >> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >> --- Makefile.libcompat (revision 297514) >> +++ Makefile.libcompat (working copy) >> @@ -90,6 +90,7 @@ >> DTRACE=3D"${LIB$COMPATDTRACE:U${DTRACE}}" >> LIBCOMPATWMAKEFLAGS+=3D CC=3D"${XCC} ${LIBCOMPATCFLAGS}" \ >> CXX=3D"${XCXX} ${LIBCOMPATCFLAGS} ${LIBCOMPATCXXFLAGS}" \ >> + CPP=3D"${XCPP}" \ >> DESTDIR=3D${LIBCOMPATTMP} \ >> -DNO_CPU_CFLAGS \ >> MK_CTF=3Dno \ >=20 > and it completed without getting an "error:". So this addition to Makef= ile.libcompat may be one option for a fix. >=20 Yes this is needed. Please try this patch though: https://people.freebsd.org/~bdrewery/patches/libcompat-xcpp.diff --=20 Regards, Bryan Drewery --lD5oGMAVA2qw3j06stsHHPupd9VmEQXhU-- --Ic6V6m0o7E4gROOmdKovmr3Sfj5xMutu8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJXEACMAAoJEDXXcbtuRpfPiDMH/0hjfJsKoqBE4KPLWICRUyD+ 3o1sq8DHR29mP0SVuE+TKI4yFxjVHiDaJgzHks6QbMhQ1+xL2w1xsV9WUSe4S1Av X32+czAea1cerM+jk9zB8gTQsLoiv8GFBdtkofUzxf0qHX/2cGn6LGyQbElj5UsV dZxPmRrOO0IuWJHUQ5z0fzuFlcowcqUSoOSdhvt2NKNmYtv4guHALcwrQDvbUXgw tCjtsbeW1mQU+fFAMF1+IgPPC4T5ZrLizHsR5P4oh7ctYaWyEQ3sWCozDfyr6j6k WNEgd5PSVYtwGApWLkoag5d68kdgGXgoHQ4bT02AT8O3FEgPlqXDVAZmPDXZpzs= =yuGO -----END PGP SIGNATURE----- --Ic6V6m0o7E4gROOmdKovmr3Sfj5xMutu8--