buildworld error while cross-building

Ruslan Ermilov ru at FreeBSD.org
Thu Mar 24 23:24:19 PST 2005


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.
> 
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,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-amd64/attachments/20050325/6d2d9f7d/attachment.bin


More information about the freebsd-amd64 mailing list