From owner-freebsd-amd64@FreeBSD.ORG Fri Mar 25 07:24:18 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9EC916A4CE for ; Fri, 25 Mar 2005 07:24:18 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2729F43D5A for ; Fri, 25 Mar 2005 07:24:18 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j2P7OHCl007922; Fri, 25 Mar 2005 09:24:17 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 28792-02; Fri, 25 Mar 2005 09:24:34 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j2P7OFxt007917 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 25 Mar 2005 09:24:16 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id j2P7OalQ076156; Fri, 25 Mar 2005 09:24:36 +0200 (EET) (envelope-from ru) Date: Fri, 25 Mar 2005 09:24:36 +0200 From: Ruslan Ermilov To: Kris Kennaway Message-ID: <20050325072436.GD75626@ip.net.ua> References: <20050324234511.GA59281@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1sNVjLsmu1MXqwQ/" Content-Disposition: inline In-Reply-To: <20050324234511.GA59281@xor.obsecurity.org> User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: amd64@FreeBSD.org Subject: Re: buildworld error while cross-building X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Mar 2005 07:24:19 -0000 --1sNVjLsmu1MXqwQ/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 24, 2005 at 03:45:12PM -0800, Kris Kennaway wrote: > I get this consistently when trying to cross-build amd64 RELENG_5 world o= n i386: >=20 > =3D=3D=3D> csu/i386-elf > cc -m32 -march=3Dathlon-xp -msse2 -mfancy-math-387 -DCOMPAT_32BIT -I/usr= /obj/amd64/a/portbuild/amd64/5/src/lib32/u > sr/include -L/usr/obj/amd64/a/portbuild/amd64/5/src/lib32/usr/lib32 -B/= usr/obj/amd64/a/portbuild/amd64/5/src/li > b32/usr/lib32 -O -pipe -I/a/portbuild/amd64/5/src/lib/csu/i386-elf/../com= mon -I/a/portbuild/amd64/5/src/lib/csu/ > i386-elf/../../libc/include -Wsystem-headers -Werror -Wall -Wno-format-y2= k -W -Wno-unused-parameter -Wstrict-prot > otypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Ww= rite-strings -Wswitch -Wshadow -Wcast-al > ign -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredu= ndant-decls -c crt1.c > In file included from /usr/obj/amd64/a/portbuild/amd64/5/src/i386/usr/inc= lude/sys/types.h:44, > from /usr/obj/amd64/a/portbuild/amd64/5/src/i386/usr/inc= lude/sys/param.h:61, > from /a/portbuild/amd64/5/src/lib/csu/i386-elf/../common= /crtbrand.c:29, > from crt1.c:36: > /usr/obj/amd64/a/portbuild/amd64/5/src/i386/usr/include/machine/endian.h:= In function `__bswap64': > /usr/obj/amd64/a/portbuild/amd64/5/src/i386/usr/include/machine/endian.h:= 158: warning: right shift count >=3D width of type > /usr/obj/amd64/a/portbuild/amd64/5/src/i386/usr/include/machine/endian.h:= 158: warning: right shift count >=3D width of type > /usr/obj/amd64/a/portbuild/amd64/5/src/i386/usr/include/machine/endian.h:= 158: warning: left shift count >=3D width of type > /usr/obj/amd64/a/portbuild/amd64/5/src/i386/usr/include/machine/endian.h:= 158: warning: left shift count >=3D width of type > /usr/obj/amd64/a/portbuild/amd64/5/src/i386/usr/include/machine/endian.h:= 158: warning: left shift count >=3D width of type > /usr/obj/amd64/a/portbuild/amd64/5/src/i386/usr/include/machine/endian.h:= 158: warning: left shift count >=3D width of type > /usr/obj/amd64/a/portbuild/amd64/5/src/i386/usr/include/machine/endian.h:= 158: warning: left shift count >=3D width of type > *** Error code 1 >=20 > Any ideas? I need to get this to work for 5.4-RELEASE package builds. >=20 It looks like the wrong version of endian.h header is used here: /usr/obj/amd64/a/portbuild/amd64/5/src/i386/usr/include/machine/endian.h which is the AMD64 version, rather than an i386 versopm from /usr/obj/amd64/a/portbuild/amd64/5/src/lib32/usr/include/machine/endian.h I will look into this today (on HEAD). Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --1sNVjLsmu1MXqwQ/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCQ7y0qRfpzJluFF4RArCyAJ9vJGpo9QHqruiyu98SpZWLnM150QCfaTpf 4qrathxm8dhrWAwBV++OMxQ= =SC27 -----END PGP SIGNATURE----- --1sNVjLsmu1MXqwQ/--