Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Mar 2005 08:59:57 +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:  <20050325065957.GC75626@ip.net.ua>
In-Reply-To: <20050324234511.GA59281@xor.obsecurity.org>

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

[-- Attachment #1 --]
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 on i386:
> 
> ===> csu/i386-elf
> cc -m32 -march=athlon-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/../common  -I/a/portbuild/amd64/5/src/lib/csu/
> i386-elf/../../libc/include -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prot
> otypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wcast-al
> ign -Wunused-parameter -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -c crt1.c
> In file included from /usr/obj/amd64/a/portbuild/amd64/5/src/i386/usr/include/sys/types.h:44,
>                  from /usr/obj/amd64/a/portbuild/amd64/5/src/i386/usr/include/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 >= width of type
> /usr/obj/amd64/a/portbuild/amd64/5/src/i386/usr/include/machine/endian.h:158: warning: right shift count >= width of type
> /usr/obj/amd64/a/portbuild/amd64/5/src/i386/usr/include/machine/endian.h:158: warning: left shift count >= width of type
> /usr/obj/amd64/a/portbuild/amd64/5/src/i386/usr/include/machine/endian.h:158: warning: left shift count >= width of type
> /usr/obj/amd64/a/portbuild/amd64/5/src/i386/usr/include/machine/endian.h:158: warning: left shift count >= width of type
> /usr/obj/amd64/a/portbuild/amd64/5/src/i386/usr/include/machine/endian.h:158: warning: left shift count >= width of type
> /usr/obj/amd64/a/portbuild/amd64/5/src/i386/usr/include/machine/endian.h:158: warning: left shift count >= width of type
> *** Error code 1
> 
> Any ideas?  I need to get this to work for 5.4-RELEASE package builds.
> 
As Peter warned, this part wasn't tested at all in a cross-build environment.
Before we fix it, you can consider cross-building with NO_LIB32.


Cheers,
-- 
Ruslan Ermilov
ru@FreeBSD.org
FreeBSD committer

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)

iD8DBQFCQ7bsqRfpzJluFF4RAtGGAJ4xojU/aqPbq1EHIH2kmXdp5DpEgACfe39V
9dC8rm4W/BhHM3W3ccnPCOI=
=GP1J
-----END PGP SIGNATURE-----
home | help

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