Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Mar 2005 09:24:36 +0200
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        amd64@FreeBSD.org
Subject:   Re: buildworld error while cross-building
Message-ID:  <20050325072436.GD75626@ip.net.ua>
In-Reply-To: <20050324234511.GA59281@xor.obsecurity.org>
References:  <20050324234511.GA59281@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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/--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050325072436.GD75626>