Skip site navigation (1)Skip section navigation (2)
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>

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

--aVD9QWMuhilNxW9f
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 relat=
ed to
> the ENDIAN macro changes:
>=20
> =3D=3D=3D> 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 decla=
ration
> of function `ntohl'
> *** Error code 1
>=20
> Stop in /home/john/work/p4/sparc64/usr.bin/ldd.
> *** Error code 1
>=20
> Stop in /home/john/work/p4/sparc64/usr.bin.
> *** Error code 1
>=20
> Stop in /home/john/work/p4/sparc64.
> *** Error code 1
>=20
> In sys/wait.h:
>=20
> union wait {
>         int     w_status;               /* used in syscall */
>         /*
>          * Terminated process status.
>          */
>         struct {
> #if BYTE_ORDER =3D=3D LITTLE_ENDIAN
>                 unsigned int    w_Termsig:7,    /* termination signal */
>                                 w_Coredump:1,   /* core dump indicator */
>                                 w_Retcode:8,    /* exit code if w_termsig=
=3D=3D0 */
>                                 w_Filler:16;    /* upper bits filler */
> #endif
> #if BYTE_ORDER =3D=3D BIG_ENDIAN
>                 unsigned int    w_Filler:16,    /* upper bits filler */
>                                 w_Retcode:8,    /* exit code if w_termsig=
=3D=3D0 */
>                                 w_Coredump:1,   /* core dump indicator */
>                                 w_Termsig:7;    /* termination signal */
> #endif
>         } w_T;
>=20
> I guess all of those symbols are not defined or something and so have val=
ues of
> 0 and 0 =3D=3D 0?
>=20
> sys/wait.h includes machine/endian.h right before it defines this union, =
so
> something must be broke in there.

--=20
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

--aVD9QWMuhilNxW9f
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8tvKAUkv4P6juNwoRAnAzAJ0UL8apM6lxjr1fy1vJB29Nv3Fe9QCeNGy2
2r6mRsACUCcrKgkWE8iGXio=
=i9DC
-----END PGP SIGNATURE-----

--aVD9QWMuhilNxW9f--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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