Date: Fri, 12 Apr 2002 17:43:12 +0300 From: Ruslan Ermilov <ru@FreeBSD.ORG> To: John Baldwin <jhb@FreeBSD.ORG> Cc: current@FreeBSD.ORG Subject: Re: World broken? Message-ID: <20020412144312.GB47739@sunbay.com> In-Reply-To: <XFMail.20020412102431.jhb@FreeBSD.org> References: <XFMail.20020412102431.jhb@FreeBSD.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
Do we already have the in-tree toolchain capable of cross-building sparc64?
On Fri, Apr 12, 2002 at 10:24:31AM -0400, John Baldwin wrote:
> I've seen this twice now on both alpha and sparc64. It looks to be related to
> the ENDIAN macro changes:
>
> ===> usr.bin/ldd
> /arch/sparc64/hosted/bin/gcc -O -pipe -Wall -c
> /home/john/work/p4/sparc64/usr.bin/ldd/ldd.c
> In file included from /home/john/work/p4/sparc64/usr.bin/ldd/ldd.c:36:
> /usr/include/sys/wait.h:114: duplicate member `w_Filler'
> /usr/include/sys/wait.h:115: duplicate member `w_Retcode'
> /usr/include/sys/wait.h:116: duplicate member `w_Coredump'
> /usr/include/sys/wait.h:117: duplicate member `w_Termsig'
> /usr/include/sys/wait.h:132: duplicate member `w_Filler'
> /usr/include/sys/wait.h:133: duplicate member `w_Stopsig'
> /usr/include/sys/wait.h:134: duplicate member `w_Stopval'
> /home/john/work/p4/sparc64/usr.bin/ldd/ldd.c: In function `main':
> /home/john/work/p4/sparc64/usr.bin/ldd/ldd.c:141: warning: implicit declaration
> of function `ntohl'
> *** Error code 1
>
> Stop in /home/john/work/p4/sparc64/usr.bin/ldd.
> *** Error code 1
>
> Stop in /home/john/work/p4/sparc64/usr.bin.
> *** Error code 1
>
> Stop in /home/john/work/p4/sparc64.
> *** Error code 1
>
> In sys/wait.h:
>
> union wait {
> int w_status; /* used in syscall */
> /*
> * Terminated process status.
> */
> struct {
> #if BYTE_ORDER == LITTLE_ENDIAN
> unsigned int w_Termsig:7, /* termination signal */
> w_Coredump:1, /* core dump indicator */
> w_Retcode:8, /* exit code if w_termsig==0 */
> w_Filler:16; /* upper bits filler */
> #endif
> #if BYTE_ORDER == BIG_ENDIAN
> unsigned int w_Filler:16, /* upper bits filler */
> w_Retcode:8, /* exit code if w_termsig==0 */
> w_Coredump:1, /* core dump indicator */
> w_Termsig:7; /* termination signal */
> #endif
> } w_T;
>
> I guess all of those symbols are not defined or something and so have values of
> 0 and 0 == 0?
>
> sys/wait.h includes machine/endian.h right before it defines this union, so
> something must be broke in there.
--
Ruslan Ermilov Sysadmin and DBA,
ru@sunbay.com Sunbay Software AG,
ru@FreeBSD.org FreeBSD committer,
+380.652.512.251 Simferopol, Ukraine
http://www.FreeBSD.org The Power To Serve
http://www.oracle.com Enabling The Information Age
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE8tvKAUkv4P6juNwoRAnAzAJ0UL8apM6lxjr1fy1vJB29Nv3Fe9QCeNGy2
2r6mRsACUCcrKgkWE8iGXio=
=i9DC
-----END PGP SIGNATURE-----
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020412144312.GB47739>
