From owner-freebsd-sparc64@FreeBSD.ORG Mon Apr 14 23:42:29 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4476737B401 for ; Mon, 14 Apr 2003 23:42:29 -0700 (PDT) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63C8A43F3F for ; Mon, 14 Apr 2003 23:42:20 -0700 (PDT) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h3F6gFhJ056408 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 15 Apr 2003 09:42:15 +0300 (EEST) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h3F6g3vd056388; Tue, 15 Apr 2003 09:42:03 +0300 (EEST) (envelope-from ru) Date: Tue, 15 Apr 2003 09:42:03 +0300 From: Ruslan Ermilov To: Hidetoshi Shimokawa Message-ID: <20030415064203.GA55721@sunbay.com> References: <20030411195629.GC94333@locore.ca> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i cc: freebsd-sparc@freebsd.org Subject: Re: cross build X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2003 06:42:29 -0000 --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 15, 2003 at 02:12:17PM +0900, Hidetoshi Shimokawa wrote: > It was around Nov. 2002. I have upgraded the 4.x box to the latest > stable but it still fails at the same point. >=20 > Ruslan, any ideas? >=20 Yes, this is a bug in src/tools/build/Makefile. It should install the version from src/tools/build/endian.h for RELENG_4. I will fix it shortly. Thanks for the spot. > /\ Hidetoshi Shimokawa > \/ simokawa@sat.t.u-tokyo.ac.jp > PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html >=20 > At Fri, 11 Apr 2003 15:56:29 -0400, > Jake Burkholder wrote: > >=20 > > Apparently, On Fri, Apr 11, 2003 at 03:06:53PM +0900, > > Hidetoshi Shimokawa said words to the effect of; > >=20 > > > Is cross compile for sparc64 binaries on FreeBSD-4 i386 supported? > > >=20 > > > I could do it a weeks ago but now I failed with the following error. > > >=20 > > > TARGET_ARCH=3Dsparc64 make -j2 buildworld > >=20 > > How old is your 4.x box? You may have to upgrade to a recent -stable to > > cross build. There's been some dispute about what versions of 4.x cross > > builds are to be supported on, and I think recently certain commits whi= ch > > made it possible to cross build on older versions of 4.x were backed ou= t. > >=20 > > If it doesn't work with top of tree -stable I suggest email ru@. > >=20 > > Thanks, > > Jake >=20 > At Fri, 11 Apr 2003 15:06:53 +0900, > Hidetoshi Shimokawa wrote: > > -------------------------------------------------------------- > > >>> stage 3: cross tools > > .... > > =3D=3D=3D> usr.bin/elf2aout > > /usr/obj/sparc64/export/dpt/FreeBSD/FreeBSD-current/src/i386/export/dpt= /FreeBSD/FreeBSD-current/src/usr.bin/elf2aout created for /export/dpt/FreeB= SD/FreeBSD-current/src/usr.bin/elf2aout > > rm -f .depend > > mkdep -f .depend -a -I/usr/obj/sparc64/export/dpt/FreeBSD/FreeBSD-cu= rrent/src/i386/legacy/usr/include /export/dpt/FreeBSD/FreeBSD-current/src/= usr.bin/elf2aout/elf2aout.c > > echo elf2aout: /usr/lib/libc.a /usr/obj/sparc64/export/dpt/FreeBSD/Free= BSD-current/src/i386/legacy/usr/lib/libegacy.a >> .depend > > cc -O -pipe -I/usr/obj/sparc64/export/dpt/FreeBSD/FreeBSD-current/src/i= 386/legacy/usr/include -c /export/dpt/FreeBSD/FreeBSD-current/src/usr.bi= n/elf2aout/elf2aout.c > > cc -O -pipe -I/usr/obj/sparc64/export/dpt/FreeBSD/FreeBSD-current/src/i= 386/legacy/usr/include -L/usr/obj/sparc64/export/dpt/FreeBSD/FreeBSD-cur= rent/src/i386/legacy/usr/lib -static -o elf2aout elf2aout.o -legacy > > elf2aout.o: In function `main': > > elf2aout.o(.text+0x20b): undefined reference to `be64toh' > > elf2aout.o(.text+0x257): undefined reference to `be64toh' > > elf2aout.o(.text+0x346): undefined reference to `be64toh' > > elf2aout.o(.text+0x395): undefined reference to `be64toh' > > elf2aout.o(.text+0x3f9): undefined reference to `be64toh' > > *** Error code 1 > >=20 > > /\ Hidetoshi Shimokawa > > \/ simokawa@sat.t.u-tokyo.ac.jp > > PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html --=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 --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+m6m7Ukv4P6juNwoRAtGJAJkBe9AHOUFD3Iqlx3TE1QkC46iKKwCfSSQK mo6gzRHwfZE/cut04571mNc= =VSG0 -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI--