From owner-freebsd-amd64@FreeBSD.ORG Sun Apr 24 00:06:26 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0259B16A4CE for ; Sun, 24 Apr 2005 00:06:26 +0000 (GMT) Received: from web60007.mail.yahoo.com (web60007.mail.yahoo.com [216.109.116.245]) by mx1.FreeBSD.org (Postfix) with SMTP id 8428143D3F for ; Sun, 24 Apr 2005 00:06:25 +0000 (GMT) (envelope-from phred1975@yahoo.com) Received: (qmail 56097 invoked by uid 60001); 24 Apr 2005 00:06:25 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=ZIpPWEkQ+2DHvTavK+1to9ELea2ig3Lce3RRxnnhi+pAz43UfSj5pTyBbdxEgbaf8VIlLl/A8uD5Zq+sY5pPzSClhyMsZDthww0m0dA1QVfdfoQUjyv7lDpt9qG/cvnMVAtEmTzmmEus0kx2boutlEIs4Dw61hOipOe1zOj3WMA= ; Message-ID: <20050424000625.56095.qmail@web60007.mail.yahoo.com> Received: from [65.10.15.142] by web60007.mail.yahoo.com via HTTP; Sat, 23 Apr 2005 17:06:25 PDT Date: Sat, 23 Apr 2005 17:06:25 -0700 (PDT) From: Tom Shafron To: freebsd-amd64@freebsd.org In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: 5.3, amd64, k8s pro locked up just now... new info X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 00:06:26 -0000 --- Ken Gunderson wrote: > On Fri, 22 Apr 2005 19:35:47 -0700 (PDT) > Tom Shafron wrote: > > > My 5.3 amd64 just locked up. Seems to be a > similar > > problem to what Vivek has been describing. The > config > > is: > > > > Tyan k8s pro (SATA version) > > 5.3 Release > > 2 x 246 opteron > > onboard bge Gb ethernet > > 4 x 512 MB (2GB) > > 2 x 250 GB SATA (Western Digitial wd2500sd) > > > > I have it configured as a Raid 1 mirror using GEOM > > mirror. > > Just out of curiosity, what memory are you using > here? > > Also, I don't recall specifics, but I think there > were a couple issues > with gmirror on 5.3-release. As others have pointed > out 5.4RC would be > good choice, but if it is too "scary", might try > cvsup'ing to 5.3- > stable. > > -- Best regards, > > Ken Gunderson > GPG Key-- 9F5179FD > > "Freedom begins between the ears." -- Edward Abbey > > _______________________________________________ > freebsd-amd64@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-amd64 > To unsubscribe, send any mail to > "freebsd-amd64-unsubscribe@freebsd.org" > So just got back from checking out the machine... this is the error I got: Fatal trap 12: page fault while in kernel mode cpuid = 1; apicid = 01 fault virtual address = 0x48 fault code = supervisor read, page not present instruction pointer = 0x8:0xffffff8038a3b3 stack pointer = 0x10:0xffffffb1fbfb00 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags = resume, IPOL = 0 current process = 44 (swi5: clock sio) trap number = 12 spin lock sched lock held by 0xffffff007b64c5207 > 5 secs I think I got the addresses right but I had to right them down so I'm not 100% sure.... Looks like something bugged out with the serial port (which I don't use)... anyone have any opinions on this? -Tom __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-amd64@FreeBSD.ORG Sun Apr 24 00:11:44 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04F5B16A4CE for ; Sun, 24 Apr 2005 00:11:44 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B86343D3F for ; Sun, 24 Apr 2005 00:11:43 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id D0128514FE; Sat, 23 Apr 2005 17:11:41 -0700 (PDT) Date: Sat, 23 Apr 2005 17:11:41 -0700 From: Kris Kennaway To: Tom Shafron Message-ID: <20050424001141.GA26038@xor.obsecurity.org> References: <20050424000625.56095.qmail@web60007.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EeQfGwPcQSOJBaQU" Content-Disposition: inline In-Reply-To: <20050424000625.56095.qmail@web60007.mail.yahoo.com> User-Agent: Mutt/1.4.2.1i cc: freebsd-amd64@freebsd.org Subject: Re: 5.3, amd64, k8s pro locked up just now... new info X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 00:11:44 -0000 --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 23, 2005 at 05:06:25PM -0700, Tom Shafron wrote: > So just got back from checking out the machine... this > is the error I got: >=20 > Fatal trap 12: page fault while in kernel mode > cpuid =3D 1; apicid =3D 01 > fault virtual address =3D 0x48 > fault code =3D supervisor read, page not > present=20 > instruction pointer =3D 0x8:0xffffff8038a3b3=20 > stack pointer =3D 0x10:0xffffffb1fbfb00=20 > code segment =3D base 0x0, limit 0xfffff, type > 0x1b=20 > =3D DPL 0, pres 1, long 1, def32 > 0, gran 1=20 > processor eflags =3D resume, IPOL =3D 0=20 > current process =3D 44 (swi5: clock sio)=20 > trap number =3D 12=20 >=20 > spin lock sched lock held by 0xffffff007b64c5207 > 5 > secs >=20 > I think I got the addresses right but I had to right > them down so I'm not 100% sure.... >=20 > Looks like something bugged out with the serial port > (which I don't use)... anyone have any opinions on > this? At the very least you need to update to the RELENG_5_3 branch (5.3-Release + errata patches), because there were several SMP problems fixed after the release. Kris --EeQfGwPcQSOJBaQU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCauQ8Wry0BWjoQKURAjwzAKDTEjILlIX8lnJ+Yjkiw1SkjdUzywCg6DVN u9k3UTrDAzXaMnViXgpopok= =2Xc2 -----END PGP SIGNATURE----- --EeQfGwPcQSOJBaQU-- From owner-freebsd-amd64@FreeBSD.ORG Sun Apr 24 00:27:14 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DBB4416A4CE for ; Sun, 24 Apr 2005 00:27:14 +0000 (GMT) Received: from web60007.mail.yahoo.com (web60007.mail.yahoo.com [216.109.116.245]) by mx1.FreeBSD.org (Postfix) with SMTP id 5568E43D1F for ; Sun, 24 Apr 2005 00:27:14 +0000 (GMT) (envelope-from phred1975@yahoo.com) Received: (qmail 60266 invoked by uid 60001); 24 Apr 2005 00:27:13 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=kyPXlNY0k9ToZiQ9Ie5vMB0M/U/omJS/89pM0KsioSnND05iymo4ndkSB5Mw5e+fUicdG6BZ13nLZnw4/DfdQMxq0L8NTAKBAWW8xcdjJrliHPUJm4X7EI7WNibSLXONACgqCnHJ+w7x52QS0H6wVxSS3msuRwfcfgU1AfbzlXA= ; Message-ID: <20050424002713.60264.qmail@web60007.mail.yahoo.com> Received: from [65.10.15.142] by web60007.mail.yahoo.com via HTTP; Sat, 23 Apr 2005 17:27:13 PDT Date: Sat, 23 Apr 2005 17:27:13 -0700 (PDT) From: Tom Shafron To: Kris Kennaway In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-amd64@freebsd.org Subject: Re: 5.3, amd64, k8s pro locked up just now... new info X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 00:27:15 -0000 --- Kris Kennaway wrote: > On Sat, Apr 23, 2005 at 05:06:25PM -0700, Tom > Shafron wrote: > > > So just got back from checking out the machine... > this > > is the error I got: > > > > Fatal trap 12: page fault while in kernel mode > > cpuid = 1; apicid = 01 > > fault virtual address = 0x48 > > fault code = supervisor read, page not > > present > > instruction pointer = 0x8:0xffffff8038a3b3 > > stack pointer = 0x10:0xffffffb1fbfb00 > > code segment = base 0x0, limit 0xfffff, > type > > 0x1b > > = DPL 0, pres 1, long 1, > def32 > > 0, gran 1 > > processor eflags = resume, IPOL = 0 > > current process = 44 (swi5: clock sio) > > trap number = 12 > > > > spin lock sched lock held by 0xffffff007b64c5207 > > 5 > > secs > > > > I think I got the addresses right but I had to > right > > them down so I'm not 100% sure.... > > > > Looks like something bugged out with the serial > port > > (which I don't use)... anyone have any opinions on > > this? > > At the very least you need to update to the > RELENG_5_3 branch > (5.3-Release + errata patches), because there were > several SMP > problems fixed after the release. > > Kris > I'm going to take your advice and upgrade to 5.4RC3 but I still want to figure out what caused the lockup... __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-amd64@FreeBSD.ORG Sun Apr 24 00:29:35 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2F4616A4CE for ; Sun, 24 Apr 2005 00:29:34 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9528343D45 for ; Sun, 24 Apr 2005 00:29:34 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id F41B7514FE; Sat, 23 Apr 2005 17:29:32 -0700 (PDT) Date: Sat, 23 Apr 2005 17:29:32 -0700 From: Kris Kennaway To: Tom Shafron Message-ID: <20050424002932.GA35276@xor.obsecurity.org> References: <20050424002713.60264.qmail@web60007.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mYCpIKhGyMATD0i+" Content-Disposition: inline In-Reply-To: <20050424002713.60264.qmail@web60007.mail.yahoo.com> User-Agent: Mutt/1.4.2.1i cc: freebsd-amd64@freebsd.org cc: Kris Kennaway Subject: Re: 5.3, amd64, k8s pro locked up just now... new info X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 00:29:35 -0000 --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sat, Apr 23, 2005 at 05:27:13PM -0700, Tom Shafron wrote: > I'm going to take your advice and upgrade to 5.4RC3 > but I still want to figure out what caused the lockup... You'd need to configure your system for kernel debugging as described in the developers' handbook and take it from there. Kris --mYCpIKhGyMATD0i+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCauhsWry0BWjoQKURAlH5AKCxWY0XI4jeh3K8gHWtFggLOezLDwCfV0pL 5ipR5LNwNf438AQw2ZqAk/w= =+XRf -----END PGP SIGNATURE----- --mYCpIKhGyMATD0i+-- From owner-freebsd-amd64@FreeBSD.ORG Sun Apr 24 03:11:44 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D81516A4CE; Sun, 24 Apr 2005 03:11:44 +0000 (GMT) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8F1C43D5A; Sun, 24 Apr 2005 03:11:43 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2.sentex.ca [199.212.134.9]) by smarthost2.sentex.ca (8.13.3/8.13.3) with ESMTP id j3O3BgXm092765; Sat, 23 Apr 2005 23:11:42 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.3/8.13.3) with ESMTP id j3O3Bhs0028746; Sat, 23 Apr 2005 23:11:43 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id E032E7306E; Sat, 23 Apr 2005 23:11:42 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20050424031142.E032E7306E@freebsd-current.sentex.ca> Date: Sat, 23 Apr 2005 23:11:42 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on clamscanner4 X-Virus-Status: Clean Subject: [current tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 03:11:44 -0000 TB --- 2005-04-24 01:31:44 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-04-24 01:31:44 - starting CURRENT tinderbox run for amd64/amd64 TB --- 2005-04-24 01:31:44 - checking out the source tree TB --- 2005-04-24 01:31:44 - cd /home/tinderbox/CURRENT/amd64/amd64 TB --- 2005-04-24 01:31:44 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2005-04-24 01:38:22 - building world (CFLAGS=-O2 -pipe) TB --- 2005-04-24 01:38:22 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-24 01:38:22 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> stage 5.1: building 32 bit shim libraries TB --- 2005-04-24 02:51:49 - building generic kernel (COPTFLAGS=-O2 -pipe) TB --- 2005-04-24 02:51:49 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-24 02:51:49 - /usr/bin/make buildkernel KERNCONF=GENERIC >>> Kernel build for GENERIC started on Sun Apr 24 02:51:50 UTC 2005 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything >>> Kernel build for GENERIC completed on Sun Apr 24 03:07:25 UTC 2005 TB --- 2005-04-24 03:07:25 - generating LINT kernel config TB --- 2005-04-24 03:07:25 - cd /home/tinderbox/CURRENT/amd64/amd64/src/sys/amd64/conf TB --- 2005-04-24 03:07:25 - /usr/bin/make -B LINT TB --- 2005-04-24 03:07:25 - building LINT kernel (COPTFLAGS=-O2 -pipe) TB --- 2005-04-24 03:07:25 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-24 03:07:25 - /usr/bin/make buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Sun Apr 24 03:07:25 UTC 2005 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/tinderbox/CURRENT/amd64/amd64/src/sys -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/acpica -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/altq -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/ipfilter -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/pf -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/ath -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/ath/freebsd -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/ngatm -I/tinderbox/CURRENT/amd64/amd64/src/sys/dev/twa -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-ta bles -ffreestanding -Werror /tinderbox/CURRENT/amd64/amd64/src/sys/dev/acpica/Osd/OsdDebug.c In file included from /tinderbox/CURRENT/amd64/amd64/src/sys/dev/acpica/Osd/OsdDebug.c:45: /tinderbox/CURRENT/amd64/amd64/src/sys/dev/acpica/acpivar.h:425:1: "ACPI_MAX_THREADS" redefined In file included from /tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/acpica/acfreebsd.h:128, from /tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/acpica/acenv.h:208, from /tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/acpica/acpi.h:126, from /tinderbox/CURRENT/amd64/amd64/src/sys/dev/acpica/Osd/OsdDebug.c:43: ./opt_acpi.h:2:1: this is the location of the previous definition *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/obj/amd64/tinderbox/CURRENT/amd64/amd64/src/sys/LINT. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. TB --- 2005-04-24 03:11:42 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-04-24 03:11:42 - ERROR: failed to build lint kernel TB --- 2005-04-24 03:11:42 - tinderbox aborted From owner-freebsd-amd64@FreeBSD.ORG Sun Apr 24 15:33:09 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4317B16A4CE; Sun, 24 Apr 2005 15:33:09 +0000 (GMT) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D16643D1D; Sun, 24 Apr 2005 15:33:08 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.13.3/8.13.3) with ESMTP id j3OFX8ed018272; Sun, 24 Apr 2005 11:33:08 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.3/8.13.3) with ESMTP id j3OFX8ha042874; Sun, 24 Apr 2005 11:33:08 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id D44F67306E; Sun, 24 Apr 2005 11:33:07 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20050424153307.D44F67306E@freebsd-current.sentex.ca> Date: Sun, 24 Apr 2005 11:33:07 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on clamscanner4 X-Virus-Status: Clean Subject: [releng_5 tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 15:33:09 -0000 TB --- 2005-04-24 14:13:04 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-04-24 14:13:04 - starting RELENG_5 tinderbox run for amd64/amd64 TB --- 2005-04-24 14:13:04 - checking out the source tree TB --- 2005-04-24 14:13:04 - cd /home/tinderbox/RELENG_5/amd64/amd64 TB --- 2005-04-24 14:13:04 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -rRELENG_5 src TB --- 2005-04-24 14:22:31 - building world (CFLAGS=-O -pipe) TB --- 2005-04-24 14:22:31 - cd /home/tinderbox/RELENG_5/amd64/amd64/src TB --- 2005-04-24 14:22:31 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> stage 5.1: building 32 bit shim libraries TB --- 2005-04-24 15:19:47 - building generic kernel (COPTFLAGS=-O -pipe) TB --- 2005-04-24 15:19:47 - cd /home/tinderbox/RELENG_5/amd64/amd64/src TB --- 2005-04-24 15:19:47 - /usr/bin/make buildkernel KERNCONF=GENERIC >>> Kernel build for GENERIC started on Sun Apr 24 15:19:48 UTC 2005 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything >>> Kernel build for GENERIC completed on Sun Apr 24 15:29:37 UTC 2005 TB --- 2005-04-24 15:29:37 - generating LINT kernel config TB --- 2005-04-24 15:29:37 - cd /home/tinderbox/RELENG_5/amd64/amd64/src/sys/amd64/conf TB --- 2005-04-24 15:29:37 - /usr/bin/make -B LINT TB --- 2005-04-24 15:29:37 - building LINT kernel (COPTFLAGS=-O -pipe) TB --- 2005-04-24 15:29:37 - cd /home/tinderbox/RELENG_5/amd64/amd64/src TB --- 2005-04-24 15:29:37 - /usr/bin/make buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Sun Apr 24 15:29:37 UTC 2005 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/tinderbox/RELENG_5/amd64/amd64/src/sys -I/tinderbox/RELENG_5/amd64/amd64/src/sys/contrib/dev/acpica -I/tinderbox/RELENG_5/amd64/amd64/src/sys/contrib/altq -I/tinderbox/RELENG_5/amd64/amd64/src/sys/contrib/ipfilter -I/tinderbox/RELENG_5/amd64/amd64/src/sys/contrib/pf -I/tinderbox/RELENG_5/amd64/amd64/src/sys/contrib/dev/ath -I/tinderbox/RELENG_5/amd64/amd64/src/sys/contrib/dev/ath/freebsd -I/tinderbox/RELENG_5/amd64/amd64/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror /tinderbox/RELENG_5/amd64/amd64/sr c/sys/dev/acpica/acpi.c In file included from /tinderbox/RELENG_5/amd64/amd64/src/sys/dev/acpica/acpi.c:59: /tinderbox/RELENG_5/amd64/amd64/src/sys/dev/acpica/acpivar.h:409:1: "ACPI_MAX_THREADS" redefined In file included from /tinderbox/RELENG_5/amd64/amd64/src/sys/contrib/dev/acpica/acfreebsd.h:128, from /tinderbox/RELENG_5/amd64/amd64/src/sys/contrib/dev/acpica/acenv.h:208, from /tinderbox/RELENG_5/amd64/amd64/src/sys/contrib/dev/acpica/acpi.h:126, from /tinderbox/RELENG_5/amd64/amd64/src/sys/dev/acpica/acpi.c:58: ./opt_acpi.h:2:1: this is the location of the previous definition *** Error code 1 Stop in /tinderbox/RELENG_5/amd64/amd64/obj/amd64/tinderbox/RELENG_5/amd64/amd64/src/sys/LINT. *** Error code 1 Stop in /tinderbox/RELENG_5/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/RELENG_5/amd64/amd64/src. TB --- 2005-04-24 15:33:07 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-04-24 15:33:07 - ERROR: failed to build lint kernel TB --- 2005-04-24 15:33:07 - tinderbox aborted From owner-freebsd-amd64@FreeBSD.ORG Sun Apr 24 18:28:56 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A28816A4CE; Sun, 24 Apr 2005 18:28:56 +0000 (GMT) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4D7143D49; Sun, 24 Apr 2005 18:28:55 +0000 (GMT) (envelope-from mi@aldan.algebra.com) Received: from aldan.algebra.com (mi@localhost [127.0.0.1]) by aldan.algebra.com (8.13.1/8.13.1) with ESMTP id j3OIStPB005104 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 24 Apr 2005 14:28:55 -0400 (EDT) (envelope-from mi@aldan.algebra.com) Received: (from mi@localhost) by aldan.algebra.com (8.13.1/8.13.1/Submit) id j3OISslg005103; Sun, 24 Apr 2005 14:28:54 -0400 (EDT) (envelope-from mi) From: Mikhail Teterin Message-Id: <200504241828.j3OISslg005103@aldan.algebra.com> To: x11@FreeBSD.org, amd64@FreeBSD.org Date: Sun, 24 Apr 2005 14:28:54 -0400 (EDT) X-Face: %UW#n0|w>ydeGt/b@1-.UFP=K^~-:0f#O:D7w y+z3/UR{6SCQ X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Subject: which video card for FreeBSD/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 18:28:56 -0000 Hello! I'll, probably, give up on NVidia soon. The free "nv" driver does not support two monitors on the same card, and the proprietory "nvidia" driver does not support amd64. My attempts to get the Linux/amd64 driver to work have so far yielded nothing but solid hangs of the system. Adding an older PCI (VGA) card to drive the second monitor was disappointing -- the picture is of noticably poorer quality than over DVI. Is there a decent AGP or PCI-X dual-DVI card out there, that offers decent 1600x1200 picture on FreeBSD/amd64? 3D is not a requirement... Thanks! -mi From owner-freebsd-amd64@FreeBSD.ORG Sun Apr 24 18:39:23 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2EEAE16A4CE; Sun, 24 Apr 2005 18:39:23 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7983343D3F; Sun, 24 Apr 2005 18:39:20 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.21] (rat.samsco.home [192.168.254.21]) (authenticated bits=0) by pooker.samsco.org (8.13.1/8.13.1) with ESMTP id j3OIeK0F015018; Sun, 24 Apr 2005 12:40:20 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <426BE772.9080301@samsco.org> Date: Sun, 24 Apr 2005 12:37:38 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.5) Gecko/20050321 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mikhail Teterin References: <200504241828.j3OISslg005103@aldan.algebra.com> In-Reply-To: <200504241828.j3OISslg005103@aldan.algebra.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org cc: amd64@freebsd.org cc: x11@freebsd.org Subject: Re: which video card for FreeBSD/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 18:39:23 -0000 Mikhail Teterin wrote: > Hello! > > I'll, probably, give up on NVidia soon. The free "nv" driver does not > support two monitors on the same card, and the proprietory "nvidia" > driver does not support amd64. My attempts to get the Linux/amd64 driver > to work have so far yielded nothing but solid hangs of the system. > An amd64 version of the nvidia driver is in the works, but the amd64 kernel needs some features before it cam become a reality. I know that people are working on those features, but I know no idea what their timeline is. > Adding an older PCI (VGA) card to drive the second monitor was > disappointing -- the picture is of noticably poorer quality than over > DVI. > > Is there a decent AGP or PCI-X I assume you mean PCI-E here, not PCI-X. > dual-DVI card out there, that offers > decent 1600x1200 picture on FreeBSD/amd64? 3D is not a requirement... I have an ATI X600 Pro card driving a 1600x1200 LCD DVI display, and it looks __nice__. It only has one DVI output, though. I imagine that ATI sells versions that have dual DVI. Scott From owner-freebsd-amd64@FreeBSD.ORG Sun Apr 24 18:39:49 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2285616A4CE; Sun, 24 Apr 2005 18:39:49 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3964943D5D; Sun, 24 Apr 2005 18:39:46 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v8.0.1.R) with ESMTP id md50001357973.msg; Sun, 24 Apr 2005 19:35:26 +0100 Message-ID: <004601c548fc$d5c6c820$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "Mikhail Teterin" , , References: <200504241828.j3OISslg005103@aldan.algebra.com> Date: Sun, 24 Apr 2005 19:38:36 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Spam-Processed: multiplay.co.uk, Sun, 24 Apr 2005 19:35:26 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDAV-Processed: multiplay.co.uk, Sun, 24 Apr 2005 19:35:28 +0100 Subject: Re: which video card for FreeBSD/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 18:39:49 -0000 Matrox cards may be an option. Steve ----- Original Message ----- From: "Mikhail Teterin" > Is there a decent AGP or PCI-X dual-DVI card out there, that offers > decent 1600x1200 picture on FreeBSD/amd64? 3D is not a requirement... ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-amd64@FreeBSD.ORG Sun Apr 24 18:46:01 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4190616A4CE; Sun, 24 Apr 2005 18:46:01 +0000 (GMT) Received: from leguin.anholt.net (69-30-77-85.dq1sn.easystreet.com [69.30.77.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id E583E43D48; Sun, 24 Apr 2005 18:46:00 +0000 (GMT) (envelope-from eta@lclark.edu) Received: from leguin.anholt.net (localhost [127.0.0.1]) by leguin.anholt.net (8.13.3/8.13.1) with ESMTP id j3OIjEqG039353; Sun, 24 Apr 2005 11:45:14 -0700 (PDT) (envelope-from eta@lclark.edu) Received: (from anholt@localhost) by leguin.anholt.net (8.13.3/8.13.1/Submit) id j3OIjDDO039352; Sun, 24 Apr 2005 11:45:13 -0700 (PDT) (envelope-from eta@lclark.edu) X-Authentication-Warning: leguin.anholt.net: anholt set sender to eta@lclark.edu using -f From: Eric Anholt To: Steven Hartland In-Reply-To: <004601c548fc$d5c6c820$b3db87d4@multiplay.co.uk> References: <200504241828.j3OISslg005103@aldan.algebra.com> <004601c548fc$d5c6c820$b3db87d4@multiplay.co.uk> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 24 Apr 2005 11:45:12 -0700 Message-Id: <1114368312.965.7.camel@leguin> Mime-Version: 1.0 X-Mailer: Evolution 2.2.0 FreeBSD GNOME Team Port cc: amd64@freebsd.org cc: x11@freebsd.org cc: Mikhail Teterin Subject: Re: which video card for FreeBSD/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 18:46:01 -0000 On Sun, 2005-04-24 at 19:38 +0100, Steven Hartland wrote: > Matrox cards may be an option. > > Steve > ----- Original Message ----- > From: "Mikhail Teterin" > > > Is there a decent AGP or PCI-X dual-DVI card out there, that offers > > decent 1600x1200 picture on FreeBSD/amd64? 3D is not a requirement... As we haven't seen updates to the open-source MGA driver in ages, and the Matrox binary driver won't work, Matrox in general would probably not work. That leaves ATI. Keith Packard has tried dual-DVI on ATI, but had issues with whatever radeon he was using (don't remember) getting the second DVI to work, and has fallen back to DVI and VGA. I'm not sure what it would take to fix it (I've avoided mode setting stuff so far), but I would imagine someone interested could do so. -- Eric Anholt eta@lclark.edu http://people.freebsd.org/~anholt/ anholt@FreeBSD.org From owner-freebsd-amd64@FreeBSD.ORG Sun Apr 24 18:48:45 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8342916A4CE; Sun, 24 Apr 2005 18:48:45 +0000 (GMT) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id D99A343D45; Sun, 24 Apr 2005 18:48:44 +0000 (GMT) (envelope-from mi@corbulon.video-collage.com) Received: from corbulon.video-collage.com (static-151-204-231-237.bos.east.verizon.net [151.204.231.237]) by aldan.algebra.com (8.13.1/8.13.1) with ESMTP id j3OImfE8005167 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 24 Apr 2005 14:48:44 -0400 (EDT) (envelope-from mi@corbulon.video-collage.com) Received: from corbulon.video-collage.com (mi@localhost.video-collage.com [127.0.0.1])j3OImZVM088747 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 24 Apr 2005 14:48:36 -0400 (EDT) (envelope-from mi@corbulon.video-collage.com) Received: (from mi@localhost)j3OImZeR088746; Sun, 24 Apr 2005 14:48:35 -0400 (EDT) (envelope-from mi) From: Mikhail Teterin Message-Id: <200504241848.j3OImZeR088746@corbulon.video-collage.com> To: scottl@samsco.org (Scott Long) Date: Sun, 24 Apr 2005 14:48:35 -0400 (EDT) In-Reply-To: <426BE772.9080301@samsco.org> X-Mailer: ELM [version 2.5 PL7] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamd / ClamAV version devel-20040615, clamav-milter version 0.73a on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 cc: amd64@freebsd.org cc: x11@freebsd.org cc: Mikhail Teterin Subject: Re: which video card for FreeBSD/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 18:48:45 -0000 > > I'll, probably, give up on NVidia soon. The free "nv" driver does not > > support two monitors on the same card, and the proprietory "nvidia" > > driver does not support amd64. My attempts to get the Linux/amd64 driver > > to work have so far yielded nothing but solid hangs of the system. > An amd64 version of the nvidia driver is in the works, but the amd64 > kernel needs some features before it cam become a reality. I know > that people are working on those features, but I know no idea what their > timeline is. You are, probably, talking about Page Attribute Table (PAT), right? According to the Linux' driver's NVIDIA_Changelog, PAT is only used on Linux since last fall -- earlier releases did not need it, it seems. > > Is there a decent AGP or PCI-X > > I assume you mean PCI-E here, not PCI-X. I mean PCI-X. My IWill DK8X has no PCI-E slots. > > dual-DVI card out there, that offers > > decent 1600x1200 picture on FreeBSD/amd64? 3D is not a requirement... > > I have an ATI X600 Pro card driving a 1600x1200 LCD DVI display, and > it looks __nice__. It only has one DVI output, though. I imagine that > ATI sells versions that have dual DVI. And Xorg/XFree86 had no problems? Since I'm buying a new one anyway, I'd rather have something supported by our radeon drm-module, but such things may not have dual DVIs... Thanks! -mi From owner-freebsd-amd64@FreeBSD.ORG Sun Apr 24 21:02:08 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 48BC616A4CE; Sun, 24 Apr 2005 21:02:08 +0000 (GMT) Received: from freebee.digiware.nl (dsl439.iae.nl [212.61.63.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4D8A43D46; Sun, 24 Apr 2005 21:02:06 +0000 (GMT) (envelope-from wjw@withagen.nl) Received: from [212.61.27.71] (dual.digiware.nl [212.61.27.71]) by freebee.digiware.nl (8.13.1/8.13.1) with ESMTP id j3OL1jO1011168; Sun, 24 Apr 2005 23:01:50 +0200 (CEST) (envelope-from wjw@withagen.nl) Message-ID: <426C0939.5060901@withagen.nl> Date: Sun, 24 Apr 2005 23:01:45 +0200 From: Willem Jan Withagen User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mikhail Teterin References: <200504241828.j3OISslg005103@aldan.algebra.com> In-Reply-To: <200504241828.j3OISslg005103@aldan.algebra.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: amd64@freebsd.org cc: x11@freebsd.org Subject: Re: which video card for FreeBSD/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 21:02:08 -0000 Mikhail Teterin wrote: > Hello! > > I'll, probably, give up on NVidia soon. The free "nv" driver does not > support two monitors on the same card, and the proprietory "nvidia" > driver does not support amd64. My attempts to get the Linux/amd64 driver > to work have so far yielded nothing but solid hangs of the system. > > Adding an older PCI (VGA) card to drive the second monitor was > disappointing -- the picture is of noticably poorer quality than over > DVI. > > Is there a decent AGP or PCI-X dual-DVI card out there, that offers > decent 1600x1200 picture on FreeBSD/amd64? 3D is not a requirement... I'm a happy camper with an ATI card with VGA and DVI output: none3@pci2:0:0: class=0x030000 card=0x200217ee chip=0x41501002 rev=0x00 hdr=0x00 vendor = 'ATI Technologies Inc.' device = 'Radeon 9600 Series (V350)' class = display subclass = VGA none4@pci2:0:1: class=0x038000 card=0x200317ee chip=0x41701002 rev=0x00 hdr=0x00 vendor = 'ATI Technologies Inc.' device = 'Radeon 9600 Series - Secondary' class = display it gives met 2*1280*1024. But I'm shure you can get it to do 1600x1200 as well. I'm just running 1280*1024 'cause the 17" LCD are native at that resolution. Xorg has some nice tricks to play multiple screens in a simple way. --WjW From owner-freebsd-amd64@FreeBSD.ORG Sun Apr 24 21:50:42 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8228916A4CE; Sun, 24 Apr 2005 21:50:42 +0000 (GMT) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5DA643D3F; Sun, 24 Apr 2005 21:50:41 +0000 (GMT) (envelope-from mi@corbulon.video-collage.com) Received: from corbulon.video-collage.com (static-151-204-231-237.bos.east.verizon.net [151.204.231.237]) by aldan.algebra.com (8.13.1/8.13.1) with ESMTP id j3OLodqV005633 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 24 Apr 2005 17:50:40 -0400 (EDT) (envelope-from mi@corbulon.video-collage.com) Received: from corbulon.video-collage.com (mi@localhost.video-collage.com [127.0.0.1])j3OLoXV8091389 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 24 Apr 2005 17:50:33 -0400 (EDT) (envelope-from mi@corbulon.video-collage.com) Received: (from mi@localhost)j3OLoWQt091388; Sun, 24 Apr 2005 17:50:32 -0400 (EDT) (envelope-from mi) From: Mikhail Teterin Message-Id: <200504242150.j3OLoWQt091388@corbulon.video-collage.com> To: wjw@withagen.nl (Willem Jan Withagen) Date: Sun, 24 Apr 2005 17:50:32 -0400 (EDT) In-Reply-To: <426C0939.5060901@withagen.nl> X-Mailer: ELM [version 2.5 PL7] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamd / ClamAV version devel-20040615, clamav-milter version 0.73a on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 cc: amd64@freebsd.org cc: x11@freebsd.org Subject: Re: which video card for FreeBSD/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2005 21:50:42 -0000 > > Adding an older PCI (VGA) card to drive the second monitor was > > disappointing -- the picture is of noticably poorer quality than over > > DVI. > > > > Is there a decent AGP or PCI-X dual-DVI card out there, that offers > > decent 1600x1200 picture on FreeBSD/amd64? 3D is not a requirement... > > I'm a happy camper with an ATI card with VGA and DVI output: > > none3@pci2:0:0: class=0x030000 card=0x200217ee chip=0x41501002 rev=0x00 hdr=0x00 > vendor = 'ATI Technologies Inc.' > device = 'Radeon 9600 Series (V350)' > class = display > subclass = VGA > none4@pci2:0:1: class=0x038000 card=0x200317ee chip=0x41701002 rev=0x00 hdr=0x00 > vendor = 'ATI Technologies Inc.' > device = 'Radeon 9600 Series - Secondary' > class = display > > it gives met 2*1280*1024. But I'm shure you can get it to do 1600x1200 > as well. I'm just running 1280*1024 'cause the 17" LCD are native at > that resolution. Xorg has some nice tricks to play multiple screens in > a simple way. I guess, I'll try using an ATI's DVI combined with one of the DVI outputs on my NVidia. I wonder, if there is a chance of getting GATOS on FreeBSD/amd64. -mi From owner-freebsd-amd64@FreeBSD.ORG Mon Apr 25 00:57:08 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DAB5616A4CE; Mon, 25 Apr 2005 00:57:08 +0000 (GMT) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D24D43D46; Mon, 25 Apr 2005 00:57:08 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2.sentex.ca [199.212.134.9]) by smarthost2.sentex.ca (8.13.3/8.13.3) with ESMTP id j3P0v7Q0043412; Sun, 24 Apr 2005 20:57:07 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.3/8.13.3) with ESMTP id j3P0v7Gr023081; Sun, 24 Apr 2005 20:57:07 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 93BDB7306E; Sun, 24 Apr 2005 20:57:07 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20050425005707.93BDB7306E@freebsd-current.sentex.ca> Date: Sun, 24 Apr 2005 20:57:07 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on clamscanner1 X-Virus-Status: Clean Subject: [current tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2005 00:57:09 -0000 TB --- 2005-04-24 23:17:10 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-04-24 23:17:10 - starting CURRENT tinderbox run for amd64/amd64 TB --- 2005-04-24 23:17:10 - checking out the source tree TB --- 2005-04-24 23:17:10 - cd /home/tinderbox/CURRENT/amd64/amd64 TB --- 2005-04-24 23:17:10 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2005-04-24 23:23:54 - building world (CFLAGS=-O2 -pipe) TB --- 2005-04-24 23:23:54 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-24 23:23:54 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> stage 5.1: building 32 bit shim libraries TB --- 2005-04-25 00:36:25 - building generic kernel (COPTFLAGS=-O2 -pipe) TB --- 2005-04-25 00:36:25 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-25 00:36:25 - /usr/bin/make buildkernel KERNCONF=GENERIC >>> Kernel build for GENERIC started on Mon Apr 25 00:36:25 UTC 2005 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything >>> Kernel build for GENERIC completed on Mon Apr 25 00:52:49 UTC 2005 TB --- 2005-04-25 00:52:49 - generating LINT kernel config TB --- 2005-04-25 00:52:49 - cd /home/tinderbox/CURRENT/amd64/amd64/src/sys/amd64/conf TB --- 2005-04-25 00:52:49 - /usr/bin/make -B LINT TB --- 2005-04-25 00:52:49 - building LINT kernel (COPTFLAGS=-O2 -pipe) TB --- 2005-04-25 00:52:49 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-25 00:52:49 - /usr/bin/make buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Mon Apr 25 00:52:49 UTC 2005 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] cc -c -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/tinderbox/CURRENT/amd64/amd64/src/sys -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/acpica -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/altq -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/ipfilter -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/pf -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/ath -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/ath/freebsd -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/ngatm -I/tinderbox/CURRENT/amd64/amd64/src/sys/dev/twa -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-ta bles -ffreestanding -Werror /tinderbox/CURRENT/amd64/amd64/src/sys/dev/acpica/Osd/OsdDebug.c In file included from /tinderbox/CURRENT/amd64/amd64/src/sys/dev/acpica/Osd/OsdDebug.c:45: /tinderbox/CURRENT/amd64/amd64/src/sys/dev/acpica/acpivar.h:425:1: "ACPI_MAX_THREADS" redefined In file included from /tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/acpica/acfreebsd.h:128, from /tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/acpica/acenv.h:208, from /tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/acpica/acpi.h:126, from /tinderbox/CURRENT/amd64/amd64/src/sys/dev/acpica/Osd/OsdDebug.c:43: ./opt_acpi.h:2:1: this is the location of the previous definition *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/obj/amd64/tinderbox/CURRENT/amd64/amd64/src/sys/LINT. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. TB --- 2005-04-25 00:57:07 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-04-25 00:57:07 - ERROR: failed to build lint kernel TB --- 2005-04-25 00:57:07 - tinderbox aborted From owner-freebsd-amd64@FreeBSD.ORG Mon Apr 25 11:02:12 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67AC416A4CE for ; Mon, 25 Apr 2005 11:02:12 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2940B43D2D for ; Mon, 25 Apr 2005 11:02:12 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j3PB2C2S061393 for ; Mon, 25 Apr 2005 11:02:12 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j3PB2BHb061387 for freebsd-amd64@freebsd.org; Mon, 25 Apr 2005 11:02:11 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 25 Apr 2005 11:02:11 GMT Message-Id: <200504251102.j3PB2BHb061387@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-amd64@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2005 11:02:12 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/10/27] amd64/73211 amd64 FAST_IPSEC broken on amd64 1 problem total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2003/11/26] amd64/59714 amd64 device timeout and ad0: WARNING - WRITE_D o [2004/07/28] amd64/69704 amd64 ext2/ext3 unstable in amd64 o [2004/07/28] amd64/69707 amd64 IPC32 dont work OK in amd64 FreeBSD o [2004/09/07] amd64/71471 amd64 Can not install 5.3beta3/amd64 on IBM eSe o [2004/10/28] amd64/73252 amd64 ad6: WARNING - READ_DMA interrupt was see o [2004/10/30] amd64/73322 amd64 unarchiving /etc to msdos fs locks up amd o [2004/11/01] amd64/73369 amd64 on-board firewire unreliable with Asus K8 o [2004/11/07] amd64/73650 amd64 5.3-release panics on boot o [2004/11/10] amd64/73775 amd64 Kernel panic (trap 12) when booting with o [2004/11/16] amd64/74014 amd64 5.3-RELEASE-AMD64 freezes on boot during o [2004/12/05] amd64/74747 amd64 System panic on shutdown when process wil o [2004/12/18] amd64/75209 amd64 5.3-Release panics on attempted boot from o [2004/12/23] amd64/75417 amd64 ACPI: SATA Hard-disk o [2005/01/12] amd64/76136 amd64 system halts before reboot o [2005/01/17] amd64/76336 amd64 racoon/setkey -D cases instant "Fatal Tra o [2005/02/02] amd64/77011 amd64 consisten 5.3-p5 make crash on installwor o [2005/02/04] amd64/77101 amd64 Please include ULi M1689 LAN, SATA, and A o [2005/02/17] amd64/77629 amd64 aMule hardlocks AMD64 system o [2005/02/23] amd64/77949 amd64 Pb boot FreeBSD 64 o [2005/03/04] amd64/78406 amd64 [panic]AMD64 w/ SCSI: issue 'rm -r /usr/p o [2005/03/07] amd64/78558 amd64 installation o [2005/03/14] amd64/78848 amd64 sis driver on FreeBSD 5.x does not work o o [2005/04/12] amd64/79813 amd64 Will not install/run on amd64 nForce 4 pl o [2005/04/19] amd64/80114 amd64 kldload snd_ich causes interrupt storm wh 24 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2004/01/11] amd64/61209 amd64 ppc0: cannot reserve I/O port range o [2004/02/21] amd64/63188 amd64 ti(4) broken on amd64 o [2004/07/28] amd64/69705 amd64 IPC problem (msq_queues) o [2004/07/28] amd64/69709 amd64 ACPI enabled then floppy don't work (5.2. o [2004/08/15] amd64/70500 amd64 bge driver for 3Com 3C996B on amd64 preve o [2004/12/02] amd64/74608 amd64 mpt hangs 5 minutes when booting o [2004/12/07] amd64/74811 amd64 df, nfs mount, negative Avail -> 32/64-bi o [2004/12/13] ports/75015 amd64 cvsup on amd64 with runsocks (socks5) cor o [2004/12/25] amd64/75488 amd64 ntfs_iconv not working on amd64 o [2005/02/13] amd64/77470 amd64 Using of cyrillic filenames conversion le o [2005/03/17] amd64/78954 amd64 kerberos 5 failed to build 11 problems total. From owner-freebsd-amd64@FreeBSD.ORG Mon Apr 25 12:16:04 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1A03C16A4CE for ; Mon, 25 Apr 2005 12:16:04 +0000 (GMT) Received: from mailspool.ops.uunet.co.za (mailspool.ops.uunet.co.za [196.7.0.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49EA343D48 for ; Mon, 25 Apr 2005 12:16:03 +0000 (GMT) (envelope-from mark@aboutit.co.za) Received: from 196-47-4-10.access.uunet.co.za ([196.47.4.10] helo=hermes.aboutit.co.za) by mailspool.ops.uunet.co.za with esmtp (Exim 3.36 #1) id 1DQ2VN-000LJJ-00 for freebsd-amd64@freebsd.org; Mon, 25 Apr 2005 14:16:01 +0200 Received: by hermes.aboutit.co.za (Postfix, from userid 65534) id AA93AD2A7A; Mon, 25 Apr 2005 14:15:58 +0200 (SAST) Received: from localhost (localhost [127.0.0.1]) by hermes.aboutit.co.za (Postfix) with ESMTP id C3A22D4037 for ; Mon, 25 Apr 2005 14:15:57 +0200 (SAST) Received: from mark.aboutit.co.za (jukebox.aboutit.co.za [10.10.10.10]) by hermes.aboutit.co.za (Postfix) with ESMTP id 75555C9C1D for ; Mon, 25 Apr 2005 14:15:57 +0200 (SAST) From: Mark Bojara To: freebsd-amd64@freebsd.org Content-Type: text/plain Organization: AboutIT Online Date: Mon, 25 Apr 2005 14:15:57 +0200 Message-Id: <1114431357.47752.24.camel@mark.aboutit.co.za> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS snapshot-20020531 X-Spam-Status: No, hits=-5.2 required=8.0 tests=AWL,BAYES_01 version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Subject: FastTrak TX4200 (PDC40519) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2005 12:16:04 -0000 Hi All Was just wondering is there going to be support for the FastTrak TX4200 (PDC40519) in 5.4? Thanks Mark -- Mark Bojara - AboutIT Online - +27-12-460-1000 From owner-freebsd-amd64@FreeBSD.ORG Mon Apr 25 12:55:02 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 423C916A4CE for ; Mon, 25 Apr 2005 12:55:02 +0000 (GMT) Received: from lyra.enemy.org (lyra.enemy.org [62.116.11.42]) by mx1.FreeBSD.org (Postfix) with SMTP id 129B443D4C for ; Mon, 25 Apr 2005 12:55:01 +0000 (GMT) (envelope-from acme@s2.enemy.org) Received: (qmail 9540 invoked from network); 25 Apr 2005 12:50:02 -0000 Received: from unknown (HELO s2.enemy.org) (62.116.11.3) by lyra.enemy.org with SMTP; 25 Apr 2005 12:50:02 -0000 Received: from s2.enemy.org (acme@localhost.enemy.org [127.0.0.1]) by s2.enemy.org (8.12.11/8.12.11) with ESMTP id j3PCswGf039074 for ; Mon, 25 Apr 2005 14:54:58 +0200 (CEST) (envelope-from acme@s2.enemy.org) Received: (from acme@localhost) by s2.enemy.org (8.12.11/8.12.11/Submit) id j3PCsw7I039073 for freebsd-amd64@freebsd.org; Mon, 25 Apr 2005 14:54:58 +0200 (CEST) (envelope-from acme) Date: Mon, 25 Apr 2005 14:54:58 +0200 From: "Alex D'Elia" To: freebsd-amd64@freebsd.org Message-ID: <20050425125458.GA38529@s2.enemy.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zhXaljGHf11kAtnf" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Organization: Olocolors.org X-Url: X-Operating-System: FreeBSD 4.9-STABLE X-GPG-Id: E7A6E8B5 X-GPG-Keyserver: http://pgp.mit.edu X-GPG-Fingerprint: 5C5A 4866 9B71 D200 FDCC 8878 0B63 A477 E7A6 E8B5 Subject: jdk15 port error X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2005 12:55:02 -0000 --zhXaljGHf11kAtnf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello * Having troubles since a while in installing jdk15 from ports on amd64. Here I report the error and the system status. Hope this can help for the community ;) take care alex =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D onstantPool.java =2E./../../src/share/classes/sun/reflect/NativeConstructorAccessorImpl.java =2E./../../src/share/classes/sun/reflect/NativeMethodAccessorImpl.java =2E./../../src/share/classes/sun/reflect/Reflection.java ; \ fi execv(): Bad address Error trying to exec /usr/local/linux-sun-jdk1.4.2/bin/javac. Check if file exists and permissions are set correctly. gmake[3]: *** [.compile.classlist] Error 1 gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java/java' gmake[2]: *** [all] Error 1 gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/java' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make' gmake: *** [j2se-build] Error 2 *** Error code 2 Stop in /usr/ports/java/jdk15. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D FreeBSD 5.4-STABLE #1: Sun Apr 24 13:12:41 CEST 2005 root@...................:/usr/obj/usr/src/sys/MYKERNEL ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 Processor 2800+ (1802.31-MHz K8-class CPU) =2E.... # New ports collection makefile for: jdk15 # Date created: 12 January 2005 # Whom: Alexey Zelkin # # # $FreeBSD: ports/java/jdk15/Makefile,v 1.89 2005/04/08 15:33:00 glewis # Exp $ # PORTNAME=3D jdk PORTVERSION=3D ${JDK_VERSION}p${JDK_PATCHSET_VERSION} PORTREVISION=3D 1 CATEGORIES=3D java devel =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --=20 ** acme aka Alex D'Elia --> root.acme.com ** mail:: acme@enemy.org ** --zhXaljGHf11kAtnf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFCbOigC2Okd+em6LURAtvxAJ9zYPNVH6TSBMvOkrgEq8PJO3DaywCfWQkf KkdDER3QCAAnl9r1t0ANhPA= =7azw -----END PGP SIGNATURE----- --zhXaljGHf11kAtnf-- From owner-freebsd-amd64@FreeBSD.ORG Mon Apr 25 13:12:55 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 979E416A4CE; Mon, 25 Apr 2005 13:12:55 +0000 (GMT) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6CEA43D5E; Mon, 25 Apr 2005 13:12:54 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2.sentex.ca [199.212.134.9]) by smarthost2.sentex.ca (8.13.3/8.13.3) with ESMTP id j3PDCrdg067909; Mon, 25 Apr 2005 09:12:53 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.3/8.13.3) with ESMTP id j3PDCrAg045787; Mon, 25 Apr 2005 09:12:53 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 892957306E; Mon, 25 Apr 2005 09:12:53 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20050425131253.892957306E@freebsd-current.sentex.ca> Date: Mon, 25 Apr 2005 09:12:53 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on clamscanner1 X-Virus-Status: Clean Subject: [releng_5 tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2005 13:12:55 -0000 TB --- 2005-04-25 11:53:04 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-04-25 11:53:04 - starting RELENG_5 tinderbox run for amd64/amd64 TB --- 2005-04-25 11:53:04 - checking out the source tree TB --- 2005-04-25 11:53:04 - cd /home/tinderbox/RELENG_5/amd64/amd64 TB --- 2005-04-25 11:53:04 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -rRELENG_5 src TB --- 2005-04-25 12:02:15 - building world (CFLAGS=-O -pipe) TB --- 2005-04-25 12:02:15 - cd /home/tinderbox/RELENG_5/amd64/amd64/src TB --- 2005-04-25 12:02:15 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> stage 5.1: building 32 bit shim libraries TB --- 2005-04-25 12:59:33 - building generic kernel (COPTFLAGS=-O -pipe) TB --- 2005-04-25 12:59:33 - cd /home/tinderbox/RELENG_5/amd64/amd64/src TB --- 2005-04-25 12:59:33 - /usr/bin/make buildkernel KERNCONF=GENERIC >>> Kernel build for GENERIC started on Mon Apr 25 12:59:34 UTC 2005 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything >>> Kernel build for GENERIC completed on Mon Apr 25 13:09:23 UTC 2005 TB --- 2005-04-25 13:09:23 - generating LINT kernel config TB --- 2005-04-25 13:09:23 - cd /home/tinderbox/RELENG_5/amd64/amd64/src/sys/amd64/conf TB --- 2005-04-25 13:09:23 - /usr/bin/make -B LINT TB --- 2005-04-25 13:09:23 - building LINT kernel (COPTFLAGS=-O -pipe) TB --- 2005-04-25 13:09:23 - cd /home/tinderbox/RELENG_5/amd64/amd64/src TB --- 2005-04-25 13:09:23 - /usr/bin/make buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Mon Apr 25 13:09:24 UTC 2005 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/tinderbox/RELENG_5/amd64/amd64/src/sys -I/tinderbox/RELENG_5/amd64/amd64/src/sys/contrib/dev/acpica -I/tinderbox/RELENG_5/amd64/amd64/src/sys/contrib/altq -I/tinderbox/RELENG_5/amd64/amd64/src/sys/contrib/ipfilter -I/tinderbox/RELENG_5/amd64/amd64/src/sys/contrib/pf -I/tinderbox/RELENG_5/amd64/amd64/src/sys/contrib/dev/ath -I/tinderbox/RELENG_5/amd64/amd64/src/sys/contrib/dev/ath/freebsd -I/tinderbox/RELENG_5/amd64/amd64/src/sys/contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Werror /tinderbox/RELENG_5/amd64/amd64/sr c/sys/dev/acpica/acpi.c In file included from /tinderbox/RELENG_5/amd64/amd64/src/sys/dev/acpica/acpi.c:59: /tinderbox/RELENG_5/amd64/amd64/src/sys/dev/acpica/acpivar.h:409:1: "ACPI_MAX_THREADS" redefined In file included from /tinderbox/RELENG_5/amd64/amd64/src/sys/contrib/dev/acpica/acfreebsd.h:128, from /tinderbox/RELENG_5/amd64/amd64/src/sys/contrib/dev/acpica/acenv.h:208, from /tinderbox/RELENG_5/amd64/amd64/src/sys/contrib/dev/acpica/acpi.h:126, from /tinderbox/RELENG_5/amd64/amd64/src/sys/dev/acpica/acpi.c:58: ./opt_acpi.h:2:1: this is the location of the previous definition *** Error code 1 Stop in /tinderbox/RELENG_5/amd64/amd64/obj/amd64/tinderbox/RELENG_5/amd64/amd64/src/sys/LINT. *** Error code 1 Stop in /tinderbox/RELENG_5/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/RELENG_5/amd64/amd64/src. TB --- 2005-04-25 13:12:52 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-04-25 13:12:52 - ERROR: failed to build lint kernel TB --- 2005-04-25 13:12:52 - tinderbox aborted From owner-freebsd-amd64@FreeBSD.ORG Mon Apr 25 14:57:59 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 61A0616A4CF for ; Mon, 25 Apr 2005 14:57:59 +0000 (GMT) Received: from pandora.afflictions.org (asylum.afflictions.org [64.7.134.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D1CF43D6D for ; Mon, 25 Apr 2005 14:57:58 +0000 (GMT) (envelope-from dgerow@afflictions.org) Received: from localhost (localhost [127.0.0.1]) by pandora.afflictions.org (Postfix) with ESMTP id 053C378C5D for ; Mon, 25 Apr 2005 10:59:50 -0400 (EDT) Received: from pandora.afflictions.org ([127.0.0.1]) by localhost (pandora.afflictions.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 65879-05 for ; Mon, 25 Apr 2005 10:59:45 -0400 (EDT) Received: from dementia.afflictions.org (dementia.afflictions.org [172.19.206.56]) by pandora.afflictions.org (Postfix) with ESMTP id AB68B78C35 for ; Mon, 25 Apr 2005 10:59:44 -0400 (EDT) Received: by dementia.afflictions.org (Postfix, from userid 1001) id 8BFE333C60; Mon, 25 Apr 2005 10:58:28 -0400 (EDT) Date: Mon, 25 Apr 2005 10:58:28 -0400 From: Damian Gerow To: freebsd-amd64@freebsd.org Message-ID: <20050425145828.GR720@afflictions.org> Mail-Followup-To: freebsd-amd64@freebsd.org References: <20050425125458.GA38529@s2.enemy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050425125458.GA38529@s2.enemy.org> X-GPG-Fingerprint: B3D7 D901 A53A 1A99 BFD6 E6DF 9F3B 742B C288 9CC9 User-Agent: Mutt/1.5.9i X-Virus-Scanned: amavisd-new at pandora.afflictions.org Subject: Re: jdk15 port error X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2005 14:57:59 -0000 Thus spake Alex D'Elia (acme@enemy.org) [25/04/05 09:09]: : Having troubles since a while in installing jdk15 from ports : on amd64. Here I report the error and the system status. : Hope this can help for the community ;) This has been discussed a few times in the past few months: - Damian From owner-freebsd-amd64@FreeBSD.ORG Mon Apr 25 17:22:12 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F32616A4CE for ; Mon, 25 Apr 2005 17:22:12 +0000 (GMT) Received: from mx-out-04.forthnet.gr (mx-out.forthnet.gr [193.92.150.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBFA843D2D for ; Mon, 25 Apr 2005 17:22:07 +0000 (GMT) (envelope-from dds@aueb.gr) Received: from mx-av-01.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) j3PHM5v7007877 for ; Mon, 25 Apr 2005 20:22:05 +0300 Received: from mx-as-02.forthnet.gr (mx-as.forthnet.gr [193.92.150.226]) by mx-av-01.forthnet.gr (8.12.11/8.12.11) with ESMTP id j3PHM5bd015893 for ; Mon, 25 Apr 2005 20:22:05 +0300 Received: from forthnet.gr (athmta03.forthnet.gr [193.92.150.22]) by mx-as-02.forthnet.gr (8.12.11/8.12.11) with ESMTP id j3PHM5G8020057 for ; Mon, 25 Apr 2005 20:22:05 +0300 Received: from [192.168.136.16] (dds.ath.forthnet.gr [213.16.179.162]) by forthnet.gr (8.12.11/8.12.11) with ESMTP id j3PHM4OM009398 for ; Mon, 25 Apr 2005 20:22:05 +0300 Message-ID: <426D1F5A.20307@aueb.gr> Date: Mon, 25 Apr 2005 20:48:26 +0400 From: Diomidis Spinellis User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en, el, de MIME-Version: 1.0 To: freebsd-amd64@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Kernel panics running 5.4-RC3 and 5.4-STABLE on an AMD-64 with 8GB RAM X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2005 17:22:12 -0000 I am trying to make a Tyan S4882 (K8QSPro) motherboard with two 2.2GHz Opterons and 8GB RAM to work with FreeBSD. Both the 5.4-RC3 installation boot disk, and Thursday's 5.4-STABLE code panic. The system works fine with 4GB of RAM (it can run make buildworld), either by physically removing the memory, or by adding "set hw.physmem = 4GB" in boot/loader.rc. In one of the panic instances, the installed kernel panics after the "Starting sshd." message with the following message: panic: vm_fault: fault on nofault entry, addr: ffffffffa9ac58000 cpuid = 1 boot() called on cpu#0 Uptime: 38s Cannot dump. No dump device defined. iir0: Flushing all Host Drives. Please wait ... kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x48 fault code = supervisor read, page not present instruction pointer = 0x0:0xffffffff802aa243 (I copied the above from a blury photograph, so I may have mixed some 0s and 8s). The instruction at the IP appears to be part of turnstile_wait, though I can't see why the specific instruction could create a fault, so I could well be wrong here. 0xffffffff802aa040 : mov %rsi,%rax 0xffffffff802aa043 : shr $0x8,%rax 0xffffffff802aa047 : and $0x7f,%eax I've also seen (when booting with different options): - Fatal trap 27: stack fault while in kernel mode and - Division by zero Disabling ACPI or booting in safe mode does not help. Fedora Linux runs on the same machine without a problem; memtest86 does not report any errors on the memory. I am attaching the output from dmesg; any pointers, help, ideas will be appreciated. Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.4-STABLE #0: Thu Apr 21 23:19:03 EEST 2005 dds@titan.dmst.aueb.gr:/usr/obj/usr/src/sys/TITAN Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Opteron(tm) Processor 848 (2205.02-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0xf58 Stepping = 8 Features=0x78bfbff AMD Features=0xe0500800 real memory = 4227268608 (4031 MB) avail memory = 4082753536 (3893 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-23 on motherboard ioapic1 irqs 24-27 on motherboard ioapic2 irqs 28-31 on motherboard acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xc008-0xc00b on acpi0 cpu0: on acpi0 cpu1: on acpi0 acpi_button0: on acpi0 pcib0: port 0x8080-0x80ff,0x8000-0x807f,0xcf8-0xcff iomem 0xd8000-0xdbfff on acpi0 pci0: on pcib0 pcib1: at device 6.0 on pci0 pci1: on pcib1 ohci0: mem 0xfc100000-0xfc100fff irq 19 at device 0.0 on pci1 usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered ohci1: mem 0xfc101000-0xfc101fff irq 19 at device 0.1 on pci1 usb1: OHCI version 1.0, legacy support usb1: SMM does not respond, resetting usb1: on ohci1 usb1: USB revision 1.0 uhub1: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 3 ports with 3 removable, self powered uhci0: port 0x2400-0x241f irq 17 at device 3.0 on pci1 usb2: on uhci0 usb2: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered uhci1: port 0x2420-0x243f irq 16 at device 3.1 on pci1 usb3: on uhci1 usb3: USB revision 1.0 uhub3: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub3: 2 ports with 2 removable, self powered pci1: at device 3.2 (no driver attached) atapci0: port 0x2440-0x244f,0x2450-0x2453,0x2458-0x245f,0x2454-0x2457,0x2460-0x2467 mem 0xfc103400-0xfc1037ff irq 19 at device 5.0 on pci1 ata2: channel #0 on atapci0 ata3: channel #1 on atapci0 ata4: channel #2 on atapci0 ata5: channel #3 on atapci0 pci1: at device 6.0 (no driver attached) isab0: at device 7.0 on pci0 isa0: on isab0 atapci1: port 0x1000-0x100f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 7.1 on pci0 ata0: channel #0 on atapci1 ata1: channel #1 on atapci1 pci0: at device 7.3 (no driver attached) pcib2: at device 10.0 on pci0 pci2: on pcib2 mpt0: port 0x3000-0x30ff mem 0xfe000000-0xfe00ffff,0xfe010000-0xfe01ffff irq 24 at device 4.0 on pci2 mpt1: port 0x3400-0x34ff mem 0xfe020000-0xfe02ffff,0xfe030000-0xfe03ffff irq 25 at device 4.1 on pci2 bge0: mem 0xfe040000-0xfe04ffff,0xfe050000-0xfe05ffff irq 24 at device 9.0 on pci2 miibus0: on bge0 brgphy0: on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto bge0: Ethernet address: 00:e0:81:63:1e:86 bge1: mem 0xfe060000-0xfe06ffff,0xfe070000-0xfe07ffff irq 25 at device 9.1 on pci2 miibus1: on bge1 brgphy1: on miibus1 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto bge1: Ethernet address: 00:e0:81:63:1e:85 pci0: at device 10.1 (no driver attached) pcib3: at device 11.0 on pci0 pci3: on pcib3 iir0: mem 0xfe300000-0xfe303fff irq 28 at device 3.0 on pci3 pci0: at device 11.1 (no driver attached) atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A fdc0: port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0 ppc0: port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 orm0: at iomem 0xcd000-0xce7ff,0xcc800-0xccfff,0xc8000-0xcc7ff,0xc0000-0xc7fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 1.000 msec acd0: CDROM at ata1-master PIO4 Waiting 15 seconds for SCSI devices to settle da0 at iir0 bus 2 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: Tagged Queueing Enabled da0: 286063MB (585858420 512 byte sectors: 255H 63S/T 36468C) SMP: AP CPU #1 Launched! Mounting root from ufs:/dev/da0s1a -- Diomidis Spinellis - dds@ - http://www.spinellis.gr From owner-freebsd-amd64@FreeBSD.ORG Mon Apr 25 18:20:47 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 190E816A528; Mon, 25 Apr 2005 18:20:47 +0000 (GMT) Received: from neon.webfusion.co.uk (neon.webfusion.co.uk [212.67.202.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24AEB43D49; Mon, 25 Apr 2005 18:20:46 +0000 (GMT) (envelope-from michael.hopkins@hopkins-research.com) Received: from 83-216-132-201.markch725.adsl.metronet.co.uk ([83.216.132.201] helo=[192.168.0.5]) by neon.webfusion.co.uk with asmtp (Exim 3.36 #1) id 1DQ8CK-0007mx-00; Mon, 25 Apr 2005 19:20:44 +0100 User-Agent: Microsoft-Entourage/10.1.1.2418 Date: Mon, 25 Apr 2005 19:20:41 +0100 From: Michael Hopkins To: "freebsd-amd64@freebsd.org" , Message-ID: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Subject: Attempted install of an Obj-C Foundation library X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2005 18:20:47 -0000 Hi all I am trying to get a working Objective-C Foundation library on FreeBSD amd64 (5.3-RELEASE-p10 with ports cvsup'd today) so that I can port some Objective-C code from Mac OS X - and not having any success. I first tried a default install of the gnustep-base port but got this: ---------------------------------------------------------------------- Athlon# pwd /usr/ports/lang/gnustep-base Athlon# make ===> gnustep-base-1.10.3 depends on file: /usr/local/lib/libcallback.a - found ===> gnustep-base-1.10.3 depends on file: /usr/local/lib/gcc-lib/x86_64-portbld-freebsd5.3/3.3.6/libobjc.so - not found ===> Verifying install for /usr/local/lib/gcc-lib/x86_64-portbld-freebsd5.3/3.3.6/libobjc.so in /usr/ports/lang/gcc-objc ===> gcc-objc-3.3.6_20050330 is marked as broken: Bus errors in stage2; system compiler may be broken.. *** Error code 1 Stop in /usr/ports/lang/gcc-objc. *** Error code 1 Stop in /usr/ports/lang/gnustep-base. ---------------------------------------------------------------------- Someone then suggested I should use 'make -DGNUSTEP_WITH_GCC34' and try again, so I did and got a lot further. After lots of successful building of GCC 3.4.4 it died. Another attempt (which skips the unsuccessful stuff) gives this: ---------------------------------------------------------------------- ===> Building for gnustep-base-1.10.3 Making all in Source... gmake[1]: Entering directory `/usr/ports/lang/gnustep-base/work/gnustep-base-1.10.3/Source' Making all in subprojects of library libgnustep-base... gmake[2]: Entering directory `/usr/ports/lang/gnustep-base/work/gnustep-base-1.10.3/Source/Additions' Making all for subproject Additions... gmake[3]: Nothing to be done for `internal-subproject-all'. gmake[2]: Leaving directory `/usr/ports/lang/gnustep-base/work/gnustep-base-1.10.3/Source/Additions' Making all for library libgnustep-base... Linking library libgnustep-base ... /usr/bin/ld: /usr/local/lib/libcallback.a(misc.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libcallback.a: could not read symbols: Bad value collect2: ld returned 1 exit status gmake[1]: Leaving directory `/usr/ports/lang/gnustep-base/work/gnustep-base-1.10.3/Source' Making all in SSL... gmake[1]: Entering directory `/usr/ports/lang/gnustep-base/work/gnustep-base-1.10.3/SSL' Making all for bundle SSL... Linking bundle SSL ... /usr/bin/ld: cannot find -lgnustep-base collect2: ld returned 1 exit status gmake[2]: *** [SSL.bundle/./SSL] Error 1 gmake[1]: *** [SSL.all.bundle.variables] Error 2 gmake[1]: Leaving directory `/usr/ports/lang/gnustep-base/work/gnustep-base-1.10.3/SSL' gmake: *** [internal-all] Error 2 *** Error code 2 Stop in /usr/ports/lang/gnustep-base. ---------------------------------------------------------------------- I have also tried the other option i.e. libfoundation, from here: http://download.opengroupware.org/sources/trunk/libfoundation-trunk-latest. tar.gz I am told that this is a pretty complete port of the Foundation library, but the install instructions are rather vague. An attempted build after ./configure gives this: ---------------------------------------------------------------------- root@Athlon /home/mwh/Coding/Obj-C/libfoundation/libfoundation # gmake GNUmakefile:29: /common.make: No such file or directory GNUmakefile:34: /aggregate.make: No such file or directory gmake: *** No rule to make target `/aggregate.make'. Stop. ---------------------------------------------------------------------- Has anyone had any luck getting either gnustep-base or libfoundation to build on FreeBSD amd64? I will also want to get it working with the Linux compatibility environment compiler and mingw32 (both of which are working fine for compiling C code) - any thoughts on how feasible this would be? TIA Michael _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ _/ _/_/_/ Hopkins Research Ltd _/ _/ _/ _/ _/_/_/_/ _/_/_/ http://www.hopkins-research.com/ _/ _/ _/ _/ _/ _/ _/ _/ 'touch the future' _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ From owner-freebsd-amd64@FreeBSD.ORG Mon Apr 25 19:26:43 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A069516A4D0; Mon, 25 Apr 2005 19:26:43 +0000 (GMT) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A80A43D5D; Mon, 25 Apr 2005 19:26:38 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.13.3/8.13.3) with ESMTP id j3PJQS27094501; Mon, 25 Apr 2005 15:26:28 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.3/8.13.3) with ESMTP id j3PJQSwo066039; Mon, 25 Apr 2005 15:26:28 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 804967306E; Mon, 25 Apr 2005 15:26:28 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20050425192628.804967306E@freebsd-current.sentex.ca> Date: Mon, 25 Apr 2005 15:26:28 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on clamscanner1 X-Virus-Status: Clean Subject: [current tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2005 19:26:43 -0000 TB --- 2005-04-25 19:22:59 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-04-25 19:22:59 - starting CURRENT tinderbox run for amd64/amd64 TB --- 2005-04-25 19:22:59 - checking out the source tree TB --- 2005-04-25 19:22:59 - cd /home/tinderbox/CURRENT/amd64/amd64 TB --- 2005-04-25 19:22:59 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2005-04-25 19:25:21 - building world (CFLAGS=-O2 -pipe) TB --- 2005-04-25 19:25:21 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-25 19:25:21 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] ===> rescue/rescue/ipf/ippool (cleandir) rm -f ippool_y.c ippool_y.h ippool_l.c ippool_l.h y.tab.c y.tab.h ippool ippool_y.o ippool_l.o kmem.o ippool.o ippool.5.gz ippool.8.gz ippool.5.cat.gz ippool.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> rescue/rescue/ipf/ipresend (cleandir) rm -f y.tab.c y.tab.h ipresend ipresend.o ip.o resend.o sbpf.o sock.o 44arp.o ipresend.1.gz ipresend.1.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS cd /tinderbox/CURRENT/amd64/amd64/src/rescue/rescue/../../sbin/ipfs && MAKEOBJDIRPREFIX=/home/tinderbox/CURRENT/amd64/amd64/obj/amd64/tinderbox/CURRENT/amd64/amd64/src/rescue/rescue /home/tinderbox/CURRENT/amd64/amd64/obj/tinderbox/CURRENT/amd64/amd64/src/make.i386/make DIRPRFX=rescue/rescue/ipfs/ cleandir cd: can't cd to /tinderbox/CURRENT/amd64/amd64/src/rescue/rescue/../../sbin/ipfs *** Error code 2 Stop in /tinderbox/CURRENT/amd64/amd64/src/rescue/rescue. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src/rescue. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. TB --- 2005-04-25 19:26:28 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-04-25 19:26:28 - ERROR: failed to build world TB --- 2005-04-25 19:26:28 - tinderbox aborted From owner-freebsd-amd64@FreeBSD.ORG Mon Apr 25 20:53:04 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3CEC616A4CE for ; Mon, 25 Apr 2005 20:53:04 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id D48D143D39 for ; Mon, 25 Apr 2005 20:53:03 +0000 (GMT) (envelope-from kometen@gmail.com) Received: by rproxy.gmail.com with SMTP id a41so995935rng for ; Mon, 25 Apr 2005 13:53:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Fo0OwLubUuHmLkvCBdkMLzXnT3nj6GX7FaFjRf7M0ga4MJHLiYKkdAcyVogK8LuPOWebB2ab4owAapq1RWDzMvDdBu6z4RSnxwSjciEUX/ESu5SD/5ByWRq+iTtne/hevE00pMnTcZ/h3novT74Uov/xQROgeMZpc6MFylGLCpE= Received: by 10.38.74.33 with SMTP id w33mr157264rna; Mon, 25 Apr 2005 13:53:01 -0700 (PDT) Received: by 10.38.149.53 with HTTP; Mon, 25 Apr 2005 13:53:01 -0700 (PDT) Message-ID: Date: Mon, 25 Apr 2005 22:53:01 +0200 From: Claus Guttesen To: freebsd-amd64@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: amd64 as nfs-server X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Claus Guttesen List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2005 20:53:04 -0000 Hi. I'm getting a couple of Dell 2850's with dual EMT64 cpu's @ 2.8 GHz to replace our very trusty PIII-nfs-servers. I am accustomed to the rock-solid stability of the i386-port of the 5.x-branch and will probably put i386 on them. But has anyone used the amd64 coupled with PE 2850's as nfs-servers? They have onboard em-interfaces. regards Claus From owner-freebsd-amd64@FreeBSD.ORG Mon Apr 25 22:12:34 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 355A816A4D2 for ; Mon, 25 Apr 2005 22:12:34 +0000 (GMT) Received: from mail27.sea5.speakeasy.net (mail27.sea5.speakeasy.net [69.17.117.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id EB58343D41 for ; Mon, 25 Apr 2005 22:12:33 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 32372 invoked from network); 25 Apr 2005 22:12:33 -0000 Received: from server.baldwin.cx ([216.27.160.63]) (envelope-sender )AES256-SHA encrypted SMTP for ; 25 Apr 2005 22:12:33 -0000 Received: from [192.168.0.15] (osx.baldwin.cx [192.168.0.15]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j3PMBvg0027487; Mon, 25 Apr 2005 18:12:27 -0400 (EDT) (envelope-from jhb@FreeBSD.org) In-Reply-To: <861x9bdlsz.fsf@xps.des.no> References: <20050413210855.GA15088@bitsurf.net> <200504131714.20356.jkim@niksun.com> <86fyxt1ovu.fsf@xps.des.no> <20050415005850.GB80903@dragon.NUXI.org> <2fd864e050414180911e4e5be@mail.gmail.com> <20050415211600.GA1473@dragon.NUXI.org> <1113603823.91832.7.camel@cream.xbsd.org> <2fd864e050415174048dc579d@mail.gmail.com> <346a802205041519071e4dc609@mail.gmail.com> <4260D654.3060301@mail.uni-mainz.de> <861x9bdlsz.fsf@xps.des.no> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Message-Id: <26eed6fd4518c4ec43b35a6ad77ef075@FreeBSD.org> Content-Transfer-Encoding: quoted-printable From: John Baldwin Date: Mon, 25 Apr 2005 15:06:09 -0400 To: des@des.no (=?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?=) X-Mailer: Apple Mail (2.622) X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx cc: "O. Hartmann" cc: freebsd-amd64@FreeBSD.org Subject: Re: Recommendations? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2005 22:12:34 -0000 On Apr 16, 2005, at 7:05 AM, Dag-Erling Sm=F8rgrav wrote: > "O. Hartmann" writes: >> My question si: how to force nVidia delivering the needed >> informations? It should be an aspect of customer demand. nVidia >> earns money with each sold nForce based motherboard and each GForce >> based graphics card and the better the support, the more they can >> sell. > > Why would they care about FreeBSD users? Unlike Linux, FreeBSD has > approximately zero brainshare in the computer press, and unlike > FreeBSD, Linux runs perfectly well on nForce chipsets. In fact, the > Asus SK8N which David loathes is "Linux-certified". If I didn't > already know that FreeBSD is perfect and flawless and that David is > the Christ reborn, I'd be tempted to conclude that there is something > wrong with FreeBSD (or David), not with the nForce chipset. The problem is that FreeBSD tries to still use IRQ 0 and use mixed=20 mode. Both Linux and Windows use the lapic timer instead of IRQ 0=20 which 6.0 now does. We just weren't being Windowsy enough, and almost=20= all BIOS writers, etc. use "boots on Windows" as their QA test. --=20 John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =3D http://www.FreeBSD.org= From owner-freebsd-amd64@FreeBSD.ORG Tue Apr 26 05:19:14 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D8A016A4CE; Tue, 26 Apr 2005 05:19:14 +0000 (GMT) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA4F643D31; Tue, 26 Apr 2005 05:19:13 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1.sentex.ca [199.212.134.4]) by smarthost2.sentex.ca (8.13.3/8.13.3) with ESMTP id j3Q5JDYr028150; Tue, 26 Apr 2005 01:19:13 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.13.3/8.13.3) with ESMTP id j3Q5JfZp016207; Tue, 26 Apr 2005 01:19:42 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 673CD7306E; Tue, 26 Apr 2005 01:19:12 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20050426051912.673CD7306E@freebsd-current.sentex.ca> Date: Tue, 26 Apr 2005 01:19:12 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.82, clamav-milter version 0.82 on clamscanner1 X-Virus-Status: Clean Subject: [current tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 05:19:14 -0000 TB --- 2005-04-26 05:03:32 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-04-26 05:03:32 - starting CURRENT tinderbox run for amd64/amd64 TB --- 2005-04-26 05:03:32 - checking out the source tree TB --- 2005-04-26 05:03:32 - cd /home/tinderbox/CURRENT/amd64/amd64 TB --- 2005-04-26 05:03:32 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2005-04-26 05:17:53 - building world (CFLAGS=-O2 -pipe) TB --- 2005-04-26 05:17:53 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-26 05:17:53 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] ===> rescue/rescue/ipf/ipnat (clean) rm -f ipnat_y.c ipnat_y.h ipnat_l.c ipnat_l.h y.tab.c y.tab.h ipnat ipnat.o ipnat_y.o ipnat_l.o ipnat.8.gz ipnat.4.gz ipnat.5.gz ipnat.8.cat.gz ipnat.4.cat.gz ipnat.5.cat.gz ===> rescue/rescue/ipf/ippool (clean) rm -f ippool_y.c ippool_y.h ippool_l.c ippool_l.h y.tab.c y.tab.h ippool ippool_y.o ippool_l.o kmem.o ippool.o ippool.5.gz ippool.8.gz ippool.5.cat.gz ippool.8.cat.gz ===> rescue/rescue/ipf/ipresend (clean) rm -f y.tab.c y.tab.h ipresend ipresend.o ip.o resend.o sbpf.o sock.o 44arp.o ipresend.1.gz ipresend.1.cat.gz cd /tinderbox/CURRENT/amd64/amd64/src/rescue/rescue/../../sbin/ipfs && MAKEOBJDIRPREFIX=/home/tinderbox/CURRENT/amd64/amd64/obj/amd64/tinderbox/CURRENT/amd64/amd64/src/rescue/rescue /home/tinderbox/CURRENT/amd64/amd64/obj/tinderbox/CURRENT/amd64/amd64/src/make.i386/make DIRPRFX=rescue/rescue/ipfs/ clean cd: can't cd to /tinderbox/CURRENT/amd64/amd64/src/rescue/rescue/../../sbin/ipfs *** Error code 2 Stop in /tinderbox/CURRENT/amd64/amd64/src/rescue/rescue. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src/rescue. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. TB --- 2005-04-26 05:19:12 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-04-26 05:19:12 - ERROR: failed to build world TB --- 2005-04-26 05:19:12 - tinderbox aborted From owner-freebsd-amd64@FreeBSD.ORG Tue Apr 26 12:08:54 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B78A516A4CE for ; Tue, 26 Apr 2005 12:08:54 +0000 (GMT) Received: from neon.webfusion.co.uk (neon.webfusion.co.uk [212.67.202.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74B4A43D2D for ; Tue, 26 Apr 2005 12:08:54 +0000 (GMT) (envelope-from michael.hopkins@hopkins-research.com) Received: from 83-216-132-201.markch725.adsl.metronet.co.uk ([83.216.132.201] helo=[192.168.0.5]) by neon.webfusion.co.uk with asmtp (Exim 3.36 #1) id 1DQOQM-0002os-00 for freebsd-amd64@freebsd.org; Tue, 26 Apr 2005 12:40:18 +0100 User-Agent: Microsoft-Entourage/10.1.1.2418 Date: Tue, 26 Apr 2005 12:40:15 +0100 From: Michael Hopkins To: "freebsd-amd64@freebsd.org" Message-ID: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Subject: gnustep-base linker error on amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 12:08:54 -0000 Hi all The gnustep-base build will not complete because of this error: --------------------------------------- /usr/bin/ld: /usr/local/lib/libcallback.a(misc.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libcallback.a: could not read symbols: Bad value collect2: ld returned 1 exit status --------------------------------------- I believe it is something to do with shared libraries on amd64 but I'm not sure what I can do about it. Does adding -fPIC somewhere (i.e. in /etc/make.conf or the makefile) produce a solution? I don't want to experiment before someone who knows more has given me some guidance here. TIA Michael _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ _/ _/_/_/ Hopkins Research Ltd _/ _/ _/ _/ _/_/_/_/ _/_/_/ http://www.hopkins-research.com/ _/ _/ _/ _/ _/ _/ _/ _/ 'touch the future' _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ From owner-freebsd-amd64@FreeBSD.ORG Tue Apr 26 16:26:12 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99E7016A4CE; Tue, 26 Apr 2005 16:26:12 +0000 (GMT) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1387B43D5F; Tue, 26 Apr 2005 16:26:12 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2.sentex.ca [199.212.134.9]) by smarthost2.sentex.ca (8.13.3/8.13.3) with ESMTP id j3QGQBw8062047; Tue, 26 Apr 2005 12:26:11 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.3/8.13.3) with ESMTP id j3QGQBvJ077960; Tue, 26 Apr 2005 12:26:11 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 75D267306E; Tue, 26 Apr 2005 12:26:11 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20050426162611.75D267306E@freebsd-current.sentex.ca> Date: Tue, 26 Apr 2005 12:26:11 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on clamscanner2 X-Virus-Status: Clean Subject: [current tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 16:26:12 -0000 TB --- 2005-04-26 16:22:46 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-04-26 16:22:46 - starting CURRENT tinderbox run for amd64/amd64 TB --- 2005-04-26 16:22:46 - checking out the source tree TB --- 2005-04-26 16:22:46 - cd /home/tinderbox/CURRENT/amd64/amd64 TB --- 2005-04-26 16:22:46 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2005-04-26 16:25:13 - building world (CFLAGS=-O2 -pipe) TB --- 2005-04-26 16:25:13 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-26 16:25:13 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] ===> rescue/rescue/ipf/ipnat (clean) rm -f ipnat_y.c ipnat_y.h ipnat_l.c ipnat_l.h y.tab.c y.tab.h ipnat ipnat.o ipnat_y.o ipnat_l.o ipnat.8.gz ipnat.4.gz ipnat.5.gz ipnat.8.cat.gz ipnat.4.cat.gz ipnat.5.cat.gz ===> rescue/rescue/ipf/ippool (clean) rm -f ippool_y.c ippool_y.h ippool_l.c ippool_l.h y.tab.c y.tab.h ippool ippool_y.o ippool_l.o kmem.o ippool.o ippool.5.gz ippool.8.gz ippool.5.cat.gz ippool.8.cat.gz ===> rescue/rescue/ipf/ipresend (clean) rm -f y.tab.c y.tab.h ipresend ipresend.o ip.o resend.o sbpf.o sock.o 44arp.o ipresend.1.gz ipresend.1.cat.gz cd /tinderbox/CURRENT/amd64/amd64/src/rescue/rescue/../../sbin/ipfs && MAKEOBJDIRPREFIX=/home/tinderbox/CURRENT/amd64/amd64/obj/amd64/tinderbox/CURRENT/amd64/amd64/src/rescue/rescue /home/tinderbox/CURRENT/amd64/amd64/obj/tinderbox/CURRENT/amd64/amd64/src/make.i386/make DIRPRFX=rescue/rescue/ipfs/ clean cd: can't cd to /tinderbox/CURRENT/amd64/amd64/src/rescue/rescue/../../sbin/ipfs *** Error code 2 Stop in /tinderbox/CURRENT/amd64/amd64/src/rescue/rescue. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src/rescue. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. TB --- 2005-04-26 16:26:11 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-04-26 16:26:11 - ERROR: failed to build world TB --- 2005-04-26 16:26:11 - tinderbox aborted From owner-freebsd-amd64@FreeBSD.ORG Tue Apr 26 16:58:43 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F3A416A4CE for ; Tue, 26 Apr 2005 16:58:43 +0000 (GMT) Received: from dragon.NUXI.org (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 388D443D31 for ; Tue, 26 Apr 2005 16:58:43 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.NUXI.org (obrien@localhost [127.0.0.1]) by dragon.NUXI.org (8.13.3/8.13.3) with ESMTP id j3QGwbYj064880; Tue, 26 Apr 2005 09:58:37 -0700 (PDT) (envelope-from obrien@dragon.NUXI.org) Received: (from obrien@localhost) by dragon.NUXI.org (8.13.3/8.13.1/Submit) id j3QGwaTk064852; Tue, 26 Apr 2005 09:58:36 -0700 (PDT) (envelope-from obrien) Date: Tue, 26 Apr 2005 09:58:36 -0700 From: "David O'Brien" To: Diomidis Spinellis Message-ID: <20050426165836.GA45067@dragon.NUXI.org> References: <426D1F5A.20307@aueb.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <426D1F5A.20307@aueb.gr> X-Operating-System: FreeBSD 6.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 User-Agent: Mutt/1.5.9i cc: freebsd-amd64@freebsd.org Subject: Re: Kernel panics running 5.4-RC3 and 5.4-STABLE on an AMD-64 with 8GB RAM X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-amd64@freebsd.org List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 16:58:43 -0000 On Mon, Apr 25, 2005 at 08:48:26PM +0400, Diomidis Spinellis wrote: > I am trying to make a Tyan S4882 (K8QSPro) motherboard with two 2.2GHz > Opterons and 8GB RAM to work with FreeBSD. Both the 5.4-RC3 > installation boot disk, and Thursday's 5.4-STABLE code panic. The > system works fine with 4GB of RAM (it can run make buildworld), either > by physically removing the memory, or by adding "set hw.physmem = 4GB" > in boot/loader.rc. What BIOS version are you using, and what are your BIOS settings for memory related things? Do you have "Hardware memory hole" or "Software memory hole" enabled? Can use the full 8GB fine if you use "Failsafe defaults"? If you use "Optimial defaults"? -- -- David (obrien@FreeBSD.org) From owner-freebsd-amd64@FreeBSD.ORG Tue Apr 26 17:01:16 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C12D016A4CE; Tue, 26 Apr 2005 17:01:16 +0000 (GMT) Received: from dragon.NUXI.org (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9294C43D53; Tue, 26 Apr 2005 17:01:16 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.NUXI.org (obrien@localhost [127.0.0.1]) by dragon.NUXI.org (8.13.3/8.13.3) with ESMTP id j3QH1Fk9069065; Tue, 26 Apr 2005 10:01:15 -0700 (PDT) (envelope-from obrien@dragon.NUXI.org) Received: (from obrien@localhost) by dragon.NUXI.org (8.13.3/8.13.1/Submit) id j3QH1FSI069055; Tue, 26 Apr 2005 10:01:15 -0700 (PDT) (envelope-from obrien) Date: Tue, 26 Apr 2005 10:01:15 -0700 From: "David O'Brien" To: Michael Hopkins Message-ID: <20050426170115.GB45067@dragon.NUXI.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 6.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 User-Agent: Mutt/1.5.9i cc: freebsd-ports@freebsd.org cc: "freebsd-amd64@freebsd.org" Subject: Re: Attempted install of an Obj-C Foundation library X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-amd64@freebsd.org, freebsd-ports@freebsd.org List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 17:01:16 -0000 On Mon, Apr 25, 2005 at 07:20:41PM +0100, Michael Hopkins wrote: > > > Hi all > > I am trying to get a working Objective-C Foundation library on FreeBSD amd64 > (5.3-RELEASE-p10 with ports cvsup'd today) so that I can port some > Objective-C code from Mac OS X - and not having any success. ... > ===> gcc-objc-3.3.6_20050330 is marked as broken: Bus errors in stage2; > system compiler may be broken.. > *** Error code 1 I must be missing something -- why cant you use the base ObjC compiler? -- -- David (obrien@FreeBSD.org) From owner-freebsd-amd64@FreeBSD.ORG Tue Apr 26 17:03:50 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF24B16A4CE; Tue, 26 Apr 2005 17:03:50 +0000 (GMT) Received: from dragon.NUXI.org (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CF2643D2D; Tue, 26 Apr 2005 17:03:50 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.NUXI.org (obrien@localhost [127.0.0.1]) by dragon.NUXI.org (8.13.3/8.13.3) with ESMTP id j3QH3NKv072370; Tue, 26 Apr 2005 10:03:23 -0700 (PDT) (envelope-from obrien@dragon.NUXI.org) Received: (from obrien@localhost) by dragon.NUXI.org (8.13.3/8.13.1/Submit) id j3QH3IUJ072246; Tue, 26 Apr 2005 10:03:18 -0700 (PDT) (envelope-from obrien) Date: Tue, 26 Apr 2005 10:03:18 -0700 From: "David O'Brien" To: Mikhail Teterin Message-ID: <20050426170318.GC45067@dragon.NUXI.org> References: <426BE772.9080301@samsco.org> <200504241848.j3OImZeR088746@corbulon.video-collage.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200504241848.j3OImZeR088746@corbulon.video-collage.com> X-Operating-System: FreeBSD 6.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 User-Agent: Mutt/1.5.9i cc: x11@freebsd.org cc: Mikhail Teterin cc: freebsd-amd64@freebsd.org Subject: Re: which video card for FreeBSD/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-amd64@freebsd.org List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 17:03:50 -0000 On Sun, Apr 24, 2005 at 02:48:35PM -0400, Mikhail Teterin wrote: > > > Is there a decent AGP or PCI-X > > > > I assume you mean PCI-E here, not PCI-X. > > I mean PCI-X. My IWill DK8X has no PCI-E slots. I use an AGP Matrox G450 in my DK8X. Also any Radeon R200 card should give you X.org native dual-head support on AMD64: Radeon 8500, FireGL 8800, etc... -- -- David (obrien@FreeBSD.org) From owner-freebsd-amd64@FreeBSD.ORG Tue Apr 26 17:10:21 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3279F16A4CE for ; Tue, 26 Apr 2005 17:10:21 +0000 (GMT) Received: from dragon.NUXI.org (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id F237E43D1F for ; Tue, 26 Apr 2005 17:10:20 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.NUXI.org (obrien@localhost [127.0.0.1]) by dragon.NUXI.org (8.13.3/8.13.3) with ESMTP id j3QHAKOk082733; Tue, 26 Apr 2005 10:10:20 -0700 (PDT) (envelope-from obrien@dragon.NUXI.org) Received: (from obrien@localhost) by dragon.NUXI.org (8.13.3/8.13.1/Submit) id j3QHAJ6g082730; Tue, 26 Apr 2005 10:10:19 -0700 (PDT) (envelope-from obrien) Date: Tue, 26 Apr 2005 10:10:19 -0700 From: "David O'Brien" To: Tom Shafron Message-ID: <20050426171019.GE45067@dragon.NUXI.org> References: <20050423024854.88995.qmail@web60007.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050423024854.88995.qmail@web60007.mail.yahoo.com> X-Operating-System: FreeBSD 6.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 User-Agent: Mutt/1.5.9i cc: freebsd-amd64@freebsd.org Subject: Re: 5.3, amd64, k8s pro locked up just now X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-amd64@freebsd.org List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 17:10:21 -0000 On Fri, Apr 22, 2005 at 07:48:54PM -0700, Tom Shafron wrote: > I'm kind of nervous about using 5.4 since it's not > considered a "Release" version yet and I'm planning on > using this for a production machine... that is > assuming I can get it working properly ;) > > Is it the general consensus that 5.4 RC2 is more > stable than 5.3 Unimaginably more stable! -- -- David (obrien@FreeBSD.org) From owner-freebsd-amd64@FreeBSD.ORG Tue Apr 26 17:11:19 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9ACCD16A4CE for ; Tue, 26 Apr 2005 17:11:19 +0000 (GMT) Received: from dragon.NUXI.org (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E44C43D5D for ; Tue, 26 Apr 2005 17:11:19 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.NUXI.org (obrien@localhost [127.0.0.1]) by dragon.NUXI.org (8.13.3/8.13.3) with ESMTP id j3QHBIBk084920; Tue, 26 Apr 2005 10:11:19 -0700 (PDT) (envelope-from obrien@dragon.NUXI.org) Received: (from obrien@localhost) by dragon.NUXI.org (8.13.3/8.13.1/Submit) id j3QHBIiF084912; Tue, 26 Apr 2005 10:11:18 -0700 (PDT) (envelope-from obrien) Date: Tue, 26 Apr 2005 10:11:18 -0700 From: "David O'Brien" To: Tom Shafron Message-ID: <20050426171118.GF45067@dragon.NUXI.org> References: <20050423031916.38882.qmail@web60008.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050423031916.38882.qmail@web60008.mail.yahoo.com> X-Operating-System: FreeBSD 6.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 User-Agent: Mutt/1.5.9i cc: freebsd-amd64@freebsd.org Subject: Re: 5.3, amd64, k8s pro locked up just now X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-amd64@freebsd.org List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 17:11:19 -0000 On Fri, Apr 22, 2005 at 08:19:16PM -0700, Tom Shafron wrote: > Yup, I also have 5.3 running on a very similar i386 > machine that is way more active (it's the main dev > machine) and it hasn't had a single problem. Seems > that the issue is something specific to the amd64 > release... Nope. Related to >=4GB RAM. i386 with PAE kernel has the same issues. -- -- David (obrien@FreeBSD.org) From owner-freebsd-amd64@FreeBSD.ORG Tue Apr 26 17:13:06 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C34B616A4CE; Tue, 26 Apr 2005 17:13:06 +0000 (GMT) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2288C43D39; Tue, 26 Apr 2005 17:13:06 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from corbulon.video-collage.com (static-151-204-231-237.bos.east.verizon.net [151.204.231.237]) by aldan.algebra.com (8.13.1/8.13.1) with ESMTP id j3QHD3Tn016853 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 26 Apr 2005 13:13:04 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from mteterin.us.murex.com (195-11.customer.cloud9.net [168.100.195.11])j3QHCvIG059262 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 26 Apr 2005 13:12:58 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from mteterin.us.murex.com (mteterin@localhost [127.0.0.1]) by mteterin.us.murex.com (8.13.3/8.13.3) with ESMTP id j3QHCsAE025874; Tue, 26 Apr 2005 13:12:54 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by mteterin.us.murex.com (8.13.3/8.13.3/Submit) id j3QHCssa025873; Tue, 26 Apr 2005 13:12:54 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) X-Authentication-Warning: mteterin.us.murex.com: mteterin set sender to mi+mx@aldan.algebra.com using -f From: Mikhail Teterin Organization: Virtual Estates, Inc. To: freebsd-amd64@freebsd.org Date: Tue, 26 Apr 2005 13:12:53 -0400 User-Agent: KMail/1.7.2 References: <426BE772.9080301@samsco.org> <200504241848.j3OImZeR088746@corbulon.video-collage.com> <20050426170318.GC45067@dragon.NUXI.org> In-Reply-To: <20050426170318.GC45067@dragon.NUXI.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504261312.54178.mi+mx@aldan.algebra.com> X-Virus-Scanned: clamd / ClamAV version devel-20040615, clamav-milter version 0.73a on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 cc: x11@freebsd.org Subject: Re: which video card for FreeBSD/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 17:13:06 -0000 > On Sun, Apr 24, 2005 at 02:48:35PM -0400, Mikhail Teterin wrote: > > > > Is there a decent AGP or PCI-X > > > > > > I assume you mean PCI-E here, not PCI-X. > > > > I mean PCI-X. My IWill DK8X has no PCI-E slots. > I use an AGP Matrox G450 in my DK8X. > Also any Radeon R200 card should give you X.org native dual-head support > on AMD64: Radeon 8500, FireGL 8800, etc... But none of these are dual-DVI, are they? Thanks, -mi From owner-freebsd-amd64@FreeBSD.ORG Tue Apr 26 17:25:08 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA19F16A4CE for ; Tue, 26 Apr 2005 17:25:08 +0000 (GMT) Received: from mx-out-04.forthnet.gr (mx-out.forthnet.gr [193.92.150.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2295943D5F for ; Tue, 26 Apr 2005 17:25:05 +0000 (GMT) (envelope-from dds@aueb.gr) Received: from mx-av-02.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) j3QHP3Ua014618 for ; Tue, 26 Apr 2005 20:25:03 +0300 Received: from mx-as-03.forthnet.gr (mx-as.forthnet.gr [193.92.150.226]) by mx-av-02.forthnet.gr (8.12.11/8.12.11) with ESMTP id j3QHP3Ti023879 for ; Tue, 26 Apr 2005 20:25:03 +0300 Received: from forthnet.gr (athmta03.forthnet.gr [193.92.150.22]) by mx-as-03.forthnet.gr (8.12.11/8.12.11) with ESMTP id j3QHP3wg028571 for ; Tue, 26 Apr 2005 20:25:03 +0300 Received: from [192.168.136.16] (dds.ath.forthnet.gr [213.16.179.162]) by forthnet.gr (8.12.11/8.12.11) with ESMTP id j3QHP1m5016732 for ; Tue, 26 Apr 2005 20:25:02 +0300 Message-ID: <426E7971.7060904@aueb.gr> Date: Tue, 26 Apr 2005 21:25:05 +0400 From: Diomidis Spinellis User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en, el, de MIME-Version: 1.0 To: freebsd-amd64@freebsd.org References: <426D1F5A.20307@aueb.gr> <20050426165836.GA45067@dragon.NUXI.org> In-Reply-To: <20050426165836.GA45067@dragon.NUXI.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Kernel panics running 5.4-RC3 and 5.4-STABLE on an AMD-64 with 8GB RAM X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 17:25:08 -0000 David O'Brien wrote: > On Mon, Apr 25, 2005 at 08:48:26PM +0400, Diomidis Spinellis wrote: >>I am trying to make a Tyan S4882 (K8QSPro) motherboard with two 2.2GHz >>Opterons and 8GB RAM to work with FreeBSD. Both the 5.4-RC3 >>installation boot disk, and Thursday's 5.4-STABLE code panic. The >>system works fine with 4GB of RAM (it can run make buildworld), either >>by physically removing the memory, or by adding "set hw.physmem = 4GB" >>in boot/loader.rc. > > What BIOS version are you using, and what are your BIOS settings for > memory related things? Do you have "Hardware memory hole" or "Software > memory hole" enabled? Can use the full 8GB fine if you use "Failsafe > defaults"? If you use "Optimial defaults"? I am using BIOS version 1.0.2. Unfortunately, I've been unable to flash a newer BIOS; the procedure fails with an error indicating that the BIOS size did not mathc the image's size. This happens with all BIOS versions, including the one we are currently running. I'm waiting a reply from Tyan on this. These are the memory related BIOS settings. Advanced configuration: - 4GB memory adjust is set to auto (it can also be set to manual, in which case the hole size can be adjusted from 64MB - 2GB). - ACPI SRAT table is enabled - RSDT FADT revision 1 - HPET timer enabled - Halt on error yes - GART error reporting disabled Chipset configuration: - DRAM bank interleave auto - Node memory interleave disabled - ECC enabled - DRAM ECC enamble - ECC Scrub redirection enabled - 4 bit ECC enabled - DCACHE ECC ECC Scrub CPL disabled - L2 ECC Scrub Ctl disabled - DRAM ECC Scrub CPL 1.31 ms - Speculative TLB reload enabled In PCI configuration: - IO MMU enabled , size 256MB Thanks, Diomidis From owner-freebsd-amd64@FreeBSD.ORG Tue Apr 26 17:40:55 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84B0116A4CE; Tue, 26 Apr 2005 17:40:55 +0000 (GMT) Received: from dragon.NUXI.org (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 266A343D5A; Tue, 26 Apr 2005 17:40:55 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.NUXI.org (obrien@localhost [127.0.0.1]) by dragon.NUXI.org (8.13.3/8.13.3) with ESMTP id j3QHejIF001952; Tue, 26 Apr 2005 10:40:45 -0700 (PDT) (envelope-from obrien@dragon.NUXI.org) Received: (from obrien@localhost) by dragon.NUXI.org (8.13.3/8.13.1/Submit) id j3QHeitw001951; Tue, 26 Apr 2005 10:40:44 -0700 (PDT) (envelope-from obrien) Date: Tue, 26 Apr 2005 10:40:44 -0700 From: "David O'Brien" To: Mikhail Teterin Message-ID: <20050426174044.GA1881@dragon.NUXI.org> References: <426BE772.9080301@samsco.org> <200504241848.j3OImZeR088746@corbulon.video-collage.com> <20050426170318.GC45067@dragon.NUXI.org> <200504261312.54178.mi+mx@aldan.algebra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200504261312.54178.mi+mx@aldan.algebra.com> X-Operating-System: FreeBSD 6.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 User-Agent: Mutt/1.5.9i cc: x11@freebsd.org cc: freebsd-amd64@freebsd.org Subject: Re: which video card for FreeBSD/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@freebsd.org List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 17:40:55 -0000 On Tue, Apr 26, 2005 at 01:12:53PM -0400, Mikhail Teterin wrote: > > On Sun, Apr 24, 2005 at 02:48:35PM -0400, Mikhail Teterin wrote: > > > > > Is there a decent AGP or PCI-X > > > > > > > > I assume you mean PCI-E here, not PCI-X. > > > > > > I mean PCI-X. My IWill DK8X has no PCI-E slots. > > > I use an AGP Matrox G450 in my DK8X. > > Also any Radeon R200 card should give you X.org native dual-head support > > on AMD64: Radeon 8500, FireGL 8800, etc... > > But none of these are dual-DVI, are they? Thanks, Nope. But this is the best you can do AFAIK. Every DVI-cablable monitor I've seen can also handle analog VGA15. -- -- David (obrien@FreeBSD.org) From owner-freebsd-amd64@FreeBSD.ORG Tue Apr 26 17:43:34 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6BC916A4CF; Tue, 26 Apr 2005 17:43:34 +0000 (GMT) Received: from 62-15-211-171.inversas.jazztel.es (62-15-211-171.inversas.jazztel.es [62.15.211.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F05A43D39; Tue, 26 Apr 2005 17:43:33 +0000 (GMT) (envelope-from josemi@freebsd.jazztel.es) Received: from redesjm.local (orion.redesjm.local [192.168.254.16]) j3QHhVU3001922; Tue, 26 Apr 2005 19:43:31 +0200 (CEST) (envelope-from josemi@redesjm.local) Received: from localhost (localhost [[UNIX: localhost]]) by redesjm.local (8.13.3/8.13.3/Submit) id j3QHhVBT012306; Tue, 26 Apr 2005 19:43:31 +0200 (CEST) (envelope-from josemi@redesjm.local) From: Jose M Rodriguez To: freebsd-ports@freebsd.org, freebsd-amd64@freebsd.org Date: Tue, 26 Apr 2005 19:43:30 +0200 User-Agent: KMail/1.8 References: <20050426170115.GB45067@dragon.NUXI.org> In-Reply-To: <20050426170115.GB45067@dragon.NUXI.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200504261943.31021.josemi@redesjm.local> X-AntiVirus: checked by AntiVir Milter (version: 1.1.0-3; AVE: 6.30.0.7; VDF: 6.30.0.116; host: antares.redesjm.local) cc: Michael Hopkins Subject: Re: Attempted install of an Obj-C Foundation library X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 17:43:34 -0000 El Martes, 26 de Abril de 2005 19:01, David O'Brien escribi=F3: > On Mon, Apr 25, 2005 at 07:20:41PM +0100, Michael Hopkins wrote: > > Hi all > > > > I am trying to get a working Objective-C Foundation library on > > FreeBSD amd64 (5.3-RELEASE-p10 with ports cvsup'd today) so that I > > can port some Objective-C code from Mac OS X - and not having any > > success. > > ... > > > =3D=3D=3D> gcc-objc-3.3.6_20050330 is marked as broken: Bus errors in > > stage2; system compiler may be broken.. > > *** Error code 1 > > I must be missing something -- why cant you use the base ObjC > compiler? See ports lang/gcc-objc Makefile. This is the default behavior, ask=20 gnustep guys why. =2D- josemi From owner-freebsd-amd64@FreeBSD.ORG Tue Apr 26 17:59:00 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB89716A4CE; Tue, 26 Apr 2005 17:59:00 +0000 (GMT) Received: from mindfields.energyhq.es.eu.org (73.Red-213-97-200.pooles.rima-tde.net [213.97.200.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1859643D31; Tue, 26 Apr 2005 17:58:57 +0000 (GMT) (envelope-from flynn@energyhq.es.eu.org) Received: from scienide.energyhq.es.eu.org (scienide.energyhq.es.eu.org [IPv6:2001:470:1f01:198:210:4bff:fe3d:e256]) by mindfields.energyhq.es.eu.org (Postfix) with SMTP id 1C468365DC; Tue, 26 Apr 2005 19:58:55 +0200 (CEST) Date: Tue, 26 Apr 2005 19:58:09 +0200 From: Miguel Mendez To: freebsd-amd64@freebsd.org, freebsd-ports@freebsd.org Message-Id: <20050426195809.1fb28305.flynn@energyhq.es.eu.org> In-Reply-To: <20050426170115.GB45067@dragon.NUXI.org> References: <20050426170115.GB45067@dragon.NUXI.org> X-Mailer: Sylpheed version 1.9.8 (GTK+ 2.6.4; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Tue__26_Apr_2005_19_58_09_+0200_CsjIe4rj.XuVXFld" cc: michael.hopkins@hopkins-research.com Subject: Re: Attempted install of an Obj-C Foundation library X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 17:59:00 -0000 --Signature=_Tue__26_Apr_2005_19_58_09_+0200_CsjIe4rj.XuVXFld Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, 26 Apr 2005 10:01:15 -0700 "David O'Brien" wrote: > > I am trying to get a working Objective-C Foundation library on FreeBSD = amd64 > > (5.3-RELEASE-p10 with ports cvsup'd today) so that I can port some > > Objective-C code from Mac OS X - and not having any success. > ... > > =3D=3D=3D> gcc-objc-3.3.6_20050330 is marked as broken: Bus errors in = stage2; > > system compiler may be broken.. > > *** Error code 1 >=20 > I must be missing something -- why cant you use the base ObjC compiler? Seems gnustep-base needs "libgcc_s.so.1" which isn't anywhere in /usr/lib but is installed by the the obj-gcc port as=20 ${PREFIX}/lib/gcc-lib/i386-portbld-freebsd5.4/3.3.6/libgcc_s.so.1 Cheers, --=20 Miguel Mendez http://www.energyhq.es.eu.org PGP Key: 0xDC8514F1 --Signature=_Tue__26_Apr_2005_19_58_09_+0200_CsjIe4rj.XuVXFld Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCboEznLctrNyFFPERAmxYAJ9IdNazk5u4+eDKrRlV8ELuZnWhggCeIKMO ikCfOdFXs/VJ37g7vL4SPB8= =SHJ8 -----END PGP SIGNATURE----- --Signature=_Tue__26_Apr_2005_19_58_09_+0200_CsjIe4rj.XuVXFld-- From owner-freebsd-amd64@FreeBSD.ORG Tue Apr 26 18:02:18 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E0D016A4CE for ; Tue, 26 Apr 2005 18:02:18 +0000 (GMT) Received: from web60005.mail.yahoo.com (web60005.mail.yahoo.com [216.109.116.228]) by mx1.FreeBSD.org (Postfix) with SMTP id 6DDF443D53 for ; Tue, 26 Apr 2005 18:02:17 +0000 (GMT) (envelope-from phred1975@yahoo.com) Received: (qmail 21165 invoked by uid 60001); 26 Apr 2005 18:02:16 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=3aSNTwetrlXU63NHkl0aNduJJVgRkT9Wii1wfwvbZE5chusmlBomz4WQQYTd/EXHtqbubJ03u+yCYEVAy+TjgFY51SAbtP7iuMO5s1uV8y6rSsVStQXIs5Vewc1x2V+10MB7hLdBnK/kESe1Vkx3nwFst5BAOK22kEcmf1e+xqw= ; Message-ID: <20050426180216.21161.qmail@web60005.mail.yahoo.com> Received: from [65.11.249.38] by web60005.mail.yahoo.com via HTTP; Tue, 26 Apr 2005 11:02:16 PDT Date: Tue, 26 Apr 2005 11:02:16 -0700 (PDT) From: Tom Shafron To: freebsd-amd64@freebsd.org In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: 5.3, amd64, k8s pro locked up just now X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 18:02:18 -0000 --- David O'Brien wrote: > On Fri, Apr 22, 2005 at 08:19:16PM -0700, Tom > Shafron wrote: > > Yup, I also have 5.3 running on a very similar > i386 > > machine that is way more active (it's the main dev > > machine) and it hasn't had a single problem. > Seems > > that the issue is something specific to the amd64 > > release... > > Nope. Related to >=4GB RAM. i386 with PAE kernel > has the same issues. > > -- > -- David (obrien@FreeBSD.org) > The machine I had the problems on only had 2 GB of RAM though.... I think I isolated what happened and can stop it from occuring again even though I don't really know why it causes a crash. Basically I can cause the crash to occur when I create large amounts of file backed non-synced shared memory (about 1 GB) and write to it with random acces just before apache shuts down. The solution is to not do that anymore ;) Now that I have that issue out of the way I'm not having any problems and it seems stable... -Tom __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-amd64@FreeBSD.ORG Tue Apr 26 18:03:44 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EC0E16A4CE; Tue, 26 Apr 2005 18:03:44 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id C847A43D31; Tue, 26 Apr 2005 18:03:43 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior-wifi.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.3/8.13.3) with ESMTP id j3QI88bd011868; Tue, 26 Apr 2005 12:08:08 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <426E81A8.2040702@samsco.org> Date: Tue, 26 Apr 2005 12:00:08 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050218 X-Accept-Language: en-us, en MIME-Version: 1.0 To: obrien@freebsd.org References: <426BE772.9080301@samsco.org> <200504241848.j3OImZeR088746@corbulon.video-collage.com> <20050426170318.GC45067@dragon.NUXI.org> <200504261312.54178.mi+mx@aldan.algebra.com> <20050426174044.GA1881@dragon.NUXI.org> In-Reply-To: <20050426174044.GA1881@dragon.NUXI.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org cc: Mikhail Teterin cc: x11@freebsd.org cc: freebsd-amd64@freebsd.org Subject: Re: which video card for FreeBSD/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 18:03:44 -0000 David O'Brien wrote: > On Tue, Apr 26, 2005 at 01:12:53PM -0400, Mikhail Teterin wrote: > >>>On Sun, Apr 24, 2005 at 02:48:35PM -0400, Mikhail Teterin wrote: >>> >>>>>>Is there a decent AGP or PCI-X >>>>> >>>>>I assume you mean PCI-E here, not PCI-X. >>>> >>>>I mean PCI-X. My IWill DK8X has no PCI-E slots. >> >>>I use an AGP Matrox G450 in my DK8X. >>>Also any Radeon R200 card should give you X.org native dual-head support >>>on AMD64: Radeon 8500, FireGL 8800, etc... >> >>But none of these are dual-DVI, are they? Thanks, > > > Nope. But this is the best you can do AFAIK. Every DVI-cablable monitor > I've seen can also handle analog VGA15. > Once you use a DVI monitor with a DVI video card, the blurriness of VGA15 becomes painfully apparent. Scott From owner-freebsd-amd64@FreeBSD.ORG Tue Apr 26 18:10:40 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE51416A4CE; Tue, 26 Apr 2005 18:10:40 +0000 (GMT) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF6D943D41; Tue, 26 Apr 2005 18:10:38 +0000 (GMT) (envelope-from mi+mx@aldan.algebra.com) Received: from corbulon.video-collage.com (static-151-204-231-237.bos.east.verizon.net [151.204.231.237]) by aldan.algebra.com (8.13.1/8.13.1) with ESMTP id j3QIAbYf017008 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 26 Apr 2005 14:10:38 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from mteterin.us.murex.com (195-11.customer.cloud9.net [168.100.195.11])j3QIAVKf060387 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 26 Apr 2005 14:10:31 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from mteterin.us.murex.com (mteterin@localhost [127.0.0.1]) by mteterin.us.murex.com (8.13.3/8.13.3) with ESMTP id j3QIAS7k026112; Tue, 26 Apr 2005 14:10:28 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by mteterin.us.murex.com (8.13.3/8.13.3/Submit) id j3QIARGa026111; Tue, 26 Apr 2005 14:10:27 -0400 (EDT) (envelope-from mi+mx@aldan.algebra.com) X-Authentication-Warning: mteterin.us.murex.com: mteterin set sender to mi+mx@aldan.algebra.com using -f From: Mikhail Teterin Organization: Virtual Estates, Inc. To: Scott Long Date: Tue, 26 Apr 2005 14:10:27 -0400 User-Agent: KMail/1.7.2 References: <426BE772.9080301@samsco.org> <20050426174044.GA1881@dragon.NUXI.org> <426E81A8.2040702@samsco.org> In-Reply-To: <426E81A8.2040702@samsco.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504261410.27870.mi+mx@aldan.algebra.com> X-Virus-Scanned: clamd / ClamAV version devel-20040615, clamav-milter version 0.73a on corbulon.video-collage.com X-Virus-Status: Clean X-Scanned-By: MIMEDefang 2.43 cc: x11@freebsd.org cc: freebsd-amd64@freebsd.org Subject: Re: which video card for FreeBSD/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 18:10:41 -0000 > > Nope. But this is the best you can do AFAIK. Every DVI-cablable monitor > > I've seen can also handle analog VGA15. > Once you use a DVI monitor with a DVI video card, the blurriness of > VGA15 becomes painfully apparent. But the DVI connector of a PCI card is Ok, actually. So PCI Radeon 9200 in addition to one of NVidia's DVI connectors is my solution for now -- until NVidia comes to its sences and releases a FreeBSD/amd64 driver. -mi From owner-freebsd-amd64@FreeBSD.ORG Wed Apr 27 01:56:17 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 203B816A4CE; Wed, 27 Apr 2005 01:56:17 +0000 (GMT) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C3F743D53; Wed, 27 Apr 2005 01:56:16 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.13.3/8.13.3) with ESMTP id j3R1uG5x089906; Tue, 26 Apr 2005 21:56:16 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.3/8.13.3) with ESMTP id j3R1uGhA040129; Tue, 26 Apr 2005 21:56:16 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id D97987306E; Tue, 26 Apr 2005 21:56:15 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20050427015615.D97987306E@freebsd-current.sentex.ca> Date: Tue, 26 Apr 2005 21:56:15 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on clamscanner2 X-Virus-Status: Clean Subject: [current tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 01:56:17 -0000 TB --- 2005-04-27 01:52:37 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-04-27 01:52:37 - starting CURRENT tinderbox run for amd64/amd64 TB --- 2005-04-27 01:52:37 - checking out the source tree TB --- 2005-04-27 01:52:37 - cd /home/tinderbox/CURRENT/amd64/amd64 TB --- 2005-04-27 01:52:37 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2005-04-27 01:55:18 - building world (CFLAGS=-O2 -pipe) TB --- 2005-04-27 01:55:18 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-27 01:55:18 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] ===> rescue/rescue/ipf/ipnat (clean) rm -f ipnat_y.c ipnat_y.h ipnat_l.c ipnat_l.h y.tab.c y.tab.h ipnat ipnat.o ipnat_y.o ipnat_l.o ipnat.8.gz ipnat.4.gz ipnat.5.gz ipnat.8.cat.gz ipnat.4.cat.gz ipnat.5.cat.gz ===> rescue/rescue/ipf/ippool (clean) rm -f ippool_y.c ippool_y.h ippool_l.c ippool_l.h y.tab.c y.tab.h ippool ippool_y.o ippool_l.o kmem.o ippool.o ippool.5.gz ippool.8.gz ippool.5.cat.gz ippool.8.cat.gz ===> rescue/rescue/ipf/ipresend (clean) rm -f y.tab.c y.tab.h ipresend ipresend.o ip.o resend.o sbpf.o sock.o 44arp.o ipresend.1.gz ipresend.1.cat.gz cd /tinderbox/CURRENT/amd64/amd64/src/rescue/rescue/../../sbin/ipfs && MAKEOBJDIRPREFIX=/home/tinderbox/CURRENT/amd64/amd64/obj/amd64/tinderbox/CURRENT/amd64/amd64/src/rescue/rescue /home/tinderbox/CURRENT/amd64/amd64/obj/tinderbox/CURRENT/amd64/amd64/src/make.i386/make DIRPRFX=rescue/rescue/ipfs/ clean cd: can't cd to /tinderbox/CURRENT/amd64/amd64/src/rescue/rescue/../../sbin/ipfs *** Error code 2 Stop in /tinderbox/CURRENT/amd64/amd64/src/rescue/rescue. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src/rescue. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. TB --- 2005-04-27 01:56:15 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-04-27 01:56:15 - ERROR: failed to build world TB --- 2005-04-27 01:56:15 - tinderbox aborted From owner-freebsd-amd64@FreeBSD.ORG Wed Apr 27 09:23:48 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C135116A4CE for ; Wed, 27 Apr 2005 09:23:48 +0000 (GMT) Received: from neon.webfusion.co.uk (neon.webfusion.co.uk [212.67.202.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17B0C43D46 for ; Wed, 27 Apr 2005 09:23:48 +0000 (GMT) (envelope-from michael.hopkins@hopkins-research.com) Received: from 83-216-132-201.markch725.adsl.metronet.co.uk ([83.216.132.201] helo=[192.168.0.5]) by neon.webfusion.co.uk with asmtp (Exim 3.36 #1) id 1DQill-0001Np-00; Wed, 27 Apr 2005 10:23:45 +0100 User-Agent: Microsoft-Entourage/10.1.1.2418 Date: Wed, 27 Apr 2005 10:23:39 +0100 From: Michael Hopkins To: "freebsd-amd64@freebsd.org" Message-ID: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Subject: Shared library relocation R_X86_64_32 solution on amd64? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 09:23:48 -0000 Hi all I have been doing some research about why gnustep-base won't link on amd64. It seems as if the problem I am getting here is quite common. ------------------------------------------------------------------------ gmake[1]: Leaving directory `/usr/home/mwh/Coding/Obj-C/gnustep/core/base/Source' Making all in SSL... gmake[1]: Entering directory `/usr/home/mwh/Coding/Obj-C/gnustep/core/base/SSL' Making all for bundle SSL... Creating SSL.bundle/amd64/freebsd/gnu-gnu-gnu... Compiling file GSSSLHandle.m ... Linking bundle SSL ... /usr/bin/ld: /usr/lib/libobjc.a(Protocol.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/lib/libobjc.a: could not read symbols: Bad value gmake[2]: *** [SSL.bundle/amd64/freebsd/gnu-gnu-gnu/SSL] Error 1 gmake[1]: *** [SSL.all.bundle.variables] Error 2 gmake[1]: Leaving directory `/usr/home/mwh/Coding/Obj-C/gnustep/core/base/SSL' gmake: *** [internal-all] Error 2 ------------------------------------------------------------------------ It has been mentioned a few times on this list: my understanding of this issue is that you can't link to shared libraries unless they have been compiled with -fPIC. Is that right? The first place that the gnustep-base build died was here: --------------------------------------- /usr/bin/ld: /usr/local/lib/libcallback.a(misc.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libcallback.a: could not read symbols: Bad value collect2: ld returned 1 exit status --------------------------------------- I found out that libcallback.a was installed by ffcall, so I removed that and reinstalled it with CFLAGS += -fPIC in the makefile. This let the build continue. I have two main questions in this post. 1) What installs libobjc.a? I want to reinstall it with CFLAGS += -fPIC. I assumed that it was installed by gcc-objc but after reinstalling that with -fPIC the libobjc.a library was untouched! 2) What is the standard method for dealing with this problem on amd64? I'm sure it will hit a lot of people on many different ports and if it's a tier 1 platform then don't we need to have a proper strategy for dealing with this? TIA Michael _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ _/ _/_/_/ Hopkins Research Ltd _/ _/ _/ _/ _/_/_/_/ _/_/_/ http://www.hopkins-research.com/ _/ _/ _/ _/ _/ _/ _/ _/ 'touch the future' _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ From owner-freebsd-amd64@FreeBSD.ORG Tue Apr 26 17:12:16 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92EA516A4CE; Tue, 26 Apr 2005 17:12:16 +0000 (GMT) Received: from neon.webfusion.co.uk (neon.webfusion.co.uk [212.67.202.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E8D543D58; Tue, 26 Apr 2005 17:12:16 +0000 (GMT) (envelope-from michael.hopkins@hopkins-research.com) Received: from 83-216-132-201.markch725.adsl.metronet.co.uk ([83.216.132.201] helo=[192.168.0.5]) by neon.webfusion.co.uk with asmtp (Exim 3.36 #1) id 1DQTba-0005kE-00; Tue, 26 Apr 2005 18:12:14 +0100 User-Agent: Microsoft-Entourage/10.1.1.2418 Date: Tue, 26 Apr 2005 18:12:12 +0100 From: Michael Hopkins To: <"freebsd-amd64@freebsd.org, freebsd-ports"@freebsd.org> Message-ID: In-Reply-To: <20050426170115.GB45067@dragon.NUXI.org> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Mailman-Approved-At: Wed, 27 Apr 2005 11:53:31 +0000 Subject: Re: Attempted install of an Obj-C Foundation library X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2005 17:12:16 -0000 On 26/4/05 6:01 pm, "David O'Brien" wrote: > On Mon, Apr 25, 2005 at 07:20:41PM +0100, Michael Hopkins wrote: >> >> >> Hi all >> >> I am trying to get a working Objective-C Foundation library on FreeBSD amd64 >> (5.3-RELEASE-p10 with ports cvsup'd today) so that I can port some >> Objective-C code from Mac OS X - and not having any success. > ... >> ===> gcc-objc-3.3.6_20050330 is marked as broken: Bus errors in stage2; >> system compiler may be broken.. >> *** Error code 1 > > I must be missing something -- why cant you use the base ObjC compiler? > Hi David I am not trying to avoid that. This just happens when you try to build gnustep-base from ports unless you specify GCC34 explicitly. I think I have now discovered the problem, though not the solution. This is a section of a mail I sent earlier: It looks like this earlier error might have something to do with the problem linking to libgnustepbase that causes the builds to die later on. --------------------------------------- /usr/bin/ld: /usr/local/lib/libcallback.a(misc.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libcallback.a: could not read symbols: Bad value collect2: ld returned 1 exit status --------------------------------------- Do you know anything about this? I believe it is something to do with shared libraries on amd64 but I'm not sure what I am able do about it. Michael _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ _/ _/_/_/ Hopkins Research Ltd _/ _/ _/ _/ _/_/_/_/ _/_/_/ http://www.hopkins-research.com/ _/ _/ _/ _/ _/ _/ _/ _/ 'touch the future' _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ From owner-freebsd-amd64@FreeBSD.ORG Wed Apr 27 12:41:14 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEF4E16A4CE; Wed, 27 Apr 2005 12:41:14 +0000 (GMT) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2708943D53; Wed, 27 Apr 2005 12:41:14 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1.sentex.ca [199.212.134.4]) by smarthost2.sentex.ca (8.13.3/8.13.3) with ESMTP id j3RCfDT8022233; Wed, 27 Apr 2005 08:41:13 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.13.3/8.13.3) with ESMTP id j3RCfiCt010929; Wed, 27 Apr 2005 08:41:44 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 7609A7306E; Wed, 27 Apr 2005 08:41:13 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20050427124113.7609A7306E@freebsd-current.sentex.ca> Date: Wed, 27 Apr 2005 08:41:13 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.82, clamav-milter version 0.82 on clamscanner4 X-Virus-Status: Clean Subject: [current tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 12:41:14 -0000 TB --- 2005-04-27 12:37:31 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-04-27 12:37:31 - starting CURRENT tinderbox run for amd64/amd64 TB --- 2005-04-27 12:37:31 - checking out the source tree TB --- 2005-04-27 12:37:31 - cd /home/tinderbox/CURRENT/amd64/amd64 TB --- 2005-04-27 12:37:31 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2005-04-27 12:40:15 - building world (CFLAGS=-O2 -pipe) TB --- 2005-04-27 12:40:15 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-27 12:40:15 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] ===> rescue/rescue/ipf/ipnat (clean) rm -f ipnat_y.c ipnat_y.h ipnat_l.c ipnat_l.h y.tab.c y.tab.h ipnat ipnat.o ipnat_y.o ipnat_l.o ipnat.8.gz ipnat.4.gz ipnat.5.gz ipnat.8.cat.gz ipnat.4.cat.gz ipnat.5.cat.gz ===> rescue/rescue/ipf/ippool (clean) rm -f ippool_y.c ippool_y.h ippool_l.c ippool_l.h y.tab.c y.tab.h ippool ippool_y.o ippool_l.o kmem.o ippool.o ippool.5.gz ippool.8.gz ippool.5.cat.gz ippool.8.cat.gz ===> rescue/rescue/ipf/ipresend (clean) rm -f y.tab.c y.tab.h ipresend ipresend.o ip.o resend.o sbpf.o sock.o 44arp.o ipresend.1.gz ipresend.1.cat.gz cd /tinderbox/CURRENT/amd64/amd64/src/rescue/rescue/../../sbin/ipfs && MAKEOBJDIRPREFIX=/home/tinderbox/CURRENT/amd64/amd64/obj/amd64/tinderbox/CURRENT/amd64/amd64/src/rescue/rescue /home/tinderbox/CURRENT/amd64/amd64/obj/tinderbox/CURRENT/amd64/amd64/src/make.i386/make DIRPRFX=rescue/rescue/ipfs/ clean cd: can't cd to /tinderbox/CURRENT/amd64/amd64/src/rescue/rescue/../../sbin/ipfs *** Error code 2 Stop in /tinderbox/CURRENT/amd64/amd64/src/rescue/rescue. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src/rescue. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. TB --- 2005-04-27 12:41:13 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-04-27 12:41:13 - ERROR: failed to build world TB --- 2005-04-27 12:41:13 - tinderbox aborted From owner-freebsd-amd64@FreeBSD.ORG Wed Apr 27 15:33:31 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E99716A4CE for ; Wed, 27 Apr 2005 15:33:31 +0000 (GMT) Received: from dragon.NUXI.org (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id E815943D46 for ; Wed, 27 Apr 2005 15:33:30 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.NUXI.org (obrien@localhost [127.0.0.1]) by dragon.NUXI.org (8.13.3/8.13.3) with ESMTP id j3RFXNP6026523; Wed, 27 Apr 2005 08:33:23 -0700 (PDT) (envelope-from obrien@dragon.NUXI.org) Received: (from obrien@localhost) by dragon.NUXI.org (8.13.3/8.13.1/Submit) id j3RFXMVX026522; Wed, 27 Apr 2005 08:33:22 -0700 (PDT) (envelope-from obrien) Date: Wed, 27 Apr 2005 08:33:22 -0700 From: "David O'Brien" To: Diomidis Spinellis Message-ID: <20050427153322.GA26145@dragon.NUXI.org> References: <426D1F5A.20307@aueb.gr> <20050426165836.GA45067@dragon.NUXI.org> <426E7971.7060904@aueb.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <426E7971.7060904@aueb.gr> X-Operating-System: FreeBSD 6.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 User-Agent: Mutt/1.5.9i cc: freebsd-amd64@freebsd.org Subject: Re: Kernel panics running 5.4-RC3 and 5.4-STABLE on an AMD-64 with 8GB RAM X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@freebsd.org List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 15:33:31 -0000 On Tue, Apr 26, 2005 at 09:25:05PM +0400, Diomidis Spinellis wrote: > David O'Brien wrote: > >On Mon, Apr 25, 2005 at 08:48:26PM +0400, Diomidis Spinellis wrote: > >>I am trying to make a Tyan S4882 (K8QSPro) motherboard with two 2.2GHz > >>Opterons and 8GB RAM to work with FreeBSD. Both the 5.4-RC3 > >>installation boot disk, and Thursday's 5.4-STABLE code panic. The > >>system works fine with 4GB of RAM (it can run make buildworld), either > >>by physically removing the memory, or by adding "set hw.physmem = 4GB" > >>in boot/loader.rc. > > > >What BIOS version are you using, and what are your BIOS settings for > >memory related things? Do you have "Hardware memory hole" or "Software > >memory hole" enabled? Can use the full 8GB fine if you use "Failsafe > >defaults"? If you use "Optimial defaults"? > > I am using BIOS version 1.0.2. Unfortunately, I've been unable to flash > a newer BIOS; the procedure fails with an error indicating that the BIOS > size did not mathc the image's size. This happens with all BIOS > versions, including the one we are currently running. I'm waiting a > reply from Tyan on this. > > These are the memory related BIOS settings. > > Advanced configuration: > - 4GB memory adjust is set to auto (it can also be set to manual, in > which case the hole size can be adjusted from 64MB - 2GB). I would disabled this until you can upgrade to the latest BIOS. > - Speculative TLB reload enabled Disable this and see if that helps any. > In PCI configuration: > - IO MMU enabled , size 256MB The IOMMU setting doesn't affect FreeBSD, so you could disable it if you like. -- -- David (obrien@FreeBSD.org) From owner-freebsd-amd64@FreeBSD.ORG Wed Apr 27 15:40:24 2005 Return-Path: Delivered-To: freebsd-amd64@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3E2516A4D6 for ; Wed, 27 Apr 2005 15:40:23 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C51C743D2F for ; Wed, 27 Apr 2005 15:40:23 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j3RFeNMJ017131 for ; Wed, 27 Apr 2005 15:40:23 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j3RFeNEf017130; Wed, 27 Apr 2005 15:40:23 GMT (envelope-from gnats) Date: Wed, 27 Apr 2005 15:40:23 GMT Message-Id: <200504271540.j3RFeNEf017130@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org From: "David O'Brien" Subject: Re: amd64/80114: kldload snd_ich causes interrupt storm when ACPI is enabled X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: David O'Brien List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 15:40:24 -0000 The following reply was made to PR amd64/80114; it has been noted by GNATS. From: "David O'Brien" To: Florent Thoumie Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: amd64/80114: kldload snd_ich causes interrupt storm when ACPI is enabled Date: Wed, 27 Apr 2005 08:39:12 -0700 On Tue, Apr 19, 2005 at 07:55:56PM +0200, Florent Thoumie wrote: > Notes: I'm using SCHED_ULE and PREEMPTION. SCHED_ULE has many known problems. Please try again with the standard BSD scheduler. -- -- David (obrien@FreeBSD.org) From owner-freebsd-amd64@FreeBSD.ORG Wed Apr 27 19:11:26 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F98116A4CE; Wed, 27 Apr 2005 19:11:26 +0000 (GMT) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F97E43D48; Wed, 27 Apr 2005 19:11:20 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1])j3RJBJk8029351; Wed, 27 Apr 2005 21:11:19 +0200 Received: from saturn.kn-bremen.de (uucp@localhost)j3RJBJZ6029349; Wed, 27 Apr 2005 21:11:19 +0200 Received: (from nox@localhost) by saturn.kn-bremen.de (8.11.4/8.8.5) id j3RJ47Y95560; Wed, 27 Apr 2005 21:04:07 +0200 (CEST) From: Juergen Lock Date: Wed, 27 Apr 2005 21:04:06 +0200 To: freebsd-emulation@freebsd.org Message-ID: <20050427210405.A95072@saturn.kn-bremen.de> Mail-Followup-To: freebsd-emulation@freebsd.org, freebsd-amd64@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 1.0pre3i cc: freebsd-amd64@freebsd.org Subject: please test qemu port update X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 19:11:26 -0000 With the help of Jung-uk Kim i have made an update for the qemu port that might :) now actually work on amd64 as well. Please test. (I also haven't tested 4.11 or 6.0 i386.) remove these files: files/patch-ab, files/patch-target-sparc::op_helper.c (btw I'm not subscribed on -amd64 so if you remove -emulation please Cc me if you want me to see followups...) Index: Makefile =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/Makefile,v retrieving revision 1.22 diff -u -r1.22 Makefile --- Makefile 8 Mar 2005 23:02:58 -0000 1.22 +++ Makefile 27 Apr 2005 18:08:46 -0000 @@ -6,17 +6,19 @@ # PORTNAME= qemu -PORTVERSION= 0.6.2s.20050305 +PORTVERSION= 0.6.2s.20050426 CATEGORIES= emulators MASTER_SITES= http://people.fruitsalad.org/nox/qemu/ \ http://dad-answers.com/qemu/ -DISTNAME= ${PORTNAME}-snapshot-2005-03-05_23 +DISTNAME= ${PORTNAME}-snapshot-2005-04-26_23 MAINTAINER= nox@jelal.kn-bremen.de COMMENT= QEMU CPU Emulator BUILD_DEPENDS+= texi2html:${PORTSDIR}/textproc/texi2html +.if !defined(WITHOUT_SAMBA) RUN_DEPENDS+= ${LOCALBASE}/sbin/smbd:${PORTSDIR}/net/samba +.endif HAS_CONFIGURE= yes USE_BZIP2= yes @@ -27,22 +29,32 @@ PATCH_STRIP= -p1 CONFIGURE_ARGS+= --prefix=${PREFIX} --cc=${CC}\ -I${PREFIX}/include MAN1= qemu.1 qemu-img.1 -ONLY_FOR_ARCHS= i386 amd64 powerpc +ONLY_FOR_ARCHS= amd64 i386 +MAKE_ENV+= BSD_MAKE=${MAKE} # gcc34 (system cc on 5.x now) has problems with qemu on amd64 # (doesnt build target-i386/op.c), try the one in ports which is newer .include .if ${ARCH} == "amd64" && ${OSVERSION} >= 502126 -BROKEN= Does not compile CC= gcc34 -CXX= g++34 BUILD_DEPENDS+= gcc34:${PORTSDIR}/lang/gcc34 GCCVERSION= 030402 .else USE_GCC= 3.4 .endif +pre-everything:: +.if !defined(WITHOUT_SAMBA) + @${ECHO_MSG} "Notice: if you don't need qemu's -smb option (smb-export local dir to guest)" + @${ECHO_MSG} "then you can omit this port's samba dependency by defining WITHOUT_SAMBA." +.endif + +pre-patch: + @for A in ${ONLY_FOR_ARCHS}; do \ + ${MKDIR} ${WRKSRC}/bsd/$$A; \ + done + post-install: @${CAT} ${PKGMESSAGE} Index: distinfo =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/distinfo,v retrieving revision 1.16 diff -u -r1.16 distinfo --- distinfo 8 Mar 2005 23:02:58 -0000 1.16 +++ distinfo 27 Apr 2005 18:10:17 -0000 @@ -1,2 +1,2 @@ -MD5 (qemu-snapshot-2005-03-05_23.tar.bz2) = f0ef5e1e3570df94d910d00cc9f62f6e -SIZE (qemu-snapshot-2005-03-05_23.tar.bz2) = 962774 +MD5 (qemu-snapshot-2005-04-26_23.tar.bz2) = 6068a58820e3716a70d40d0a99fc7718 +SIZE (qemu-snapshot-2005-04-26_23.tar.bz2) = 1008614 Index: files/patch-aa =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/files/patch-aa,v retrieving revision 1.3 diff -u -r1.3 patch-aa --- files/patch-aa 25 Oct 2004 14:57:30 -0000 1.3 +++ files/patch-aa 26 Apr 2005 16:24:36 -0000 @@ -11,206 +11,6 @@ qemu.1: qemu-doc.texi ./texi2pod.pl $< qemu.pod Only in qemu-0.5.5: qemu.1 -diff -urd --exclude=CVS ../cvs/qemu/target-i386/cpu.h qemu-0.5.5/target-i386/cpu.h ---- ../cvs/qemu/target-i386/cpu.h Thu May 20 15:01:56 2004 -+++ qemu-0.5.5/target-i386/cpu.h Sun May 30 05:16:10 2004 -@@ -259,7 +259,7 @@ - CC_OP_NB, - }; - --#if (defined(__i386__) || defined(__x86_64__)) && !defined(_BSD) -+#if defined(__i386__) || defined(__x86_64__) - #define USE_X86LDOUBLE - #endif - -diff -urd --exclude=CVS ../cvs/qemu/target-i386/exec.h qemu-0.5.5/target-i386/exec.h ---- ../cvs/qemu/target-i386/exec.h Sat May 29 12:08:52 2004 -+++ qemu-0.5.5/target-i386/exec.h Sun May 30 05:19:43 2004 -@@ -293,6 +293,22 @@ - - #endif /* !defined(CONFIG_USER_ONLY) */ - -+#if defined(_BSD) && defined(USE_X86LDOUBLE) -+#include -+/*int rintl(long double __x); -+long int lrintl(long double __x); -+long long int llrintl(long double __x); -+long double powl(long double __x, long double __y); -+long double logl(long double __x); -+long double tanl(long double __x); -+long double atan2l(long double __y, long double __x); -+long double ceill(long double __x); -+long double floorl(long double __x); -+long double sqrtl(long double __x); -+long double sinl(long double __x); -+long double cosl(long double __x);*/ -+#endif -+ - #ifdef USE_X86LDOUBLE - /* use long double functions */ - #define lrint lrintl -@@ -310,7 +326,7 @@ - #define rint rintl - #endif - --#if !defined(_BSD) -+#if !defined(_BSD) || defined(USE_X86LDOUBLE) - extern int lrint(CPU86_LDouble x); - extern int64_t llrint(CPU86_LDouble x); - #else -diff -urd --exclude=CVS ../cvs/qemu/target-i386/op.c qemu-0.5.5/target-i386/op.c ---- ../cvs/qemu/target-i386/op.c Sat May 29 12:08:52 2004 -+++ qemu-0.5.5/target-i386/op.c Sun May 30 05:40:54 2004 -@@ -1304,6 +1304,149 @@ - functions comes from the LGPL'ed x86 emulator found in the Willows - TWIN windows emulator. */ - -+#if defined(_BSD) && defined(USE_X86LDOUBLE) -+ -+CPU86_LDouble rintl(CPU86_LDouble __x) { -+ CPU86_LDouble __rintres; -+ __asm__ __volatile__ -+ ("fistp %0" -+ : "=m" (__rintres) : "t" (__x) : "st"); -+ return __rintres; -+} -+ -+int lrintl(CPU86_LDouble __x) { -+ int __lrintres; -+ __asm__ __volatile__ -+ ("fistpl %0" -+ : "=m" (__lrintres) : "t" (__x) : "st"); -+ return __lrintres; -+} -+ -+ -+int64_t llrintl(CPU86_LDouble __x) { -+ int64_t __llrintres; -+ __asm__ __volatile__ -+ ("fistpll %0" -+ : "=m" (__llrintres) : "t" (__x) : "st"); -+ return __llrintres; -+} -+ -+CPU86_LDouble powl(CPU86_LDouble __x, CPU86_LDouble __y) { -+ register CPU86_LDouble __value; -+ register long double __exponent; -+ __extension__ long long int __p = (long long int) __y; -+ if (__x == 0.0) -+ { -+ if (__y > 0.0) -+ return __y == (double) __p && (__p & 1) != 0 ? __x : 0.0; -+ else if (__y < 0.0) -+ return (__y == (double) __p && (-__p & 1) != 0 -+ ? 1.0 / __x : 1.0 / fabs (__x)); -+ } -+ if (__y == (double) __p) -+ { -+ long double __r = 1.0; -+ if (__p == 0) -+ return 1.0; -+ if (__p < 0) -+ { -+ __p = -__p; -+ __x = 1.0 / __x; -+ } -+ while (1) -+ { -+ if (__p & 1) -+ __r *= __x; -+ __p >>= 1; -+ if (__p == 0) -+ return __r; -+ __x *= __x; -+ } -+ /* NOTREACHED */ -+ } -+ __asm __volatile__ -+ ("fyl2x" : "=t" (__value) : "0" (__x), "u" (1.0) : "st(1)"); -+ __asm __volatile__ -+ ("fmul %%st(1) # y * log2(x)\n\t" -+ "fst %%st(1)\n\t" -+ "frndint # int(y * log2(x))\n\t" -+ "fxch\n\t" -+ "fsub %%st(1) # fract(y * log2(x))\n\t" -+ "f2xm1 # 2^(fract(y * log2(x))) - 1\n\t" -+ : "=t" (__value), "=u" (__exponent) : "0" (__y), "1" (__value)); -+ __value += 1.0; -+ __asm __volatile__ -+ ("fscale" -+ : "=t" (__value) : "0" (__value), "u" (__exponent)); -+ return __value; -+} -+ -+CPU86_LDouble logl(CPU86_LDouble __x) { -+ register CPU86_LDouble __result; -+ __asm __volatile__ ("fldln2; fxch; fyl2x" : "=t" (__result) : "0" (__x) : "st(1)"); -+ return __result; -+} -+ -+CPU86_LDouble tanl(CPU86_LDouble __x) { -+ register CPU86_LDouble __value; -+ register CPU86_LDouble __value2 __attribute__ ((__unused__)); -+ __asm __volatile__ -+ ("fptan" -+ : "=t" (__value2), "=u" (__value) : "0" (__x)); -+ return __value; -+} -+ -+CPU86_LDouble atan2l(CPU86_LDouble __y, CPU86_LDouble __x) { -+ register CPU86_LDouble __value; -+ __asm __volatile__ -+ ("fpatan" -+ : "=t" (__value) : "0" (__x), "u" (__y) : "st(1)"); -+ return __value; -+} -+ -+CPU86_LDouble ceill(CPU86_LDouble __x) { -+ register CPU86_LDouble __value; -+ __volatile unsigned short int __cw; -+ __volatile unsigned short int __cwtmp; -+ __asm __volatile ("fnstcw %0" : "=m" (__cw)); -+ __cwtmp = (__cw & 0xf3ff) | 0x0800; /* rounding up */ -+ __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); -+ __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); -+ __asm __volatile ("fldcw %0" : : "m" (__cw)); -+ return __value; -+} -+ -+CPU86_LDouble floorl(CPU86_LDouble __x) { -+ register CPU86_LDouble __value; -+ __volatile unsigned short int __cw; -+ __volatile unsigned short int __cwtmp; -+ __asm __volatile ("fnstcw %0" : "=m" (__cw)); -+ __cwtmp = (__cw & 0xf3ff) | 0x0400; /* rounding down */ -+ __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); -+ __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); -+ __asm __volatile ("fldcw %0" : : "m" (__cw)); -+ return __value; -+} -+ -+CPU86_LDouble sqrtl(CPU86_LDouble __x) { -+ register CPU86_LDouble __result; -+ __asm __volatile__ ("fsqrt" : "=t" (__result) : "0" (__x)); -+ return __result; -+} -+ -+CPU86_LDouble sinl(CPU86_LDouble __x) { -+ register CPU86_LDouble __result; -+ __asm __volatile__ ("fsin" : "=t" (__result) : "0" (__x)); -+ return __result; -+} -+ -+CPU86_LDouble cosl(CPU86_LDouble __x) { -+ register CPU86_LDouble __result; -+ __asm __volatile__ ("fcos" : "=t" (__result) : "0" (__x)); -+ return __result; -+} -+#endif -+ - #if defined(__powerpc__) - extern CPU86_LDouble copysign(CPU86_LDouble, CPU86_LDouble); - diff -urd --exclude=CVS ../cvs/qemu/vl.c qemu-0.5.5/vl.c --- ../cvs/qemu/vl.c Wed May 26 23:12:06 2004 +++ qemu-0.5.5/vl.c Sun May 30 05:30:56 2004 Index: files/patch-bh =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/files/patch-bh,v retrieving revision 1.2 diff -u -r1.2 patch-bh --- files/patch-bh 11 Jul 2004 11:41:06 -0000 1.2 +++ files/patch-bh 26 Apr 2005 16:24:36 -0000 @@ -24,68 +24,3 @@ #undef NULL #define NULL 0 #ifdef _BSD -Index: qemu/target-ppc/op_helper.c -=================================================================== -RCS file: /cvsroot/qemu/qemu/target-ppc/op_helper.c,v -retrieving revision 1.6 -diff -w -u -d -r1.6 op_helper.c ---- target-ppc/op_helper.c 21 May 2004 12:59:31 -0000 1.6 -+++ target-ppc/op_helper.c 21 May 2004 15:00:49 -0000 -@@ -210,6 +210,22 @@ - } - /* TODO: update FEX & VX */ - /* Set rounding mode */ -+#ifdef _BSD -+ switch(env->fpscr[0] & 0x3) { -+ case 0: -+ fpsetround(FP_RN); -+ break; -+ case 1: -+ fpsetround(FP_RZ); -+ break; -+ case 2: -+ fpsetround(FP_RP); -+ break; -+ case 3: -+ fpsetround(FP_RM); -+ break; -+ } -+#else - switch (env->fpscr[0] & 0x3) { - case 0: - /* Best approximation (round to nearest) */ -@@ -228,6 +244,7 @@ - fesetround(FE_DOWNWARD); - break; - } -+#endif - } - - void do_fctiw (void) -@@ -253,9 +270,13 @@ - double d; - uint64_t i; - } *p = (void *)&FT1; -+#ifdef _BSD -+ int cround = fpgetround(); -+ fpsetround(FP_RZ); -+#else - int cround = fegetround(); -- - fesetround(FE_TOWARDZERO); -+#endif - if (FT0 > (double)0x7FFFFFFF) - p->i = 0x7FFFFFFFULL << 32; - else if (FT0 < -(double)0x80000000) -@@ -264,7 +285,11 @@ - p->i = 0; - p->i |= (uint32_t)FT0; - FT0 = p->d; -+#ifdef _BSD -+ fpsetround(cround); -+#else - fesetround(cround); -+#endif - } - - void do_fnmadds (void) Index: files/patch-block.c =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/files/patch-block.c,v retrieving revision 1.2 diff -u -r1.2 patch-block.c --- files/patch-block.c 17 Nov 2004 09:47:38 -0000 1.2 +++ files/patch-block.c 27 Apr 2005 17:10:11 -0000 @@ -1,71 +1,34 @@ -Index: qemu/block.c -@@ -21,6 +21,17 @@ - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -+ -+#include "config-host.h" -+ +Index: block.c +=================================================================== +RCS file: /cvsroot/qemu/qemu/block.c,v +retrieving revision 1.19 +diff -u -r1.19 block.c +--- block.c 26 Apr 2005 21:59:26 -0000 1.19 ++++ block.c 27 Apr 2005 17:04:23 -0000 +@@ -548,6 +548,9 @@ + BDRVRawState *s = bs->opaque; + int fd; + int64_t size; +#ifdef _BSD -+#include -+#include -+#include -+#include -+#include -+#endif -+ - #include "vl.h" - #include "block_int.h" - -@@ -103,14 +103,25 @@ - { - int fd, ret, score, score_max; - BlockDriver *drv1, *drv; -- uint8_t buf[1024]; -+ uint8_t *buf; -+ size_t bufsize = 1024; -+ u_int sectorsize = 512; - - fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE); - if (fd < 0) - return NULL; -- ret = read(fd, buf, sizeof(buf)); -+#ifdef DIOCGSECTORSIZE -+ if (!ioctl(fd, DIOCGSECTORSIZE, §orsize) && -+ sectorsize > bufsize) -+ bufsize = sectorsize; ++ struct stat sb; +#endif -+ buf = malloc(bufsize); -+ if (!buf) -+ return NULL; -+ ret = read(fd, buf, bufsize); - if (ret < 0) { - close(fd); -+ free(buf); - return NULL; - } - close(fd); -@@ -124,6 +135,7 @@ - drv = drv1; - } - } -+ free(buf); - return drv; - } -@@ -522,6 +533,15 @@ - return -1; + fd = open(filename, O_RDWR | O_BINARY | O_LARGEFILE); + if (fd < 0) { +@@ -557,13 +560,11 @@ bs->read_only = 1; } -+#ifdef _BSD -+ struct stat sb; -+ if (!fstat(fd,&sb) && (S_IFCHR & sb.st_mode)) { -+#ifdef DIOCGMEDIASIZE -+ if (ioctl(fd, DIOCGMEDIASIZE, (off_t *)&size)) -+#endif -+ size = lseek(fd, 0LL, SEEK_END); -+ } else -+#endif - size = lseek(fd, 0, SEEK_END); - bs->total_sectors = size / 512; - s->fd = fd; + #ifdef _BSD +- { +- struct stat sb; +- if (!fstat(fd, &sb) && (S_IFCHR & sb.st_mode)) { ++ if (!fstat(fd, &sb) && (S_IFCHR & sb.st_mode)) { + #ifdef DIOCGMEDIASIZE +- if (ioctl(fd, DIOCGMEDIASIZE, (off_t *)&size)) ++ if (ioctl(fd, DIOCGMEDIASIZE, (off_t *)&size)) + #endif +- size = lseek(fd, 0LL, SEEK_END); ++ size = lseek(fd, 0LL, SEEK_END); + } else + #endif + { Index: files/patch-amd64 @@ -0,0 +1,141 @@ +Index: qemu/Makefile +@@ -13,7 +13,7 @@ + endif + DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 + +-all: dyngen$(EXESUF) $(TOOLS) $(DOCS) ++all: bsd/libmath.a dyngen$(EXESUF) $(TOOLS) $(DOCS) + for d in $(TARGET_DIRS); do \ + $(MAKE) -C $$d $@ || exit 1 ; \ + done +@@ -25,6 +25,9 @@ + endif + endif + ++bsd/libmath.a: ++ ( cd bsd ; $(BSD_MAKE) CC=$(CC) ) ++ + qemu-img$(EXESUF): qemu-img.c block.c block-cow.c block-qcow.c aes.c block-vmdk.c block-cloop.c block-dmg.c block-bochs.c + $(CC) -DQEMU_TOOL $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $@ $^ -lz $(LIBS) + +@@ -33,6 +36,7 @@ + + clean: + # avoid old build problems by removing potentially incorrect old files ++ ( cd bsd ; $(BSD_MAKE) clean ) + rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h + rm -f *.o *.a $(TOOLS) dyngen$(EXESUF) TAGS *.pod *~ */*~ + $(MAKE) -C tests clean +Index: qemu/Makefile.target +@@ -391,8 +391,8 @@ + VL_LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld + endif + +-$(QEMU_SYSTEM): $(VL_OBJS) libqemu.a +- $(CC) $(VL_LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(COCOA_LIBS) $(VL_LIBS) ++$(QEMU_SYSTEM): $(VL_OBJS) libqemu.a ../bsd/libmath.a ++ $(CC) $(VL_LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(COCOA_LIBS) $(VL_LIBS) ../bsd/libmath.a + + cocoa.o: cocoa.m + $(CC) $(CFLAGS) $(DEFINES) -c -o $@ $< +Index: qemu/fpu/softfloat-native.c +@@ -2,11 +2,15 @@ + context is supported */ + #include "softfloat.h" + #include ++#if defined(__FreeBSD__) && __FreeBSD_version < 500000 ++#include ++#endif + + void set_float_rounding_mode(int val STATUS_PARAM) + { + STATUS(float_rounding_mode) = val; +-#if defined(_BSD) && !defined(__APPLE__) ++#if defined(_BSD) && !defined(__APPLE__) && \ ++ (defined(__FreeBSD__) && __FreeBSD_version < 500000) + fpsetround(val); + #elif defined(__arm__) + /* nothing to do */ +@@ -22,7 +26,7 @@ + } + #endif + +-#if defined(_BSD) ++#if defined(_BSD) && !defined(__FreeBSD__) + #define lrint(d) ((int32_t)rint(d)) + #define llrint(d) ((int64_t)rint(d)) + #endif +Index: qemu/fpu/softfloat-native.h +@@ -1,7 +1,17 @@ + /* Native implementation of soft float functions */ + #include +-#if defined(_BSD) && !defined(__APPLE__) ++#if defined(_BSD) && !defined(__APPLE__) && \ ++ (!defined(__FreeBSD__) || __FreeBSD_version < 500000) + #include ++#if defined(__FreeBSD__) ++#define isgreater(x, y) __builtin_isgreater((x), (y)) ++#define isgreaterequal(x, y) __builtin_isgreaterequal((x), (y)) ++#define isless(x, y) __builtin_isless((x), (y)) ++#define islessequal(x, y) __builtin_islessequal((x), (y)) ++#define islessgreater(x, y) __builtin_islessgreater((x), (y)) ++#define isunordered(x, y) __builtin_isunordered((x), (y)) ++long double fabsl(long double x); ++#endif + #else + #include + #endif +@@ -33,12 +43,13 @@ + /*---------------------------------------------------------------------------- + | Software IEC/IEEE floating-point rounding mode. + *----------------------------------------------------------------------------*/ +-#if defined(_BSD) && !defined(__APPLE__) ++#if defined(_BSD) && !defined(__APPLE__) && \ ++ (!defined(__FreeBSD__) || __FreeBSD_version < 500000) + enum { + float_round_nearest_even = FP_RN, +- float_round_down = FE_RM, +- float_round_up = FE_RP, +- float_round_to_zero = FE_RZ ++ float_round_down = FP_RM, ++ float_round_up = FP_RP, ++ float_round_to_zero = FP_RZ + }; + #elif defined(__arm__) + enum { +Index: qemu/fpu/softfloat.h +@@ -84,7 +84,8 @@ + #define FLOAT128 + #else + /* native float support */ +-#if (defined(__i386__) || defined(__x86_64__)) && !defined(_BSD) ++#if (defined(__i386__) || defined(__x86_64__)) && \ ++ (!defined(_BSD) || defined(__FreeBSD__)) + #define FLOATX80 + #endif + #endif /* !CONFIG_SOFTFLOAT */ +Index: qemu/target-ppc/op_helper.c +@@ -303,6 +303,13 @@ + FT0 = sqrt(FT0); + } + ++#ifndef isnormal ++#define isnormal(x) \ ++ ((sizeof (x) == sizeof (float)) ? __isnormalf(x) \ ++ : (sizeof (x) == sizeof (double)) ? __isnormal(x) \ ++ : __isnormall(x)) ++#endif ++ + void do_fres (void) + { + union { +Index: qemu/x86_64.ld +@@ -2,7 +2,7 @@ + OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", "elf64-x86-64") + OUTPUT_ARCH(i386:x86-64) + ENTRY(_start) +-SEARCH_DIR("/lib64"); SEARCH_DIR("/usr/lib64"); SEARCH_DIR("/usr/local/lib64"); ++SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib"); SEARCH_DIR("/usr/local/lib"); + SECTIONS + { + /* Read-only sections, merged into text segment: */ Index: files/patch-libmath @@ -0,0 +1,2407 @@ +Index: qemu/bsd/Makefile +@@ -0,0 +1,32 @@ ++SRCS= ${MACHINE_ARCH}/e_atan2l.c \ ++ ${MACHINE_ARCH}/e_logl.S \ ++ ${MACHINE_ARCH}/e_powl.S \ ++ ${MACHINE_ARCH}/e_remainderl.S \ ++ ${MACHINE_ARCH}/e_sqrtl.c \ ++ ${MACHINE_ARCH}/s_ceill.S \ ++ ${MACHINE_ARCH}/s_cosl.S \ ++ ${MACHINE_ARCH}/s_floorl.S \ ++ ${MACHINE_ARCH}/s_isnormal.c \ ++ ${MACHINE_ARCH}/s_llrint.S \ ++ ${MACHINE_ARCH}/s_llrintf.S \ ++ ${MACHINE_ARCH}/s_llrintl.S \ ++ ${MACHINE_ARCH}/s_lrint.S \ ++ ${MACHINE_ARCH}/s_lrintf.S \ ++ ${MACHINE_ARCH}/s_lrintl.S \ ++ ${MACHINE_ARCH}/s_rintl.c \ ++ ${MACHINE_ARCH}/s_round.c \ ++ ${MACHINE_ARCH}/s_sinl.S \ ++ ${MACHINE_ARCH}/s_tanl.S ++ ++OBJS= ${SRCS:R:S/$/.o/} ++ ++CFLAGS= -O2 -Wall -I. ++ ++all: libmath.a ++ ++libmath.a: ${OBJS} ++ rm -f $@ ++ ${AR} rcs $@ ${OBJS:T} ++ ++clean: ++ rm -f ${OBJS:T} libmath.a +Index: qemu/bsd/amd64/e_atan2l.c +@@ -0,0 +1,20 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++ ++long double ++__ieee754_atan2l (long double y, long double x) ++{ ++ long double res; ++ ++ asm ("fpatan" : "=t" (res) : "u" (y), "0" (x) : "st(1)"); ++ ++ return res; ++} ++ ++weak_alias(__ieee754_atan2l, atan2l) +Index: qemu/bsd/amd64/e_logl.S +@@ -0,0 +1,59 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ * Adapted for x86-64 by Andreas Jaeger . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ ++#ifdef __ELF__ ++ .section .rodata ++#else ++ .text ++#endif ++ .align ALIGNARG(4) ++ ASM_TYPE_DIRECTIVE(one,@object) ++one: .double 1.0 ++ ASM_SIZE_DIRECTIVE(one) ++ /* It is not important that this constant is precise. It is only ++ a value which is known to be on the safe side for using the ++ fyl2xp1 instruction. */ ++ ASM_TYPE_DIRECTIVE(limit,@object) ++limit: .double 0.29 ++ ASM_SIZE_DIRECTIVE(limit) ++ ++ ++#ifdef PIC ++#define MO(op) op##(%rip) ++#else ++#define MO(op) op ++#endif ++ ++ .text ++ENTRY(__ieee754_logl) ++ fldln2 // log(2) ++ fldt 8(%rsp) // x : log(2) ++ fld %st // x : x : log(2) ++ fsubl MO(one) // x-1 : x : log(2) ++ fld %st // x-1 : x-1 : x : log(2) ++ fabs // |x-1| : x-1 : x : log(2) ++ fcompl MO(limit) // x-1 : x : log(2) ++ fnstsw // x-1 : x : log(2) ++ andb $0x45, %ah ++ jz 2f ++ fstp %st(1) // x-1 : log(2) ++ fyl2xp1 // log(x) ++ ret ++ ++2: fstp %st(0) // x : log(2) ++ fyl2x // log(x) ++ ret ++END (__ieee754_logl) ++ ++weak_alias(__ieee754_logl,logl) +Index: qemu/bsd/amd64/e_powl.S +@@ -0,0 +1,341 @@ ++/* ix87 specific implementation of pow function. ++ Copyright (C) 1996, 1997, 1998, 1999, 2001, 2004 Free Software Foundation, Inc. ++ This file is part of the GNU C Library. ++ Contributed by Ulrich Drepper , 1996. ++ ++ The GNU C Library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ The GNU C Library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with the GNU C Library; if not, write to the Free ++ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++ 02111-1307 USA. */ ++ ++#include ++#include ++ ++#ifdef __ELF__ ++ .section .rodata ++#else ++ .text ++#endif ++ ++ .align ALIGNARG(4) ++ ASM_TYPE_DIRECTIVE(infinity,@object) ++inf_zero: ++infinity: ++ .byte 0, 0, 0, 0, 0, 0, 0xf0, 0x7f ++ ASM_SIZE_DIRECTIVE(infinity) ++ ASM_TYPE_DIRECTIVE(zero,@object) ++zero: .double 0.0 ++ ASM_SIZE_DIRECTIVE(zero) ++ ASM_TYPE_DIRECTIVE(minf_mzero,@object) ++minf_mzero: ++minfinity: ++ .byte 0, 0, 0, 0, 0, 0, 0xf0, 0xff ++mzero: ++ .byte 0, 0, 0, 0, 0, 0, 0, 0x80 ++ ASM_SIZE_DIRECTIVE(minf_mzero) ++ ASM_TYPE_DIRECTIVE(one,@object) ++one: .double 1.0 ++ ASM_SIZE_DIRECTIVE(one) ++ ASM_TYPE_DIRECTIVE(limit,@object) ++limit: .double 0.29 ++ ASM_SIZE_DIRECTIVE(limit) ++ ASM_TYPE_DIRECTIVE(p63,@object) ++p63: ++ .byte 0, 0, 0, 0, 0, 0, 0xe0, 0x43 ++ ASM_SIZE_DIRECTIVE(p63) ++ ++#ifdef PIC ++#define MO(op) op##(%rip) ++#else ++#define MO(op) op ++#endif ++ ++ .text ++ENTRY(__ieee754_powl) ++ fldt 24(%rsp) // y ++ fxam ++ ++ ++ fnstsw ++ movb %ah, %dl ++ andb $0x45, %ah ++ cmpb $0x40, %ah // is y == 0 ? ++ je 11f ++ ++ cmpb $0x05, %ah // is y == ±inf ? ++ je 12f ++ ++ cmpb $0x01, %ah // is y == NaN ? ++ je 30f ++ ++ fldt 8(%rsp) // x : y ++ ++ fxam ++ fnstsw ++ movb %ah, %dh ++ andb $0x45, %ah ++ cmpb $0x40, %ah ++ je 20f // x is ±0 ++ ++ cmpb $0x05, %ah ++ je 15f // x is ±inf ++ ++ fxch // y : x ++ ++ /* fistpll raises invalid exception for |y| >= 1L<<63. */ ++ fldl MO(p63) // 1L<<63 : y : x ++ fld %st(1) // y : 1L<<63 : y : x ++ fabs // |y| : 1L<<63 : y : x ++ fcomip %st(1), %st // 1L<<63 : y : x ++ fstp %st(0) // y : x ++ jnc 2f ++ ++ /* First see whether `y' is a natural number. In this case we ++ can use a more precise algorithm. */ ++ fld %st // y : y : x ++ fistpll -8(%rsp) // y : x ++ fildll -8(%rsp) // int(y) : y : x ++ fucomip %st(1),%st // y : x ++ jne 2f ++ ++ /* OK, we have an integer value for y. */ ++ mov -8(%rsp),%eax ++ mov -4(%rsp),%edx ++ orl $0, %edx ++ fstp %st(0) // x ++ jns 4f // y >= 0, jump ++ fdivrl MO(one) // 1/x (now referred to as x) ++ negl %eax ++ adcl $0, %edx ++ negl %edx ++4: fldl MO(one) // 1 : x ++ fxch ++ ++6: shrdl $1, %edx, %eax ++ jnc 5f ++ fxch ++ fmul %st(1) // x : ST*x ++ fxch ++5: fmul %st(0), %st // x*x : ST*x ++ shrl $1, %edx ++ movl %eax, %ecx ++ orl %edx, %ecx ++ jnz 6b ++ fstp %st(0) // ST*x ++ ret ++ ++ /* y is ±NAN */ ++30: fldt 8(%rsp) // x : y ++ fldl MO(one) // 1.0 : x : y ++ fucomip %st(1),%st // x : y ++ je 31f ++ fxch // y : x ++31: fstp %st(1) ++ ret ++ ++ .align ALIGNARG(4) ++2: /* y is a real number. */ ++ fxch // x : y ++ fldl MO(one) // 1.0 : x : y ++ fld %st(1) // x : 1.0 : x : y ++ fsub %st(1) // x-1 : 1.0 : x : y ++ fabs // |x-1| : 1.0 : x : y ++ fcompl MO(limit) // 1.0 : x : y ++ fnstsw ++ fxch // x : 1.0 : y ++ test $4500,%eax ++ jz 7f ++ fsub %st(1) // x-1 : 1.0 : y ++ fyl2xp1 // log2(x) : y ++ jmp 8f ++ ++7: fyl2x // log2(x) : y ++8: fmul %st(1) // y*log2(x) : y ++ fxam ++ fnstsw ++ andb $0x45, %ah ++ cmpb $0x05, %ah // is y*log2(x) == ±inf ? ++ je 28f ++ fst %st(1) // y*log2(x) : y*log2(x) ++ frndint // int(y*log2(x)) : y*log2(x) ++ fsubr %st, %st(1) // int(y*log2(x)) : fract(y*log2(x)) ++ fxch // fract(y*log2(x)) : int(y*log2(x)) ++ f2xm1 // 2^fract(y*log2(x))-1 : int(y*log2(x)) ++ faddl MO(one) // 2^fract(y*log2(x)) : int(y*log2(x)) ++ fscale // 2^fract(y*log2(x))*2^int(y*log2(x)) : int(y*log2(x)) ++ fstp %st(1) // 2^fract(y*log2(x))*2^int(y*log2(x)) ++ ret ++ ++28: fstp %st(1) // y*log2(x) ++ fldl MO(one) // 1 : y*log2(x) ++ fscale // 2^(y*log2(x)) : y*log2(x) ++ fstp %st(1) // 2^(y*log2(x)) ++ ret ++ ++ // pow(x,±0) = 1 ++ .align ALIGNARG(4) ++11: fstp %st(0) // pop y ++ fldl MO(one) ++ ret ++ ++ // y == ±inf ++ .align ALIGNARG(4) ++12: fstp %st(0) // pop y ++ fldt 8(%rsp) // x ++ fabs ++ fcompl MO(one) // < 1, == 1, or > 1 ++ fnstsw ++ andb $0x45, %ah ++ cmpb $0x45, %ah ++ je 13f // jump if x is NaN ++ ++ cmpb $0x40, %ah ++ je 14f // jump if |x| == 1 ++ ++ shlb $1, %ah ++ xorb %ah, %dl ++ andl $2, %edx ++#ifdef PIC ++ lea inf_zero(%rip),%rcx ++ fldl (%rcx, %rdx, 4) ++#else ++ fldl inf_zero(,%rdx, 4) ++#endif ++ ret ++ ++ .align ALIGNARG(4) ++14: fldl MO(one) ++ ret ++ ++ .align ALIGNARG(4) ++13: fldt 8(%rsp) // load x == NaN ++ ret ++ ++ .align ALIGNARG(4) ++ // x is ±inf ++15: fstp %st(0) // y ++ testb $2, %dh ++ jz 16f // jump if x == +inf ++ ++ // We must find out whether y is an odd integer. ++ fld %st // y : y ++ fistpll -8(%rsp) // y ++ fildll -8(%rsp) // int(y) : y ++ fucomip %st(1),%st ++ ffreep %st // ++ jne 17f ++ ++ // OK, the value is an integer, but is it odd? ++ mov -8(%rsp), %eax ++ mov -4(%rsp), %edx ++ andb $1, %al ++ jz 18f // jump if not odd ++ // It's an odd integer. ++ shrl $31, %edx ++#ifdef PIC ++ lea minf_mzero(%rip),%rcx ++ fldl (%rcx, %rdx, 8) ++#else ++ fldl minf_mzero(,%rdx, 8) ++#endif ++ ret ++ ++ .align ALIGNARG(4) ++16: fcompl MO(zero) ++ fnstsw ++ shrl $5, %eax ++ andl $8, %eax ++#ifdef PIC ++ lea inf_zero(%rip),%rcx ++ fldl (%rcx, %rax, 1) ++#else ++ fldl inf_zero(,%rax, 1) ++#endif ++ ret ++ ++ .align ALIGNARG(4) ++17: shll $30, %edx // sign bit for y in right position ++18: shrl $31, %edx ++#ifdef PIC ++ lea inf_zero(%rip),%rcx ++ fldl (%rcx, %rdx, 8) ++#else ++ fldl inf_zero(,%rdx, 8) ++#endif ++ ret ++ ++ .align ALIGNARG(4) ++ // x is ±0 ++20: fstp %st(0) // y ++ testb $2, %dl ++ jz 21f // y > 0 ++ ++ // x is ±0 and y is < 0. We must find out whether y is an odd integer. ++ testb $2, %dh ++ jz 25f ++ ++ fld %st // y : y ++ fistpll -8(%rsp) // y ++ fildll -8(%rsp) // int(y) : y ++ fucomip %st(1),%st ++ ffreep %st // ++ jne 26f ++ ++ // OK, the value is an integer, but is it odd? ++ mov -8(%rsp),%eax ++ mov -4(%rsp),%edx ++ andb $1, %al ++ jz 27f // jump if not odd ++ // It's an odd integer. ++ // Raise divide-by-zero exception and get minus infinity value. ++ fldl MO(one) ++ fdivl MO(zero) ++ fchs ++ ret ++ ++25: fstp %st(0) ++26: ++27: // Raise divide-by-zero exception and get infinity value. ++ fldl MO(one) ++ fdivl MO(zero) ++ ret ++ ++ .align ALIGNARG(4) ++ // x is ±0 and y is > 0. We must find out whether y is an odd integer. ++21: testb $2, %dh ++ jz 22f ++ ++ fld %st // y : y ++ fistpll -8(%rsp) // y ++ fildll -8(%rsp) // int(y) : y ++ fucomip %st(1),%st ++ ffreep %st // ++ jne 23f ++ ++ // OK, the value is an integer, but is it odd? ++ mov -8(%rsp),%eax ++ mov -4(%rsp),%edx ++ andb $1, %al ++ jz 24f // jump if not odd ++ // It's an odd integer. ++ fldl MO(mzero) ++ ret ++ ++22: fstp %st(0) ++23: ++24: fldl MO(zero) ++ ret ++ ++END(__ieee754_powl) ++ ++weak_alias(__ieee754_powl,powl) +Index: qemu/bsd/amd64/e_remainderl.S +@@ -0,0 +1,23 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ * Adapted for x86-64 by Andreas Jaeger . ++ */ ++ ++#include ++#include ++ ++ENTRY(__ieee754_remainderl) ++ fldt 24(%rsp) ++ fldt 8(%rsp) ++1: fprem1 ++ fstsw %ax ++ testl $0x400,%eax ++ jnz 1b ++ fstp %st(1) ++ ret ++END (__ieee754_remainderl) ++ ++weak_alias(__ieee754_remainderl,remainderl) +Index: qemu/bsd/amd64/e_sqrtl.c +@@ -0,0 +1,20 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++ ++long double ++__ieee754_sqrtl (long double x) ++{ ++ long double res; ++ ++ asm ("fsqrt" : "=t" (res) : "0" (x)); ++ ++ return res; ++} ++ ++weak_alias(__ieee754_sqrtl,sqrtl) +Index: qemu/bsd/amd64/s_ceill.S +@@ -0,0 +1,247 @@ ++/* ++ * ==================================================== ++ * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. ++ * ++ * Developed at SunPro, a Sun Microsystems, Inc. business. ++ * Permission to use, copy, modify, and distribute this ++ * software is freely granted, provided that this notice ++ * is preserved. ++ * ==================================================== ++ * ++ * From: @(#)s_ceil.c 5.1 93/09/24 ++ */ ++/* XXX: generated from src/lib/msun/src/s_ceill.c */ ++ ++#include ++ ++__FBSDID("$FreeBSD: src/lib/msun/src/s_ceill.c,v 1.3 2005/04/22 09:57:55 stefanf Exp $") ++ ++ .file "s_ceill.c" ++ .section .rodata.cst8,"aM",@progbits,8 ++ .p2align 3 ++.LC0: ++ .long 2281731484 ++ .long 2117592124 ++ .p2align 3 ++.LC3: ++ .long 0 ++ .long 0 ++ .text ++ .p2align 4,,15 ++.globl ceill ++ .type ceill, @function ++ceill: ++.LFB17: ++ pushq %rbp ++.LCFI0: ++ pushq %rbx ++.LCFI1: ++ fldt 24(%rsp) ++ movq $0, -16(%rsp) ++ fld %st(0) ++ fstpt -56(%rsp) ++ movl -48(%rsp), %edi ++ movq -56(%rsp), %rsi ++ movl %edi, -16(%rsp) ++ movl -16(%rsp), %r11d ++ movq %rsi, -24(%rsp) ++ movl %r11d, %r10d ++ andl $32767, %r10d ++ leal -16383(%r10), %r8d ++ cmpl $30, %r8d ++ jg .L2 ++ testl %r8d, %r8d ++ js .L38 ++ movl -20(%rsp), %r9d ++ leal 1(%r8), %ecx ++ mov -24(%rsp), %eax ++ movl $4294967295, %ebp ++ movq %rsi, -56(%rsp) ++ movl %edi, -48(%rsp) ++ shrq %cl, %rbp ++ mov %r9d, %ebx ++ movq %rbx, %rdx ++ andq %rbp, %rdx ++ orq %rax, %rdx ++ fldt -56(%rsp) ++ je .L42 ++ ffreep %st(0) ++ testb $-128, -15(%rsp) ++ jne .L12 ++ movl $31, %ecx ++ movl $1, %eax ++ subl %r8d, %ecx ++ salq %cl, %rax ++ addl %eax, %r9d ++ mov %r9d, %eax ++ cmpq %rbx, %rax ++ jae .L32 ++ leal 1(%r10), %edx ++ movl %r11d, %eax ++ orl $-2147483648, %r9d ++ andw $-32768, %ax ++ andw $32767, %dx ++ orl %edx, %eax ++ movw %ax, -16(%rsp) ++.L32: ++ movl %r9d, -20(%rsp) ++.L12: ++ fstpl -32(%rsp) ++ movlpd -32(%rsp), %xmm0 ++ addsd .LC0(%rip), %xmm0 ++ ucomisd .LC3(%rip), %xmm0 ++ jbe .L31 ++ movl %ebp, %eax ++ movl $0, -24(%rsp) ++ notl %eax ++ andl %eax, %r9d ++ movl %r9d, -20(%rsp) ++ .p2align 4,,7 ++.L31: ++ movq -24(%rsp), %rsi ++ movl -16(%rsp), %edi ++ movq %rsi, -56(%rsp) ++ movl %edi, -48(%rsp) ++ fldt -56(%rsp) ++ popq %rbx ++ popq %rbp ++ ret ++ .p2align 4,,7 ++.L2: ++ cmpl $62, %r8d ++ jle .L43 ++ ffreep %st(0) ++.L17: ++ movq %rsi, -56(%rsp) ++ movl %edi, -48(%rsp) ++ fldt -56(%rsp) ++ popq %rbx ++ popq %rbp ++ ret ++ .p2align 4,,7 ++.L43: ++ movl -24(%rsp), %edx ++ leal 1(%r8), %ecx ++ movq $-1, %rbx ++ movq %rsi, -56(%rsp) ++ movl %edi, -48(%rsp) ++ shrq %cl, %rbx ++ mov %edx, %r9d ++ testq %rbx, %r9 ++ fldt -56(%rsp) ++ je .L42 ++ ffreep %st(0) ++ testb $-128, -15(%rsp) ++ jne .L20 ++ cmpl $31, %r8d ++ je .L36 ++ movl $63, %ecx ++ movl $1, %eax ++ subl %r8d, %ecx ++ salq %cl, %rax ++ leal (%rdx,%rax), %eax ++ movl %eax, -24(%rsp) ++ mov %eax, %eax ++ cmpq %r9, %rax ++ jae .L20 ++.L36: ++ movl -20(%rsp), %eax ++ leal 1(%rax), %ecx ++ cmpl %eax, %ecx ++ jae .L34 ++ leal 1(%r10), %edx ++ movl %r11d, %eax ++ orl $-2147483648, %ecx ++ andw $-32768, %ax ++ andw $32767, %dx ++ orl %edx, %eax ++ movw %ax, -16(%rsp) ++.L34: ++ movl %ecx, -20(%rsp) ++ .p2align 4,,7 ++.L20: ++ fstpl -32(%rsp) ++ movlpd -32(%rsp), %xmm0 ++ addsd .LC0(%rip), %xmm0 ++ ucomisd .LC3(%rip), %xmm0 ++ jbe .L31 ++ movl %ebx, %eax ++ notl %eax ++ andl %eax, -24(%rsp) ++ jmp .L31 ++ .p2align 4,,7 ++.L42: ++ fstp %st(1) ++ popq %rbx ++ popq %rbp ++ ret ++ .p2align 4,,7 ++.L38: ++ fstpl -32(%rsp) ++ movlpd -32(%rsp), %xmm0 ++ addsd .LC0(%rip), %xmm0 ++ ucomisd .LC3(%rip), %xmm0 ++ jbe .L17 ++ testl %r10d, %r10d ++ jle .L39 ++.L7: ++ movabsq $-9223372036854775808, %rsi ++ movl $16383, %edi ++ testb $-128, -15(%rsp) ++ movq %rsi, -56(%rsp) ++ movl %edi, -48(%rsp) ++ fldz ++ fldt -56(%rsp) ++ fcmovne %st(1), %st ++ fstp %st(1) ++ fstpt -56(%rsp) ++ movq -56(%rsp), %rsi ++ movl -48(%rsp), %edi ++ movq %rsi, -24(%rsp) ++ movl %edi, -16(%rsp) ++ jmp .L17 ++.L39: ++ movl -24(%rsp), %eax ++ orl -20(%rsp), %eax ++ je .L17 ++ jmp .L7 ++.LFE17: ++ .size ceill, .-ceill ++ .section .eh_frame,"a",@progbits ++.Lframe1: ++ .long .LECIE1-.LSCIE1 ++.LSCIE1: ++ .long 0x0 ++ .byte 0x1 ++ .string "" ++ .uleb128 0x1 ++ .sleb128 -8 ++ .byte 0x10 ++ .byte 0xc ++ .uleb128 0x7 ++ .uleb128 0x8 ++ .byte 0x90 ++ .uleb128 0x1 ++ .p2align 3 ++.LECIE1: ++.LSFDE1: ++ .long .LEFDE1-.LASFDE1 ++.LASFDE1: ++ .long .LASFDE1-.Lframe1 ++ .quad .LFB17 ++ .quad .LFE17-.LFB17 ++ .byte 0x4 ++ .long .LCFI0-.LFB17 ++ .byte 0xe ++ .uleb128 0x10 ++ .byte 0x4 ++ .long .LCFI1-.LCFI0 ++ .byte 0xe ++ .uleb128 0x18 ++ .byte 0x83 ++ .uleb128 0x3 ++ .byte 0x86 ++ .uleb128 0x2 ++ .p2align 3 ++.LEFDE1: ++ .ident "GCC: (GNU) 3.4.4 [FreeBSD] 20050408" +Index: qemu/bsd/amd64/s_cosl.S +@@ -0,0 +1,33 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ * Adapted for x86-64 by Andreas Jaeger . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ENTRY(__cosl) ++ fldt 8(%rsp) ++ fcos ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 1f ++ ret ++ .align ALIGNARG(4) ++1: fldpi ++ fadd %st(0) ++ fxch %st(1) ++2: fprem1 ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 2b ++ fstp %st(1) ++ fcos ++ ret ++END (__cosl) ++weak_alias (__cosl, cosl) +Index: qemu/bsd/amd64/s_floorl.S +@@ -0,0 +1,209 @@ ++/* ++ * ==================================================== ++ * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. ++ * ++ * Developed at SunPro, a Sun Microsystems, Inc. business. ++ * Permission to use, copy, modify, and distribute this ++ * software is freely granted, provided that this notice ++ * is preserved. ++ * ==================================================== ++ * ++ * From: @(#)s_floor.c 5.1 93/09/24 ++ */ ++/* XXX: generated from src/lib/msun/src/s_floorl.c */ ++ ++#include ++ ++__FBSDID("$FreeBSD: src/lib/msun/src/s_floorl.c,v 1.3 2005/04/22 09:57:55 stefanf Exp $") ++ ++ .file "s_floorl.c" ++ .section .rodata.cst8,"aM",@progbits,8 ++ .p2align 3 ++.LC0: ++ .long 2281731484 ++ .long 2117592124 ++ .section .rodata.cst4,"aM",@progbits,4 ++ .p2align 2 ++.LC2: ++ .long 3212836864 ++ .section .rodata.cst8 ++ .p2align 3 ++.LC3: ++ .long 0 ++ .long 0 ++ .text ++ .p2align 4,,15 ++.globl floorl ++ .type floorl, @function ++floorl: ++.LFB17: ++ fldt 8(%rsp) ++ movq $0, -16(%rsp) ++ fld %st(0) ++ fstpt -24(%rsp) ++ movl -16(%rsp), %r9d ++ fld %st(0) ++ movl %r9d, %r8d ++ andl $32767, %r8d ++ leal -16383(%r8), %esi ++ cmpl $30, %esi ++ jg .L2 ++ testl %esi, %esi ++ js .L40 ++ movl -20(%rsp), %edi ++ leal 1(%rsi), %ecx ++ mov -24(%rsp), %eax ++ movl $4294967295, %r11d ++ shrq %cl, %r11 ++ mov %edi, %r10d ++ movq %r10, %rdx ++ andq %r11, %rdx ++ orq %rax, %rdx ++ je .L44 ++ ffreep %st(0) ++ testb $-128, -15(%rsp) ++ je .L12 ++ movl $31, %ecx ++ movl $1, %eax ++ subl %esi, %ecx ++ salq %cl, %rax ++ addl %eax, %edi ++ mov %edi, %eax ++ cmpq %r10, %rax ++ jae .L32 ++ leal 1(%r8), %edx ++ movl %r9d, %eax ++ orl $-2147483648, %edi ++ andw $-32768, %ax ++ andw $32767, %dx ++ orl %edx, %eax ++ movw %ax, -16(%rsp) ++.L32: ++ movl %edi, -20(%rsp) ++.L12: ++ fstpl -32(%rsp) ++ movlpd -32(%rsp), %xmm0 ++ addsd .LC0(%rip), %xmm0 ++ ucomisd .LC3(%rip), %xmm0 ++ jbe .L46 ++ movl %r11d, %eax ++ movl $0, -24(%rsp) ++ notl %eax ++ andl %eax, %edi ++ movl %edi, -20(%rsp) ++.L46: ++ fldt -24(%rsp) ++ ret ++ .p2align 4,,7 ++.L2: ++ cmpl $62, %esi ++ jg .L44 ++ movl -24(%rsp), %edx ++ leal 1(%rsi), %ecx ++ movq $-1, %r10 ++ shrq %cl, %r10 ++ mov %edx, %edi ++ testq %r10, %rdi ++ je .L44 ++ ffreep %st(0) ++ testb $-128, -15(%rsp) ++ je .L20 ++ cmpl $31, %esi ++ je .L37 ++ movl $63, %ecx ++ movl $1, %eax ++ subl %esi, %ecx ++ salq %cl, %rax ++ leal (%rdx,%rax), %eax ++ movl %eax, -24(%rsp) ++ mov %eax, %eax ++ cmpq %rdi, %rax ++ jae .L20 ++.L37: ++ movl -20(%rsp), %eax ++ leal 1(%rax), %ecx ++ cmpl %eax, %ecx ++ jae .L34 ++ leal 1(%r8), %edx ++ movl %r9d, %eax ++ orl $-2147483648, %ecx ++ andw $-32768, %ax ++ andw $32767, %dx ++ orl %edx, %eax ++ movw %ax, -16(%rsp) ++.L34: ++ movl %ecx, -20(%rsp) ++ .p2align 4,,7 ++.L20: ++ fstpl -32(%rsp) ++ movlpd -32(%rsp), %xmm0 ++ addsd .LC0(%rip), %xmm0 ++ ucomisd .LC3(%rip), %xmm0 ++ jbe .L31 ++ movl %r10d, %eax ++ notl %eax ++ andl %eax, -24(%rsp) ++ fldt -24(%rsp) ++ ret ++ .p2align 4,,7 ++.L44: ++ fstp %st(1) ++.L47: ++ rep ; ret ++ .p2align 4,,7 ++.L40: ++ fxch %st(1) ++ fstpl -32(%rsp) ++ movlpd -32(%rsp), %xmm0 ++ addsd .LC0(%rip), %xmm0 ++ ucomisd .LC3(%rip), %xmm0 ++ jbe .L47 ++ testl %r8d, %r8d ++ jle .L41 ++.L45: ++ ffreep %st(0) ++ testb $-128, -15(%rsp) ++ fldz ++ je .L9 ++ ffreep %st(0) ++ flds .LC2(%rip) ++.L9: ++ fld %st(0) ++ fstpt -24(%rsp) ++ ret ++.L31: ++ fldt -24(%rsp) ++ ret ++.L41: ++ movl -24(%rsp), %eax ++ orl -20(%rsp), %eax ++ jne .L45 ++ rep ; ret ++.LFE17: ++ .size floorl, .-floorl ++ .section .eh_frame,"a",@progbits ++.Lframe1: ++ .long .LECIE1-.LSCIE1 ++.LSCIE1: ++ .long 0x0 ++ .byte 0x1 ++ .string "" ++ .uleb128 0x1 ++ .sleb128 -8 ++ .byte 0x10 ++ .byte 0xc ++ .uleb128 0x7 ++ .uleb128 0x8 ++ .byte 0x90 ++ .uleb128 0x1 ++ .p2align 3 ++.LECIE1: ++.LSFDE1: ++ .long .LEFDE1-.LASFDE1 ++.LASFDE1: ++ .long .LASFDE1-.Lframe1 ++ .quad .LFB17 ++ .quad .LFE17-.LFB17 ++ .p2align 3 ++.LEFDE1: ++ .ident "GCC: (GNU) 3.4.4 [FreeBSD] 20050408" +Index: qemu/bsd/amd64/s_isnormal.c +@@ -0,0 +1,85 @@ ++/*- ++ * Copyright (c) 2003 Mike Barcroft ++ * Copyright (c) 2002-2004 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ * ++ * $FreeBSD: src/lib/msun/src/s_isnormal.c,v 1.1 2004/07/09 03:32:39 das Exp $ ++ */ ++ ++union IEEEf2bits { ++ float f; ++ struct { ++ unsigned int man :23; ++ unsigned int exp :8; ++ unsigned int sign :1; ++ } bits; ++}; ++ ++union IEEEd2bits { ++ double d; ++ struct { ++ unsigned int manl :32; ++ unsigned int manh :20; ++ unsigned int exp :11; ++ unsigned int sign :1; ++ } bits; ++}; ++ ++union IEEEl2bits { ++ long double e; ++ struct { ++ unsigned int manl :32; ++ unsigned int manh :32; ++ unsigned int exp :15; ++ unsigned int sign :1; ++ unsigned int junk :16; ++ } bits; ++}; ++ ++int ++__isnormal(double d) ++{ ++ union IEEEd2bits u; ++ ++ u.d = d; ++ return (u.bits.exp != 0 && u.bits.exp != 2047); ++} ++ ++int ++__isnormalf(float f) ++{ ++ union IEEEf2bits u; ++ ++ u.f = f; ++ return (u.bits.exp != 0 && u.bits.exp != 255); ++} ++ ++int ++__isnormall(long double e) ++{ ++ union IEEEl2bits u; ++ ++ u.e = e; ++ return (u.bits.exp != 0 && u.bits.exp != 32767); ++} +Index: qemu/bsd/amd64/s_llrint.S +@@ -0,0 +1,6 @@ ++#include ++__FBSDID("$FreeBSD: src/lib/msun/amd64/s_llrint.S,v 1.1 2005/01/15 03:32:28 das Exp $") ++ ++/* sizeof(long) == sizeof(long long) */ ++#define fn llrint ++#include "s_lrint.S" +Index: qemu/bsd/amd64/s_llrintf.S +@@ -0,0 +1,6 @@ ++#include ++__FBSDID("$FreeBSD: src/lib/msun/amd64/s_llrintf.S,v 1.1 2005/04/16 21:12:55 das Exp $") ++ ++/* sizeof(long) == sizeof(long long) */ ++#define fn llrintf ++#include "s_lrintf.S" +Index: qemu/bsd/amd64/s_llrintl.S +@@ -0,0 +1,35 @@ ++/* Round argument to nearest integral value according to current rounding ++ direction. ++ Copyright (C) 1997, 2002 Free Software Foundation, Inc. ++ This file is part of the GNU C Library. ++ ++ The GNU C Library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ The GNU C Library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with the GNU C Library; if not, write to the Free ++ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++ 02111-1307 USA. */ ++ ++#include ++#include ++ ++ .text ++ENTRY(__llrintl) ++ fldt 8(%rsp) ++ fistpll -8(%rsp) ++ fwait ++ movq -8(%rsp),%rax ++ ret ++END(__llrintl) ++weak_alias (__llrintl, llrintl) ++strong_alias (__llrintl, __lrintl) ++weak_alias (__llrintl, lrintl) ++ +Index: qemu/bsd/amd64/s_lrint.S +@@ -0,0 +1,36 @@ ++/*- ++ * Copyright (c) 2005 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++#include ++ ++#ifndef fn ++__FBSDID("$FreeBSD: src/lib/msun/amd64/s_lrint.S,v 1.1 2005/01/15 03:32:28 das Exp $") ++#define fn lrint ++#endif ++ ++ENTRY(fn) ++ cvtsd2si %xmm0, %rax ++ ret +Index: qemu/bsd/amd64/s_lrintf.S +@@ -0,0 +1,36 @@ ++/*- ++ * Copyright (c) 2005 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++#include ++ ++#ifndef fn ++__FBSDID("$FreeBSD: src/lib/msun/amd64/s_lrintf.S,v 1.1 2005/04/16 21:12:55 das Exp $") ++#define fn lrintf ++#endif ++ ++ENTRY(fn) ++ cvtss2si %xmm0, %rax ++ ret +Index: qemu/bsd/amd64/s_lrintl.S +@@ -0,0 +1 @@ ++/* Not needed, see s_llrintl.S. */ +Index: qemu/bsd/amd64/s_rintl.c +@@ -0,0 +1,18 @@ ++/* ++ * Written by J.T. Conklin . ++ * Changes for long double by Ulrich Drepper ++ * Public domain. ++ */ ++ ++#include ++ ++long double ++__rintl (long double x) ++{ ++ long double res; ++ ++ asm ("frndint" : "=t" (res) : "0" (x)); ++ return res; ++} ++ ++weak_alias (__rintl, rintl) +Index: qemu/bsd/amd64/s_round.c +@@ -0,0 +1,51 @@ ++/*- ++ * Copyright (c) 2003, Steven G. Kargl ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice unmodified, this list of conditions, and the following ++ * disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR ++ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ++ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ++ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, ++ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT ++ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, ++ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ++ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ++ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF ++ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ++ */ ++ ++#include ++__FBSDID("$FreeBSD: src/lib/msun/src/s_round.c,v 1.3 2005/01/13 15:43:41 das Exp $"); ++ ++#include ++ ++double ++round(double x) ++{ ++ double t; ++ ++ if (!isfinite(x)) ++ return (x); ++ ++ if (x >= 0.0) { ++ t = ceil(x); ++ if (t - x > 0.5) ++ t -= 1.0; ++ return (t); ++ } else { ++ t = ceil(-x); ++ if (t + x > 0.5) ++ t -= 1.0; ++ return (-t); ++ } ++} +Index: qemu/bsd/amd64/s_sinl.S +@@ -0,0 +1,31 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ * Adapted for x86-64 by Andreas Jaeger . ++ */ ++ ++#include ++#include ++ ++ENTRY(__sinl) ++ fldt 8(%rsp) ++ fsin ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 1f ++ ret ++ .align ALIGNARG(4) ++1: fldpi ++ fadd %st(0) ++ fxch %st(1) ++2: fprem1 ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 2b ++ fstp %st(1) ++ fsin ++ ret ++END (__sinl) ++weak_alias (__sinl, sinl) +Index: qemu/bsd/amd64/s_tanl.S +@@ -0,0 +1,34 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ * Adapted for x86-64 by Andreas Jaeger . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ENTRY(__tanl) ++ fldt 8(%rsp) ++ fptan ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 1f ++ fstp %st(0) ++ ret ++1: fldpi ++ fadd %st(0) ++ fxch %st(1) ++2: fprem1 ++ fstsw %ax ++ testl $0x400,%eax ++ jnz 2b ++ fstp %st(1) ++ fptan ++ fstp %st(0) ++ ret ++END (__tanl) ++weak_alias (__tanl, tanl) +Index: qemu/bsd/i386/e_atan2l.c +@@ -0,0 +1,20 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++ ++long double ++__ieee754_atan2l (long double y, long double x) ++{ ++ long double res; ++ ++ asm ("fpatan" : "=t" (res) : "u" (y), "0" (x) : "st(1)"); ++ ++ return res; ++} ++ ++weak_alias(__ieee754_atan2l, atan2l) +Index: qemu/bsd/i386/e_logl.S +@@ -0,0 +1,63 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ ++#ifdef __ELF__ ++ .section .rodata ++#else ++ .text ++#endif ++ .align ALIGNARG(4) ++ ASM_TYPE_DIRECTIVE(one,@object) ++one: .double 1.0 ++ ASM_SIZE_DIRECTIVE(one) ++ /* It is not important that this constant is precise. It is only ++ a value which is known to be on the safe side for using the ++ fyl2xp1 instruction. */ ++ ASM_TYPE_DIRECTIVE(limit,@object) ++limit: .double 0.29 ++ ASM_SIZE_DIRECTIVE(limit) ++ ++ ++#ifdef PIC ++#define MO(op) op##@GOTOFF(%edx) ++#else ++#define MO(op) op ++#endif ++ ++ .text ++ENTRY(__ieee754_logl) ++ fldln2 // log(2) ++ fldt 4(%esp) // x : log(2) ++#ifdef PIC ++ call 1f ++1: popl %edx ++ addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %edx ++#endif ++ fld %st // x : x : log(2) ++ fsubl MO(one) // x-1 : x : log(2) ++ fld %st // x-1 : x-1 : x : log(2) ++ fabs // |x-1| : x-1 : x : log(2) ++ fcompl MO(limit) // x-1 : x : log(2) ++ fnstsw // x-1 : x : log(2) ++ andb $0x45, %ah ++ jz 2f ++ fstp %st(1) // x-1 : log(2) ++ fyl2xp1 // log(x) ++ ret ++ ++2: fstp %st(0) // x : log(2) ++ fyl2x // log(x) ++ ret ++END (__ieee754_logl) ++ ++weak_alias(__ieee754_logl,logl) +Index: qemu/bsd/i386/e_powl.S +@@ -0,0 +1,341 @@ ++/* ix87 specific implementation of pow function. ++ Copyright (C) 1996, 1997, 1998, 1999, 2001, 2004 ++ Free Software Foundation, Inc. ++ This file is part of the GNU C Library. ++ Contributed by Ulrich Drepper , 1996. ++ ++ The GNU C Library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ The GNU C Library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with the GNU C Library; if not, write to the Free ++ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++ 02111-1307 USA. */ ++ ++#include ++#include ++ ++#ifdef __ELF__ ++ .section .rodata ++#else ++ .text ++#endif ++ ++ .align ALIGNARG(4) ++ ASM_TYPE_DIRECTIVE(infinity,@object) ++inf_zero: ++infinity: ++ .byte 0, 0, 0, 0, 0, 0, 0xf0, 0x7f ++ ASM_SIZE_DIRECTIVE(infinity) ++ ASM_TYPE_DIRECTIVE(zero,@object) ++zero: .double 0.0 ++ ASM_SIZE_DIRECTIVE(zero) ++ ASM_TYPE_DIRECTIVE(minf_mzero,@object) ++minf_mzero: ++minfinity: ++ .byte 0, 0, 0, 0, 0, 0, 0xf0, 0xff ++mzero: ++ .byte 0, 0, 0, 0, 0, 0, 0, 0x80 ++ ASM_SIZE_DIRECTIVE(minf_mzero) ++ ASM_TYPE_DIRECTIVE(one,@object) ++one: .double 1.0 ++ ASM_SIZE_DIRECTIVE(one) ++ ASM_TYPE_DIRECTIVE(limit,@object) ++limit: .double 0.29 ++ ASM_SIZE_DIRECTIVE(limit) ++ ASM_TYPE_DIRECTIVE(p63,@object) ++p63: .byte 0, 0, 0, 0, 0, 0, 0xe0, 0x43 ++ ASM_SIZE_DIRECTIVE(p63) ++ ++#ifdef PIC ++#define MO(op) op##@GOTOFF(%ecx) ++#define MOX(op,x,f) op##@GOTOFF(%ecx,x,f) ++#else ++#define MO(op) op ++#define MOX(op,x,f) op(,x,f) ++#endif ++ ++ .text ++ENTRY(__ieee754_powl) ++ fldt 16(%esp) // y ++ fxam ++ ++#ifdef PIC ++ call 1f ++1: popl %ecx ++ addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %ecx ++#endif ++ ++ fnstsw ++ movb %ah, %dl ++ andb $0x45, %ah ++ cmpb $0x40, %ah // is y == 0 ? ++ je 11f ++ ++ cmpb $0x05, %ah // is y == ±inf ? ++ je 12f ++ ++ cmpb $0x01, %ah // is y == NaN ? ++ je 30f ++ ++ fldt 4(%esp) // x : y ++ ++ subl $8,%esp ++ ++ fxam ++ fnstsw ++ movb %ah, %dh ++ andb $0x45, %ah ++ cmpb $0x40, %ah ++ je 20f // x is ±0 ++ ++ cmpb $0x05, %ah ++ je 15f // x is ±inf ++ ++ fxch // y : x ++ ++ /* fistpll raises invalid exception for |y| >= 1L<<63. */ ++ fld %st // y : y : x ++ fabs // |y| : y : x ++ fcompl MO(p63) // y : x ++ fnstsw ++ sahf ++ jnc 2f ++ ++ /* First see whether `y' is a natural number. In this case we ++ can use a more precise algorithm. */ ++ fld %st // y : y : x ++ fistpll (%esp) // y : x ++ fildll (%esp) // int(y) : y : x ++ fucomp %st(1) // y : x ++ fnstsw ++ sahf ++ jne 2f ++ ++ /* OK, we have an integer value for y. */ ++ popl %eax ++ popl %edx ++ orl $0, %edx ++ fstp %st(0) // x ++ jns 4f // y >= 0, jump ++ fdivrl MO(one) // 1/x (now referred to as x) ++ negl %eax ++ adcl $0, %edx ++ negl %edx ++4: fldl MO(one) // 1 : x ++ fxch ++ ++6: shrdl $1, %edx, %eax ++ jnc 5f ++ fxch ++ fmul %st(1) // x : ST*x ++ fxch ++5: fmul %st(0), %st // x*x : ST*x ++ shrl $1, %edx ++ movl %eax, %ecx ++ orl %edx, %ecx ++ jnz 6b ++ fstp %st(0) // ST*x ++ ret ++ ++ /* y is ±NAN */ ++30: fldt 4(%esp) // x : y ++ fldl MO(one) // 1.0 : x : y ++ fucomp %st(1) // x : y ++ fnstsw ++ sahf ++ je 31f ++ fxch // y : x ++31: fstp %st(1) ++ ret ++ ++ .align ALIGNARG(4) ++2: /* y is a real number. */ ++ fxch // x : y ++ fldl MO(one) // 1.0 : x : y ++ fld %st(1) // x : 1.0 : x : y ++ fsub %st(1) // x-1 : 1.0 : x : y ++ fabs // |x-1| : 1.0 : x : y ++ fcompl MO(limit) // 1.0 : x : y ++ fnstsw ++ fxch // x : 1.0 : y ++ sahf ++ ja 7f ++ fsub %st(1) // x-1 : 1.0 : y ++ fyl2xp1 // log2(x) : y ++ jmp 8f ++ ++7: fyl2x // log2(x) : y ++8: fmul %st(1) // y*log2(x) : y ++ fxam ++ fnstsw ++ andb $0x45, %ah ++ cmpb $0x05, %ah // is y*log2(x) == ±inf ? ++ je 28f ++ fst %st(1) // y*log2(x) : y*log2(x) ++ frndint // int(y*log2(x)) : y*log2(x) ++ fsubr %st, %st(1) // int(y*log2(x)) : fract(y*log2(x)) ++ fxch // fract(y*log2(x)) : int(y*log2(x)) ++ f2xm1 // 2^fract(y*log2(x))-1 : int(y*log2(x)) ++ faddl MO(one) // 2^fract(y*log2(x)) : int(y*log2(x)) ++ fscale // 2^fract(y*log2(x))*2^int(y*log2(x)) : int(y*log2(x)) ++ addl $8, %esp ++ fstp %st(1) // 2^fract(y*log2(x))*2^int(y*log2(x)) ++ ret ++ ++28: fstp %st(1) // y*log2(x) ++ fldl MO(one) // 1 : y*log2(x) ++ fscale // 2^(y*log2(x)) : y*log2(x) ++ addl $8, %esp ++ fstp %st(1) // 2^(y*log2(x)) ++ ret ++ ++ // pow(x,±0) = 1 ++ .align ALIGNARG(4) ++11: fstp %st(0) // pop y ++ fldl MO(one) ++ ret ++ ++ // y == ±inf ++ .align ALIGNARG(4) ++12: fstp %st(0) // pop y ++ fldt 4(%esp) // x ++ fabs ++ fcompl MO(one) // < 1, == 1, or > 1 ++ fnstsw ++ andb $0x45, %ah ++ cmpb $0x45, %ah ++ je 13f // jump if x is NaN ++ ++ cmpb $0x40, %ah ++ je 14f // jump if |x| == 1 ++ ++ shlb $1, %ah ++ xorb %ah, %dl ++ andl $2, %edx ++ fldl MOX(inf_zero, %edx, 4) ++ ret ++ ++ .align ALIGNARG(4) ++14: fldl MO(one) ++ ret ++ ++ .align ALIGNARG(4) ++13: fldt 4(%esp) // load x == NaN ++ ret ++ ++ .align ALIGNARG(4) ++ // x is ±inf ++15: fstp %st(0) // y ++ testb $2, %dh ++ jz 16f // jump if x == +inf ++ ++ // We must find out whether y is an odd integer. ++ fld %st // y : y ++ fistpll (%esp) // y ++ fildll (%esp) // int(y) : y ++ fucompp // ++ fnstsw ++ sahf ++ jne 17f ++ ++ // OK, the value is an integer, but is it odd? ++ popl %eax ++ popl %edx ++ andb $1, %al ++ jz 18f // jump if not odd ++ // It's an odd integer. ++ shrl $31, %edx ++ fldl MOX(minf_mzero, %edx, 8) ++ ret ++ ++ .align ALIGNARG(4) ++16: fcompl MO(zero) ++ addl $8, %esp ++ fnstsw ++ shrl $5, %eax ++ andl $8, %eax ++ fldl MOX(inf_zero, %eax, 1) ++ ret ++ ++ .align ALIGNARG(4) ++17: shll $30, %edx // sign bit for y in right position ++ addl $8, %esp ++18: shrl $31, %edx ++ fldl MOX(inf_zero, %edx, 8) ++ ret ++ ++ .align ALIGNARG(4) ++ // x is ±0 ++20: fstp %st(0) // y ++ testb $2, %dl ++ jz 21f // y > 0 ++ ++ // x is ±0 and y is < 0. We must find out whether y is an odd integer. ++ testb $2, %dh ++ jz 25f ++ ++ fld %st // y : y ++ fistpll (%esp) // y ++ fildll (%esp) // int(y) : y ++ fucompp // ++ fnstsw ++ sahf ++ jne 26f ++ ++ // OK, the value is an integer, but is it odd? ++ popl %eax ++ popl %edx ++ andb $1, %al ++ jz 27f // jump if not odd ++ // It's an odd integer. ++ // Raise divide-by-zero exception and get minus infinity value. ++ fldl MO(one) ++ fdivl MO(zero) ++ fchs ++ ret ++ ++25: fstp %st(0) ++26: addl $8, %esp ++27: // Raise divide-by-zero exception and get infinity value. ++ fldl MO(one) ++ fdivl MO(zero) ++ ret ++ ++ .align ALIGNARG(4) ++ // x is ±0 and y is > 0. We must find out whether y is an odd integer. ++21: testb $2, %dh ++ jz 22f ++ ++ fld %st // y : y ++ fistpll (%esp) // y ++ fildll (%esp) // int(y) : y ++ fucompp // ++ fnstsw ++ sahf ++ jne 23f ++ ++ // OK, the value is an integer, but is it odd? ++ popl %eax ++ popl %edx ++ andb $1, %al ++ jz 24f // jump if not odd ++ // It's an odd integer. ++ fldl MO(mzero) ++ ret ++ ++22: fstp %st(0) ++23: addl $8, %esp // Don't use 2 x pop ++24: fldl MO(zero) ++ ret ++ ++END(__ieee754_powl) ++ ++weak_alias(__ieee754_powl,powl) +Index: qemu/bsd/i386/e_remainderl.S +@@ -0,0 +1,24 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ENTRY(__ieee754_remainderl) ++ fldt 16(%esp) ++ fldt 4(%esp) ++1: fprem1 ++ fstsw %ax ++ sahf ++ jp 1b ++ fstp %st(1) ++ ret ++END (__ieee754_remainderl) ++ ++weak_alias(__ieee754_remainderl,remainderl) +Index: qemu/bsd/i386/e_sqrtl.c +@@ -0,0 +1,20 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++ ++long double ++__ieee754_sqrtl (long double x) ++{ ++ long double res; ++ ++ asm ("fsqrt" : "=t" (res) : "0" (x)); ++ ++ return res; ++} ++ ++weak_alias(__ieee754_sqrtl,sqrtl) +Index: qemu/bsd/i386/s_ceill.S +@@ -0,0 +1,27 @@ ++/* ++ * Based on code written by J.T. Conklin . ++ * Public domain. ++ */ ++ ++#include ++RCSID("$FreeBSD: src/lib/msun/i387/s_ceill.S,v 1.1 2005/04/16 21:12:55 das Exp $") ++ ++ENTRY(ceill) ++ pushl %ebp ++ movl %esp,%ebp ++ subl $8,%esp ++ ++ fstcw -4(%ebp) /* store fpu control word */ ++ movw -4(%ebp),%dx ++ orw $0x0800,%dx /* round towards +oo */ ++ andw $0xfbff,%dx ++ movw %dx,-8(%ebp) ++ fldcw -8(%ebp) /* load modfied control word */ ++ ++ fldt 8(%ebp) /* round */ ++ frndint ++ ++ fldcw -4(%ebp) /* restore original control word */ ++ ++ leave ++ ret +Index: qemu/bsd/i386/s_cosl.S +@@ -0,0 +1,32 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ENTRY(__cosl) ++ fldt 4(%esp) ++ fcos ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 1f ++ ret ++ .align ALIGNARG(4) ++1: fldpi ++ fadd %st(0) ++ fxch %st(1) ++2: fprem1 ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 2b ++ fstp %st(1) ++ fcos ++ ret ++END (__cosl) ++weak_alias (__cosl, cosl) +Index: qemu/bsd/i386/s_floorl.S +@@ -0,0 +1,27 @@ ++/* ++ * Based on code written by J.T. Conklin . ++ * Public domain. ++ */ ++ ++#include ++RCSID("$FreeBSD: src/lib/msun/i387/s_floorl.S,v 1.1 2005/04/16 21:12:55 das Exp $") ++ ++ENTRY(floorl) ++ pushl %ebp ++ movl %esp,%ebp ++ subl $8,%esp ++ ++ fstcw -4(%ebp) /* store fpu control word */ ++ movw -4(%ebp),%dx ++ orw $0x0400,%dx /* round towards -oo */ ++ andw $0xf7ff,%dx ++ movw %dx,-8(%ebp) ++ fldcw -8(%ebp) /* load modfied control word */ ++ ++ fldt 8(%ebp) /* round */ ++ frndint ++ ++ fldcw -4(%ebp) /* restore original control word */ ++ ++ leave ++ ret +Index: qemu/bsd/i386/s_isnormal.c +@@ -0,0 +1,85 @@ ++/*- ++ * Copyright (c) 2003 Mike Barcroft ++ * Copyright (c) 2002-2004 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ * ++ * $FreeBSD: src/lib/msun/src/s_isnormal.c,v 1.1 2004/07/09 03:32:39 das Exp $ ++ */ ++ ++union IEEEf2bits { ++ float f; ++ struct { ++ unsigned int man :23; ++ unsigned int exp :8; ++ unsigned int sign :1; ++ } bits; ++}; ++ ++union IEEEd2bits { ++ double d; ++ struct { ++ unsigned int manl :32; ++ unsigned int manh :20; ++ unsigned int exp :11; ++ unsigned int sign :1; ++ } bits; ++}; ++ ++union IEEEl2bits { ++ long double e; ++ struct { ++ unsigned int manl :32; ++ unsigned int manh :32; ++ unsigned int exp :15; ++ unsigned int sign :1; ++ unsigned int junk :16; ++ } bits; ++}; ++ ++int ++__isnormal(double d) ++{ ++ union IEEEd2bits u; ++ ++ u.d = d; ++ return (u.bits.exp != 0 && u.bits.exp != 2047); ++} ++ ++int ++__isnormalf(float f) ++{ ++ union IEEEf2bits u; ++ ++ u.f = f; ++ return (u.bits.exp != 0 && u.bits.exp != 255); ++} ++ ++int ++__isnormall(long double e) ++{ ++ union IEEEl2bits u; ++ ++ u.e = e; ++ return (u.bits.exp != 0 && u.bits.exp != 32767); ++} +Index: qemu/bsd/i386/s_llrint.S +@@ -0,0 +1,36 @@ ++/*- ++ * Copyright (c) 2005 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++#include ++RCSID("$FreeBSD: src/lib/msun/i387/s_llrint.S,v 1.1 2005/01/11 23:10:53 das Exp $"); ++ ++ENTRY(llrint) ++ fldl 4(%esp) ++ subl $8,%esp ++ fistpll (%esp) ++ popl %eax ++ popl %edx ++ ret +Index: qemu/bsd/i386/s_llrintf.S +@@ -0,0 +1,36 @@ ++/*- ++ * Copyright (c) 2005 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++#include ++RCSID("$FreeBSD: src/lib/msun/i387/s_llrintf.S,v 1.1 2005/04/16 21:12:55 das Exp $") ++ ++ENTRY(llrintf) ++ flds 4(%esp) ++ subl $8,%esp ++ fistpll (%esp) ++ popl %eax ++ popl %edx ++ ret +Index: qemu/bsd/i386/s_llrintl.S +@@ -0,0 +1,35 @@ ++/* Round argument to nearest integral value according to current rounding ++ direction. ++ Copyright (C) 1997 Free Software Foundation, Inc. ++ This file is part of the GNU C Library. ++ Contributed by Ulrich Drepper , 1997. ++ ++ The GNU C Library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ The GNU C Library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with the GNU C Library; if not, write to the Free ++ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++ 02111-1307 USA. */ ++ ++#include ++#include ++ ++ .text ++ENTRY(__llrintl) ++ fldt 4(%esp) ++ subl $8, %esp ++ fistpll (%esp) ++ fwait ++ popl %eax ++ popl %edx ++ ret ++END(__llrintl) ++weak_alias (__llrintl, llrintl) +Index: qemu/bsd/i386/s_lrint.S +@@ -0,0 +1,35 @@ ++/*- ++ * Copyright (c) 2005 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++#include ++RCSID("$FreeBSD: src/lib/msun/i387/s_lrint.S,v 1.1 2005/01/11 23:10:53 das Exp $"); ++ ++ENTRY(lrint) ++ fldl 4(%esp) ++ subl $4,%esp ++ fistpl (%esp) ++ popl %eax ++ ret +Index: qemu/bsd/i386/s_lrintf.S +@@ -0,0 +1,35 @@ ++/*- ++ * Copyright (c) 2005 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++#include ++RCSID("$FreeBSD: src/lib/msun/i387/s_lrintf.S,v 1.1 2005/04/16 21:12:55 das Exp $") ++ ++ENTRY(lrintf) ++ flds 4(%esp) ++ subl $4,%esp ++ fistpl (%esp) ++ popl %eax ++ ret +Index: qemu/bsd/i386/s_lrintl.S +@@ -0,0 +1,34 @@ ++/* Round argument to nearest integral value according to current rounding ++ direction. ++ Copyright (C) 1997 Free Software Foundation, Inc. ++ This file is part of the GNU C Library. ++ Contributed by Ulrich Drepper , 1997. ++ ++ The GNU C Library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ The GNU C Library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with the GNU C Library; if not, write to the Free ++ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++ 02111-1307 USA. */ ++ ++#include ++#include ++ ++ .text ++ENTRY(__lrintl) ++ fldt 4(%esp) ++ subl $4, %esp ++ fistpl (%esp) ++ fwait ++ popl %eax ++ ret ++END(__lrintl) ++weak_alias (__lrintl, lrintl) +Index: qemu/bsd/i386/s_rintl.c +@@ -0,0 +1,18 @@ ++/* ++ * Written by J.T. Conklin . ++ * Changes for long double by Ulrich Drepper ++ * Public domain. ++ */ ++ ++#include ++ ++long double ++__rintl (long double x) ++{ ++ long double res; ++ ++ asm ("frndint" : "=t" (res) : "0" (x)); ++ return res; ++} ++ ++weak_alias (__rintl, rintl) +Index: qemu/bsd/i386/s_round.c +@@ -0,0 +1,51 @@ ++/*- ++ * Copyright (c) 2003, Steven G. Kargl ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice unmodified, this list of conditions, and the following ++ * disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR ++ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ++ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ++ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, ++ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT ++ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, ++ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ++ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ++ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF ++ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ++ */ ++ ++#include ++__FBSDID("$FreeBSD: src/lib/msun/src/s_round.c,v 1.3 2005/01/13 15:43:41 das Exp $"); ++ ++#include ++ ++double ++round(double x) ++{ ++ double t; ++ ++ if (!isfinite(x)) ++ return (x); ++ ++ if (x >= 0.0) { ++ t = ceil(x); ++ if (t - x > 0.5) ++ t -= 1.0; ++ return (t); ++ } else { ++ t = ceil(-x); ++ if (t + x > 0.5) ++ t -= 1.0; ++ return (-t); ++ } ++} +Index: qemu/bsd/i386/s_sinl.S +@@ -0,0 +1,32 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ENTRY(__sinl) ++ fldt 4(%esp) ++ fsin ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 1f ++ ret ++ .align ALIGNARG(4) ++1: fldpi ++ fadd %st(0) ++ fxch %st(1) ++2: fprem1 ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 2b ++ fstp %st(1) ++ fsin ++ ret ++END (__sinl) ++weak_alias (__sinl, sinl) +Index: qemu/bsd/i386/s_tanl.S +@@ -0,0 +1,33 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ENTRY(__tanl) ++ fldt 4(%esp) ++ fptan ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 1f ++ fstp %st(0) ++ ret ++1: fldpi ++ fadd %st(0) ++ fxch %st(1) ++2: fprem1 ++ fstsw %ax ++ testl $0x400,%eax ++ jnz 2b ++ fstp %st(1) ++ fptan ++ fstp %st(0) ++ ret ++END (__tanl) ++weak_alias (__tanl, tanl) +Index: qemu/bsd/sysdep.h +@@ -0,0 +1,20 @@ ++#ifndef _QEMU_BSD_SYSDEP_H_ ++#define _QEMU_BSD_SYSDEP_H_ ++ ++#include ++ ++#define HAVE_ELF ++ ++#ifdef __ASSEMBLER__ ++#define ALIGNARG(log2) 1< Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64B3F16A4CE for ; Wed, 27 Apr 2005 19:21:17 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3E9043D49 for ; Wed, 27 Apr 2005 19:21:16 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id EA2C0513A7; Wed, 27 Apr 2005 12:21:12 -0700 (PDT) Date: Wed, 27 Apr 2005 12:21:12 -0700 From: Kris Kennaway To: Michael Hopkins Message-ID: <20050427192112.GA30646@xor.obsecurity.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="W/nzBZO5zC0uMSeA" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i cc: "freebsd-amd64@freebsd.org" Subject: Re: Shared library relocation R_X86_64_32 solution on amd64? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 19:21:17 -0000 --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 27, 2005 at 10:23:39AM +0100, Michael Hopkins wrote: >=20 >=20 > Hi all >=20 > I have been doing some research about why gnustep-base won't link on amd6= 4. > It seems as if the problem I am getting here is quite common. > ------------------------------------------------------------------------ > gmake[1]: Leaving directory > `/usr/home/mwh/Coding/Obj-C/gnustep/core/base/Source' > Making all in SSL... > gmake[1]: Entering directory > `/usr/home/mwh/Coding/Obj-C/gnustep/core/base/SSL' > Making all for bundle SSL... > Creating SSL.bundle/amd64/freebsd/gnu-gnu-gnu... > Compiling file GSSSLHandle.m ... > Linking bundle SSL ... > /usr/bin/ld: /usr/lib/libobjc.a(Protocol.o): relocation R_X86_64_32 can n= ot > be used when making a shared object; recompile with -fPIC > /usr/lib/libobjc.a: could not read symbols: Bad value > gmake[2]: *** [SSL.bundle/amd64/freebsd/gnu-gnu-gnu/SSL] Error 1 > gmake[1]: *** [SSL.all.bundle.variables] Error 2 > gmake[1]: Leaving directory > `/usr/home/mwh/Coding/Obj-C/gnustep/core/base/SSL' > gmake: *** [internal-all] Error 2 > ------------------------------------------------------------------------ >=20 > It has been mentioned a few times on this list: my understanding of this > issue is that you can't link to shared libraries unless they have been > compiled with -fPIC. Is that right? Yes, and libobjc.a isn't a shared library, so you can't link it into one. > continue. >=20 > I have two main questions in this post. >=20 > 1) What installs libobjc.a? I want to reinstall it with CFLAGS +=3D -fPI= C. I > assumed that it was installed by gcc-objc but after reinstalling that with > -fPIC the libobjc.a library was untouched! Since it's in /usr/lib, it's part of the base system. We don't seem to install a shared library version of that, so you should talk to kan@. > 2) What is the standard method for dealing with this problem on amd64? I= 'm > sure it will hit a lot of people on many different ports and if it's a ti= er > 1 platform then don't we need to have a proper strategy for dealing with > this? Well, yeah, there is a proper strategy. "Link shared objects to shared libraries". Kris --W/nzBZO5zC0uMSeA Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCb+YoWry0BWjoQKURAnXDAJ0UBlr1rUd1ul1BEbOlOV8Nk2hX/gCg5S7l /dvni2iosRpVLqfJS+rPGXg= =3m40 -----END PGP SIGNATURE----- --W/nzBZO5zC0uMSeA-- From owner-freebsd-amd64@FreeBSD.ORG Wed Apr 27 19:39:06 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4259C16A4CE; Wed, 27 Apr 2005 19:39:06 +0000 (GMT) Received: from neon.webfusion.co.uk (neon.webfusion.co.uk [212.67.202.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC9B643D39; Wed, 27 Apr 2005 19:39:05 +0000 (GMT) (envelope-from michael.hopkins@hopkins-research.com) Received: from 83-216-132-201.markch725.adsl.metronet.co.uk ([83.216.132.201] helo=[192.168.0.5]) by neon.webfusion.co.uk with asmtp (Exim 3.36 #1) id 1DQsND-0001bm-00; Wed, 27 Apr 2005 20:39:03 +0100 User-Agent: Microsoft-Entourage/10.1.1.2418 Date: Wed, 27 Apr 2005 20:38:59 +0100 From: Michael Hopkins To: Kris Kennaway Message-ID: In-Reply-To: <20050427192112.GA30646@xor.obsecurity.org> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit cc: kan@freebsd.org cc: "freebsd-amd64@freebsd.org" Subject: Re: Shared library relocation R_X86_64_32 solution on amd64? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 19:39:06 -0000 On 27/4/05 8:21 pm, "Kris Kennaway" wrote: > On Wed, Apr 27, 2005 at 10:23:39AM +0100, Michael Hopkins wrote: >> >> I have been doing some research about why gnustep-base won't link on amd64. >> It seems as if the problem I am getting here is quite common. >> ------------------------------------------------------------------------ >> Making all in SSL... >> gmake[1]: Entering directory >> `/usr/home/mwh/Coding/Obj-C/gnustep/core/base/SSL' >> Making all for bundle SSL... >> Creating SSL.bundle/amd64/freebsd/gnu-gnu-gnu... >> Compiling file GSSSLHandle.m ... >> Linking bundle SSL ... >> /usr/bin/ld: /usr/lib/libobjc.a(Protocol.o): relocation R_X86_64_32 can not >> be used when making a shared object; recompile with -fPIC >> /usr/lib/libobjc.a: could not read symbols: Bad value >> gmake[2]: *** [SSL.bundle/amd64/freebsd/gnu-gnu-gnu/SSL] Error 1 >> gmake[1]: *** [SSL.all.bundle.variables] Error 2 >> gmake[1]: Leaving directory >> `/usr/home/mwh/Coding/Obj-C/gnustep/core/base/SSL' >> gmake: *** [internal-all] Error 2 >> ------------------------------------------------------------------------ >> >> It has been mentioned a few times on this list: my understanding of this >> issue is that you can't link to shared libraries unless they have been >> compiled with -fPIC. Is that right? > > Yes, and libobjc.a isn't a shared library, so you can't link it into one. > Do you know why this problem appears to be specific to amd64? >> >> I have two main questions in this post. >> >> 1) What installs libobjc.a? I want to reinstall it with CFLAGS += -fPIC. I >> assumed that it was installed by gcc-objc but after reinstalling that with >> -fPIC the libobjc.a library was untouched! > > Since it's in /usr/lib, it's part of the base system. We don't seem > to install a shared library version of that, I may have been creating a red herring when I said it needed to link to a shared library. I think the actual issue is linking any kind of amd64 library which hasn't been made with -fPIC into another shared library - I await clarification from others who know better about these things. > so you should talk to > kan@. > Does this mean kan@freebsd.org? I have copied to that address in case. >> 2) What is the standard method for dealing with this problem on amd64? I'm >> sure it will hit a lot of people on many different ports and if it's a tier >> 1 platform then don't we need to have a proper strategy for dealing with >> this? > > Well, yeah, there is a proper strategy. "Link shared objects to > shared libraries". > Did you see that the simlar earlier problem was solved by rebuilding ffcall with -fPIC? I don't think libcallback.a is a shared library either but the link was made possible by the rebuild. I am still not completely clear whether the cause of this problem is: 1) the GNUstep source code 2) the GNUstep makefile 3) the FreeBSD amd64 default library setup 4) the FreeBSD amd64 'linking logic' 5) something else? > Kris > Thanks for the input Michael _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/ _/ _/_/_/ Hopkins Research Ltd _/ _/ _/ _/ _/_/_/_/ _/_/_/ http://www.hopkins-research.com/ _/ _/ _/ _/ _/ _/ _/ _/ 'touch the future' _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ From owner-freebsd-amd64@FreeBSD.ORG Wed Apr 27 20:29:01 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78D1616A4CE; Wed, 27 Apr 2005 20:29:01 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06F2243D1F; Wed, 27 Apr 2005 20:29:01 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 33257514C9; Wed, 27 Apr 2005 13:29:00 -0700 (PDT) Date: Wed, 27 Apr 2005 13:29:00 -0700 From: Kris Kennaway To: Michael Hopkins Message-ID: <20050427202900.GA52508@xor.obsecurity.org> References: <20050427192112.GA30646@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i cc: kan@freebsd.org cc: "freebsd-amd64@freebsd.org" cc: Kris Kennaway Subject: Re: Shared library relocation R_X86_64_32 solution on amd64? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 20:29:01 -0000 --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 27, 2005 at 08:38:59PM +0100, Michael Hopkins wrote: > >> It has been mentioned a few times on this list: my understanding of th= is > >> issue is that you can't link to shared libraries unless they have been > >> compiled with -fPIC. Is that right? > >=20 > > Yes, and libobjc.a isn't a shared library, so you can't link it into on= e. > >=20 > Do you know why this problem appears to be specific to amd64? It's not, ia64 and sparc64 have similar requirements. > >> I have two main questions in this post. > >>=20 > >> 1) What installs libobjc.a? I want to reinstall it with CFLAGS +=3D -= fPIC. I > >> assumed that it was installed by gcc-objc but after reinstalling that = with > >> -fPIC the libobjc.a library was untouched! > >=20 > > Since it's in /usr/lib, it's part of the base system. We don't seem > > to install a shared library version of that, >=20 > I may have been creating a red herring when I said it needed to link to a > shared library. I think the actual issue is linking any kind of amd64 > library which hasn't been made with -fPIC into another shared library - I > await clarification from others who know better about these things. Yeah, by definition you should only be using -fPIC with shared (relocatable) libraries). > > so you should talk to > > kan@. > >=20 > Does this mean kan@freebsd.org? I have copied to that address in case. Yes. > >> sure it will hit a lot of people on many different ports and if it's a= tier > >> 1 platform then don't we need to have a proper strategy for dealing wi= th > >> this? > >=20 > > Well, yeah, there is a proper strategy. "Link shared objects to > > shared libraries". > >=20 > Did you see that the simlar earlier problem was solved by rebuilding ffca= ll > with -fPIC? I don't think libcallback.a is a shared library either but t= he > link was made possible by the rebuild. You generally shouldn't be compiling static (.a) libraries with -fPIC because this causes performance penalities for applications that really want to link statically with them. > I am still not completely clear whether the cause of this problem is: >=20 > 1) the GNUstep source code > 2) the GNUstep makefile > 3) the FreeBSD amd64 default library setup > 4) the FreeBSD amd64 'linking logic' > 5) something else? For the error above, it looks like at least 3) (i.e. FreeBSD should provide a libobjc.so). Whether or not gnustep will use it, or if there are further problems, I can't say. Kris --jI8keyz6grp/JLjh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCb/YLWry0BWjoQKURAvHhAKCLMs8OZFcGARhs9Ca91LFHKsLLIgCfexLJ b1FDR0x/FaJIvEoAW+dWuzw= =SfdC -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh-- From owner-freebsd-amd64@FreeBSD.ORG Wed Apr 27 20:31:39 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59ADD16A4CE; Wed, 27 Apr 2005 20:31:39 +0000 (GMT) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id C58D443D1D; Wed, 27 Apr 2005 20:31:37 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1])j3RKVak8000726; Wed, 27 Apr 2005 22:31:36 +0200 Received: from saturn.kn-bremen.de (uucp@localhost)j3RKVa3n000724; Wed, 27 Apr 2005 22:31:36 +0200 Received: (from nox@localhost) by saturn.kn-bremen.de (8.11.4/8.8.5) id j3RKTgA98499; Wed, 27 Apr 2005 22:29:42 +0200 (CEST) From: Juergen Lock Date: Wed, 27 Apr 2005 22:29:41 +0200 To: freebsd-emulation@freebsd.org, freebsd-amd64@freebsd.org Message-ID: <20050427222941.A98482@saturn.kn-bremen.de> Mail-Followup-To: freebsd-emulation@freebsd.org, freebsd-amd64@freebsd.org References: <20050427210405.A95072@saturn.kn-bremen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <20050427210405.A95072@saturn.kn-bremen.de> Subject: Re: please test qemu port update X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 20:31:39 -0000 On Wed, Apr 27, 2005 at 09:04:06PM +0200, Juergen Lock wrote: > With the help of Jung-uk Kim i have made an update for the qemu port > that might :) now actually work on amd64 as well. Please test. > (I also haven't tested 4.11 or 6.0 i386.) I already found one bug, sorry: Index: files/patch-block.c @@ -1,4 +1,4 @@ -Index: block.c +Index: qemu/block.c =================================================================== RCS file: /cvsroot/qemu/qemu/block.c,v retrieving revision 1.19 From owner-freebsd-amd64@FreeBSD.ORG Wed Apr 27 20:41:01 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3464016A4CE; Wed, 27 Apr 2005 20:41:01 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id D74C243D49; Wed, 27 Apr 2005 20:41:00 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 8556E516F2; Wed, 27 Apr 2005 13:40:59 -0700 (PDT) Date: Wed, 27 Apr 2005 13:40:59 -0700 From: Kris Kennaway To: amd64@FreeBSD.org Message-ID: <20050427204059.GB52508@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZoaI/ZTpAVc4A5k6" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i cc: ports@FreeBSD.org Subject: Small milestone X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 20:41:01 -0000 --ZoaI/ZTpAVc4A5k6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On the latest 6.x amd64 package build the total passed 10000 packages for the first time: amd64: 10030 By comparison, here's the last 5.x i386 build: =20 i386: 11169 Thanks to everyone who's worked on fixing broken amd64 ports! Kris --ZoaI/ZTpAVc4A5k6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCb/jaWry0BWjoQKURAv7xAKDHOmcxh/7kxkunki/MzMonDjTlIACg5H7A snWpoIZa9bwQe5O9/I8WKlI= =+fj0 -----END PGP SIGNATURE----- --ZoaI/ZTpAVc4A5k6-- From owner-freebsd-amd64@FreeBSD.ORG Wed Apr 27 21:29:43 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A16216A4CE; Wed, 27 Apr 2005 21:29:43 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D3FE43D67; Wed, 27 Apr 2005 21:29:42 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 09C4D513A7; Wed, 27 Apr 2005 14:29:41 -0700 (PDT) Date: Wed, 27 Apr 2005 14:29:40 -0700 From: Kris Kennaway To: amd64@FreeBSD.org, current@FreeBSD.org Message-ID: <20050427212940.GA69185@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mP3DRpeJDSE+ciuQ" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: panic: sleepq_broadcast: invalid NULL wait channel X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 21:29:43 -0000 --mP3DRpeJDSE+ciuQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 6.0 from a couple of days ago, panicked at reboot: Waiting (max 60 seconds) for system process `vnlru' to stop...done Waiting (max 60 seconds) for system process `bufdaemon' to stop...done Waiting (max 60 seconds) for system process `syncer' to stop... Syncing disks, vnodes remaining...6 4 3 1 1 0 0 done All buffers synced. unmount of /dev failed (BUSY) Uptime: 14m9s panic: sleepq_broadcast: invalid NULL wait channel cpuid = 0 KDB: enter: panic [thread pid 5125 tid 100145 ] Stopped at kdb_enter+0x31: leave db> wh Tracing pid 5125 tid 100145 td 0xffffff0045f67980 kdb_enter() at kdb_enter+0x31 panic() at panic+0x1e6 sleepq_broadcast() at sleepq_broadcast+0x41 wakeup() at wakeup+0x23 arcmsr_shutdown() at arcmsr_shutdown+0x19a device_shutdown() at device_shutdown+0x47 bus_generic_shutdown() at bus_generic_shutdown+0x1a device_shutdown() at device_shutdown+0x47 bus_generic_shutdown() at bus_generic_shutdown+0x1a device_shutdown() at device_shutdown+0x47 bus_generic_shutdown() at bus_generic_shutdown+0x1a device_shutdown() at device_shutdown+0x47 bus_generic_shutdown() at bus_generic_shutdown+0x1a device_shutdown() at device_shutdown+0x47 bus_generic_shutdown() at bus_generic_shutdown+0x1a device_shutdown() at device_shutdown+0x47 bus_generic_shutdown() at bus_generic_shutdown+0x1a device_shutdown() at device_shutdown+0x47 bus_generic_shutdown() at bus_generic_shutdown+0x1a acpi_shutdown() at acpi_shutdown+0x31 device_shutdown() at device_shutdown+0x47 bus_generic_shutdown() at bus_generic_shutdown+0x1a device_shutdown() at device_shutdown+0x47 bus_generic_shutdown() at bus_generic_shutdown+0x1a device_shutdown() at device_shutdown+0x47 root_bus_module_handler() at root_bus_module_handler+0xc2 module_shutdown() at module_shutdown+0x42 boot() at boot+0x6a3 reboot() at reboot+0x39 syscall() at syscall+0x320 Xfast_syscall() at Xfast_syscall+0xa8 --- syscall (55, FreeBSD ELF64, reboot), rip = 0x80076abcc, rsp = 0x7fffffffeb08, rbp = 0 --- db> --mP3DRpeJDSE+ciuQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCcAREWry0BWjoQKURAisrAJ9uKxv8efZlHMF581/B5/QPCd0WZQCeNhmt LebzDMhPnezAtBzS+mhEKJU= =bGPH -----END PGP SIGNATURE----- --mP3DRpeJDSE+ciuQ-- From owner-freebsd-amd64@FreeBSD.ORG Wed Apr 27 23:36:22 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 107F016A4CE; Wed, 27 Apr 2005 23:36:22 +0000 (GMT) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23C7643D49; Wed, 27 Apr 2005 23:36:21 +0000 (GMT) (envelope-from jkim@niksun.com) Received: from [10.70.0.244] (daemon.mj.niksun.com [10.70.0.244]) by anuket.mj.niksun.com (8.13.1/8.13.1) with ESMTP id j3RNaqvL026387; Wed, 27 Apr 2005 19:36:52 -0400 (EDT) (envelope-from jkim@niksun.com) From: Jung-uk Kim Organization: Niksun, Inc. To: freebsd-amd64@freebsd.org Date: Wed, 27 Apr 2005 19:36:18 -0400 User-Agent: KMail/1.6.2 References: <20050427210405.A95072@saturn.kn-bremen.de> In-Reply-To: <20050427210405.A95072@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_yHCcC4WUVkR+O3X" Message-Id: <200504271936.18743.jkim@niksun.com> X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on anuket.mj.niksun.com X-Virus-Status: Clean cc: freebsd-emulation@freebsd.org cc: Juergen Lock Subject: Re: please test qemu port update X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2005 23:36:22 -0000 --Boundary-00=_yHCcC4WUVkR+O3X Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Wednesday 27 April 2005 03:04 pm, Juergen Lock wrote: > With the help of Jung-uk Kim i have made an update for the qemu > port that might :) now actually work on amd64 as well. Please > test. (I also haven't tested 4.11 or 6.0 i386.) > > remove these files: files/patch-ab, > files/patch-target-sparc::op_helper.c > > (btw I'm not subscribed on -amd64 so if you remove -emulation > please Cc me if you want me to see followups...) ---- >8 --- SNIP!!! --- >8 ---- Juergen, sorry but it doesn't work. You missed few things in Makefile. Since QEMU 0.7.0 is released, I think it's good time to update it, too. ;-) Update to QEMU 0.7.0 and Makefile fix is attached. Thanks, Jung-uk Kim --Boundary-00=_yHCcC4WUVkR+O3X Content-Type: text/x-diff; charset="iso-8859-1"; name="qemu-0.7.0.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="qemu-0.7.0.diff" Index: Makefile =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/Makefile,v retrieving revision 1.22 diff -u -r1.22 Makefile --- Makefile 8 Mar 2005 23:02:58 -0000 1.22 +++ Makefile 27 Apr 2005 23:15:51 -0000 @@ -6,20 +6,19 @@ # PORTNAME= qemu -PORTVERSION= 0.6.2s.20050305 +PORTVERSION= 0.7.0 CATEGORIES= emulators -MASTER_SITES= http://people.fruitsalad.org/nox/qemu/ \ - http://dad-answers.com/qemu/ -DISTNAME= ${PORTNAME}-snapshot-2005-03-05_23 +MASTER_SITES= http://www.qemu.org/ MAINTAINER= nox@jelal.kn-bremen.de COMMENT= QEMU CPU Emulator BUILD_DEPENDS+= texi2html:${PORTSDIR}/textproc/texi2html +.if !defined(WITHOUT_SAMBA) RUN_DEPENDS+= ${LOCALBASE}/sbin/smbd:${PORTSDIR}/net/samba +.endif HAS_CONFIGURE= yes -USE_BZIP2= yes USE_GMAKE= yes USE_GETOPT_LONG= yes USE_SDL= sdl @@ -27,21 +26,40 @@ PATCH_STRIP= -p1 CONFIGURE_ARGS+= --prefix=${PREFIX} --cc=${CC}\ -I${PREFIX}/include MAN1= qemu.1 qemu-img.1 -ONLY_FOR_ARCHS= i386 amd64 powerpc +ONLY_FOR_ARCHS= amd64 i386 # gcc34 (system cc on 5.x now) has problems with qemu on amd64 # (doesnt build target-i386/op.c), try the one in ports which is newer .include .if ${ARCH} == "amd64" && ${OSVERSION} >= 502126 -BROKEN= Does not compile CC= gcc34 -CXX= g++34 BUILD_DEPENDS+= gcc34:${PORTSDIR}/lang/gcc34 GCCVERSION= 030402 .else USE_GCC= 3.4 .endif + +pre-everything:: +.if !defined(WITHOUT_SAMBA) + @${ECHO_MSG} "Notice: if you don't need qemu's -smb option (smb-export local dir to guest)" + @${ECHO_MSG} "then you can omit this port's samba dependency by defining WITHOUT_SAMBA." +.endif + +pre-patch: + @for A in ${ONLY_FOR_ARCHS}; do \ + ${MKDIR} ${WRKSRC}/bsd/$$A; \ + done + +do-configure: + @(cd ${WRKSRC}; ./configure ${CONFIGURE_ARGS}) + +do-build: + @(cd ${WRKSRC}; \ + LOCALBASE=${LOCALBASE} MAKEFLAGS= CC=${CC} BSD_MAKE=${MAKE} ${GMAKE}) + +do-install: + @(cd ${WRKSRC}; MAKEFLAGS= ${GMAKE} install) post-install: @${CAT} ${PKGMESSAGE} Index: distinfo =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/distinfo,v retrieving revision 1.16 diff -u -r1.16 distinfo --- distinfo 8 Mar 2005 23:02:58 -0000 1.16 +++ distinfo 27 Apr 2005 23:15:51 -0000 @@ -1,2 +1,2 @@ -MD5 (qemu-snapshot-2005-03-05_23.tar.bz2) = f0ef5e1e3570df94d910d00cc9f62f6e -SIZE (qemu-snapshot-2005-03-05_23.tar.bz2) = 962774 +MD5 (qemu-0.7.0.tar.gz) = 234e9ace03b00259bb57dc5a9c633056 +SIZE (qemu-0.7.0.tar.gz) = 1211802 Index: files/patch-aa =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/files/patch-aa,v retrieving revision 1.3 diff -u -r1.3 patch-aa --- files/patch-aa 25 Oct 2004 14:57:30 -0000 1.3 +++ files/patch-aa 27 Apr 2005 23:15:51 -0000 @@ -11,206 +11,6 @@ qemu.1: qemu-doc.texi ./texi2pod.pl $< qemu.pod Only in qemu-0.5.5: qemu.1 -diff -urd --exclude=CVS ../cvs/qemu/target-i386/cpu.h qemu-0.5.5/target-i386/cpu.h ---- ../cvs/qemu/target-i386/cpu.h Thu May 20 15:01:56 2004 -+++ qemu-0.5.5/target-i386/cpu.h Sun May 30 05:16:10 2004 -@@ -259,7 +259,7 @@ - CC_OP_NB, - }; - --#if (defined(__i386__) || defined(__x86_64__)) && !defined(_BSD) -+#if defined(__i386__) || defined(__x86_64__) - #define USE_X86LDOUBLE - #endif - -diff -urd --exclude=CVS ../cvs/qemu/target-i386/exec.h qemu-0.5.5/target-i386/exec.h ---- ../cvs/qemu/target-i386/exec.h Sat May 29 12:08:52 2004 -+++ qemu-0.5.5/target-i386/exec.h Sun May 30 05:19:43 2004 -@@ -293,6 +293,22 @@ - - #endif /* !defined(CONFIG_USER_ONLY) */ - -+#if defined(_BSD) && defined(USE_X86LDOUBLE) -+#include -+/*int rintl(long double __x); -+long int lrintl(long double __x); -+long long int llrintl(long double __x); -+long double powl(long double __x, long double __y); -+long double logl(long double __x); -+long double tanl(long double __x); -+long double atan2l(long double __y, long double __x); -+long double ceill(long double __x); -+long double floorl(long double __x); -+long double sqrtl(long double __x); -+long double sinl(long double __x); -+long double cosl(long double __x);*/ -+#endif -+ - #ifdef USE_X86LDOUBLE - /* use long double functions */ - #define lrint lrintl -@@ -310,7 +326,7 @@ - #define rint rintl - #endif - --#if !defined(_BSD) -+#if !defined(_BSD) || defined(USE_X86LDOUBLE) - extern int lrint(CPU86_LDouble x); - extern int64_t llrint(CPU86_LDouble x); - #else -diff -urd --exclude=CVS ../cvs/qemu/target-i386/op.c qemu-0.5.5/target-i386/op.c ---- ../cvs/qemu/target-i386/op.c Sat May 29 12:08:52 2004 -+++ qemu-0.5.5/target-i386/op.c Sun May 30 05:40:54 2004 -@@ -1304,6 +1304,149 @@ - functions comes from the LGPL'ed x86 emulator found in the Willows - TWIN windows emulator. */ - -+#if defined(_BSD) && defined(USE_X86LDOUBLE) -+ -+CPU86_LDouble rintl(CPU86_LDouble __x) { -+ CPU86_LDouble __rintres; -+ __asm__ __volatile__ -+ ("fistp %0" -+ : "=m" (__rintres) : "t" (__x) : "st"); -+ return __rintres; -+} -+ -+int lrintl(CPU86_LDouble __x) { -+ int __lrintres; -+ __asm__ __volatile__ -+ ("fistpl %0" -+ : "=m" (__lrintres) : "t" (__x) : "st"); -+ return __lrintres; -+} -+ -+ -+int64_t llrintl(CPU86_LDouble __x) { -+ int64_t __llrintres; -+ __asm__ __volatile__ -+ ("fistpll %0" -+ : "=m" (__llrintres) : "t" (__x) : "st"); -+ return __llrintres; -+} -+ -+CPU86_LDouble powl(CPU86_LDouble __x, CPU86_LDouble __y) { -+ register CPU86_LDouble __value; -+ register long double __exponent; -+ __extension__ long long int __p = (long long int) __y; -+ if (__x == 0.0) -+ { -+ if (__y > 0.0) -+ return __y == (double) __p && (__p & 1) != 0 ? __x : 0.0; -+ else if (__y < 0.0) -+ return (__y == (double) __p && (-__p & 1) != 0 -+ ? 1.0 / __x : 1.0 / fabs (__x)); -+ } -+ if (__y == (double) __p) -+ { -+ long double __r = 1.0; -+ if (__p == 0) -+ return 1.0; -+ if (__p < 0) -+ { -+ __p = -__p; -+ __x = 1.0 / __x; -+ } -+ while (1) -+ { -+ if (__p & 1) -+ __r *= __x; -+ __p >>= 1; -+ if (__p == 0) -+ return __r; -+ __x *= __x; -+ } -+ /* NOTREACHED */ -+ } -+ __asm __volatile__ -+ ("fyl2x" : "=t" (__value) : "0" (__x), "u" (1.0) : "st(1)"); -+ __asm __volatile__ -+ ("fmul %%st(1) # y * log2(x)\n\t" -+ "fst %%st(1)\n\t" -+ "frndint # int(y * log2(x))\n\t" -+ "fxch\n\t" -+ "fsub %%st(1) # fract(y * log2(x))\n\t" -+ "f2xm1 # 2^(fract(y * log2(x))) - 1\n\t" -+ : "=t" (__value), "=u" (__exponent) : "0" (__y), "1" (__value)); -+ __value += 1.0; -+ __asm __volatile__ -+ ("fscale" -+ : "=t" (__value) : "0" (__value), "u" (__exponent)); -+ return __value; -+} -+ -+CPU86_LDouble logl(CPU86_LDouble __x) { -+ register CPU86_LDouble __result; -+ __asm __volatile__ ("fldln2; fxch; fyl2x" : "=t" (__result) : "0" (__x) : "st(1)"); -+ return __result; -+} -+ -+CPU86_LDouble tanl(CPU86_LDouble __x) { -+ register CPU86_LDouble __value; -+ register CPU86_LDouble __value2 __attribute__ ((__unused__)); -+ __asm __volatile__ -+ ("fptan" -+ : "=t" (__value2), "=u" (__value) : "0" (__x)); -+ return __value; -+} -+ -+CPU86_LDouble atan2l(CPU86_LDouble __y, CPU86_LDouble __x) { -+ register CPU86_LDouble __value; -+ __asm __volatile__ -+ ("fpatan" -+ : "=t" (__value) : "0" (__x), "u" (__y) : "st(1)"); -+ return __value; -+} -+ -+CPU86_LDouble ceill(CPU86_LDouble __x) { -+ register CPU86_LDouble __value; -+ __volatile unsigned short int __cw; -+ __volatile unsigned short int __cwtmp; -+ __asm __volatile ("fnstcw %0" : "=m" (__cw)); -+ __cwtmp = (__cw & 0xf3ff) | 0x0800; /* rounding up */ -+ __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); -+ __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); -+ __asm __volatile ("fldcw %0" : : "m" (__cw)); -+ return __value; -+} -+ -+CPU86_LDouble floorl(CPU86_LDouble __x) { -+ register CPU86_LDouble __value; -+ __volatile unsigned short int __cw; -+ __volatile unsigned short int __cwtmp; -+ __asm __volatile ("fnstcw %0" : "=m" (__cw)); -+ __cwtmp = (__cw & 0xf3ff) | 0x0400; /* rounding down */ -+ __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); -+ __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); -+ __asm __volatile ("fldcw %0" : : "m" (__cw)); -+ return __value; -+} -+ -+CPU86_LDouble sqrtl(CPU86_LDouble __x) { -+ register CPU86_LDouble __result; -+ __asm __volatile__ ("fsqrt" : "=t" (__result) : "0" (__x)); -+ return __result; -+} -+ -+CPU86_LDouble sinl(CPU86_LDouble __x) { -+ register CPU86_LDouble __result; -+ __asm __volatile__ ("fsin" : "=t" (__result) : "0" (__x)); -+ return __result; -+} -+ -+CPU86_LDouble cosl(CPU86_LDouble __x) { -+ register CPU86_LDouble __result; -+ __asm __volatile__ ("fcos" : "=t" (__result) : "0" (__x)); -+ return __result; -+} -+#endif -+ - #if defined(__powerpc__) - extern CPU86_LDouble copysign(CPU86_LDouble, CPU86_LDouble); - diff -urd --exclude=CVS ../cvs/qemu/vl.c qemu-0.5.5/vl.c --- ../cvs/qemu/vl.c Wed May 26 23:12:06 2004 +++ qemu-0.5.5/vl.c Sun May 30 05:30:56 2004 Index: files/patch-ab =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/files/patch-ab,v retrieving revision 1.1 diff -u -r1.1 patch-ab --- files/patch-ab 3 Jun 2004 02:12:52 -0000 1.1 +++ files/patch-ab 27 Apr 2005 23:15:51 -0000 @@ -1,16 +0,0 @@ -Index: qemu-snapshot-2004-05-30_23-40/target-i386/op.c -@@ -1307,11 +1307,9 @@ - #if defined(_BSD) && defined(USE_X86LDOUBLE) - - CPU86_LDouble rintl(CPU86_LDouble __x) { -- CPU86_LDouble __rintres; -- __asm__ __volatile__ -- ("fistp %0" -- : "=m" (__rintres) : "t" (__x) : "st"); -- return __rintres; -+ register CPU86_LDouble __result; -+ __asm __volatile__ ("frndint" : "=t" (__result) : "0" (__x)); -+ return __result; - } - - int lrintl(CPU86_LDouble __x) { Index: files/patch-bh =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/files/patch-bh,v retrieving revision 1.2 diff -u -r1.2 patch-bh --- files/patch-bh 11 Jul 2004 11:41:06 -0000 1.2 +++ files/patch-bh 27 Apr 2005 23:15:51 -0000 @@ -24,68 +24,3 @@ #undef NULL #define NULL 0 #ifdef _BSD -Index: qemu/target-ppc/op_helper.c -=================================================================== -RCS file: /cvsroot/qemu/qemu/target-ppc/op_helper.c,v -retrieving revision 1.6 -diff -w -u -d -r1.6 op_helper.c ---- target-ppc/op_helper.c 21 May 2004 12:59:31 -0000 1.6 -+++ target-ppc/op_helper.c 21 May 2004 15:00:49 -0000 -@@ -210,6 +210,22 @@ - } - /* TODO: update FEX & VX */ - /* Set rounding mode */ -+#ifdef _BSD -+ switch(env->fpscr[0] & 0x3) { -+ case 0: -+ fpsetround(FP_RN); -+ break; -+ case 1: -+ fpsetround(FP_RZ); -+ break; -+ case 2: -+ fpsetround(FP_RP); -+ break; -+ case 3: -+ fpsetround(FP_RM); -+ break; -+ } -+#else - switch (env->fpscr[0] & 0x3) { - case 0: - /* Best approximation (round to nearest) */ -@@ -228,6 +244,7 @@ - fesetround(FE_DOWNWARD); - break; - } -+#endif - } - - void do_fctiw (void) -@@ -253,9 +270,13 @@ - double d; - uint64_t i; - } *p = (void *)&FT1; -+#ifdef _BSD -+ int cround = fpgetround(); -+ fpsetround(FP_RZ); -+#else - int cround = fegetround(); -- - fesetround(FE_TOWARDZERO); -+#endif - if (FT0 > (double)0x7FFFFFFF) - p->i = 0x7FFFFFFFULL << 32; - else if (FT0 < -(double)0x80000000) -@@ -264,7 +285,11 @@ - p->i = 0; - p->i |= (uint32_t)FT0; - FT0 = p->d; -+#ifdef _BSD -+ fpsetround(cround); -+#else - fesetround(cround); -+#endif - } - - void do_fnmadds (void) Index: files/patch-block.c =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/files/patch-block.c,v retrieving revision 1.2 diff -u -r1.2 patch-block.c --- files/patch-block.c 17 Nov 2004 09:47:38 -0000 1.2 +++ files/patch-block.c 27 Apr 2005 23:15:51 -0000 @@ -1,71 +0,0 @@ -Index: qemu/block.c -@@ -21,6 +21,17 @@ - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -+ -+#include "config-host.h" -+ -+#ifdef _BSD -+#include -+#include -+#include -+#include -+#include -+#endif -+ - #include "vl.h" - #include "block_int.h" - -@@ -103,14 +103,25 @@ - { - int fd, ret, score, score_max; - BlockDriver *drv1, *drv; -- uint8_t buf[1024]; -+ uint8_t *buf; -+ size_t bufsize = 1024; -+ u_int sectorsize = 512; - - fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE); - if (fd < 0) - return NULL; -- ret = read(fd, buf, sizeof(buf)); -+#ifdef DIOCGSECTORSIZE -+ if (!ioctl(fd, DIOCGSECTORSIZE, §orsize) && -+ sectorsize > bufsize) -+ bufsize = sectorsize; -+#endif -+ buf = malloc(bufsize); -+ if (!buf) -+ return NULL; -+ ret = read(fd, buf, bufsize); - if (ret < 0) { - close(fd); -+ free(buf); - return NULL; - } - close(fd); -@@ -124,6 +135,7 @@ - drv = drv1; - } - } -+ free(buf); - return drv; - } - -@@ -522,6 +533,15 @@ - return -1; - bs->read_only = 1; - } -+#ifdef _BSD -+ struct stat sb; -+ if (!fstat(fd,&sb) && (S_IFCHR & sb.st_mode)) { -+#ifdef DIOCGMEDIASIZE -+ if (ioctl(fd, DIOCGMEDIASIZE, (off_t *)&size)) -+#endif -+ size = lseek(fd, 0LL, SEEK_END); -+ } else -+#endif - size = lseek(fd, 0, SEEK_END); - bs->total_sectors = size / 512; - s->fd = fd; Index: files/patch-target-sparc::op_helper.c =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/files/patch-target-sparc::op_helper.c,v retrieving revision 1.1 diff -u -r1.1 patch-target-sparc::op_helper.c --- files/patch-target-sparc::op_helper.c 28 Oct 2004 15:42:48 -0000 1.1 +++ files/patch-target-sparc::op_helper.c 27 Apr 2005 23:15:51 -0000 @@ -1,8 +0,0 @@ ---- qemu/target-sparc/op_helper.c.orig Mon Oct 11 02:46:24 2004 -+++ qemu/target-sparc/op_helper.c Thu Oct 28 23:28:57 2004 -@@ -1,5 +1,4 @@ - #include --#include - #include "exec.h" - - #ifdef USE_INT_TO_FLOAT_HELPERS --- files/patch-fbsd Wed Apr 27 19:13:19 2005 +++ files/patch-fbsd Wed Apr 27 19:00:40 2005 @@ -0,0 +1,141 @@ +Index: qemu/Makefile +@@ -13,7 +13,7 @@ + endif + DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 + +-all: dyngen$(EXESUF) $(TOOLS) $(DOCS) ++all: bsd/libmath.a dyngen$(EXESUF) $(TOOLS) $(DOCS) + for d in $(TARGET_DIRS); do \ + $(MAKE) -C $$d $@ || exit 1 ; \ + done +@@ -25,6 +25,9 @@ + endif + endif + ++bsd/libmath.a: ++ ( cd bsd ; $(BSD_MAKE) CC=$(CC) ) ++ + qemu-img$(EXESUF): qemu-img.c block.c block-cow.c block-qcow.c aes.c block-vmdk.c block-cloop.c block-dmg.c block-bochs.c block-vpc.c + $(CC) -DQEMU_TOOL $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $@ $^ -lz $(LIBS) + +@@ -33,6 +36,7 @@ + + clean: + # avoid old build problems by removing potentially incorrect old files ++ ( cd bsd ; $(BSD_MAKE) clean ) + rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h + rm -f *.o *.a $(TOOLS) dyngen$(EXESUF) TAGS *.pod *~ */*~ + $(MAKE) -C tests clean +Index: qemu/Makefile.target +@@ -391,8 +391,8 @@ + VL_LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld + endif + +-$(QEMU_SYSTEM): $(VL_OBJS) libqemu.a +- $(CC) $(VL_LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(COCOA_LIBS) $(VL_LIBS) ++$(QEMU_SYSTEM): $(VL_OBJS) libqemu.a ../bsd/libmath.a ++ $(CC) $(VL_LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(COCOA_LIBS) $(VL_LIBS) ../bsd/libmath.a + + cocoa.o: cocoa.m + $(CC) $(CFLAGS) $(DEFINES) -c -o $@ $< +Index: qemu/fpu/softfloat-native.c +@@ -2,11 +2,15 @@ + context is supported */ + #include "softfloat.h" + #include ++#if defined(__FreeBSD__) && __FreeBSD_version < 500000 ++#include ++#endif + + void set_float_rounding_mode(int val STATUS_PARAM) + { + STATUS(float_rounding_mode) = val; +-#if defined(_BSD) && !defined(__APPLE__) ++#if defined(_BSD) && !defined(__APPLE__) && \ ++ (defined(__FreeBSD__) && __FreeBSD_version < 500000) + fpsetround(val); + #elif defined(__arm__) + /* nothing to do */ +@@ -22,7 +26,7 @@ + } + #endif + +-#if defined(_BSD) ++#if defined(_BSD) && !defined(__FreeBSD__) + #define lrint(d) ((int32_t)rint(d)) + #define llrint(d) ((int64_t)rint(d)) + #endif +Index: qemu/fpu/softfloat-native.h +@@ -1,7 +1,17 @@ + /* Native implementation of soft float functions */ + #include +-#if defined(_BSD) && !defined(__APPLE__) ++#if defined(_BSD) && !defined(__APPLE__) && \ ++ (!defined(__FreeBSD__) || __FreeBSD_version < 500000) + #include ++#if defined(__FreeBSD__) ++#define isgreater(x, y) __builtin_isgreater((x), (y)) ++#define isgreaterequal(x, y) __builtin_isgreaterequal((x), (y)) ++#define isless(x, y) __builtin_isless((x), (y)) ++#define islessequal(x, y) __builtin_islessequal((x), (y)) ++#define islessgreater(x, y) __builtin_islessgreater((x), (y)) ++#define isunordered(x, y) __builtin_isunordered((x), (y)) ++long double fabsl(long double x); ++#endif + #else + #include + #endif +@@ -33,12 +43,13 @@ + /*---------------------------------------------------------------------------- + | Software IEC/IEEE floating-point rounding mode. + *----------------------------------------------------------------------------*/ +-#if defined(_BSD) && !defined(__APPLE__) ++#if defined(_BSD) && !defined(__APPLE__) && \ ++ (!defined(__FreeBSD__) || __FreeBSD_version < 500000) + enum { + float_round_nearest_even = FP_RN, +- float_round_down = FE_RM, +- float_round_up = FE_RP, +- float_round_to_zero = FE_RZ ++ float_round_down = FP_RM, ++ float_round_up = FP_RP, ++ float_round_to_zero = FP_RZ + }; + #elif defined(__arm__) + enum { +Index: qemu/fpu/softfloat.h +@@ -84,7 +84,8 @@ + #define FLOAT128 + #else + /* native float support */ +-#if (defined(__i386__) || defined(__x86_64__)) && !defined(_BSD) ++#if (defined(__i386__) || defined(__x86_64__)) && \ ++ (!defined(_BSD) || defined(__FreeBSD__)) + #define FLOATX80 + #endif + #endif /* !CONFIG_SOFTFLOAT */ +Index: qemu/target-ppc/op_helper.c +@@ -303,6 +303,13 @@ + FT0 = sqrt(FT0); + } + ++#ifndef isnormal ++#define isnormal(x) \ ++ ((sizeof (x) == sizeof (float)) ? __isnormalf(x) \ ++ : (sizeof (x) == sizeof (double)) ? __isnormal(x) \ ++ : __isnormall(x)) ++#endif ++ + void do_fres (void) + { + union { +Index: qemu/x86_64.ld +@@ -2,7 +2,7 @@ + OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", "elf64-x86-64") + OUTPUT_ARCH(i386:x86-64) + ENTRY(_start) +-SEARCH_DIR("/lib64"); SEARCH_DIR("/usr/lib64"); SEARCH_DIR("/usr/local/lib64"); ++SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib"); SEARCH_DIR("/usr/local/lib"); + SECTIONS + { + /* Read-only sections, merged into text segment: */ --- files/patch-libmath Wed Apr 27 19:13:19 2005 +++ files/patch-libmath Wed Apr 27 18:54:13 2005 @@ -0,0 +1,2407 @@ +Index: qemu/bsd/Makefile +@@ -0,0 +1,32 @@ ++SRCS= ${MACHINE_ARCH}/e_atan2l.c \ ++ ${MACHINE_ARCH}/e_logl.S \ ++ ${MACHINE_ARCH}/e_powl.S \ ++ ${MACHINE_ARCH}/e_remainderl.S \ ++ ${MACHINE_ARCH}/e_sqrtl.c \ ++ ${MACHINE_ARCH}/s_ceill.S \ ++ ${MACHINE_ARCH}/s_cosl.S \ ++ ${MACHINE_ARCH}/s_floorl.S \ ++ ${MACHINE_ARCH}/s_isnormal.c \ ++ ${MACHINE_ARCH}/s_llrint.S \ ++ ${MACHINE_ARCH}/s_llrintf.S \ ++ ${MACHINE_ARCH}/s_llrintl.S \ ++ ${MACHINE_ARCH}/s_lrint.S \ ++ ${MACHINE_ARCH}/s_lrintf.S \ ++ ${MACHINE_ARCH}/s_lrintl.S \ ++ ${MACHINE_ARCH}/s_rintl.c \ ++ ${MACHINE_ARCH}/s_round.c \ ++ ${MACHINE_ARCH}/s_sinl.S \ ++ ${MACHINE_ARCH}/s_tanl.S ++ ++OBJS= ${SRCS:R:S/$/.o/} ++ ++CFLAGS= -O2 -Wall -I. ++ ++all: libmath.a ++ ++libmath.a: ${OBJS} ++ rm -f $@ ++ ${AR} rcs $@ ${OBJS:T} ++ ++clean: ++ rm -f ${OBJS:T} libmath.a +Index: qemu/bsd/amd64/e_atan2l.c +@@ -0,0 +1,20 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++ ++long double ++__ieee754_atan2l (long double y, long double x) ++{ ++ long double res; ++ ++ asm ("fpatan" : "=t" (res) : "u" (y), "0" (x) : "st(1)"); ++ ++ return res; ++} ++ ++weak_alias(__ieee754_atan2l, atan2l) +Index: qemu/bsd/amd64/e_logl.S +@@ -0,0 +1,59 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ * Adapted for x86-64 by Andreas Jaeger . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ ++#ifdef __ELF__ ++ .section .rodata ++#else ++ .text ++#endif ++ .align ALIGNARG(4) ++ ASM_TYPE_DIRECTIVE(one,@object) ++one: .double 1.0 ++ ASM_SIZE_DIRECTIVE(one) ++ /* It is not important that this constant is precise. It is only ++ a value which is known to be on the safe side for using the ++ fyl2xp1 instruction. */ ++ ASM_TYPE_DIRECTIVE(limit,@object) ++limit: .double 0.29 ++ ASM_SIZE_DIRECTIVE(limit) ++ ++ ++#ifdef PIC ++#define MO(op) op##(%rip) ++#else ++#define MO(op) op ++#endif ++ ++ .text ++ENTRY(__ieee754_logl) ++ fldln2 // log(2) ++ fldt 8(%rsp) // x : log(2) ++ fld %st // x : x : log(2) ++ fsubl MO(one) // x-1 : x : log(2) ++ fld %st // x-1 : x-1 : x : log(2) ++ fabs // |x-1| : x-1 : x : log(2) ++ fcompl MO(limit) // x-1 : x : log(2) ++ fnstsw // x-1 : x : log(2) ++ andb $0x45, %ah ++ jz 2f ++ fstp %st(1) // x-1 : log(2) ++ fyl2xp1 // log(x) ++ ret ++ ++2: fstp %st(0) // x : log(2) ++ fyl2x // log(x) ++ ret ++END (__ieee754_logl) ++ ++weak_alias(__ieee754_logl,logl) +Index: qemu/bsd/amd64/e_powl.S +@@ -0,0 +1,341 @@ ++/* ix87 specific implementation of pow function. ++ Copyright (C) 1996, 1997, 1998, 1999, 2001, 2004 Free Software Foundation, Inc. ++ This file is part of the GNU C Library. ++ Contributed by Ulrich Drepper , 1996. ++ ++ The GNU C Library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ The GNU C Library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with the GNU C Library; if not, write to the Free ++ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++ 02111-1307 USA. */ ++ ++#include ++#include ++ ++#ifdef __ELF__ ++ .section .rodata ++#else ++ .text ++#endif ++ ++ .align ALIGNARG(4) ++ ASM_TYPE_DIRECTIVE(infinity,@object) ++inf_zero: ++infinity: ++ .byte 0, 0, 0, 0, 0, 0, 0xf0, 0x7f ++ ASM_SIZE_DIRECTIVE(infinity) ++ ASM_TYPE_DIRECTIVE(zero,@object) ++zero: .double 0.0 ++ ASM_SIZE_DIRECTIVE(zero) ++ ASM_TYPE_DIRECTIVE(minf_mzero,@object) ++minf_mzero: ++minfinity: ++ .byte 0, 0, 0, 0, 0, 0, 0xf0, 0xff ++mzero: ++ .byte 0, 0, 0, 0, 0, 0, 0, 0x80 ++ ASM_SIZE_DIRECTIVE(minf_mzero) ++ ASM_TYPE_DIRECTIVE(one,@object) ++one: .double 1.0 ++ ASM_SIZE_DIRECTIVE(one) ++ ASM_TYPE_DIRECTIVE(limit,@object) ++limit: .double 0.29 ++ ASM_SIZE_DIRECTIVE(limit) ++ ASM_TYPE_DIRECTIVE(p63,@object) ++p63: ++ .byte 0, 0, 0, 0, 0, 0, 0xe0, 0x43 ++ ASM_SIZE_DIRECTIVE(p63) ++ ++#ifdef PIC ++#define MO(op) op##(%rip) ++#else ++#define MO(op) op ++#endif ++ ++ .text ++ENTRY(__ieee754_powl) ++ fldt 24(%rsp) // y ++ fxam ++ ++ ++ fnstsw ++ movb %ah, %dl ++ andb $0x45, %ah ++ cmpb $0x40, %ah // is y == 0 ? ++ je 11f ++ ++ cmpb $0x05, %ah // is y == ±inf ? ++ je 12f ++ ++ cmpb $0x01, %ah // is y == NaN ? ++ je 30f ++ ++ fldt 8(%rsp) // x : y ++ ++ fxam ++ fnstsw ++ movb %ah, %dh ++ andb $0x45, %ah ++ cmpb $0x40, %ah ++ je 20f // x is ±0 ++ ++ cmpb $0x05, %ah ++ je 15f // x is ±inf ++ ++ fxch // y : x ++ ++ /* fistpll raises invalid exception for |y| >= 1L<<63. */ ++ fldl MO(p63) // 1L<<63 : y : x ++ fld %st(1) // y : 1L<<63 : y : x ++ fabs // |y| : 1L<<63 : y : x ++ fcomip %st(1), %st // 1L<<63 : y : x ++ fstp %st(0) // y : x ++ jnc 2f ++ ++ /* First see whether `y' is a natural number. In this case we ++ can use a more precise algorithm. */ ++ fld %st // y : y : x ++ fistpll -8(%rsp) // y : x ++ fildll -8(%rsp) // int(y) : y : x ++ fucomip %st(1),%st // y : x ++ jne 2f ++ ++ /* OK, we have an integer value for y. */ ++ mov -8(%rsp),%eax ++ mov -4(%rsp),%edx ++ orl $0, %edx ++ fstp %st(0) // x ++ jns 4f // y >= 0, jump ++ fdivrl MO(one) // 1/x (now referred to as x) ++ negl %eax ++ adcl $0, %edx ++ negl %edx ++4: fldl MO(one) // 1 : x ++ fxch ++ ++6: shrdl $1, %edx, %eax ++ jnc 5f ++ fxch ++ fmul %st(1) // x : ST*x ++ fxch ++5: fmul %st(0), %st // x*x : ST*x ++ shrl $1, %edx ++ movl %eax, %ecx ++ orl %edx, %ecx ++ jnz 6b ++ fstp %st(0) // ST*x ++ ret ++ ++ /* y is ±NAN */ ++30: fldt 8(%rsp) // x : y ++ fldl MO(one) // 1.0 : x : y ++ fucomip %st(1),%st // x : y ++ je 31f ++ fxch // y : x ++31: fstp %st(1) ++ ret ++ ++ .align ALIGNARG(4) ++2: /* y is a real number. */ ++ fxch // x : y ++ fldl MO(one) // 1.0 : x : y ++ fld %st(1) // x : 1.0 : x : y ++ fsub %st(1) // x-1 : 1.0 : x : y ++ fabs // |x-1| : 1.0 : x : y ++ fcompl MO(limit) // 1.0 : x : y ++ fnstsw ++ fxch // x : 1.0 : y ++ test $4500,%eax ++ jz 7f ++ fsub %st(1) // x-1 : 1.0 : y ++ fyl2xp1 // log2(x) : y ++ jmp 8f ++ ++7: fyl2x // log2(x) : y ++8: fmul %st(1) // y*log2(x) : y ++ fxam ++ fnstsw ++ andb $0x45, %ah ++ cmpb $0x05, %ah // is y*log2(x) == ±inf ? ++ je 28f ++ fst %st(1) // y*log2(x) : y*log2(x) ++ frndint // int(y*log2(x)) : y*log2(x) ++ fsubr %st, %st(1) // int(y*log2(x)) : fract(y*log2(x)) ++ fxch // fract(y*log2(x)) : int(y*log2(x)) ++ f2xm1 // 2^fract(y*log2(x))-1 : int(y*log2(x)) ++ faddl MO(one) // 2^fract(y*log2(x)) : int(y*log2(x)) ++ fscale // 2^fract(y*log2(x))*2^int(y*log2(x)) : int(y*log2(x)) ++ fstp %st(1) // 2^fract(y*log2(x))*2^int(y*log2(x)) ++ ret ++ ++28: fstp %st(1) // y*log2(x) ++ fldl MO(one) // 1 : y*log2(x) ++ fscale // 2^(y*log2(x)) : y*log2(x) ++ fstp %st(1) // 2^(y*log2(x)) ++ ret ++ ++ // pow(x,±0) = 1 ++ .align ALIGNARG(4) ++11: fstp %st(0) // pop y ++ fldl MO(one) ++ ret ++ ++ // y == ±inf ++ .align ALIGNARG(4) ++12: fstp %st(0) // pop y ++ fldt 8(%rsp) // x ++ fabs ++ fcompl MO(one) // < 1, == 1, or > 1 ++ fnstsw ++ andb $0x45, %ah ++ cmpb $0x45, %ah ++ je 13f // jump if x is NaN ++ ++ cmpb $0x40, %ah ++ je 14f // jump if |x| == 1 ++ ++ shlb $1, %ah ++ xorb %ah, %dl ++ andl $2, %edx ++#ifdef PIC ++ lea inf_zero(%rip),%rcx ++ fldl (%rcx, %rdx, 4) ++#else ++ fldl inf_zero(,%rdx, 4) ++#endif ++ ret ++ ++ .align ALIGNARG(4) ++14: fldl MO(one) ++ ret ++ ++ .align ALIGNARG(4) ++13: fldt 8(%rsp) // load x == NaN ++ ret ++ ++ .align ALIGNARG(4) ++ // x is ±inf ++15: fstp %st(0) // y ++ testb $2, %dh ++ jz 16f // jump if x == +inf ++ ++ // We must find out whether y is an odd integer. ++ fld %st // y : y ++ fistpll -8(%rsp) // y ++ fildll -8(%rsp) // int(y) : y ++ fucomip %st(1),%st ++ ffreep %st // ++ jne 17f ++ ++ // OK, the value is an integer, but is it odd? ++ mov -8(%rsp), %eax ++ mov -4(%rsp), %edx ++ andb $1, %al ++ jz 18f // jump if not odd ++ // It's an odd integer. ++ shrl $31, %edx ++#ifdef PIC ++ lea minf_mzero(%rip),%rcx ++ fldl (%rcx, %rdx, 8) ++#else ++ fldl minf_mzero(,%rdx, 8) ++#endif ++ ret ++ ++ .align ALIGNARG(4) ++16: fcompl MO(zero) ++ fnstsw ++ shrl $5, %eax ++ andl $8, %eax ++#ifdef PIC ++ lea inf_zero(%rip),%rcx ++ fldl (%rcx, %rax, 1) ++#else ++ fldl inf_zero(,%rax, 1) ++#endif ++ ret ++ ++ .align ALIGNARG(4) ++17: shll $30, %edx // sign bit for y in right position ++18: shrl $31, %edx ++#ifdef PIC ++ lea inf_zero(%rip),%rcx ++ fldl (%rcx, %rdx, 8) ++#else ++ fldl inf_zero(,%rdx, 8) ++#endif ++ ret ++ ++ .align ALIGNARG(4) ++ // x is ±0 ++20: fstp %st(0) // y ++ testb $2, %dl ++ jz 21f // y > 0 ++ ++ // x is ±0 and y is < 0. We must find out whether y is an odd integer. ++ testb $2, %dh ++ jz 25f ++ ++ fld %st // y : y ++ fistpll -8(%rsp) // y ++ fildll -8(%rsp) // int(y) : y ++ fucomip %st(1),%st ++ ffreep %st // ++ jne 26f ++ ++ // OK, the value is an integer, but is it odd? ++ mov -8(%rsp),%eax ++ mov -4(%rsp),%edx ++ andb $1, %al ++ jz 27f // jump if not odd ++ // It's an odd integer. ++ // Raise divide-by-zero exception and get minus infinity value. ++ fldl MO(one) ++ fdivl MO(zero) ++ fchs ++ ret ++ ++25: fstp %st(0) ++26: ++27: // Raise divide-by-zero exception and get infinity value. ++ fldl MO(one) ++ fdivl MO(zero) ++ ret ++ ++ .align ALIGNARG(4) ++ // x is ±0 and y is > 0. We must find out whether y is an odd integer. ++21: testb $2, %dh ++ jz 22f ++ ++ fld %st // y : y ++ fistpll -8(%rsp) // y ++ fildll -8(%rsp) // int(y) : y ++ fucomip %st(1),%st ++ ffreep %st // ++ jne 23f ++ ++ // OK, the value is an integer, but is it odd? ++ mov -8(%rsp),%eax ++ mov -4(%rsp),%edx ++ andb $1, %al ++ jz 24f // jump if not odd ++ // It's an odd integer. ++ fldl MO(mzero) ++ ret ++ ++22: fstp %st(0) ++23: ++24: fldl MO(zero) ++ ret ++ ++END(__ieee754_powl) ++ ++weak_alias(__ieee754_powl,powl) +Index: qemu/bsd/amd64/e_remainderl.S +@@ -0,0 +1,23 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ * Adapted for x86-64 by Andreas Jaeger . ++ */ ++ ++#include ++#include ++ ++ENTRY(__ieee754_remainderl) ++ fldt 24(%rsp) ++ fldt 8(%rsp) ++1: fprem1 ++ fstsw %ax ++ testl $0x400,%eax ++ jnz 1b ++ fstp %st(1) ++ ret ++END (__ieee754_remainderl) ++ ++weak_alias(__ieee754_remainderl,remainderl) +Index: qemu/bsd/amd64/e_sqrtl.c +@@ -0,0 +1,20 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++ ++long double ++__ieee754_sqrtl (long double x) ++{ ++ long double res; ++ ++ asm ("fsqrt" : "=t" (res) : "0" (x)); ++ ++ return res; ++} ++ ++weak_alias(__ieee754_sqrtl,sqrtl) +Index: qemu/bsd/amd64/s_ceill.S +@@ -0,0 +1,247 @@ ++/* ++ * ==================================================== ++ * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. ++ * ++ * Developed at SunPro, a Sun Microsystems, Inc. business. ++ * Permission to use, copy, modify, and distribute this ++ * software is freely granted, provided that this notice ++ * is preserved. ++ * ==================================================== ++ * ++ * From: @(#)s_ceil.c 5.1 93/09/24 ++ */ ++/* XXX: generated from src/lib/msun/src/s_ceill.c */ ++ ++#include ++ ++__FBSDID("$FreeBSD: src/lib/msun/src/s_ceill.c,v 1.3 2005/04/22 09:57:55 stefanf Exp $") ++ ++ .file "s_ceill.c" ++ .section .rodata.cst8,"aM",@progbits,8 ++ .p2align 3 ++.LC0: ++ .long 2281731484 ++ .long 2117592124 ++ .p2align 3 ++.LC3: ++ .long 0 ++ .long 0 ++ .text ++ .p2align 4,,15 ++.globl ceill ++ .type ceill, @function ++ceill: ++.LFB17: ++ pushq %rbp ++.LCFI0: ++ pushq %rbx ++.LCFI1: ++ fldt 24(%rsp) ++ movq $0, -16(%rsp) ++ fld %st(0) ++ fstpt -56(%rsp) ++ movl -48(%rsp), %edi ++ movq -56(%rsp), %rsi ++ movl %edi, -16(%rsp) ++ movl -16(%rsp), %r11d ++ movq %rsi, -24(%rsp) ++ movl %r11d, %r10d ++ andl $32767, %r10d ++ leal -16383(%r10), %r8d ++ cmpl $30, %r8d ++ jg .L2 ++ testl %r8d, %r8d ++ js .L38 ++ movl -20(%rsp), %r9d ++ leal 1(%r8), %ecx ++ mov -24(%rsp), %eax ++ movl $4294967295, %ebp ++ movq %rsi, -56(%rsp) ++ movl %edi, -48(%rsp) ++ shrq %cl, %rbp ++ mov %r9d, %ebx ++ movq %rbx, %rdx ++ andq %rbp, %rdx ++ orq %rax, %rdx ++ fldt -56(%rsp) ++ je .L42 ++ ffreep %st(0) ++ testb $-128, -15(%rsp) ++ jne .L12 ++ movl $31, %ecx ++ movl $1, %eax ++ subl %r8d, %ecx ++ salq %cl, %rax ++ addl %eax, %r9d ++ mov %r9d, %eax ++ cmpq %rbx, %rax ++ jae .L32 ++ leal 1(%r10), %edx ++ movl %r11d, %eax ++ orl $-2147483648, %r9d ++ andw $-32768, %ax ++ andw $32767, %dx ++ orl %edx, %eax ++ movw %ax, -16(%rsp) ++.L32: ++ movl %r9d, -20(%rsp) ++.L12: ++ fstpl -32(%rsp) ++ movlpd -32(%rsp), %xmm0 ++ addsd .LC0(%rip), %xmm0 ++ ucomisd .LC3(%rip), %xmm0 ++ jbe .L31 ++ movl %ebp, %eax ++ movl $0, -24(%rsp) ++ notl %eax ++ andl %eax, %r9d ++ movl %r9d, -20(%rsp) ++ .p2align 4,,7 ++.L31: ++ movq -24(%rsp), %rsi ++ movl -16(%rsp), %edi ++ movq %rsi, -56(%rsp) ++ movl %edi, -48(%rsp) ++ fldt -56(%rsp) ++ popq %rbx ++ popq %rbp ++ ret ++ .p2align 4,,7 ++.L2: ++ cmpl $62, %r8d ++ jle .L43 ++ ffreep %st(0) ++.L17: ++ movq %rsi, -56(%rsp) ++ movl %edi, -48(%rsp) ++ fldt -56(%rsp) ++ popq %rbx ++ popq %rbp ++ ret ++ .p2align 4,,7 ++.L43: ++ movl -24(%rsp), %edx ++ leal 1(%r8), %ecx ++ movq $-1, %rbx ++ movq %rsi, -56(%rsp) ++ movl %edi, -48(%rsp) ++ shrq %cl, %rbx ++ mov %edx, %r9d ++ testq %rbx, %r9 ++ fldt -56(%rsp) ++ je .L42 ++ ffreep %st(0) ++ testb $-128, -15(%rsp) ++ jne .L20 ++ cmpl $31, %r8d ++ je .L36 ++ movl $63, %ecx ++ movl $1, %eax ++ subl %r8d, %ecx ++ salq %cl, %rax ++ leal (%rdx,%rax), %eax ++ movl %eax, -24(%rsp) ++ mov %eax, %eax ++ cmpq %r9, %rax ++ jae .L20 ++.L36: ++ movl -20(%rsp), %eax ++ leal 1(%rax), %ecx ++ cmpl %eax, %ecx ++ jae .L34 ++ leal 1(%r10), %edx ++ movl %r11d, %eax ++ orl $-2147483648, %ecx ++ andw $-32768, %ax ++ andw $32767, %dx ++ orl %edx, %eax ++ movw %ax, -16(%rsp) ++.L34: ++ movl %ecx, -20(%rsp) ++ .p2align 4,,7 ++.L20: ++ fstpl -32(%rsp) ++ movlpd -32(%rsp), %xmm0 ++ addsd .LC0(%rip), %xmm0 ++ ucomisd .LC3(%rip), %xmm0 ++ jbe .L31 ++ movl %ebx, %eax ++ notl %eax ++ andl %eax, -24(%rsp) ++ jmp .L31 ++ .p2align 4,,7 ++.L42: ++ fstp %st(1) ++ popq %rbx ++ popq %rbp ++ ret ++ .p2align 4,,7 ++.L38: ++ fstpl -32(%rsp) ++ movlpd -32(%rsp), %xmm0 ++ addsd .LC0(%rip), %xmm0 ++ ucomisd .LC3(%rip), %xmm0 ++ jbe .L17 ++ testl %r10d, %r10d ++ jle .L39 ++.L7: ++ movabsq $-9223372036854775808, %rsi ++ movl $16383, %edi ++ testb $-128, -15(%rsp) ++ movq %rsi, -56(%rsp) ++ movl %edi, -48(%rsp) ++ fldz ++ fldt -56(%rsp) ++ fcmovne %st(1), %st ++ fstp %st(1) ++ fstpt -56(%rsp) ++ movq -56(%rsp), %rsi ++ movl -48(%rsp), %edi ++ movq %rsi, -24(%rsp) ++ movl %edi, -16(%rsp) ++ jmp .L17 ++.L39: ++ movl -24(%rsp), %eax ++ orl -20(%rsp), %eax ++ je .L17 ++ jmp .L7 ++.LFE17: ++ .size ceill, .-ceill ++ .section .eh_frame,"a",@progbits ++.Lframe1: ++ .long .LECIE1-.LSCIE1 ++.LSCIE1: ++ .long 0x0 ++ .byte 0x1 ++ .string "" ++ .uleb128 0x1 ++ .sleb128 -8 ++ .byte 0x10 ++ .byte 0xc ++ .uleb128 0x7 ++ .uleb128 0x8 ++ .byte 0x90 ++ .uleb128 0x1 ++ .p2align 3 ++.LECIE1: ++.LSFDE1: ++ .long .LEFDE1-.LASFDE1 ++.LASFDE1: ++ .long .LASFDE1-.Lframe1 ++ .quad .LFB17 ++ .quad .LFE17-.LFB17 ++ .byte 0x4 ++ .long .LCFI0-.LFB17 ++ .byte 0xe ++ .uleb128 0x10 ++ .byte 0x4 ++ .long .LCFI1-.LCFI0 ++ .byte 0xe ++ .uleb128 0x18 ++ .byte 0x83 ++ .uleb128 0x3 ++ .byte 0x86 ++ .uleb128 0x2 ++ .p2align 3 ++.LEFDE1: ++ .ident "GCC: (GNU) 3.4.4 [FreeBSD] 20050408" +Index: qemu/bsd/amd64/s_cosl.S +@@ -0,0 +1,33 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ * Adapted for x86-64 by Andreas Jaeger . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ENTRY(__cosl) ++ fldt 8(%rsp) ++ fcos ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 1f ++ ret ++ .align ALIGNARG(4) ++1: fldpi ++ fadd %st(0) ++ fxch %st(1) ++2: fprem1 ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 2b ++ fstp %st(1) ++ fcos ++ ret ++END (__cosl) ++weak_alias (__cosl, cosl) +Index: qemu/bsd/amd64/s_floorl.S +@@ -0,0 +1,209 @@ ++/* ++ * ==================================================== ++ * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. ++ * ++ * Developed at SunPro, a Sun Microsystems, Inc. business. ++ * Permission to use, copy, modify, and distribute this ++ * software is freely granted, provided that this notice ++ * is preserved. ++ * ==================================================== ++ * ++ * From: @(#)s_floor.c 5.1 93/09/24 ++ */ ++/* XXX: generated from src/lib/msun/src/s_floorl.c */ ++ ++#include ++ ++__FBSDID("$FreeBSD: src/lib/msun/src/s_floorl.c,v 1.3 2005/04/22 09:57:55 stefanf Exp $") ++ ++ .file "s_floorl.c" ++ .section .rodata.cst8,"aM",@progbits,8 ++ .p2align 3 ++.LC0: ++ .long 2281731484 ++ .long 2117592124 ++ .section .rodata.cst4,"aM",@progbits,4 ++ .p2align 2 ++.LC2: ++ .long 3212836864 ++ .section .rodata.cst8 ++ .p2align 3 ++.LC3: ++ .long 0 ++ .long 0 ++ .text ++ .p2align 4,,15 ++.globl floorl ++ .type floorl, @function ++floorl: ++.LFB17: ++ fldt 8(%rsp) ++ movq $0, -16(%rsp) ++ fld %st(0) ++ fstpt -24(%rsp) ++ movl -16(%rsp), %r9d ++ fld %st(0) ++ movl %r9d, %r8d ++ andl $32767, %r8d ++ leal -16383(%r8), %esi ++ cmpl $30, %esi ++ jg .L2 ++ testl %esi, %esi ++ js .L40 ++ movl -20(%rsp), %edi ++ leal 1(%rsi), %ecx ++ mov -24(%rsp), %eax ++ movl $4294967295, %r11d ++ shrq %cl, %r11 ++ mov %edi, %r10d ++ movq %r10, %rdx ++ andq %r11, %rdx ++ orq %rax, %rdx ++ je .L44 ++ ffreep %st(0) ++ testb $-128, -15(%rsp) ++ je .L12 ++ movl $31, %ecx ++ movl $1, %eax ++ subl %esi, %ecx ++ salq %cl, %rax ++ addl %eax, %edi ++ mov %edi, %eax ++ cmpq %r10, %rax ++ jae .L32 ++ leal 1(%r8), %edx ++ movl %r9d, %eax ++ orl $-2147483648, %edi ++ andw $-32768, %ax ++ andw $32767, %dx ++ orl %edx, %eax ++ movw %ax, -16(%rsp) ++.L32: ++ movl %edi, -20(%rsp) ++.L12: ++ fstpl -32(%rsp) ++ movlpd -32(%rsp), %xmm0 ++ addsd .LC0(%rip), %xmm0 ++ ucomisd .LC3(%rip), %xmm0 ++ jbe .L46 ++ movl %r11d, %eax ++ movl $0, -24(%rsp) ++ notl %eax ++ andl %eax, %edi ++ movl %edi, -20(%rsp) ++.L46: ++ fldt -24(%rsp) ++ ret ++ .p2align 4,,7 ++.L2: ++ cmpl $62, %esi ++ jg .L44 ++ movl -24(%rsp), %edx ++ leal 1(%rsi), %ecx ++ movq $-1, %r10 ++ shrq %cl, %r10 ++ mov %edx, %edi ++ testq %r10, %rdi ++ je .L44 ++ ffreep %st(0) ++ testb $-128, -15(%rsp) ++ je .L20 ++ cmpl $31, %esi ++ je .L37 ++ movl $63, %ecx ++ movl $1, %eax ++ subl %esi, %ecx ++ salq %cl, %rax ++ leal (%rdx,%rax), %eax ++ movl %eax, -24(%rsp) ++ mov %eax, %eax ++ cmpq %rdi, %rax ++ jae .L20 ++.L37: ++ movl -20(%rsp), %eax ++ leal 1(%rax), %ecx ++ cmpl %eax, %ecx ++ jae .L34 ++ leal 1(%r8), %edx ++ movl %r9d, %eax ++ orl $-2147483648, %ecx ++ andw $-32768, %ax ++ andw $32767, %dx ++ orl %edx, %eax ++ movw %ax, -16(%rsp) ++.L34: ++ movl %ecx, -20(%rsp) ++ .p2align 4,,7 ++.L20: ++ fstpl -32(%rsp) ++ movlpd -32(%rsp), %xmm0 ++ addsd .LC0(%rip), %xmm0 ++ ucomisd .LC3(%rip), %xmm0 ++ jbe .L31 ++ movl %r10d, %eax ++ notl %eax ++ andl %eax, -24(%rsp) ++ fldt -24(%rsp) ++ ret ++ .p2align 4,,7 ++.L44: ++ fstp %st(1) ++.L47: ++ rep ; ret ++ .p2align 4,,7 ++.L40: ++ fxch %st(1) ++ fstpl -32(%rsp) ++ movlpd -32(%rsp), %xmm0 ++ addsd .LC0(%rip), %xmm0 ++ ucomisd .LC3(%rip), %xmm0 ++ jbe .L47 ++ testl %r8d, %r8d ++ jle .L41 ++.L45: ++ ffreep %st(0) ++ testb $-128, -15(%rsp) ++ fldz ++ je .L9 ++ ffreep %st(0) ++ flds .LC2(%rip) ++.L9: ++ fld %st(0) ++ fstpt -24(%rsp) ++ ret ++.L31: ++ fldt -24(%rsp) ++ ret ++.L41: ++ movl -24(%rsp), %eax ++ orl -20(%rsp), %eax ++ jne .L45 ++ rep ; ret ++.LFE17: ++ .size floorl, .-floorl ++ .section .eh_frame,"a",@progbits ++.Lframe1: ++ .long .LECIE1-.LSCIE1 ++.LSCIE1: ++ .long 0x0 ++ .byte 0x1 ++ .string "" ++ .uleb128 0x1 ++ .sleb128 -8 ++ .byte 0x10 ++ .byte 0xc ++ .uleb128 0x7 ++ .uleb128 0x8 ++ .byte 0x90 ++ .uleb128 0x1 ++ .p2align 3 ++.LECIE1: ++.LSFDE1: ++ .long .LEFDE1-.LASFDE1 ++.LASFDE1: ++ .long .LASFDE1-.Lframe1 ++ .quad .LFB17 ++ .quad .LFE17-.LFB17 ++ .p2align 3 ++.LEFDE1: ++ .ident "GCC: (GNU) 3.4.4 [FreeBSD] 20050408" +Index: qemu/bsd/amd64/s_isnormal.c +@@ -0,0 +1,85 @@ ++/*- ++ * Copyright (c) 2003 Mike Barcroft ++ * Copyright (c) 2002-2004 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ * ++ * $FreeBSD: src/lib/msun/src/s_isnormal.c,v 1.1 2004/07/09 03:32:39 das Exp $ ++ */ ++ ++union IEEEf2bits { ++ float f; ++ struct { ++ unsigned int man :23; ++ unsigned int exp :8; ++ unsigned int sign :1; ++ } bits; ++}; ++ ++union IEEEd2bits { ++ double d; ++ struct { ++ unsigned int manl :32; ++ unsigned int manh :20; ++ unsigned int exp :11; ++ unsigned int sign :1; ++ } bits; ++}; ++ ++union IEEEl2bits { ++ long double e; ++ struct { ++ unsigned int manl :32; ++ unsigned int manh :32; ++ unsigned int exp :15; ++ unsigned int sign :1; ++ unsigned int junk :16; ++ } bits; ++}; ++ ++int ++__isnormal(double d) ++{ ++ union IEEEd2bits u; ++ ++ u.d = d; ++ return (u.bits.exp != 0 && u.bits.exp != 2047); ++} ++ ++int ++__isnormalf(float f) ++{ ++ union IEEEf2bits u; ++ ++ u.f = f; ++ return (u.bits.exp != 0 && u.bits.exp != 255); ++} ++ ++int ++__isnormall(long double e) ++{ ++ union IEEEl2bits u; ++ ++ u.e = e; ++ return (u.bits.exp != 0 && u.bits.exp != 32767); ++} +Index: qemu/bsd/amd64/s_llrint.S +@@ -0,0 +1,6 @@ ++#include ++__FBSDID("$FreeBSD: src/lib/msun/amd64/s_llrint.S,v 1.1 2005/01/15 03:32:28 das Exp $") ++ ++/* sizeof(long) == sizeof(long long) */ ++#define fn llrint ++#include "s_lrint.S" +Index: qemu/bsd/amd64/s_llrintf.S +@@ -0,0 +1,6 @@ ++#include ++__FBSDID("$FreeBSD: src/lib/msun/amd64/s_llrintf.S,v 1.1 2005/04/16 21:12:55 das Exp $") ++ ++/* sizeof(long) == sizeof(long long) */ ++#define fn llrintf ++#include "s_lrintf.S" +Index: qemu/bsd/amd64/s_llrintl.S +@@ -0,0 +1,35 @@ ++/* Round argument to nearest integral value according to current rounding ++ direction. ++ Copyright (C) 1997, 2002 Free Software Foundation, Inc. ++ This file is part of the GNU C Library. ++ ++ The GNU C Library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ The GNU C Library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with the GNU C Library; if not, write to the Free ++ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++ 02111-1307 USA. */ ++ ++#include ++#include ++ ++ .text ++ENTRY(__llrintl) ++ fldt 8(%rsp) ++ fistpll -8(%rsp) ++ fwait ++ movq -8(%rsp),%rax ++ ret ++END(__llrintl) ++weak_alias (__llrintl, llrintl) ++strong_alias (__llrintl, __lrintl) ++weak_alias (__llrintl, lrintl) ++ +Index: qemu/bsd/amd64/s_lrint.S +@@ -0,0 +1,36 @@ ++/*- ++ * Copyright (c) 2005 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++#include ++ ++#ifndef fn ++__FBSDID("$FreeBSD: src/lib/msun/amd64/s_lrint.S,v 1.1 2005/01/15 03:32:28 das Exp $") ++#define fn lrint ++#endif ++ ++ENTRY(fn) ++ cvtsd2si %xmm0, %rax ++ ret +Index: qemu/bsd/amd64/s_lrintf.S +@@ -0,0 +1,36 @@ ++/*- ++ * Copyright (c) 2005 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++#include ++ ++#ifndef fn ++__FBSDID("$FreeBSD: src/lib/msun/amd64/s_lrintf.S,v 1.1 2005/04/16 21:12:55 das Exp $") ++#define fn lrintf ++#endif ++ ++ENTRY(fn) ++ cvtss2si %xmm0, %rax ++ ret +Index: qemu/bsd/amd64/s_lrintl.S +@@ -0,0 +1 @@ ++/* Not needed, see s_llrintl.S. */ +Index: qemu/bsd/amd64/s_rintl.c +@@ -0,0 +1,18 @@ ++/* ++ * Written by J.T. Conklin . ++ * Changes for long double by Ulrich Drepper ++ * Public domain. ++ */ ++ ++#include ++ ++long double ++__rintl (long double x) ++{ ++ long double res; ++ ++ asm ("frndint" : "=t" (res) : "0" (x)); ++ return res; ++} ++ ++weak_alias (__rintl, rintl) +Index: qemu/bsd/amd64/s_round.c +@@ -0,0 +1,51 @@ ++/*- ++ * Copyright (c) 2003, Steven G. Kargl ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice unmodified, this list of conditions, and the following ++ * disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR ++ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ++ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ++ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, ++ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT ++ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, ++ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ++ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ++ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF ++ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ++ */ ++ ++#include ++__FBSDID("$FreeBSD: src/lib/msun/src/s_round.c,v 1.3 2005/01/13 15:43:41 das Exp $"); ++ ++#include ++ ++double ++round(double x) ++{ ++ double t; ++ ++ if (!isfinite(x)) ++ return (x); ++ ++ if (x >= 0.0) { ++ t = ceil(x); ++ if (t - x > 0.5) ++ t -= 1.0; ++ return (t); ++ } else { ++ t = ceil(-x); ++ if (t + x > 0.5) ++ t -= 1.0; ++ return (-t); ++ } ++} +Index: qemu/bsd/amd64/s_sinl.S +@@ -0,0 +1,31 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ * Adapted for x86-64 by Andreas Jaeger . ++ */ ++ ++#include ++#include ++ ++ENTRY(__sinl) ++ fldt 8(%rsp) ++ fsin ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 1f ++ ret ++ .align ALIGNARG(4) ++1: fldpi ++ fadd %st(0) ++ fxch %st(1) ++2: fprem1 ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 2b ++ fstp %st(1) ++ fsin ++ ret ++END (__sinl) ++weak_alias (__sinl, sinl) +Index: qemu/bsd/amd64/s_tanl.S +@@ -0,0 +1,34 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ * Adapted for x86-64 by Andreas Jaeger . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ENTRY(__tanl) ++ fldt 8(%rsp) ++ fptan ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 1f ++ fstp %st(0) ++ ret ++1: fldpi ++ fadd %st(0) ++ fxch %st(1) ++2: fprem1 ++ fstsw %ax ++ testl $0x400,%eax ++ jnz 2b ++ fstp %st(1) ++ fptan ++ fstp %st(0) ++ ret ++END (__tanl) ++weak_alias (__tanl, tanl) +Index: qemu/bsd/i386/e_atan2l.c +@@ -0,0 +1,20 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++ ++long double ++__ieee754_atan2l (long double y, long double x) ++{ ++ long double res; ++ ++ asm ("fpatan" : "=t" (res) : "u" (y), "0" (x) : "st(1)"); ++ ++ return res; ++} ++ ++weak_alias(__ieee754_atan2l, atan2l) +Index: qemu/bsd/i386/e_logl.S +@@ -0,0 +1,63 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ ++#ifdef __ELF__ ++ .section .rodata ++#else ++ .text ++#endif ++ .align ALIGNARG(4) ++ ASM_TYPE_DIRECTIVE(one,@object) ++one: .double 1.0 ++ ASM_SIZE_DIRECTIVE(one) ++ /* It is not important that this constant is precise. It is only ++ a value which is known to be on the safe side for using the ++ fyl2xp1 instruction. */ ++ ASM_TYPE_DIRECTIVE(limit,@object) ++limit: .double 0.29 ++ ASM_SIZE_DIRECTIVE(limit) ++ ++ ++#ifdef PIC ++#define MO(op) op##@GOTOFF(%edx) ++#else ++#define MO(op) op ++#endif ++ ++ .text ++ENTRY(__ieee754_logl) ++ fldln2 // log(2) ++ fldt 4(%esp) // x : log(2) ++#ifdef PIC ++ call 1f ++1: popl %edx ++ addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %edx ++#endif ++ fld %st // x : x : log(2) ++ fsubl MO(one) // x-1 : x : log(2) ++ fld %st // x-1 : x-1 : x : log(2) ++ fabs // |x-1| : x-1 : x : log(2) ++ fcompl MO(limit) // x-1 : x : log(2) ++ fnstsw // x-1 : x : log(2) ++ andb $0x45, %ah ++ jz 2f ++ fstp %st(1) // x-1 : log(2) ++ fyl2xp1 // log(x) ++ ret ++ ++2: fstp %st(0) // x : log(2) ++ fyl2x // log(x) ++ ret ++END (__ieee754_logl) ++ ++weak_alias(__ieee754_logl,logl) +Index: qemu/bsd/i386/e_powl.S +@@ -0,0 +1,341 @@ ++/* ix87 specific implementation of pow function. ++ Copyright (C) 1996, 1997, 1998, 1999, 2001, 2004 ++ Free Software Foundation, Inc. ++ This file is part of the GNU C Library. ++ Contributed by Ulrich Drepper , 1996. ++ ++ The GNU C Library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ The GNU C Library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with the GNU C Library; if not, write to the Free ++ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++ 02111-1307 USA. */ ++ ++#include ++#include ++ ++#ifdef __ELF__ ++ .section .rodata ++#else ++ .text ++#endif ++ ++ .align ALIGNARG(4) ++ ASM_TYPE_DIRECTIVE(infinity,@object) ++inf_zero: ++infinity: ++ .byte 0, 0, 0, 0, 0, 0, 0xf0, 0x7f ++ ASM_SIZE_DIRECTIVE(infinity) ++ ASM_TYPE_DIRECTIVE(zero,@object) ++zero: .double 0.0 ++ ASM_SIZE_DIRECTIVE(zero) ++ ASM_TYPE_DIRECTIVE(minf_mzero,@object) ++minf_mzero: ++minfinity: ++ .byte 0, 0, 0, 0, 0, 0, 0xf0, 0xff ++mzero: ++ .byte 0, 0, 0, 0, 0, 0, 0, 0x80 ++ ASM_SIZE_DIRECTIVE(minf_mzero) ++ ASM_TYPE_DIRECTIVE(one,@object) ++one: .double 1.0 ++ ASM_SIZE_DIRECTIVE(one) ++ ASM_TYPE_DIRECTIVE(limit,@object) ++limit: .double 0.29 ++ ASM_SIZE_DIRECTIVE(limit) ++ ASM_TYPE_DIRECTIVE(p63,@object) ++p63: .byte 0, 0, 0, 0, 0, 0, 0xe0, 0x43 ++ ASM_SIZE_DIRECTIVE(p63) ++ ++#ifdef PIC ++#define MO(op) op##@GOTOFF(%ecx) ++#define MOX(op,x,f) op##@GOTOFF(%ecx,x,f) ++#else ++#define MO(op) op ++#define MOX(op,x,f) op(,x,f) ++#endif ++ ++ .text ++ENTRY(__ieee754_powl) ++ fldt 16(%esp) // y ++ fxam ++ ++#ifdef PIC ++ call 1f ++1: popl %ecx ++ addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %ecx ++#endif ++ ++ fnstsw ++ movb %ah, %dl ++ andb $0x45, %ah ++ cmpb $0x40, %ah // is y == 0 ? ++ je 11f ++ ++ cmpb $0x05, %ah // is y == ±inf ? ++ je 12f ++ ++ cmpb $0x01, %ah // is y == NaN ? ++ je 30f ++ ++ fldt 4(%esp) // x : y ++ ++ subl $8,%esp ++ ++ fxam ++ fnstsw ++ movb %ah, %dh ++ andb $0x45, %ah ++ cmpb $0x40, %ah ++ je 20f // x is ±0 ++ ++ cmpb $0x05, %ah ++ je 15f // x is ±inf ++ ++ fxch // y : x ++ ++ /* fistpll raises invalid exception for |y| >= 1L<<63. */ ++ fld %st // y : y : x ++ fabs // |y| : y : x ++ fcompl MO(p63) // y : x ++ fnstsw ++ sahf ++ jnc 2f ++ ++ /* First see whether `y' is a natural number. In this case we ++ can use a more precise algorithm. */ ++ fld %st // y : y : x ++ fistpll (%esp) // y : x ++ fildll (%esp) // int(y) : y : x ++ fucomp %st(1) // y : x ++ fnstsw ++ sahf ++ jne 2f ++ ++ /* OK, we have an integer value for y. */ ++ popl %eax ++ popl %edx ++ orl $0, %edx ++ fstp %st(0) // x ++ jns 4f // y >= 0, jump ++ fdivrl MO(one) // 1/x (now referred to as x) ++ negl %eax ++ adcl $0, %edx ++ negl %edx ++4: fldl MO(one) // 1 : x ++ fxch ++ ++6: shrdl $1, %edx, %eax ++ jnc 5f ++ fxch ++ fmul %st(1) // x : ST*x ++ fxch ++5: fmul %st(0), %st // x*x : ST*x ++ shrl $1, %edx ++ movl %eax, %ecx ++ orl %edx, %ecx ++ jnz 6b ++ fstp %st(0) // ST*x ++ ret ++ ++ /* y is ±NAN */ ++30: fldt 4(%esp) // x : y ++ fldl MO(one) // 1.0 : x : y ++ fucomp %st(1) // x : y ++ fnstsw ++ sahf ++ je 31f ++ fxch // y : x ++31: fstp %st(1) ++ ret ++ ++ .align ALIGNARG(4) ++2: /* y is a real number. */ ++ fxch // x : y ++ fldl MO(one) // 1.0 : x : y ++ fld %st(1) // x : 1.0 : x : y ++ fsub %st(1) // x-1 : 1.0 : x : y ++ fabs // |x-1| : 1.0 : x : y ++ fcompl MO(limit) // 1.0 : x : y ++ fnstsw ++ fxch // x : 1.0 : y ++ sahf ++ ja 7f ++ fsub %st(1) // x-1 : 1.0 : y ++ fyl2xp1 // log2(x) : y ++ jmp 8f ++ ++7: fyl2x // log2(x) : y ++8: fmul %st(1) // y*log2(x) : y ++ fxam ++ fnstsw ++ andb $0x45, %ah ++ cmpb $0x05, %ah // is y*log2(x) == ±inf ? ++ je 28f ++ fst %st(1) // y*log2(x) : y*log2(x) ++ frndint // int(y*log2(x)) : y*log2(x) ++ fsubr %st, %st(1) // int(y*log2(x)) : fract(y*log2(x)) ++ fxch // fract(y*log2(x)) : int(y*log2(x)) ++ f2xm1 // 2^fract(y*log2(x))-1 : int(y*log2(x)) ++ faddl MO(one) // 2^fract(y*log2(x)) : int(y*log2(x)) ++ fscale // 2^fract(y*log2(x))*2^int(y*log2(x)) : int(y*log2(x)) ++ addl $8, %esp ++ fstp %st(1) // 2^fract(y*log2(x))*2^int(y*log2(x)) ++ ret ++ ++28: fstp %st(1) // y*log2(x) ++ fldl MO(one) // 1 : y*log2(x) ++ fscale // 2^(y*log2(x)) : y*log2(x) ++ addl $8, %esp ++ fstp %st(1) // 2^(y*log2(x)) ++ ret ++ ++ // pow(x,±0) = 1 ++ .align ALIGNARG(4) ++11: fstp %st(0) // pop y ++ fldl MO(one) ++ ret ++ ++ // y == ±inf ++ .align ALIGNARG(4) ++12: fstp %st(0) // pop y ++ fldt 4(%esp) // x ++ fabs ++ fcompl MO(one) // < 1, == 1, or > 1 ++ fnstsw ++ andb $0x45, %ah ++ cmpb $0x45, %ah ++ je 13f // jump if x is NaN ++ ++ cmpb $0x40, %ah ++ je 14f // jump if |x| == 1 ++ ++ shlb $1, %ah ++ xorb %ah, %dl ++ andl $2, %edx ++ fldl MOX(inf_zero, %edx, 4) ++ ret ++ ++ .align ALIGNARG(4) ++14: fldl MO(one) ++ ret ++ ++ .align ALIGNARG(4) ++13: fldt 4(%esp) // load x == NaN ++ ret ++ ++ .align ALIGNARG(4) ++ // x is ±inf ++15: fstp %st(0) // y ++ testb $2, %dh ++ jz 16f // jump if x == +inf ++ ++ // We must find out whether y is an odd integer. ++ fld %st // y : y ++ fistpll (%esp) // y ++ fildll (%esp) // int(y) : y ++ fucompp // ++ fnstsw ++ sahf ++ jne 17f ++ ++ // OK, the value is an integer, but is it odd? ++ popl %eax ++ popl %edx ++ andb $1, %al ++ jz 18f // jump if not odd ++ // It's an odd integer. ++ shrl $31, %edx ++ fldl MOX(minf_mzero, %edx, 8) ++ ret ++ ++ .align ALIGNARG(4) ++16: fcompl MO(zero) ++ addl $8, %esp ++ fnstsw ++ shrl $5, %eax ++ andl $8, %eax ++ fldl MOX(inf_zero, %eax, 1) ++ ret ++ ++ .align ALIGNARG(4) ++17: shll $30, %edx // sign bit for y in right position ++ addl $8, %esp ++18: shrl $31, %edx ++ fldl MOX(inf_zero, %edx, 8) ++ ret ++ ++ .align ALIGNARG(4) ++ // x is ±0 ++20: fstp %st(0) // y ++ testb $2, %dl ++ jz 21f // y > 0 ++ ++ // x is ±0 and y is < 0. We must find out whether y is an odd integer. ++ testb $2, %dh ++ jz 25f ++ ++ fld %st // y : y ++ fistpll (%esp) // y ++ fildll (%esp) // int(y) : y ++ fucompp // ++ fnstsw ++ sahf ++ jne 26f ++ ++ // OK, the value is an integer, but is it odd? ++ popl %eax ++ popl %edx ++ andb $1, %al ++ jz 27f // jump if not odd ++ // It's an odd integer. ++ // Raise divide-by-zero exception and get minus infinity value. ++ fldl MO(one) ++ fdivl MO(zero) ++ fchs ++ ret ++ ++25: fstp %st(0) ++26: addl $8, %esp ++27: // Raise divide-by-zero exception and get infinity value. ++ fldl MO(one) ++ fdivl MO(zero) ++ ret ++ ++ .align ALIGNARG(4) ++ // x is ±0 and y is > 0. We must find out whether y is an odd integer. ++21: testb $2, %dh ++ jz 22f ++ ++ fld %st // y : y ++ fistpll (%esp) // y ++ fildll (%esp) // int(y) : y ++ fucompp // ++ fnstsw ++ sahf ++ jne 23f ++ ++ // OK, the value is an integer, but is it odd? ++ popl %eax ++ popl %edx ++ andb $1, %al ++ jz 24f // jump if not odd ++ // It's an odd integer. ++ fldl MO(mzero) ++ ret ++ ++22: fstp %st(0) ++23: addl $8, %esp // Don't use 2 x pop ++24: fldl MO(zero) ++ ret ++ ++END(__ieee754_powl) ++ ++weak_alias(__ieee754_powl,powl) +Index: qemu/bsd/i386/e_remainderl.S +@@ -0,0 +1,24 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ENTRY(__ieee754_remainderl) ++ fldt 16(%esp) ++ fldt 4(%esp) ++1: fprem1 ++ fstsw %ax ++ sahf ++ jp 1b ++ fstp %st(1) ++ ret ++END (__ieee754_remainderl) ++ ++weak_alias(__ieee754_remainderl,remainderl) +Index: qemu/bsd/i386/e_sqrtl.c +@@ -0,0 +1,20 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++ ++long double ++__ieee754_sqrtl (long double x) ++{ ++ long double res; ++ ++ asm ("fsqrt" : "=t" (res) : "0" (x)); ++ ++ return res; ++} ++ ++weak_alias(__ieee754_sqrtl,sqrtl) +Index: qemu/bsd/i386/s_ceill.S +@@ -0,0 +1,27 @@ ++/* ++ * Based on code written by J.T. Conklin . ++ * Public domain. ++ */ ++ ++#include ++RCSID("$FreeBSD: src/lib/msun/i387/s_ceill.S,v 1.1 2005/04/16 21:12:55 das Exp $") ++ ++ENTRY(ceill) ++ pushl %ebp ++ movl %esp,%ebp ++ subl $8,%esp ++ ++ fstcw -4(%ebp) /* store fpu control word */ ++ movw -4(%ebp),%dx ++ orw $0x0800,%dx /* round towards +oo */ ++ andw $0xfbff,%dx ++ movw %dx,-8(%ebp) ++ fldcw -8(%ebp) /* load modfied control word */ ++ ++ fldt 8(%ebp) /* round */ ++ frndint ++ ++ fldcw -4(%ebp) /* restore original control word */ ++ ++ leave ++ ret +Index: qemu/bsd/i386/s_cosl.S +@@ -0,0 +1,32 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ENTRY(__cosl) ++ fldt 4(%esp) ++ fcos ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 1f ++ ret ++ .align ALIGNARG(4) ++1: fldpi ++ fadd %st(0) ++ fxch %st(1) ++2: fprem1 ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 2b ++ fstp %st(1) ++ fcos ++ ret ++END (__cosl) ++weak_alias (__cosl, cosl) +Index: qemu/bsd/i386/s_floorl.S +@@ -0,0 +1,27 @@ ++/* ++ * Based on code written by J.T. Conklin . ++ * Public domain. ++ */ ++ ++#include ++RCSID("$FreeBSD: src/lib/msun/i387/s_floorl.S,v 1.1 2005/04/16 21:12:55 das Exp $") ++ ++ENTRY(floorl) ++ pushl %ebp ++ movl %esp,%ebp ++ subl $8,%esp ++ ++ fstcw -4(%ebp) /* store fpu control word */ ++ movw -4(%ebp),%dx ++ orw $0x0400,%dx /* round towards -oo */ ++ andw $0xf7ff,%dx ++ movw %dx,-8(%ebp) ++ fldcw -8(%ebp) /* load modfied control word */ ++ ++ fldt 8(%ebp) /* round */ ++ frndint ++ ++ fldcw -4(%ebp) /* restore original control word */ ++ ++ leave ++ ret +Index: qemu/bsd/i386/s_isnormal.c +@@ -0,0 +1,85 @@ ++/*- ++ * Copyright (c) 2003 Mike Barcroft ++ * Copyright (c) 2002-2004 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ * ++ * $FreeBSD: src/lib/msun/src/s_isnormal.c,v 1.1 2004/07/09 03:32:39 das Exp $ ++ */ ++ ++union IEEEf2bits { ++ float f; ++ struct { ++ unsigned int man :23; ++ unsigned int exp :8; ++ unsigned int sign :1; ++ } bits; ++}; ++ ++union IEEEd2bits { ++ double d; ++ struct { ++ unsigned int manl :32; ++ unsigned int manh :20; ++ unsigned int exp :11; ++ unsigned int sign :1; ++ } bits; ++}; ++ ++union IEEEl2bits { ++ long double e; ++ struct { ++ unsigned int manl :32; ++ unsigned int manh :32; ++ unsigned int exp :15; ++ unsigned int sign :1; ++ unsigned int junk :16; ++ } bits; ++}; ++ ++int ++__isnormal(double d) ++{ ++ union IEEEd2bits u; ++ ++ u.d = d; ++ return (u.bits.exp != 0 && u.bits.exp != 2047); ++} ++ ++int ++__isnormalf(float f) ++{ ++ union IEEEf2bits u; ++ ++ u.f = f; ++ return (u.bits.exp != 0 && u.bits.exp != 255); ++} ++ ++int ++__isnormall(long double e) ++{ ++ union IEEEl2bits u; ++ ++ u.e = e; ++ return (u.bits.exp != 0 && u.bits.exp != 32767); ++} +Index: qemu/bsd/i386/s_llrint.S +@@ -0,0 +1,36 @@ ++/*- ++ * Copyright (c) 2005 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++#include ++RCSID("$FreeBSD: src/lib/msun/i387/s_llrint.S,v 1.1 2005/01/11 23:10:53 das Exp $"); ++ ++ENTRY(llrint) ++ fldl 4(%esp) ++ subl $8,%esp ++ fistpll (%esp) ++ popl %eax ++ popl %edx ++ ret +Index: qemu/bsd/i386/s_llrintf.S +@@ -0,0 +1,36 @@ ++/*- ++ * Copyright (c) 2005 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++#include ++RCSID("$FreeBSD: src/lib/msun/i387/s_llrintf.S,v 1.1 2005/04/16 21:12:55 das Exp $") ++ ++ENTRY(llrintf) ++ flds 4(%esp) ++ subl $8,%esp ++ fistpll (%esp) ++ popl %eax ++ popl %edx ++ ret +Index: qemu/bsd/i386/s_llrintl.S +@@ -0,0 +1,35 @@ ++/* Round argument to nearest integral value according to current rounding ++ direction. ++ Copyright (C) 1997 Free Software Foundation, Inc. ++ This file is part of the GNU C Library. ++ Contributed by Ulrich Drepper , 1997. ++ ++ The GNU C Library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ The GNU C Library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with the GNU C Library; if not, write to the Free ++ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++ 02111-1307 USA. */ ++ ++#include ++#include ++ ++ .text ++ENTRY(__llrintl) ++ fldt 4(%esp) ++ subl $8, %esp ++ fistpll (%esp) ++ fwait ++ popl %eax ++ popl %edx ++ ret ++END(__llrintl) ++weak_alias (__llrintl, llrintl) +Index: qemu/bsd/i386/s_lrint.S +@@ -0,0 +1,35 @@ ++/*- ++ * Copyright (c) 2005 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++#include ++RCSID("$FreeBSD: src/lib/msun/i387/s_lrint.S,v 1.1 2005/01/11 23:10:53 das Exp $"); ++ ++ENTRY(lrint) ++ fldl 4(%esp) ++ subl $4,%esp ++ fistpl (%esp) ++ popl %eax ++ ret +Index: qemu/bsd/i386/s_lrintf.S +@@ -0,0 +1,35 @@ ++/*- ++ * Copyright (c) 2005 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++#include ++RCSID("$FreeBSD: src/lib/msun/i387/s_lrintf.S,v 1.1 2005/04/16 21:12:55 das Exp $") ++ ++ENTRY(lrintf) ++ flds 4(%esp) ++ subl $4,%esp ++ fistpl (%esp) ++ popl %eax ++ ret +Index: qemu/bsd/i386/s_lrintl.S +@@ -0,0 +1,34 @@ ++/* Round argument to nearest integral value according to current rounding ++ direction. ++ Copyright (C) 1997 Free Software Foundation, Inc. ++ This file is part of the GNU C Library. ++ Contributed by Ulrich Drepper , 1997. ++ ++ The GNU C Library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ The GNU C Library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with the GNU C Library; if not, write to the Free ++ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++ 02111-1307 USA. */ ++ ++#include ++#include ++ ++ .text ++ENTRY(__lrintl) ++ fldt 4(%esp) ++ subl $4, %esp ++ fistpl (%esp) ++ fwait ++ popl %eax ++ ret ++END(__lrintl) ++weak_alias (__lrintl, lrintl) +Index: qemu/bsd/i386/s_rintl.c +@@ -0,0 +1,18 @@ ++/* ++ * Written by J.T. Conklin . ++ * Changes for long double by Ulrich Drepper ++ * Public domain. ++ */ ++ ++#include ++ ++long double ++__rintl (long double x) ++{ ++ long double res; ++ ++ asm ("frndint" : "=t" (res) : "0" (x)); ++ return res; ++} ++ ++weak_alias (__rintl, rintl) +Index: qemu/bsd/i386/s_round.c +@@ -0,0 +1,51 @@ ++/*- ++ * Copyright (c) 2003, Steven G. Kargl ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice unmodified, this list of conditions, and the following ++ * disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR ++ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ++ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ++ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, ++ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT ++ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, ++ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ++ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ++ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF ++ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ++ */ ++ ++#include ++__FBSDID("$FreeBSD: src/lib/msun/src/s_round.c,v 1.3 2005/01/13 15:43:41 das Exp $"); ++ ++#include ++ ++double ++round(double x) ++{ ++ double t; ++ ++ if (!isfinite(x)) ++ return (x); ++ ++ if (x >= 0.0) { ++ t = ceil(x); ++ if (t - x > 0.5) ++ t -= 1.0; ++ return (t); ++ } else { ++ t = ceil(-x); ++ if (t + x > 0.5) ++ t -= 1.0; ++ return (-t); ++ } ++} +Index: qemu/bsd/i386/s_sinl.S +@@ -0,0 +1,32 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ENTRY(__sinl) ++ fldt 4(%esp) ++ fsin ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 1f ++ ret ++ .align ALIGNARG(4) ++1: fldpi ++ fadd %st(0) ++ fxch %st(1) ++2: fprem1 ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 2b ++ fstp %st(1) ++ fsin ++ ret ++END (__sinl) ++weak_alias (__sinl, sinl) +Index: qemu/bsd/i386/s_tanl.S +@@ -0,0 +1,33 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ENTRY(__tanl) ++ fldt 4(%esp) ++ fptan ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 1f ++ fstp %st(0) ++ ret ++1: fldpi ++ fadd %st(0) ++ fxch %st(1) ++2: fprem1 ++ fstsw %ax ++ testl $0x400,%eax ++ jnz 2b ++ fstp %st(1) ++ fptan ++ fstp %st(0) ++ ret ++END (__tanl) ++weak_alias (__tanl, tanl) +Index: qemu/bsd/sysdep.h +@@ -0,0 +1,20 @@ ++#ifndef _QEMU_BSD_SYSDEP_H_ ++#define _QEMU_BSD_SYSDEP_H_ ++ ++#include ++ ++#define HAVE_ELF ++ ++#ifdef __ASSEMBLER__ ++#define ALIGNARG(log2) 1< Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B0B1416A4CE; Thu, 28 Apr 2005 01:25:43 +0000 (GMT) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11D9F43D41; Thu, 28 Apr 2005 01:25:43 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2.sentex.ca [199.212.134.9]) by smarthost2.sentex.ca (8.13.3/8.13.3) with ESMTP id j3S1PgVo084983; Wed, 27 Apr 2005 21:25:42 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.3/8.13.3) with ESMTP id j3S1PgkS004483; Wed, 27 Apr 2005 21:25:42 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 03F597306E; Wed, 27 Apr 2005 21:25:41 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20050428012541.03F597306E@freebsd-current.sentex.ca> Date: Wed, 27 Apr 2005 21:25:41 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on clamscanner2 X-Virus-Status: Clean Subject: [current tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 01:25:44 -0000 TB --- 2005-04-27 23:43:26 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-04-27 23:43:26 - starting CURRENT tinderbox run for amd64/amd64 TB --- 2005-04-27 23:43:26 - checking out the source tree TB --- 2005-04-27 23:43:26 - cd /home/tinderbox/CURRENT/amd64/amd64 TB --- 2005-04-27 23:43:26 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2005-04-27 23:50:07 - building world (CFLAGS=-O2 -pipe) TB --- 2005-04-27 23:50:07 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-27 23:50:07 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> stage 5.1: building 32 bit shim libraries TB --- 2005-04-28 01:09:18 - building generic kernel (COPTFLAGS=-O2 -pipe) TB --- 2005-04-28 01:09:18 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-28 01:09:18 - /usr/bin/make buildkernel KERNCONF=GENERIC >>> Kernel build for GENERIC started on Thu Apr 28 01:09:19 UTC 2005 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything >>> Kernel build for GENERIC completed on Thu Apr 28 01:25:07 UTC 2005 TB --- 2005-04-28 01:25:07 - generating LINT kernel config TB --- 2005-04-28 01:25:07 - cd /home/tinderbox/CURRENT/amd64/amd64/src/sys/amd64/conf TB --- 2005-04-28 01:25:07 - /usr/bin/make -B LINT TB --- 2005-04-28 01:25:08 - building LINT kernel (COPTFLAGS=-O2 -pipe) TB --- 2005-04-28 01:25:08 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-28 01:25:08 - /usr/bin/make buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Thu Apr 28 01:25:08 UTC 2005 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies [...] cc -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/tinderbox/CURRENT/amd64/amd64/src/sys -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/acpica -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/altq -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/ipfilter -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/pf -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/ath -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/ath/freebsd -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/ngatm -I/tinderbox/CURRENT/amd64/amd64/src/sys/dev/twa -D_KERNEL -include opt_global.h -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -c /tinderbox/CURRENT/amd64/amd64/src/sys/amd64/linux32/linux32_genassym.c sh /tinderbox/CURRENT/amd64/amd64/src/sys/kern/genassym.sh linux32_genassym.o > linux32_assym.h cc -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/tinderbox/CURRENT/amd64/amd64/src/sys -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/acpica -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/altq -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/ipfilter -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/pf -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/ath -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/ath/freebsd -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/ngatm -I/tinderbox/CURRENT/amd64/amd64/src/sys/dev/twa -D_KERNEL -include opt_global.h -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -c /tinderbox/CURRENT/amd64/amd64/src/sys/compat/ia32/ia32_genassym.c env NM='nm' sh /tinderbox/CURRENT/amd64/amd64/src/sys/kern/genassym.sh ia32_genassym.o > ia32_assym.h uudecode < /usr/share/syscons/fonts/cp850-8x16.fnt && file2c 'static u_char dflt_font_16[16*256] = {' '};' < cp850-8x16 > font.h && uudecode < /usr/share/syscons/fonts/cp850-8x14.fnt && file2c 'static u_char dflt_font_14[14*256] = {' '};' < cp850-8x14 >> font.h && uudecode < /usr/share/syscons/fonts/cp850-8x8.fnt && file2c 'static u_char dflt_font_8[8*256] = {' '};' < cp850-8x8 >> font.h /usr/sbin/kbdcontrol -L jp.106 | sed -e 's/^static keymap_t.* = /static keymap_t key_map = /' -e 's/^static accentmap_t.* = /static accentmap_t accent_map = /' > atkbdmap.h /usr/sbin/kbdcontrol -L it.iso | sed -e 's/^static keymap_t.* = /static keymap_t key_map = /' -e 's/^static accentmap_t.* = /static accentmap_t accent_map = /' > ukbdmap.h make: don't know how to make /tinderbox/CURRENT/amd64/amd64/src/sys/contrib/ipfilter/netinet/ip_fil.c. Stop *** Error code 2 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. TB --- 2005-04-28 01:25:41 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-04-28 01:25:41 - ERROR: failed to build lint kernel TB --- 2005-04-28 01:25:41 - tinderbox aborted From owner-freebsd-amd64@FreeBSD.ORG Thu Apr 28 04:20:02 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91C9516A4CE; Thu, 28 Apr 2005 04:20:02 +0000 (GMT) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6113B43D64; Thu, 28 Apr 2005 04:20:02 +0000 (GMT) (envelope-from peter@wemm.org) Received: from fw.wemm.org (canning.wemm.org [192.203.228.65]) by canning.wemm.org (Postfix) with ESMTP id DD3732A90E; Wed, 27 Apr 2005 21:20:01 -0700 (PDT) (envelope-from peter@wemm.org) Received: from peter-laptop.wemm.org (dhcp49.wemm.org [10.0.0.49]) by fw.wemm.org (Postfix) with ESMTP id B53D7E2B3; Wed, 27 Apr 2005 21:20:00 -0700 (PDT) (envelope-from peter@wemm.org) Received: from peter-laptop.wemm.org (localhost [127.0.0.1]) by peter-laptop.wemm.org (8.13.3/8.13.3) with ESMTP id j3S4IsjV010630; Wed, 27 Apr 2005 21:18:54 -0700 (PDT) (envelope-from peter@wemm.org) Received: from localhost (localhost [[UNIX: localhost]]) by peter-laptop.wemm.org (8.13.3/8.13.3/Submit) id j3S4IlEW010629; Wed, 27 Apr 2005 21:18:47 -0700 (PDT) (envelope-from peter@wemm.org) X-Authentication-Warning: peter-laptop.wemm.org: peter set sender to peter@wemm.org using -f From: Peter Wemm To: freebsd-amd64@freebsd.org Date: Wed, 27 Apr 2005 21:18:45 -0700 User-Agent: KMail/1.8 References: <20050427192112.GA30646@xor.obsecurity.org> <20050427202900.GA52508@xor.obsecurity.org> In-Reply-To: <20050427202900.GA52508@xor.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504272118.47153.peter@wemm.org> cc: Michael Hopkins cc: kan@freebsd.org cc: Kris Kennaway Subject: Re: Shared library relocation R_X86_64_32 solution on amd64? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 04:20:02 -0000 On Wednesday 27 April 2005 01:29 pm, Kris Kennaway wrote: > For the error above, it looks like at least 3) (i.e. FreeBSD should > provide a libobjc.so). Whether or not gnustep will use it, or if > there are further problems, I can't say. For what its worth, we do build libobjc.so now. peter@overcee[9:15pm]~-101> file /usr/lib/libobjc.so.1 /usr/lib/libobjc.so.1: ELF 64-bit LSB shared object, AMD x86-64, version 1 (FreeBSD), stripped src/gnu/lib/libobjc/Makefile rev 1.21: ---------- date: 2004/09/29 23:42:44; author: peter; state: Exp; lines: +5 -0 We *need* the pic libobjc library for amd64. It is needed for ia64 as well, but I'll let Marcel decide whether he wants to build a .so or not. Without this, building certain ports that use objc have fatal errors. ------------ This has been in RELENG_5 for a while and will be included in 5.4-RELEASE. It was not shipped in 5.3-REL. -- Makefile 28 Jul 2004 05:27:18 -0000 1.20 +++ Makefile 13 Feb 2005 07:23:06 -0000 1.20.2.2 @@ -7,6 +7,11 @@ LIB= objc -NOMAN= sorry -NOPIC= works but method lookup slowdown is significant +NOMAN= +.if ${MACHINE_ARCH} == "amd64" +SHLIB_MAJOR= 1 +.else +# XXX is this still correct? +NOPIC= # works but method lookup slowdown is significant +.endif SRCS= archive.c class.c encoding.c gc.c hash.c init.c misc.c \ I think we should be building shared libobjc.so.1 everywhere. -Peter From owner-freebsd-amd64@FreeBSD.ORG Thu Apr 28 04:27:56 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8420E16A4CE; Thu, 28 Apr 2005 04:27:56 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 310D643D5D; Thu, 28 Apr 2005 04:27:56 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 114FB514FE; Wed, 27 Apr 2005 21:27:55 -0700 (PDT) Date: Wed, 27 Apr 2005 21:27:54 -0700 From: Kris Kennaway To: Peter Wemm Message-ID: <20050428042754.GA82751@xor.obsecurity.org> References: <20050427192112.GA30646@xor.obsecurity.org> <20050427202900.GA52508@xor.obsecurity.org> <200504272118.47153.peter@wemm.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8t9RHnE3ZwKMSgU+" Content-Disposition: inline In-Reply-To: <200504272118.47153.peter@wemm.org> User-Agent: Mutt/1.4.2.1i cc: Michael Hopkins cc: kan@freebsd.org cc: freebsd-amd64@freebsd.org cc: Kris Kennaway Subject: Re: Shared library relocation R_X86_64_32 solution on amd64? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 04:27:56 -0000 --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 27, 2005 at 09:18:45PM -0700, Peter Wemm wrote: > On Wednesday 27 April 2005 01:29 pm, Kris Kennaway wrote: >=20 > > For the error above, it looks like at least 3) (i.e. FreeBSD should > > provide a libobjc.so). Whether or not gnustep will use it, or if > > there are further problems, I can't say. >=20 > For what its worth, we do build libobjc.so now. >=20 > peter@overcee[9:15pm]~-101> file /usr/lib/libobjc.so.1 > /usr/lib/libobjc.so.1: ELF 64-bit LSB shared object, AMD x86-64, version = 1=20 > (FreeBSD), stripped >=20 > src/gnu/lib/libobjc/Makefile rev 1.21: > ---------- > date: 2004/09/29 23:42:44; author: peter; state: Exp; lines: +5 -0 > We *need* the pic libobjc library for amd64. It is needed for ia64 as > well, but I'll let Marcel decide whether he wants to build a .so or not. >=20 > Without this, building certain ports that use objc have fatal errors. > ------------ >=20 > This has been in RELENG_5 for a while and will be included in 5.4-RELEASE= . It=20 > was not shipped in 5.3-REL. OK, I assumed it would exist on my i386 machine where I looked for it. > I think we should be building shared libobjc.so.1 everywhere. Kris --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCcGZKWry0BWjoQKURAhOLAKDZsOKkY5X3JOSyVxTXweTPBeD9nQCfRLzd 6Sh/dwrP5GDsm8AX2fg1fEc= =POg9 -----END PGP SIGNATURE----- --8t9RHnE3ZwKMSgU+-- From owner-freebsd-amd64@FreeBSD.ORG Thu Apr 28 15:21:53 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC30716A4CE; Thu, 28 Apr 2005 15:21:53 +0000 (GMT) Received: from dragon.NUXI.org (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id E435943D53; Thu, 28 Apr 2005 15:21:51 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.NUXI.org (obrien@localhost [127.0.0.1]) by dragon.NUXI.org (8.13.3/8.13.3) with ESMTP id j3SFLinE054029; Thu, 28 Apr 2005 08:21:44 -0700 (PDT) (envelope-from obrien@dragon.NUXI.org) Received: (from obrien@localhost) by dragon.NUXI.org (8.13.3/8.13.1/Submit) id j3SFLeOV054028; Thu, 28 Apr 2005 08:21:40 -0700 (PDT) (envelope-from obrien) Date: Thu, 28 Apr 2005 08:21:40 -0700 From: "David O'Brien" To: Miguel Mendez Message-ID: <20050428152140.GB53068@dragon.NUXI.org> References: <20050426170115.GB45067@dragon.NUXI.org> <20050426195809.1fb28305.flynn@energyhq.es.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050426195809.1fb28305.flynn@energyhq.es.eu.org> X-Operating-System: FreeBSD 6.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 User-Agent: Mutt/1.5.9i cc: michael.hopkins@hopkins-research.com cc: freebsd-ports@freebsd.org cc: freebsd-amd64@freebsd.org Subject: Re: Attempted install of an Obj-C Foundation library X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@freebsd.org List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 15:21:53 -0000 On Tue, Apr 26, 2005 at 07:58:09PM +0200, Miguel Mendez wrote: > On Tue, 26 Apr 2005 10:01:15 -0700 > "David O'Brien" wrote: > > > > I am trying to get a working Objective-C Foundation library on FreeBSD amd64 > > > (5.3-RELEASE-p10 with ports cvsup'd today) so that I can port some > > > Objective-C code from Mac OS X - and not having any success. > > ... > > > ===> gcc-objc-3.3.6_20050330 is marked as broken: Bus errors in stage2; > > > system compiler may be broken.. > > > *** Error code 1 > > > > I must be missing something -- why cant you use the base ObjC compiler? > > Seems gnustep-base needs "libgcc_s.so.1" which isn't anywhere in /usr/lib That is the shared version of libgcc.a. Why can't you use the static version? -- -- David (obrien@FreeBSD.org) From owner-freebsd-amd64@FreeBSD.ORG Thu Apr 28 16:34:52 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AB9C16A4CE; Thu, 28 Apr 2005 16:34:52 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE23543D55; Thu, 28 Apr 2005 16:34:51 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id DC4FD5133E; Thu, 28 Apr 2005 09:34:50 -0700 (PDT) Date: Thu, 28 Apr 2005 09:34:50 -0700 From: Kris Kennaway To: David O'Brien Message-ID: <20050428163450.GA79570@xor.obsecurity.org> References: <20050426170115.GB45067@dragon.NUXI.org> <20050426195809.1fb28305.flynn@energyhq.es.eu.org> <20050428152140.GB53068@dragon.NUXI.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="huq684BweRXVnRxX" Content-Disposition: inline In-Reply-To: <20050428152140.GB53068@dragon.NUXI.org> User-Agent: Mutt/1.4.2.1i cc: michael.hopkins@hopkins-research.com cc: Miguel Mendez cc: freebsd-amd64@freebsd.org cc: freebsd-ports@freebsd.org Subject: Re: Attempted install of an Obj-C Foundation library X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 16:34:52 -0000 --huq684BweRXVnRxX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 28, 2005 at 08:21:40AM -0700, David O'Brien wrote: > On Tue, Apr 26, 2005 at 07:58:09PM +0200, Miguel Mendez wrote: > > On Tue, 26 Apr 2005 10:01:15 -0700 > > "David O'Brien" wrote: > >=20 > > > > I am trying to get a working Objective-C Foundation library on Free= BSD amd64 > > > > (5.3-RELEASE-p10 with ports cvsup'd today) so that I can port some > > > > Objective-C code from Mac OS X - and not having any success. > > > ... > > > > =3D=3D=3D> gcc-objc-3.3.6_20050330 is marked as broken: Bus errors= in stage2; > > > > system compiler may be broken.. > > > > *** Error code 1 > > >=20 > > > I must be missing something -- why cant you use the base ObjC compile= r? > >=20 > > Seems gnustep-base needs "libgcc_s.so.1" which isn't anywhere in /usr/l= ib >=20 > That is the shared version of libgcc.a. Why can't you use the static > version? Presumably because it wants to link it to relocatable object files. In general amd64 (and ia64 and sparc64) needs a PIC version of every system library, which FreeBSD doesn't currently do. This causes some ports to break. Kris --huq684BweRXVnRxX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCcRCqWry0BWjoQKURAg53AJ9FGTHUjRAy/+/El3Z08SRbxJuSWACg2yvl VTjN84mWRl5RoHlX34teALY= =aUX7 -----END PGP SIGNATURE----- --huq684BweRXVnRxX-- From owner-freebsd-amd64@FreeBSD.ORG Thu Apr 28 19:05:54 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4486916A4CE; Thu, 28 Apr 2005 19:05:54 +0000 (GMT) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7531943D2F; Thu, 28 Apr 2005 19:05:52 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1])j3SJ5nk8006654; Thu, 28 Apr 2005 21:05:49 +0200 Received: from saturn.kn-bremen.de (uucp@localhost)j3SJ5nBK006652; Thu, 28 Apr 2005 21:05:49 +0200 Received: (from nox@localhost) by saturn.kn-bremen.de (8.11.4/8.8.5) id j3SJ2nd22242; Thu, 28 Apr 2005 21:02:50 +0200 (CEST) From: Juergen Lock Date: Thu, 28 Apr 2005 21:02:47 +0200 To: Jung-uk Kim Message-ID: <20050428210246.A21966@saturn.kn-bremen.de> Mail-Followup-To: Jung-uk Kim , freebsd-amd64@freebsd.org, freebsd-emulation@freebsd.org References: <20050427210405.A95072@saturn.kn-bremen.de> <200504271936.18743.jkim@niksun.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <200504271936.18743.jkim@niksun.com> cc: freebsd-emulation@freebsd.org cc: freebsd-amd64@freebsd.org Subject: Re: please test qemu port update X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 19:05:54 -0000 On Wed, Apr 27, 2005 at 07:36:18PM -0400, Jung-uk Kim wrote: > On Wednesday 27 April 2005 03:04 pm, Juergen Lock wrote: > > With the help of Jung-uk Kim i have made an update for the qemu > > port that might :) now actually work on amd64 as well. Please > > test. (I also haven't tested 4.11 or 6.0 i386.) > > > > remove these files: files/patch-ab, > > files/patch-target-sparc::op_helper.c > > > > (btw I'm not subscribed on -amd64 so if you remove -emulation > > please Cc me if you want me to see followups...) > ---- >8 --- SNIP!!! --- >8 ---- > > Juergen, > > sorry but it doesn't work. You missed few things in Makefile. Since > QEMU 0.7.0 is released, I think it's good time to update it, too. ;-) > Update to QEMU 0.7.0 and Makefile fix is attached. Hmm I wonder why the Makefile worked for me... Do you have unusual things in your environment or in make.conf? Or is this a difference between i386 and amd64? And if it really is, I would prefer setting the right variables (like USE_GMAKE, see /usr/ports/Mk/bsd.port.mk) instead of simply overriding the do-* targets. Juergen From owner-freebsd-amd64@FreeBSD.ORG Thu Apr 28 19:14:06 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 063F516A4CE; Thu, 28 Apr 2005 19:14:06 +0000 (GMT) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60C4543D5A; Thu, 28 Apr 2005 19:14:05 +0000 (GMT) (envelope-from jkim@niksun.com) Received: from [10.70.0.244] (daemon.mj.niksun.com [10.70.0.244]) by anuket.mj.niksun.com (8.13.1/8.13.1) with ESMTP id j3SJEdxd052259; Thu, 28 Apr 2005 15:14:40 -0400 (EDT) (envelope-from jkim@niksun.com) From: Jung-uk Kim Organization: Niksun, Inc. To: Juergen Lock Date: Thu, 28 Apr 2005 15:14:01 -0400 User-Agent: KMail/1.6.2 References: <20050427210405.A95072@saturn.kn-bremen.de> <200504271936.18743.jkim@niksun.com> <20050428210246.A21966@saturn.kn-bremen.de> In-Reply-To: <20050428210246.A21966@saturn.kn-bremen.de> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200504281514.01411.jkim@niksun.com> X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on anuket.mj.niksun.com X-Virus-Status: Clean cc: freebsd-emulation@freebsd.org cc: freebsd-amd64@freebsd.org Subject: Re: please test qemu port update X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 19:14:06 -0000 On Thursday 28 April 2005 03:02 pm, Juergen Lock wrote: > On Wed, Apr 27, 2005 at 07:36:18PM -0400, Jung-uk Kim wrote: > > On Wednesday 27 April 2005 03:04 pm, Juergen Lock wrote: > > > With the help of Jung-uk Kim i have made an update for the qemu > > > port that might :) now actually work on amd64 as well. Please > > > test. (I also haven't tested 4.11 or 6.0 i386.) > > > > > > remove these files: files/patch-ab, > > > files/patch-target-sparc::op_helper.c > > > > > > (btw I'm not subscribed on -amd64 so if you remove -emulation > > > please Cc me if you want me to see followups...) > > > > ---- >8 --- SNIP!!! --- >8 ---- > > > > Juergen, > > > > sorry but it doesn't work. You missed few things in Makefile. > > Since QEMU 0.7.0 is released, I think it's good time to update > > it, too. ;-) Update to QEMU 0.7.0 and Makefile fix is attached. > > Hmm I wonder why the Makefile worked for me... Do you have > unusual things in your environment or in make.conf? No. > Or is this a difference between i386 and amd64? I believe Makefile.target is doing something wrong but I haven't found it yet. I believe the culprit is Makefile.target not checking ARCH == amd64 but x86_64. In fact, it works perfect for i386. > And if it really is, I would prefer setting the right variables > (like USE_GMAKE, see /usr/ports/Mk/bsd.port.mk) instead of simply > overriding the do-* targets. I'd love to find it out. I will let you know when I get that right. Thanks, JK > Juergen From owner-freebsd-amd64@FreeBSD.ORG Thu Apr 28 19:20:30 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F68316A4CE; Thu, 28 Apr 2005 19:20:30 +0000 (GMT) Received: from dragon.NUXI.org (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1DA243D53; Thu, 28 Apr 2005 19:20:29 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.NUXI.org (obrien@localhost [127.0.0.1]) by dragon.NUXI.org (8.13.3/8.13.3) with ESMTP id j3SJKAI5087589; Thu, 28 Apr 2005 12:20:10 -0700 (PDT) (envelope-from obrien@dragon.NUXI.org) Received: (from obrien@localhost) by dragon.NUXI.org (8.13.3/8.13.1/Submit) id j3SJK5hc087584; Thu, 28 Apr 2005 12:20:05 -0700 (PDT) (envelope-from obrien) Date: Thu, 28 Apr 2005 12:20:05 -0700 From: "David O'Brien" To: Kris Kennaway Message-ID: <20050428192005.GA87545@dragon.NUXI.org> References: <20050426170115.GB45067@dragon.NUXI.org> <20050426195809.1fb28305.flynn@energyhq.es.eu.org> <20050428152140.GB53068@dragon.NUXI.org> <20050428163450.GA79570@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050428163450.GA79570@xor.obsecurity.org> X-Operating-System: FreeBSD 6.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 User-Agent: Mutt/1.5.9i cc: michael.hopkins@hopkins-research.com cc: Miguel Mendez cc: freebsd-amd64@freebsd.org cc: freebsd-ports@freebsd.org Subject: Re: Attempted install of an Obj-C Foundation library X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@freebsd.org List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 19:20:30 -0000 On Thu, Apr 28, 2005 at 09:34:50AM -0700, Kris Kennaway wrote: > On Thu, Apr 28, 2005 at 08:21:40AM -0700, David O'Brien wrote: > > On Tue, Apr 26, 2005 at 07:58:09PM +0200, Miguel Mendez wrote: > > > On Tue, 26 Apr 2005 10:01:15 -0700 > > > "David O'Brien" wrote: > > > > > > > > I am trying to get a working Objective-C Foundation library on FreeBSD amd64 > > > > > (5.3-RELEASE-p10 with ports cvsup'd today) so that I can port some > > > > > Objective-C code from Mac OS X - and not having any success. > > > > ... > > > > > ===> gcc-objc-3.3.6_20050330 is marked as broken: Bus errors in stage2; > > > > > system compiler may be broken.. > > > > > *** Error code 1 > > > > > > > > I must be missing something -- why cant you use the base ObjC compiler? > > > > > > Seems gnustep-base needs "libgcc_s.so.1" which isn't anywhere in /usr/lib > > > > That is the shared version of libgcc.a. Why can't you use the static > > version? > > Presumably because it wants to link it to relocatable object files. > In general amd64 (and ia64 and sparc64) needs a PIC version of every > system library, which FreeBSD doesn't currently do. Though we do have /usr/lib/libgcc_pic.a just for this case. -- -- David (obrien@FreeBSD.org) From owner-freebsd-amd64@FreeBSD.ORG Thu Apr 28 19:24:17 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE67E16A4CE; Thu, 28 Apr 2005 19:24:17 +0000 (GMT) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6819943D58; Thu, 28 Apr 2005 19:24:17 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 3E4495283B; Thu, 28 Apr 2005 12:24:16 -0700 (PDT) Date: Thu, 28 Apr 2005 12:24:16 -0700 From: Kris Kennaway To: David O'Brien Message-ID: <20050428192416.GA29332@xor.obsecurity.org> References: <20050426170115.GB45067@dragon.NUXI.org> <20050426195809.1fb28305.flynn@energyhq.es.eu.org> <20050428152140.GB53068@dragon.NUXI.org> <20050428163450.GA79570@xor.obsecurity.org> <20050428192005.GA87545@dragon.NUXI.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline In-Reply-To: <20050428192005.GA87545@dragon.NUXI.org> User-Agent: Mutt/1.4.2.1i cc: michael.hopkins@hopkins-research.com cc: Miguel Mendez cc: freebsd-ports@freebsd.org cc: freebsd-amd64@freebsd.org cc: Kris Kennaway Subject: Re: Attempted install of an Obj-C Foundation library X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 19:24:17 -0000 --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 28, 2005 at 12:20:05PM -0700, David O'Brien wrote: > On Thu, Apr 28, 2005 at 09:34:50AM -0700, Kris Kennaway wrote: > > On Thu, Apr 28, 2005 at 08:21:40AM -0700, David O'Brien wrote: > > > On Tue, Apr 26, 2005 at 07:58:09PM +0200, Miguel Mendez wrote: > > > > On Tue, 26 Apr 2005 10:01:15 -0700 > > > > "David O'Brien" wrote: > > > >=20 > > > > > > I am trying to get a working Objective-C Foundation library on = FreeBSD amd64 > > > > > > (5.3-RELEASE-p10 with ports cvsup'd today) so that I can port s= ome > > > > > > Objective-C code from Mac OS X - and not having any success. > > > > > ... > > > > > > =3D=3D=3D> gcc-objc-3.3.6_20050330 is marked as broken: Bus er= rors in stage2; > > > > > > system compiler may be broken.. > > > > > > *** Error code 1 > > > > >=20 > > > > > I must be missing something -- why cant you use the base ObjC com= piler? > > > >=20 > > > > Seems gnustep-base needs "libgcc_s.so.1" which isn't anywhere in /u= sr/lib > > >=20 > > > That is the shared version of libgcc.a. Why can't you use the static > > > version? > >=20 > > Presumably because it wants to link it to relocatable object files. > > In general amd64 (and ia64 and sparc64) needs a PIC version of every > > system library, which FreeBSD doesn't currently do. >=20 > Though we do have /usr/lib/libgcc_pic.a just for this case. OK, that would probably solve this particular case. Kris --NzB8fVQJ5HfG6fxh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCcThfWry0BWjoQKURAqm1AKDXkIO+VW+6YDc5kZFTLCnXirUKZQCfcAeS 8sxRh4sUeu2SB6FdPGH6PMw= =P1bv -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh-- From owner-freebsd-amd64@FreeBSD.ORG Thu Apr 28 21:27:11 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DFE5B16A4CE; Thu, 28 Apr 2005 21:27:11 +0000 (GMT) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 958EC43D58; Thu, 28 Apr 2005 21:27:11 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id E68E75E86; Thu, 28 Apr 2005 17:27:10 -0400 (EDT) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 64129-06; Thu, 28 Apr 2005 17:27:10 -0400 (EDT) Received: from [192.168.1.3] (pool-68-161-53-96.ny325.east.verizon.net [68.161.53.96]) by pi.codefab.com (Postfix) with ESMTP id ACE355EB7; Thu, 28 Apr 2005 17:27:09 -0400 (EDT) Message-ID: <4271550C.8080308@mac.com> Date: Thu, 28 Apr 2005 17:26:36 -0400 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: obrien@freebsd.org References: <20050426170115.GB45067@dragon.NUXI.org> <20050426195809.1fb28305.flynn@energyhq.es.eu.org> <20050428152140.GB53068@dragon.NUXI.org> <20050428163450.GA79570@xor.obsecurity.org> <20050428192005.GA87545@dragon.NUXI.org> In-Reply-To: <20050428192005.GA87545@dragon.NUXI.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com cc: michael.hopkins@hopkins-research.com cc: freebsd-ports@freebsd.org cc: freebsd-amd64@freebsd.org Subject: Re: Attempted install of an Obj-C Foundation library X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 21:27:12 -0000 David O'Brien wrote: > On Thu, Apr 28, 2005 at 09:34:50AM -0700, Kris Kennaway wrote: [ ... ] >>> That is the shared version of libgcc.a. Why can't you use the static >>> version? >> >> Presumably because it wants to link it to relocatable object files. >> In general amd64 (and ia64 and sparc64) needs a PIC version of every >> system library, which FreeBSD doesn't currently do. > > Though we do have /usr/lib/libgcc_pic.a just for this case. At least at one point, Obj-C and the OPENSTEP frameworks supported static linking. [1] Also, the shared libraries evolved from being compiled against a fixed VM address: #define MH_FVMLIB 0x3 /* fixed VM shared library file */ ...to the current default of being PIC, since there were some very ugly collisions when libraries grew too big and started running over each other: #define MH_DYLIB 0x6 /* dynamically bound shared library */ Of course, the GNUSTEP project is using the native object format (presumably ELF), rather than MachO, but how it handles frameworks-- shared libraries in the local parlance-- is likely to closely resemble how OPENSTEP worked. I don't know whether saying that this stuff used to work on other platforms is useful or not to Michael, but it did. :-) -- -Chuck [1]: At least, there was a static version of the System framework, which includes what FreeBSD puts into libc.a, and I think the basic Foundation classes were also available as a static lib, too. Some of the fancier stuff like EOF or database adaptors, were only available as shared libraries, because those things used Mach's equivalent to dlopen() for dynamicly loading stuff when needed as a matter of course. From owner-freebsd-amd64@FreeBSD.ORG Thu Apr 28 22:18:47 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A1E516A4CE; Thu, 28 Apr 2005 22:18:47 +0000 (GMT) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF46F43D31; Thu, 28 Apr 2005 22:18:46 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.13.3/8.13.3) with ESMTP id j3SMIkhj039425; Thu, 28 Apr 2005 18:18:46 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.3/8.13.3) with ESMTP id j3SMIkwW040669; Thu, 28 Apr 2005 18:18:46 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 56D8F7306E; Thu, 28 Apr 2005 18:18:46 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20050428221846.56D8F7306E@freebsd-current.sentex.ca> Date: Thu, 28 Apr 2005 18:18:46 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on clamscanner4 X-Virus-Status: Clean Subject: [current tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 22:18:47 -0000 TB --- 2005-04-28 20:43:19 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-04-28 20:43:19 - starting CURRENT tinderbox run for amd64/amd64 TB --- 2005-04-28 20:43:19 - checking out the source tree TB --- 2005-04-28 20:43:19 - cd /home/tinderbox/CURRENT/amd64/amd64 TB --- 2005-04-28 20:43:19 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2005-04-28 20:50:02 - building world (CFLAGS=-O2 -pipe) TB --- 2005-04-28 20:50:02 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-28 20:50:02 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> stage 5.1: building 32 bit shim libraries TB --- 2005-04-28 22:02:18 - building generic kernel (COPTFLAGS=-O2 -pipe) TB --- 2005-04-28 22:02:18 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-28 22:02:18 - /usr/bin/make buildkernel KERNCONF=GENERIC >>> Kernel build for GENERIC started on Thu Apr 28 22:02:19 UTC 2005 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything >>> Kernel build for GENERIC completed on Thu Apr 28 22:18:15 UTC 2005 TB --- 2005-04-28 22:18:15 - generating LINT kernel config TB --- 2005-04-28 22:18:15 - cd /home/tinderbox/CURRENT/amd64/amd64/src/sys/amd64/conf TB --- 2005-04-28 22:18:15 - /usr/bin/make -B LINT TB --- 2005-04-28 22:18:15 - building LINT kernel (COPTFLAGS=-O2 -pipe) TB --- 2005-04-28 22:18:15 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-28 22:18:15 - /usr/bin/make buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Thu Apr 28 22:18:15 UTC 2005 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies [...] cc -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/tinderbox/CURRENT/amd64/amd64/src/sys -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/acpica -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/altq -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/ipfilter -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/pf -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/ath -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/ath/freebsd -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/ngatm -I/tinderbox/CURRENT/amd64/amd64/src/sys/dev/twa -D_KERNEL -include opt_global.h -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -c /tinderbox/CURRENT/amd64/amd64/src/sys/amd64/linux32/linux32_genassym.c sh /tinderbox/CURRENT/amd64/amd64/src/sys/kern/genassym.sh linux32_genassym.o > linux32_assym.h cc -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/tinderbox/CURRENT/amd64/amd64/src/sys -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/acpica -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/altq -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/ipfilter -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/pf -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/ath -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/dev/ath/freebsd -I/tinderbox/CURRENT/amd64/amd64/src/sys/contrib/ngatm -I/tinderbox/CURRENT/amd64/amd64/src/sys/dev/twa -D_KERNEL -include opt_global.h -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -c /tinderbox/CURRENT/amd64/amd64/src/sys/compat/ia32/ia32_genassym.c env NM='nm' sh /tinderbox/CURRENT/amd64/amd64/src/sys/kern/genassym.sh ia32_genassym.o > ia32_assym.h uudecode < /usr/share/syscons/fonts/cp850-8x16.fnt && file2c 'static u_char dflt_font_16[16*256] = {' '};' < cp850-8x16 > font.h && uudecode < /usr/share/syscons/fonts/cp850-8x14.fnt && file2c 'static u_char dflt_font_14[14*256] = {' '};' < cp850-8x14 >> font.h && uudecode < /usr/share/syscons/fonts/cp850-8x8.fnt && file2c 'static u_char dflt_font_8[8*256] = {' '};' < cp850-8x8 >> font.h /usr/sbin/kbdcontrol -L jp.106 | sed -e 's/^static keymap_t.* = /static keymap_t key_map = /' -e 's/^static accentmap_t.* = /static accentmap_t accent_map = /' > atkbdmap.h /usr/sbin/kbdcontrol -L it.iso | sed -e 's/^static keymap_t.* = /static keymap_t key_map = /' -e 's/^static accentmap_t.* = /static accentmap_t accent_map = /' > ukbdmap.h make: don't know how to make /tinderbox/CURRENT/amd64/amd64/src/sys/hwpmc/hwpmc_mod.c. Stop *** Error code 2 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. TB --- 2005-04-28 22:18:46 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-04-28 22:18:46 - ERROR: failed to build lint kernel TB --- 2005-04-28 22:18:46 - tinderbox aborted From owner-freebsd-amd64@FreeBSD.ORG Thu Apr 28 23:11:15 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A655216A4CE; Thu, 28 Apr 2005 23:11:15 +0000 (GMT) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 89D2943D48; Thu, 28 Apr 2005 23:11:13 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1])j3SNBAk8021025; Fri, 29 Apr 2005 01:11:10 +0200 Received: from saturn.kn-bremen.de (uucp@localhost)j3SNBADJ021023; Fri, 29 Apr 2005 01:11:10 +0200 Received: (from nox@localhost) by saturn.kn-bremen.de (8.11.4/8.8.5) id j3SN73e26905; Fri, 29 Apr 2005 01:07:03 +0200 (CEST) From: Juergen Lock Date: Fri, 29 Apr 2005 01:07:01 +0200 To: Jung-uk Kim Message-ID: <20050429010701.A26885@saturn.kn-bremen.de> Mail-Followup-To: Jung-uk Kim , freebsd-amd64@freebsd.org, freebsd-emulation@freebsd.org References: <20050427210405.A95072@saturn.kn-bremen.de> <200504271936.18743.jkim@niksun.com> <20050428210246.A21966@saturn.kn-bremen.de> <200504281514.01411.jkim@niksun.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <200504281514.01411.jkim@niksun.com> cc: freebsd-emulation@freebsd.org cc: freebsd-amd64@freebsd.org Subject: Re: please test qemu port update X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Apr 2005 23:11:15 -0000 On Thu, Apr 28, 2005 at 03:14:01PM -0400, Jung-uk Kim wrote: > On Thursday 28 April 2005 03:02 pm, Juergen Lock wrote: > > On Wed, Apr 27, 2005 at 07:36:18PM -0400, Jung-uk Kim wrote: > > > On Wednesday 27 April 2005 03:04 pm, Juergen Lock wrote: > > > > With the help of Jung-uk Kim i have made an update for the qemu > > > > port that might :) now actually work on amd64 as well. Please > > > > test. (I also haven't tested 4.11 or 6.0 i386.) > > > > > > > > remove these files: files/patch-ab, > > > > files/patch-target-sparc::op_helper.c > > > > > > > > (btw I'm not subscribed on -amd64 so if you remove -emulation > > > > please Cc me if you want me to see followups...) > > > > > > ---- >8 --- SNIP!!! --- >8 ---- > > > > > > Juergen, > > > > > > sorry but it doesn't work. You missed few things in Makefile. > > > Since QEMU 0.7.0 is released, I think it's good time to update > > > it, too. ;-) Update to QEMU 0.7.0 and Makefile fix is attached. > > > > Hmm I wonder why the Makefile worked for me... Do you have > > unusual things in your environment or in make.conf? > > No. > > > Or is this a difference between i386 and amd64? > > I believe Makefile.target is doing something wrong but I haven't found > it yet. I believe the culprit is Makefile.target not checking ARCH > == amd64 but x86_64. In fact, it works perfect for i386. > Aaah, that may well be. > > And if it really is, I would prefer setting the right variables > > (like USE_GMAKE, see /usr/ports/Mk/bsd.port.mk) instead of simply > > overriding the do-* targets. > > I'd love to find it out. I will let you know when I get that right. Ok, Juergen From owner-freebsd-amd64@FreeBSD.ORG Fri Apr 29 07:13:33 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD76116A4CE; Fri, 29 Apr 2005 07:13:33 +0000 (GMT) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A06643D5A; Fri, 29 Apr 2005 07:13:29 +0000 (GMT) (envelope-from jkim@niksun.com) Received: from [10.70.0.244] (daemon.mj.niksun.com [10.70.0.244]) by anuket.mj.niksun.com (8.13.1/8.13.1) with ESMTP id j3T7E2Y1067679; Fri, 29 Apr 2005 03:14:04 -0400 (EDT) (envelope-from jkim@niksun.com) From: Jung-uk Kim Organization: Niksun, Inc. To: freebsd-amd64@freebsd.org Date: Fri, 29 Apr 2005 03:13:15 -0400 User-Agent: KMail/1.6.2 References: <20050427210405.A95072@saturn.kn-bremen.de> <20050428210246.A21966@saturn.kn-bremen.de> <200504281514.01411.jkim@niksun.com> In-Reply-To: <200504281514.01411.jkim@niksun.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Multipart/Mixed; boundary="Boundary-00=_M6dcCGxTk+H4CWI" Message-Id: <200504290313.18498.jkim@niksun.com> X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on anuket.mj.niksun.com X-Virus-Status: Clean cc: freebsd-emulation@freebsd.org cc: Juergen Lock Subject: Re: please test qemu port update X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2005 07:13:33 -0000 --Boundary-00=_M6dcCGxTk+H4CWI Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline On Thursday 28 April 2005 03:14 pm, Jung-uk Kim wrote: > On Thursday 28 April 2005 03:02 pm, Juergen Lock wrote: > > On Wed, Apr 27, 2005 at 07:36:18PM -0400, Jung-uk Kim wrote: > > > On Wednesday 27 April 2005 03:04 pm, Juergen Lock wrote: > > > > With the help of Jung-uk Kim i have made an update for the > > > > qemu port that might :) now actually work on amd64 as well. > > > > Please test. (I also haven't tested 4.11 or 6.0 i386.) > > > > > > > > remove these files: files/patch-ab, > > > > files/patch-target-sparc::op_helper.c > > > > > > > > (btw I'm not subscribed on -amd64 so if you remove > > > > -emulation please Cc me if you want me to see followups...) > > > > > > ---- >8 --- SNIP!!! --- >8 ---- > > > > > > Juergen, > > > > > > sorry but it doesn't work. You missed few things in Makefile. > > > Since QEMU 0.7.0 is released, I think it's good time to update > > > it, too. ;-) Update to QEMU 0.7.0 and Makefile fix is attached. > > > > Hmm I wonder why the Makefile worked for me... Do you have > > unusual things in your environment or in make.conf? > > No. > > > Or is this a difference between i386 and amd64? > > I believe Makefile.target is doing something wrong but I haven't > found it yet. I believe the culprit is Makefile.target not > checking ARCH == amd64 but x86_64. In fact, it works perfect for > i386. Yup, that's it. MAKE_ENV was overriding ARCH==x86_64 in QEMU's makefiles. > > And if it really is, I would prefer setting the right variables > > (like USE_GMAKE, see /usr/ports/Mk/bsd.port.mk) instead of simply > > overriding the do-* targets. > > I'd love to find it out. I will let you know when I get that > right. The final patch (I hope) is attached. This version includes few minor fixes too. I think it is commitable now. Thanks, Jung-uk Kim > Thanks, > > JK > > > Juergen --Boundary-00=_M6dcCGxTk+H4CWI Content-Type: text/x-diff; charset="iso-8859-1"; name="qemu-port.diff" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="qemu-port.diff" Index: Makefile =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/Makefile,v retrieving revision 1.22 diff -u -r1.22 Makefile --- Makefile 8 Mar 2005 23:02:58 -0000 1.22 +++ Makefile 29 Apr 2005 06:32:57 -0000 @@ -6,43 +6,55 @@ # PORTNAME= qemu -PORTVERSION= 0.6.2s.20050305 +PORTVERSION= 0.7.0 CATEGORIES= emulators -MASTER_SITES= http://people.fruitsalad.org/nox/qemu/ \ - http://dad-answers.com/qemu/ -DISTNAME= ${PORTNAME}-snapshot-2005-03-05_23 +MASTER_SITES= http://www.qemu.org/ MAINTAINER= nox@jelal.kn-bremen.de COMMENT= QEMU CPU Emulator BUILD_DEPENDS+= texi2html:${PORTSDIR}/textproc/texi2html +.if !defined(WITHOUT_SAMBA) RUN_DEPENDS+= ${LOCALBASE}/sbin/smbd:${PORTSDIR}/net/samba +.endif HAS_CONFIGURE= yes -USE_BZIP2= yes USE_GMAKE= yes USE_GETOPT_LONG= yes USE_SDL= sdl USE_PERL5= yes PATCH_STRIP= -p1 -CONFIGURE_ARGS+= --prefix=${PREFIX} --cc=${CC}\ -I${PREFIX}/include +CONFIGURE_ARGS+= --prefix=${PREFIX} --cc=${CC} +MAKE_ENV+= BSD_MAKE=${MAKE} MAN1= qemu.1 qemu-img.1 -ONLY_FOR_ARCHS= i386 amd64 powerpc +ONLY_FOR_ARCHS= amd64 i386 # gcc34 (system cc on 5.x now) has problems with qemu on amd64 # (doesnt build target-i386/op.c), try the one in ports which is newer .include -.if ${ARCH} == "amd64" && ${OSVERSION} >= 502126 -BROKEN= Does not compile -CC= gcc34 -CXX= g++34 +.if ${ARCH} == "amd64" +ARCH= x86_64 +.if ${OSVERSION} >= 502126 BUILD_DEPENDS+= gcc34:${PORTSDIR}/lang/gcc34 GCCVERSION= 030402 +CC= gcc34 +.endif .else USE_GCC= 3.4 .endif +pre-everything:: +.if !defined(WITHOUT_SAMBA) + @${ECHO_MSG} "Notice: if you don't need qemu's -smb option (smb-export local dir to guest)" + @${ECHO_MSG} "then you can omit this port's samba dependency by defining WITHOUT_SAMBA." +.endif + +pre-patch: + @for A in ${ONLY_FOR_ARCHS}; do \ + ${MKDIR} ${WRKSRC}/bsd/$$A; \ + done + post-install: @${CAT} ${PKGMESSAGE} Index: distinfo =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/distinfo,v retrieving revision 1.16 diff -u -r1.16 distinfo --- distinfo 8 Mar 2005 23:02:58 -0000 1.16 +++ distinfo 29 Apr 2005 06:32:57 -0000 @@ -1,2 +1,2 @@ -MD5 (qemu-snapshot-2005-03-05_23.tar.bz2) = f0ef5e1e3570df94d910d00cc9f62f6e -SIZE (qemu-snapshot-2005-03-05_23.tar.bz2) = 962774 +MD5 (qemu-0.7.0.tar.gz) = 234e9ace03b00259bb57dc5a9c633056 +SIZE (qemu-0.7.0.tar.gz) = 1211802 Index: files/patch-aa =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/files/patch-aa,v retrieving revision 1.3 diff -u -r1.3 patch-aa --- files/patch-aa 25 Oct 2004 14:57:30 -0000 1.3 +++ files/patch-aa 29 Apr 2005 06:32:57 -0000 @@ -10,222 +10,3 @@ qemu.1: qemu-doc.texi ./texi2pod.pl $< qemu.pod -Only in qemu-0.5.5: qemu.1 -diff -urd --exclude=CVS ../cvs/qemu/target-i386/cpu.h qemu-0.5.5/target-i386/cpu.h ---- ../cvs/qemu/target-i386/cpu.h Thu May 20 15:01:56 2004 -+++ qemu-0.5.5/target-i386/cpu.h Sun May 30 05:16:10 2004 -@@ -259,7 +259,7 @@ - CC_OP_NB, - }; - --#if (defined(__i386__) || defined(__x86_64__)) && !defined(_BSD) -+#if defined(__i386__) || defined(__x86_64__) - #define USE_X86LDOUBLE - #endif - -diff -urd --exclude=CVS ../cvs/qemu/target-i386/exec.h qemu-0.5.5/target-i386/exec.h ---- ../cvs/qemu/target-i386/exec.h Sat May 29 12:08:52 2004 -+++ qemu-0.5.5/target-i386/exec.h Sun May 30 05:19:43 2004 -@@ -293,6 +293,22 @@ - - #endif /* !defined(CONFIG_USER_ONLY) */ - -+#if defined(_BSD) && defined(USE_X86LDOUBLE) -+#include -+/*int rintl(long double __x); -+long int lrintl(long double __x); -+long long int llrintl(long double __x); -+long double powl(long double __x, long double __y); -+long double logl(long double __x); -+long double tanl(long double __x); -+long double atan2l(long double __y, long double __x); -+long double ceill(long double __x); -+long double floorl(long double __x); -+long double sqrtl(long double __x); -+long double sinl(long double __x); -+long double cosl(long double __x);*/ -+#endif -+ - #ifdef USE_X86LDOUBLE - /* use long double functions */ - #define lrint lrintl -@@ -310,7 +326,7 @@ - #define rint rintl - #endif - --#if !defined(_BSD) -+#if !defined(_BSD) || defined(USE_X86LDOUBLE) - extern int lrint(CPU86_LDouble x); - extern int64_t llrint(CPU86_LDouble x); - #else -diff -urd --exclude=CVS ../cvs/qemu/target-i386/op.c qemu-0.5.5/target-i386/op.c ---- ../cvs/qemu/target-i386/op.c Sat May 29 12:08:52 2004 -+++ qemu-0.5.5/target-i386/op.c Sun May 30 05:40:54 2004 -@@ -1304,6 +1304,149 @@ - functions comes from the LGPL'ed x86 emulator found in the Willows - TWIN windows emulator. */ - -+#if defined(_BSD) && defined(USE_X86LDOUBLE) -+ -+CPU86_LDouble rintl(CPU86_LDouble __x) { -+ CPU86_LDouble __rintres; -+ __asm__ __volatile__ -+ ("fistp %0" -+ : "=m" (__rintres) : "t" (__x) : "st"); -+ return __rintres; -+} -+ -+int lrintl(CPU86_LDouble __x) { -+ int __lrintres; -+ __asm__ __volatile__ -+ ("fistpl %0" -+ : "=m" (__lrintres) : "t" (__x) : "st"); -+ return __lrintres; -+} -+ -+ -+int64_t llrintl(CPU86_LDouble __x) { -+ int64_t __llrintres; -+ __asm__ __volatile__ -+ ("fistpll %0" -+ : "=m" (__llrintres) : "t" (__x) : "st"); -+ return __llrintres; -+} -+ -+CPU86_LDouble powl(CPU86_LDouble __x, CPU86_LDouble __y) { -+ register CPU86_LDouble __value; -+ register long double __exponent; -+ __extension__ long long int __p = (long long int) __y; -+ if (__x == 0.0) -+ { -+ if (__y > 0.0) -+ return __y == (double) __p && (__p & 1) != 0 ? __x : 0.0; -+ else if (__y < 0.0) -+ return (__y == (double) __p && (-__p & 1) != 0 -+ ? 1.0 / __x : 1.0 / fabs (__x)); -+ } -+ if (__y == (double) __p) -+ { -+ long double __r = 1.0; -+ if (__p == 0) -+ return 1.0; -+ if (__p < 0) -+ { -+ __p = -__p; -+ __x = 1.0 / __x; -+ } -+ while (1) -+ { -+ if (__p & 1) -+ __r *= __x; -+ __p >>= 1; -+ if (__p == 0) -+ return __r; -+ __x *= __x; -+ } -+ /* NOTREACHED */ -+ } -+ __asm __volatile__ -+ ("fyl2x" : "=t" (__value) : "0" (__x), "u" (1.0) : "st(1)"); -+ __asm __volatile__ -+ ("fmul %%st(1) # y * log2(x)\n\t" -+ "fst %%st(1)\n\t" -+ "frndint # int(y * log2(x))\n\t" -+ "fxch\n\t" -+ "fsub %%st(1) # fract(y * log2(x))\n\t" -+ "f2xm1 # 2^(fract(y * log2(x))) - 1\n\t" -+ : "=t" (__value), "=u" (__exponent) : "0" (__y), "1" (__value)); -+ __value += 1.0; -+ __asm __volatile__ -+ ("fscale" -+ : "=t" (__value) : "0" (__value), "u" (__exponent)); -+ return __value; -+} -+ -+CPU86_LDouble logl(CPU86_LDouble __x) { -+ register CPU86_LDouble __result; -+ __asm __volatile__ ("fldln2; fxch; fyl2x" : "=t" (__result) : "0" (__x) : "st(1)"); -+ return __result; -+} -+ -+CPU86_LDouble tanl(CPU86_LDouble __x) { -+ register CPU86_LDouble __value; -+ register CPU86_LDouble __value2 __attribute__ ((__unused__)); -+ __asm __volatile__ -+ ("fptan" -+ : "=t" (__value2), "=u" (__value) : "0" (__x)); -+ return __value; -+} -+ -+CPU86_LDouble atan2l(CPU86_LDouble __y, CPU86_LDouble __x) { -+ register CPU86_LDouble __value; -+ __asm __volatile__ -+ ("fpatan" -+ : "=t" (__value) : "0" (__x), "u" (__y) : "st(1)"); -+ return __value; -+} -+ -+CPU86_LDouble ceill(CPU86_LDouble __x) { -+ register CPU86_LDouble __value; -+ __volatile unsigned short int __cw; -+ __volatile unsigned short int __cwtmp; -+ __asm __volatile ("fnstcw %0" : "=m" (__cw)); -+ __cwtmp = (__cw & 0xf3ff) | 0x0800; /* rounding up */ -+ __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); -+ __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); -+ __asm __volatile ("fldcw %0" : : "m" (__cw)); -+ return __value; -+} -+ -+CPU86_LDouble floorl(CPU86_LDouble __x) { -+ register CPU86_LDouble __value; -+ __volatile unsigned short int __cw; -+ __volatile unsigned short int __cwtmp; -+ __asm __volatile ("fnstcw %0" : "=m" (__cw)); -+ __cwtmp = (__cw & 0xf3ff) | 0x0400; /* rounding down */ -+ __asm __volatile ("fldcw %0" : : "m" (__cwtmp)); -+ __asm __volatile ("frndint" : "=t" (__value) : "0" (__x)); -+ __asm __volatile ("fldcw %0" : : "m" (__cw)); -+ return __value; -+} -+ -+CPU86_LDouble sqrtl(CPU86_LDouble __x) { -+ register CPU86_LDouble __result; -+ __asm __volatile__ ("fsqrt" : "=t" (__result) : "0" (__x)); -+ return __result; -+} -+ -+CPU86_LDouble sinl(CPU86_LDouble __x) { -+ register CPU86_LDouble __result; -+ __asm __volatile__ ("fsin" : "=t" (__result) : "0" (__x)); -+ return __result; -+} -+ -+CPU86_LDouble cosl(CPU86_LDouble __x) { -+ register CPU86_LDouble __result; -+ __asm __volatile__ ("fcos" : "=t" (__result) : "0" (__x)); -+ return __result; -+} -+#endif -+ - #if defined(__powerpc__) - extern CPU86_LDouble copysign(CPU86_LDouble, CPU86_LDouble); - -diff -urd --exclude=CVS ../cvs/qemu/vl.c qemu-0.5.5/vl.c ---- ../cvs/qemu/vl.c Wed May 26 23:12:06 2004 -+++ qemu-0.5.5/vl.c Sun May 30 05:30:56 2004 -@@ -662,6 +662,14 @@ - case QEMU_TIMER_REALTIME: - #ifdef _WIN32 - return GetTickCount(); -+#elif defined(_BSD) -+ { -+ struct timeval r; -+ if (!gettimeofday(&r, NULL)) { -+ return ((CLK_TCK * 1000LL) * (int64_t)r.tv_sec -+ + ((int64_t)r.tv_usec * CLK_TCK) / 1000) / timer_freq; -+ } -+ } - #else - { - struct tms tp; Index: files/patch-ab =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/files/patch-ab,v retrieving revision 1.1 diff -u -r1.1 patch-ab --- files/patch-ab 3 Jun 2004 02:12:52 -0000 1.1 +++ files/patch-ab 29 Apr 2005 06:32:57 -0000 @@ -1,16 +0,0 @@ -Index: qemu-snapshot-2004-05-30_23-40/target-i386/op.c -@@ -1307,11 +1307,9 @@ - #if defined(_BSD) && defined(USE_X86LDOUBLE) - - CPU86_LDouble rintl(CPU86_LDouble __x) { -- CPU86_LDouble __rintres; -- __asm__ __volatile__ -- ("fistp %0" -- : "=m" (__rintres) : "t" (__x) : "st"); -- return __rintres; -+ register CPU86_LDouble __result; -+ __asm __volatile__ ("frndint" : "=t" (__result) : "0" (__x)); -+ return __result; - } - - int lrintl(CPU86_LDouble __x) { Index: files/patch-ac =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/files/patch-ac,v retrieving revision 1.1 diff -u -r1.1 patch-ac --- files/patch-ac 3 Jun 2004 02:12:52 -0000 1.1 +++ files/patch-ac 29 Apr 2005 06:32:57 -0000 @@ -4,7 +4,7 @@ if test -z "$sdl" ; then -sdl_config="sdl-config" -+sdl_config="sdl11-config" ++sdl_config="${SDL_CONFIG}" sdl=no sdl_static=no Index: files/patch-be =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/files/patch-be,v retrieving revision 1.1 diff -u -r1.1 patch-be --- files/patch-be 3 Jun 2004 02:12:52 -0000 1.1 +++ files/patch-be 29 Apr 2005 06:32:57 -0000 @@ -1,12 +1,16 @@ Index: qemu/vl.c -@@ -666,8 +667,8 @@ - { - struct timeval r; - if (!gettimeofday(&r, NULL)) { -- return ((CLK_TCK * 1000LL) * (int64_t)r.tv_sec -- + ((int64_t)r.tv_usec * CLK_TCK) / 1000) / timer_freq; +@@ -662,6 +662,14 @@ + case QEMU_TIMER_REALTIME: + #ifdef _WIN32 + return GetTickCount(); ++#elif defined(_BSD) ++ { ++ struct timeval r; ++ if (!gettimeofday(&r, NULL)) { + return ((timer_freq * 1000LL) * (int64_t)r.tv_sec + + ((int64_t)r.tv_usec * timer_freq) / 1000) / timer_freq; - } - } ++ } ++ } #else + { + struct tms tp; Index: files/patch-bh =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/files/patch-bh,v retrieving revision 1.2 diff -u -r1.2 patch-bh --- files/patch-bh 11 Jul 2004 11:41:06 -0000 1.2 +++ files/patch-bh 29 Apr 2005 06:32:57 -0000 @@ -24,68 +24,3 @@ #undef NULL #define NULL 0 #ifdef _BSD -Index: qemu/target-ppc/op_helper.c -=================================================================== -RCS file: /cvsroot/qemu/qemu/target-ppc/op_helper.c,v -retrieving revision 1.6 -diff -w -u -d -r1.6 op_helper.c ---- target-ppc/op_helper.c 21 May 2004 12:59:31 -0000 1.6 -+++ target-ppc/op_helper.c 21 May 2004 15:00:49 -0000 -@@ -210,6 +210,22 @@ - } - /* TODO: update FEX & VX */ - /* Set rounding mode */ -+#ifdef _BSD -+ switch(env->fpscr[0] & 0x3) { -+ case 0: -+ fpsetround(FP_RN); -+ break; -+ case 1: -+ fpsetround(FP_RZ); -+ break; -+ case 2: -+ fpsetround(FP_RP); -+ break; -+ case 3: -+ fpsetround(FP_RM); -+ break; -+ } -+#else - switch (env->fpscr[0] & 0x3) { - case 0: - /* Best approximation (round to nearest) */ -@@ -228,6 +244,7 @@ - fesetround(FE_DOWNWARD); - break; - } -+#endif - } - - void do_fctiw (void) -@@ -253,9 +270,13 @@ - double d; - uint64_t i; - } *p = (void *)&FT1; -+#ifdef _BSD -+ int cround = fpgetround(); -+ fpsetround(FP_RZ); -+#else - int cround = fegetround(); -- - fesetround(FE_TOWARDZERO); -+#endif - if (FT0 > (double)0x7FFFFFFF) - p->i = 0x7FFFFFFFULL << 32; - else if (FT0 < -(double)0x80000000) -@@ -264,7 +285,11 @@ - p->i = 0; - p->i |= (uint32_t)FT0; - FT0 = p->d; -+#ifdef _BSD -+ fpsetround(cround); -+#else - fesetround(cround); -+#endif - } - - void do_fnmadds (void) Index: files/patch-block.c =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/files/patch-block.c,v retrieving revision 1.2 diff -u -r1.2 patch-block.c --- files/patch-block.c 17 Nov 2004 09:47:38 -0000 1.2 +++ files/patch-block.c 29 Apr 2005 06:32:57 -0000 @@ -1,71 +0,0 @@ -Index: qemu/block.c -@@ -21,6 +21,17 @@ - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ -+ -+#include "config-host.h" -+ -+#ifdef _BSD -+#include -+#include -+#include -+#include -+#include -+#endif -+ - #include "vl.h" - #include "block_int.h" - -@@ -103,14 +103,25 @@ - { - int fd, ret, score, score_max; - BlockDriver *drv1, *drv; -- uint8_t buf[1024]; -+ uint8_t *buf; -+ size_t bufsize = 1024; -+ u_int sectorsize = 512; - - fd = open(filename, O_RDONLY | O_BINARY | O_LARGEFILE); - if (fd < 0) - return NULL; -- ret = read(fd, buf, sizeof(buf)); -+#ifdef DIOCGSECTORSIZE -+ if (!ioctl(fd, DIOCGSECTORSIZE, §orsize) && -+ sectorsize > bufsize) -+ bufsize = sectorsize; -+#endif -+ buf = malloc(bufsize); -+ if (!buf) -+ return NULL; -+ ret = read(fd, buf, bufsize); - if (ret < 0) { - close(fd); -+ free(buf); - return NULL; - } - close(fd); -@@ -124,6 +135,7 @@ - drv = drv1; - } - } -+ free(buf); - return drv; - } - -@@ -522,6 +533,15 @@ - return -1; - bs->read_only = 1; - } -+#ifdef _BSD -+ struct stat sb; -+ if (!fstat(fd,&sb) && (S_IFCHR & sb.st_mode)) { -+#ifdef DIOCGMEDIASIZE -+ if (ioctl(fd, DIOCGMEDIASIZE, (off_t *)&size)) -+#endif -+ size = lseek(fd, 0LL, SEEK_END); -+ } else -+#endif - size = lseek(fd, 0, SEEK_END); - bs->total_sectors = size / 512; - s->fd = fd; Index: files/patch-target-sparc::op_helper.c =================================================================== RCS file: /home/ncvs/ports/emulators/qemu/files/patch-target-sparc::op_helper.c,v retrieving revision 1.1 diff -u -r1.1 patch-target-sparc::op_helper.c --- files/patch-target-sparc::op_helper.c 28 Oct 2004 15:42:48 -0000 1.1 +++ files/patch-target-sparc::op_helper.c 29 Apr 2005 06:32:57 -0000 @@ -1,8 +0,0 @@ ---- qemu/target-sparc/op_helper.c.orig Mon Oct 11 02:46:24 2004 -+++ qemu/target-sparc/op_helper.c Thu Oct 28 23:28:57 2004 -@@ -1,5 +1,4 @@ - #include --#include - #include "exec.h" - - #ifdef USE_INT_TO_FLOAT_HELPERS --- files/patch-fbsd.orig Fri Apr 29 02:33:01 2005 +++ files/patch-fbsd Wed Apr 27 19:28:40 2005 @@ -0,0 +1,141 @@ +Index: qemu/Makefile +@@ -13,7 +13,7 @@ + endif + DOCS=qemu-doc.html qemu-tech.html qemu.1 qemu-img.1 + +-all: dyngen$(EXESUF) $(TOOLS) $(DOCS) ++all: bsd/libmath.a dyngen$(EXESUF) $(TOOLS) $(DOCS) + for d in $(TARGET_DIRS); do \ + $(MAKE) -C $$d $@ || exit 1 ; \ + done +@@ -25,6 +25,9 @@ + endif + endif + ++bsd/libmath.a: ++ ( cd bsd ; $(BSD_MAKE) CC=$(CC) ) ++ + qemu-img$(EXESUF): qemu-img.c block.c block-cow.c block-qcow.c aes.c block-vmdk.c block-cloop.c block-dmg.c block-bochs.c block-vpc.c + $(CC) -DQEMU_TOOL $(CFLAGS) $(LDFLAGS) $(DEFINES) -o $@ $^ -lz $(LIBS) + +@@ -33,6 +36,7 @@ + + clean: + # avoid old build problems by removing potentially incorrect old files ++ ( cd bsd ; $(BSD_MAKE) clean ) + rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h + rm -f *.o *.a $(TOOLS) dyngen$(EXESUF) TAGS *.pod *~ */*~ + $(MAKE) -C tests clean +Index: qemu/Makefile.target +@@ -391,8 +391,8 @@ + VL_LDFLAGS+=-Wl,-G0 -Wl,-T,$(SRC_PATH)/ia64.ld + endif + +-$(QEMU_SYSTEM): $(VL_OBJS) libqemu.a +- $(CC) $(VL_LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(COCOA_LIBS) $(VL_LIBS) ++$(QEMU_SYSTEM): $(VL_OBJS) libqemu.a ../bsd/libmath.a ++ $(CC) $(VL_LDFLAGS) -o $@ $^ $(LIBS) $(SDL_LIBS) $(COCOA_LIBS) $(VL_LIBS) ../bsd/libmath.a + + cocoa.o: cocoa.m + $(CC) $(CFLAGS) $(DEFINES) -c -o $@ $< +Index: qemu/fpu/softfloat-native.c +@@ -2,11 +2,15 @@ + context is supported */ + #include "softfloat.h" + #include ++#if defined(__FreeBSD__) && __FreeBSD_version < 500000 ++#include ++#endif + + void set_float_rounding_mode(int val STATUS_PARAM) + { + STATUS(float_rounding_mode) = val; +-#if defined(_BSD) && !defined(__APPLE__) ++#if defined(_BSD) && !defined(__APPLE__) && \ ++ (defined(__FreeBSD__) && __FreeBSD_version < 500000) + fpsetround(val); + #elif defined(__arm__) + /* nothing to do */ +@@ -22,7 +26,7 @@ + } + #endif + +-#if defined(_BSD) ++#if defined(_BSD) && !defined(__FreeBSD__) + #define lrint(d) ((int32_t)rint(d)) + #define llrint(d) ((int64_t)rint(d)) + #endif +Index: qemu/fpu/softfloat-native.h +@@ -1,7 +1,17 @@ + /* Native implementation of soft float functions */ + #include +-#if defined(_BSD) && !defined(__APPLE__) ++#if defined(_BSD) && !defined(__APPLE__) && \ ++ (!defined(__FreeBSD__) || __FreeBSD_version < 500000) + #include ++#if defined(__FreeBSD__) ++#define isgreater(x, y) __builtin_isgreater((x), (y)) ++#define isgreaterequal(x, y) __builtin_isgreaterequal((x), (y)) ++#define isless(x, y) __builtin_isless((x), (y)) ++#define islessequal(x, y) __builtin_islessequal((x), (y)) ++#define islessgreater(x, y) __builtin_islessgreater((x), (y)) ++#define isunordered(x, y) __builtin_isunordered((x), (y)) ++long double fabsl(long double x); ++#endif + #else + #include + #endif +@@ -33,12 +43,13 @@ + /*---------------------------------------------------------------------------- + | Software IEC/IEEE floating-point rounding mode. + *----------------------------------------------------------------------------*/ +-#if defined(_BSD) && !defined(__APPLE__) ++#if defined(_BSD) && !defined(__APPLE__) && \ ++ (!defined(__FreeBSD__) || __FreeBSD_version < 500000) + enum { + float_round_nearest_even = FP_RN, +- float_round_down = FE_RM, +- float_round_up = FE_RP, +- float_round_to_zero = FE_RZ ++ float_round_down = FP_RM, ++ float_round_up = FP_RP, ++ float_round_to_zero = FP_RZ + }; + #elif defined(__arm__) + enum { +Index: qemu/fpu/softfloat.h +@@ -84,7 +84,8 @@ + #define FLOAT128 + #else + /* native float support */ +-#if (defined(__i386__) || defined(__x86_64__)) && !defined(_BSD) ++#if (defined(__i386__) || defined(__x86_64__)) && \ ++ (!defined(_BSD) || defined(__FreeBSD__)) + #define FLOATX80 + #endif + #endif /* !CONFIG_SOFTFLOAT */ +Index: qemu/target-ppc/op_helper.c +@@ -303,6 +303,13 @@ + FT0 = sqrt(FT0); + } + ++#ifndef isnormal ++#define isnormal(x) \ ++ ((sizeof (x) == sizeof (float)) ? __isnormalf(x) \ ++ : (sizeof (x) == sizeof (double)) ? __isnormal(x) \ ++ : __isnormall(x)) ++#endif ++ + void do_fres (void) + { + union { +Index: qemu/x86_64.ld +@@ -2,7 +2,7 @@ + OUTPUT_FORMAT("elf64-x86-64", "elf64-x86-64", "elf64-x86-64") + OUTPUT_ARCH(i386:x86-64) + ENTRY(_start) +-SEARCH_DIR("/lib64"); SEARCH_DIR("/usr/lib64"); SEARCH_DIR("/usr/local/lib64"); ++SEARCH_DIR("/lib"); SEARCH_DIR("/usr/lib"); SEARCH_DIR("/usr/local/lib"); + SECTIONS + { + /* Read-only sections, merged into text segment: */ --- files/patch-libmath.orig Fri Apr 29 02:33:01 2005 +++ files/patch-libmath Fri Apr 29 02:31:02 2005 @@ -0,0 +1,2524 @@ +diff -Nru qemu-0.7.0/bsd.orig/Makefile qemu-0.7.0/bsd/Makefile +--- qemu-0.7.0/bsd.orig/Makefile Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/Makefile Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,32 @@ ++SRCS= ${MACHINE_ARCH}/e_atan2l.c \ ++ ${MACHINE_ARCH}/e_logl.S \ ++ ${MACHINE_ARCH}/e_powl.S \ ++ ${MACHINE_ARCH}/e_remainderl.S \ ++ ${MACHINE_ARCH}/e_sqrtl.c \ ++ ${MACHINE_ARCH}/s_ceill.S \ ++ ${MACHINE_ARCH}/s_cosl.S \ ++ ${MACHINE_ARCH}/s_floorl.S \ ++ ${MACHINE_ARCH}/s_isnormal.c \ ++ ${MACHINE_ARCH}/s_llrint.S \ ++ ${MACHINE_ARCH}/s_llrintf.S \ ++ ${MACHINE_ARCH}/s_llrintl.S \ ++ ${MACHINE_ARCH}/s_lrint.S \ ++ ${MACHINE_ARCH}/s_lrintf.S \ ++ ${MACHINE_ARCH}/s_lrintl.S \ ++ ${MACHINE_ARCH}/s_rintl.c \ ++ ${MACHINE_ARCH}/s_round.c \ ++ ${MACHINE_ARCH}/s_sinl.S \ ++ ${MACHINE_ARCH}/s_tanl.S ++ ++OBJS= ${SRCS:R:S/$/.o/} ++ ++CFLAGS= -O2 -Wall -I. ++ ++all: libmath.a ++ ++libmath.a: ${OBJS} ++ rm -f $@ ++ ${AR} rcs $@ ${OBJS:T} ++ ++clean: ++ rm -f ${OBJS:T} libmath.a +diff -Nru qemu-0.7.0/bsd.orig/amd64/e_atan2l.c qemu-0.7.0/bsd/amd64/e_atan2l.c +--- qemu-0.7.0/bsd.orig/amd64/e_atan2l.c Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/amd64/e_atan2l.c Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,20 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++ ++long double ++__ieee754_atan2l (long double y, long double x) ++{ ++ long double res; ++ ++ asm ("fpatan" : "=t" (res) : "u" (y), "0" (x) : "st(1)"); ++ ++ return res; ++} ++ ++weak_alias(__ieee754_atan2l, atan2l) +diff -Nru qemu-0.7.0/bsd.orig/amd64/e_logl.S qemu-0.7.0/bsd/amd64/e_logl.S +--- qemu-0.7.0/bsd.orig/amd64/e_logl.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/amd64/e_logl.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,59 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ * Adapted for x86-64 by Andreas Jaeger . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ ++#ifdef __ELF__ ++ .section .rodata ++#else ++ .text ++#endif ++ .align ALIGNARG(4) ++ ASM_TYPE_DIRECTIVE(one,@object) ++one: .double 1.0 ++ ASM_SIZE_DIRECTIVE(one) ++ /* It is not important that this constant is precise. It is only ++ a value which is known to be on the safe side for using the ++ fyl2xp1 instruction. */ ++ ASM_TYPE_DIRECTIVE(limit,@object) ++limit: .double 0.29 ++ ASM_SIZE_DIRECTIVE(limit) ++ ++ ++#ifdef PIC ++#define MO(op) op##(%rip) ++#else ++#define MO(op) op ++#endif ++ ++ .text ++ENTRY(__ieee754_logl) ++ fldln2 // log(2) ++ fldt 8(%rsp) // x : log(2) ++ fld %st // x : x : log(2) ++ fsubl MO(one) // x-1 : x : log(2) ++ fld %st // x-1 : x-1 : x : log(2) ++ fabs // |x-1| : x-1 : x : log(2) ++ fcompl MO(limit) // x-1 : x : log(2) ++ fnstsw // x-1 : x : log(2) ++ andb $0x45, %ah ++ jz 2f ++ fstp %st(1) // x-1 : log(2) ++ fyl2xp1 // log(x) ++ ret ++ ++2: fstp %st(0) // x : log(2) ++ fyl2x // log(x) ++ ret ++END (__ieee754_logl) ++ ++weak_alias(__ieee754_logl,logl) +diff -Nru qemu-0.7.0/bsd.orig/amd64/e_powl.S qemu-0.7.0/bsd/amd64/e_powl.S +--- qemu-0.7.0/bsd.orig/amd64/e_powl.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/amd64/e_powl.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,341 @@ ++/* ix87 specific implementation of pow function. ++ Copyright (C) 1996, 1997, 1998, 1999, 2001, 2004 Free Software Foundation, Inc. ++ This file is part of the GNU C Library. ++ Contributed by Ulrich Drepper , 1996. ++ ++ The GNU C Library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ The GNU C Library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with the GNU C Library; if not, write to the Free ++ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++ 02111-1307 USA. */ ++ ++#include ++#include ++ ++#ifdef __ELF__ ++ .section .rodata ++#else ++ .text ++#endif ++ ++ .align ALIGNARG(4) ++ ASM_TYPE_DIRECTIVE(infinity,@object) ++inf_zero: ++infinity: ++ .byte 0, 0, 0, 0, 0, 0, 0xf0, 0x7f ++ ASM_SIZE_DIRECTIVE(infinity) ++ ASM_TYPE_DIRECTIVE(zero,@object) ++zero: .double 0.0 ++ ASM_SIZE_DIRECTIVE(zero) ++ ASM_TYPE_DIRECTIVE(minf_mzero,@object) ++minf_mzero: ++minfinity: ++ .byte 0, 0, 0, 0, 0, 0, 0xf0, 0xff ++mzero: ++ .byte 0, 0, 0, 0, 0, 0, 0, 0x80 ++ ASM_SIZE_DIRECTIVE(minf_mzero) ++ ASM_TYPE_DIRECTIVE(one,@object) ++one: .double 1.0 ++ ASM_SIZE_DIRECTIVE(one) ++ ASM_TYPE_DIRECTIVE(limit,@object) ++limit: .double 0.29 ++ ASM_SIZE_DIRECTIVE(limit) ++ ASM_TYPE_DIRECTIVE(p63,@object) ++p63: ++ .byte 0, 0, 0, 0, 0, 0, 0xe0, 0x43 ++ ASM_SIZE_DIRECTIVE(p63) ++ ++#ifdef PIC ++#define MO(op) op##(%rip) ++#else ++#define MO(op) op ++#endif ++ ++ .text ++ENTRY(__ieee754_powl) ++ fldt 24(%rsp) // y ++ fxam ++ ++ ++ fnstsw ++ movb %ah, %dl ++ andb $0x45, %ah ++ cmpb $0x40, %ah // is y == 0 ? ++ je 11f ++ ++ cmpb $0x05, %ah // is y == ±inf ? ++ je 12f ++ ++ cmpb $0x01, %ah // is y == NaN ? ++ je 30f ++ ++ fldt 8(%rsp) // x : y ++ ++ fxam ++ fnstsw ++ movb %ah, %dh ++ andb $0x45, %ah ++ cmpb $0x40, %ah ++ je 20f // x is ±0 ++ ++ cmpb $0x05, %ah ++ je 15f // x is ±inf ++ ++ fxch // y : x ++ ++ /* fistpll raises invalid exception for |y| >= 1L<<63. */ ++ fldl MO(p63) // 1L<<63 : y : x ++ fld %st(1) // y : 1L<<63 : y : x ++ fabs // |y| : 1L<<63 : y : x ++ fcomip %st(1), %st // 1L<<63 : y : x ++ fstp %st(0) // y : x ++ jnc 2f ++ ++ /* First see whether `y' is a natural number. In this case we ++ can use a more precise algorithm. */ ++ fld %st // y : y : x ++ fistpll -8(%rsp) // y : x ++ fildll -8(%rsp) // int(y) : y : x ++ fucomip %st(1),%st // y : x ++ jne 2f ++ ++ /* OK, we have an integer value for y. */ ++ mov -8(%rsp),%eax ++ mov -4(%rsp),%edx ++ orl $0, %edx ++ fstp %st(0) // x ++ jns 4f // y >= 0, jump ++ fdivrl MO(one) // 1/x (now referred to as x) ++ negl %eax ++ adcl $0, %edx ++ negl %edx ++4: fldl MO(one) // 1 : x ++ fxch ++ ++6: shrdl $1, %edx, %eax ++ jnc 5f ++ fxch ++ fmul %st(1) // x : ST*x ++ fxch ++5: fmul %st(0), %st // x*x : ST*x ++ shrl $1, %edx ++ movl %eax, %ecx ++ orl %edx, %ecx ++ jnz 6b ++ fstp %st(0) // ST*x ++ ret ++ ++ /* y is ±NAN */ ++30: fldt 8(%rsp) // x : y ++ fldl MO(one) // 1.0 : x : y ++ fucomip %st(1),%st // x : y ++ je 31f ++ fxch // y : x ++31: fstp %st(1) ++ ret ++ ++ .align ALIGNARG(4) ++2: /* y is a real number. */ ++ fxch // x : y ++ fldl MO(one) // 1.0 : x : y ++ fld %st(1) // x : 1.0 : x : y ++ fsub %st(1) // x-1 : 1.0 : x : y ++ fabs // |x-1| : 1.0 : x : y ++ fcompl MO(limit) // 1.0 : x : y ++ fnstsw ++ fxch // x : 1.0 : y ++ test $4500,%eax ++ jz 7f ++ fsub %st(1) // x-1 : 1.0 : y ++ fyl2xp1 // log2(x) : y ++ jmp 8f ++ ++7: fyl2x // log2(x) : y ++8: fmul %st(1) // y*log2(x) : y ++ fxam ++ fnstsw ++ andb $0x45, %ah ++ cmpb $0x05, %ah // is y*log2(x) == ±inf ? ++ je 28f ++ fst %st(1) // y*log2(x) : y*log2(x) ++ frndint // int(y*log2(x)) : y*log2(x) ++ fsubr %st, %st(1) // int(y*log2(x)) : fract(y*log2(x)) ++ fxch // fract(y*log2(x)) : int(y*log2(x)) ++ f2xm1 // 2^fract(y*log2(x))-1 : int(y*log2(x)) ++ faddl MO(one) // 2^fract(y*log2(x)) : int(y*log2(x)) ++ fscale // 2^fract(y*log2(x))*2^int(y*log2(x)) : int(y*log2(x)) ++ fstp %st(1) // 2^fract(y*log2(x))*2^int(y*log2(x)) ++ ret ++ ++28: fstp %st(1) // y*log2(x) ++ fldl MO(one) // 1 : y*log2(x) ++ fscale // 2^(y*log2(x)) : y*log2(x) ++ fstp %st(1) // 2^(y*log2(x)) ++ ret ++ ++ // pow(x,±0) = 1 ++ .align ALIGNARG(4) ++11: fstp %st(0) // pop y ++ fldl MO(one) ++ ret ++ ++ // y == ±inf ++ .align ALIGNARG(4) ++12: fstp %st(0) // pop y ++ fldt 8(%rsp) // x ++ fabs ++ fcompl MO(one) // < 1, == 1, or > 1 ++ fnstsw ++ andb $0x45, %ah ++ cmpb $0x45, %ah ++ je 13f // jump if x is NaN ++ ++ cmpb $0x40, %ah ++ je 14f // jump if |x| == 1 ++ ++ shlb $1, %ah ++ xorb %ah, %dl ++ andl $2, %edx ++#ifdef PIC ++ lea inf_zero(%rip),%rcx ++ fldl (%rcx, %rdx, 4) ++#else ++ fldl inf_zero(,%rdx, 4) ++#endif ++ ret ++ ++ .align ALIGNARG(4) ++14: fldl MO(one) ++ ret ++ ++ .align ALIGNARG(4) ++13: fldt 8(%rsp) // load x == NaN ++ ret ++ ++ .align ALIGNARG(4) ++ // x is ±inf ++15: fstp %st(0) // y ++ testb $2, %dh ++ jz 16f // jump if x == +inf ++ ++ // We must find out whether y is an odd integer. ++ fld %st // y : y ++ fistpll -8(%rsp) // y ++ fildll -8(%rsp) // int(y) : y ++ fucomip %st(1),%st ++ ffreep %st // ++ jne 17f ++ ++ // OK, the value is an integer, but is it odd? ++ mov -8(%rsp), %eax ++ mov -4(%rsp), %edx ++ andb $1, %al ++ jz 18f // jump if not odd ++ // It's an odd integer. ++ shrl $31, %edx ++#ifdef PIC ++ lea minf_mzero(%rip),%rcx ++ fldl (%rcx, %rdx, 8) ++#else ++ fldl minf_mzero(,%rdx, 8) ++#endif ++ ret ++ ++ .align ALIGNARG(4) ++16: fcompl MO(zero) ++ fnstsw ++ shrl $5, %eax ++ andl $8, %eax ++#ifdef PIC ++ lea inf_zero(%rip),%rcx ++ fldl (%rcx, %rax, 1) ++#else ++ fldl inf_zero(,%rax, 1) ++#endif ++ ret ++ ++ .align ALIGNARG(4) ++17: shll $30, %edx // sign bit for y in right position ++18: shrl $31, %edx ++#ifdef PIC ++ lea inf_zero(%rip),%rcx ++ fldl (%rcx, %rdx, 8) ++#else ++ fldl inf_zero(,%rdx, 8) ++#endif ++ ret ++ ++ .align ALIGNARG(4) ++ // x is ±0 ++20: fstp %st(0) // y ++ testb $2, %dl ++ jz 21f // y > 0 ++ ++ // x is ±0 and y is < 0. We must find out whether y is an odd integer. ++ testb $2, %dh ++ jz 25f ++ ++ fld %st // y : y ++ fistpll -8(%rsp) // y ++ fildll -8(%rsp) // int(y) : y ++ fucomip %st(1),%st ++ ffreep %st // ++ jne 26f ++ ++ // OK, the value is an integer, but is it odd? ++ mov -8(%rsp),%eax ++ mov -4(%rsp),%edx ++ andb $1, %al ++ jz 27f // jump if not odd ++ // It's an odd integer. ++ // Raise divide-by-zero exception and get minus infinity value. ++ fldl MO(one) ++ fdivl MO(zero) ++ fchs ++ ret ++ ++25: fstp %st(0) ++26: ++27: // Raise divide-by-zero exception and get infinity value. ++ fldl MO(one) ++ fdivl MO(zero) ++ ret ++ ++ .align ALIGNARG(4) ++ // x is ±0 and y is > 0. We must find out whether y is an odd integer. ++21: testb $2, %dh ++ jz 22f ++ ++ fld %st // y : y ++ fistpll -8(%rsp) // y ++ fildll -8(%rsp) // int(y) : y ++ fucomip %st(1),%st ++ ffreep %st // ++ jne 23f ++ ++ // OK, the value is an integer, but is it odd? ++ mov -8(%rsp),%eax ++ mov -4(%rsp),%edx ++ andb $1, %al ++ jz 24f // jump if not odd ++ // It's an odd integer. ++ fldl MO(mzero) ++ ret ++ ++22: fstp %st(0) ++23: ++24: fldl MO(zero) ++ ret ++ ++END(__ieee754_powl) ++ ++weak_alias(__ieee754_powl,powl) +diff -Nru qemu-0.7.0/bsd.orig/amd64/e_remainderl.S qemu-0.7.0/bsd/amd64/e_remainderl.S +--- qemu-0.7.0/bsd.orig/amd64/e_remainderl.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/amd64/e_remainderl.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,23 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ * Adapted for x86-64 by Andreas Jaeger . ++ */ ++ ++#include ++#include ++ ++ENTRY(__ieee754_remainderl) ++ fldt 24(%rsp) ++ fldt 8(%rsp) ++1: fprem1 ++ fstsw %ax ++ testl $0x400,%eax ++ jnz 1b ++ fstp %st(1) ++ ret ++END (__ieee754_remainderl) ++ ++weak_alias(__ieee754_remainderl,remainderl) +diff -Nru qemu-0.7.0/bsd.orig/amd64/e_sqrtl.c qemu-0.7.0/bsd/amd64/e_sqrtl.c +--- qemu-0.7.0/bsd.orig/amd64/e_sqrtl.c Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/amd64/e_sqrtl.c Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,20 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++ ++long double ++__ieee754_sqrtl (long double x) ++{ ++ long double res; ++ ++ asm ("fsqrt" : "=t" (res) : "0" (x)); ++ ++ return res; ++} ++ ++weak_alias(__ieee754_sqrtl,sqrtl) +diff -Nru qemu-0.7.0/bsd.orig/amd64/s_ceill.S qemu-0.7.0/bsd/amd64/s_ceill.S +--- qemu-0.7.0/bsd.orig/amd64/s_ceill.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/amd64/s_ceill.S Fri Apr 29 02:22:18 2005 +@@ -0,0 +1,246 @@ ++/* ++ * ==================================================== ++ * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. ++ * ++ * Developed at SunPro, a Sun Microsystems, Inc. business. ++ * Permission to use, copy, modify, and distribute this ++ * software is freely granted, provided that this notice ++ * is preserved. ++ * ==================================================== ++ * ++ * From: @(#)s_ceil.c 5.1 93/09/24 ++ */ ++/* XXX: generated from src/lib/msun/src/s_ceill.c */ ++ ++#include ++ ++__FBSDID("$FreeBSD: src/lib/msun/src/s_ceill.c,v 1.4 2005/04/28 19:45:55 stefanf Exp $") ++ ++ .file "s_ceill.c" ++ .section .rodata.cst8,"aM",@progbits,8 ++ .p2align 3 ++.LC0: ++ .long 2281731484 ++ .long 2117592124 ++ .text ++ .p2align 4,,15 ++.globl ceill ++ .type ceill, @function ++ceill: ++.LFB17: ++ pushq %rbp ++.LCFI0: ++ pushq %rbx ++.LCFI1: ++ fldt 24(%rsp) ++ movq $0, -16(%rsp) ++ fld %st(0) ++ fstpt -40(%rsp) ++ movl -32(%rsp), %edi ++ movq -40(%rsp), %rsi ++ movl %edi, -16(%rsp) ++ movl -16(%rsp), %r11d ++ movq %rsi, -24(%rsp) ++ movl %r11d, %r10d ++ andl $32767, %r10d ++ leal -16383(%r10), %r8d ++ cmpl $30, %r8d ++ jg .L2 ++ testl %r8d, %r8d ++ js .L38 ++ movl -20(%rsp), %r9d ++ leal 1(%r8), %ecx ++ mov -24(%rsp), %eax ++ movl $4294967295, %ebp ++ movq %rsi, -40(%rsp) ++ movl %edi, -32(%rsp) ++ shrq %cl, %rbp ++ mov %r9d, %ebx ++ movq %rbx, %rdx ++ andq %rbp, %rdx ++ orq %rax, %rdx ++ fldt -40(%rsp) ++ je .L42 ++ ffreep %st(0) ++ testb $-128, -15(%rsp) ++ jne .L12 ++ movl $31, %ecx ++ movl $1, %eax ++ subl %r8d, %ecx ++ salq %cl, %rax ++ addl %eax, %r9d ++ mov %r9d, %eax ++ cmpq %rbx, %rax ++ jae .L32 ++ leal 1(%r10), %edx ++ movl %r11d, %eax ++ orl $-2147483648, %r9d ++ andw $-32768, %ax ++ andw $32767, %dx ++ orl %edx, %eax ++ movw %ax, -16(%rsp) ++.L32: ++ movl %r9d, -20(%rsp) ++.L12: ++ faddl .LC0(%rip) ++ fldz ++ fxch %st(1) ++ fucomip %st(1), %st ++ fstp %st(0) ++ jbe .L31 ++ movl %ebp, %eax ++ movl $0, -24(%rsp) ++ notl %eax ++ andl %eax, %r9d ++ movl %r9d, -20(%rsp) ++ .p2align 4,,7 ++.L31: ++ movq -24(%rsp), %rsi ++ movl -16(%rsp), %edi ++ movq %rsi, -40(%rsp) ++ movl %edi, -32(%rsp) ++ fldt -40(%rsp) ++ popq %rbx ++ popq %rbp ++ ret ++ .p2align 4,,7 ++.L2: ++ cmpl $62, %r8d ++ jle .L45 ++.L44: ++ ffreep %st(0) ++.L17: ++ movq %rsi, -40(%rsp) ++ movl %edi, -32(%rsp) ++ fldt -40(%rsp) ++ popq %rbx ++ popq %rbp ++ ret ++ .p2align 4,,7 ++.L45: ++ movl -24(%rsp), %edx ++ leal 1(%r8), %ecx ++ movq $-1, %rbx ++ movq %rsi, -40(%rsp) ++ movl %edi, -32(%rsp) ++ shrq %cl, %rbx ++ mov %edx, %r9d ++ testq %rbx, %r9 ++ fldt -40(%rsp) ++ je .L42 ++ ffreep %st(0) ++ testb $-128, -15(%rsp) ++ jne .L20 ++ cmpl $31, %r8d ++ je .L36 ++ movl $63, %ecx ++ movl $1, %eax ++ subl %r8d, %ecx ++ salq %cl, %rax ++ leal (%rdx,%rax), %eax ++ movl %eax, -24(%rsp) ++ mov %eax, %eax ++ cmpq %r9, %rax ++ jae .L20 ++.L36: ++ movl -20(%rsp), %eax ++ leal 1(%rax), %ecx ++ cmpl %eax, %ecx ++ jae .L34 ++ leal 1(%r10), %edx ++ movl %r11d, %eax ++ orl $-2147483648, %ecx ++ andw $-32768, %ax ++ andw $32767, %dx ++ orl %edx, %eax ++ movw %ax, -16(%rsp) ++.L34: ++ movl %ecx, -20(%rsp) ++ .p2align 4,,7 ++.L20: ++ faddl .LC0(%rip) ++ fldz ++ fxch %st(1) ++ fucomip %st(1), %st ++ fstp %st(0) ++ jbe .L31 ++ movl %ebx, %eax ++ notl %eax ++ andl %eax, -24(%rsp) ++ jmp .L31 ++ .p2align 4,,7 ++.L42: ++ fstp %st(1) ++ popq %rbx ++ popq %rbp ++ ret ++ .p2align 4,,7 ++.L38: ++ fldl .LC0(%rip) ++ faddp %st, %st(1) ++ fldz ++ fxch %st(1) ++ fucomip %st(1), %st ++ jbe .L44 ++ testl %r10d, %r10d ++ jle .L39 ++.L7: ++ movabsq $-9223372036854775808, %rsi ++ movl $16383, %edi ++ testb $-128, -15(%rsp) ++ movq %rsi, -40(%rsp) ++ movl %edi, -32(%rsp) ++ fldt -40(%rsp) ++ fcmovne %st(1), %st ++ fstp %st(1) ++ fstpt -40(%rsp) ++ movq -40(%rsp), %rsi ++ movl -32(%rsp), %edi ++ movq %rsi, -24(%rsp) ++ movl %edi, -16(%rsp) ++ jmp .L17 ++.L39: ++ movl -24(%rsp), %eax ++ orl -20(%rsp), %eax ++ je .L44 ++ jmp .L7 ++.LFE17: ++ .size ceill, .-ceill ++ .section .eh_frame,"a",@progbits ++.Lframe1: ++ .long .LECIE1-.LSCIE1 ++.LSCIE1: ++ .long 0x0 ++ .byte 0x1 ++ .string "" ++ .uleb128 0x1 ++ .sleb128 -8 ++ .byte 0x10 ++ .byte 0xc ++ .uleb128 0x7 ++ .uleb128 0x8 ++ .byte 0x90 ++ .uleb128 0x1 ++ .p2align 3 ++.LECIE1: ++.LSFDE1: ++ .long .LEFDE1-.LASFDE1 ++.LASFDE1: ++ .long .LASFDE1-.Lframe1 ++ .quad .LFB17 ++ .quad .LFE17-.LFB17 ++ .byte 0x4 ++ .long .LCFI0-.LFB17 ++ .byte 0xe ++ .uleb128 0x10 ++ .byte 0x4 ++ .long .LCFI1-.LCFI0 ++ .byte 0xe ++ .uleb128 0x18 ++ .byte 0x83 ++ .uleb128 0x3 ++ .byte 0x86 ++ .uleb128 0x2 ++ .p2align 3 ++.LEFDE1: ++ .ident "GCC: (GNU) 3.4.4 [FreeBSD] 20050421" +diff -Nru qemu-0.7.0/bsd.orig/amd64/s_cosl.S qemu-0.7.0/bsd/amd64/s_cosl.S +--- qemu-0.7.0/bsd.orig/amd64/s_cosl.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/amd64/s_cosl.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,33 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ * Adapted for x86-64 by Andreas Jaeger . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ENTRY(__cosl) ++ fldt 8(%rsp) ++ fcos ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 1f ++ ret ++ .align ALIGNARG(4) ++1: fldpi ++ fadd %st(0) ++ fxch %st(1) ++2: fprem1 ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 2b ++ fstp %st(1) ++ fcos ++ ret ++END (__cosl) ++weak_alias (__cosl, cosl) +diff -Nru qemu-0.7.0/bsd.orig/amd64/s_floorl.S qemu-0.7.0/bsd/amd64/s_floorl.S +--- qemu-0.7.0/bsd.orig/amd64/s_floorl.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/amd64/s_floorl.S Fri Apr 29 02:24:32 2005 +@@ -0,0 +1,247 @@ ++/* ++ * ==================================================== ++ * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. ++ * ++ * Developed at SunPro, a Sun Microsystems, Inc. business. ++ * Permission to use, copy, modify, and distribute this ++ * software is freely granted, provided that this notice ++ * is preserved. ++ * ==================================================== ++ * ++ * From: @(#)s_floor.c 5.1 93/09/24 ++ */ ++/* XXX: generated from src/lib/msun/src/s_floorl.c */ ++ ++#include ++ ++__FBSDID("$FreeBSD: src/lib/msun/src/s_floorl.c,v 1.4 2005/04/28 19:45:55 stefanf Exp $") ++ ++ .file "s_floorl.c" ++ .section .rodata.cst8,"aM",@progbits,8 ++ .p2align 3 ++.LC0: ++ .long 2281731484 ++ .long 2117592124 ++ .section .rodata.cst4,"aM",@progbits,4 ++ .p2align 2 ++.LC2: ++ .long 3212836864 ++ .text ++ .p2align 4,,15 ++.globl floorl ++ .type floorl, @function ++floorl: ++.LFB17: ++ pushq %rbp ++.LCFI0: ++ pushq %rbx ++.LCFI1: ++ fldt 24(%rsp) ++ movq $0, -16(%rsp) ++ fld %st(0) ++ fstpt -40(%rsp) ++ movl -32(%rsp), %edi ++ movq -40(%rsp), %rsi ++ movl %edi, -16(%rsp) ++ movl -16(%rsp), %r11d ++ movq %rsi, -24(%rsp) ++ movl %r11d, %r10d ++ andl $32767, %r10d ++ leal -16383(%r10), %r8d ++ cmpl $30, %r8d ++ jg .L2 ++ testl %r8d, %r8d ++ js .L38 ++ movl -20(%rsp), %r9d ++ leal 1(%r8), %ecx ++ mov -24(%rsp), %eax ++ movl $4294967295, %ebp ++ movq %rsi, -40(%rsp) ++ movl %edi, -32(%rsp) ++ shrq %cl, %rbp ++ mov %r9d, %ebx ++ movq %rbx, %rdx ++ andq %rbp, %rdx ++ orq %rax, %rdx ++ fldt -40(%rsp) ++ je .L42 ++ ffreep %st(0) ++ testb $-128, -15(%rsp) ++ je .L12 ++ movl $31, %ecx ++ movl $1, %eax ++ subl %r8d, %ecx ++ salq %cl, %rax ++ addl %eax, %r9d ++ mov %r9d, %eax ++ cmpq %rbx, %rax ++ jae .L32 ++ leal 1(%r10), %edx ++ movl %r11d, %eax ++ orl $-2147483648, %r9d ++ andw $-32768, %ax ++ andw $32767, %dx ++ orl %edx, %eax ++ movw %ax, -16(%rsp) ++.L32: ++ movl %r9d, -20(%rsp) ++.L12: ++ faddl .LC0(%rip) ++ fldz ++ fxch %st(1) ++ fucomip %st(1), %st ++ fstp %st(0) ++ jbe .L31 ++ movl %ebp, %eax ++ movl $0, -24(%rsp) ++ notl %eax ++ andl %eax, %r9d ++ movl %r9d, -20(%rsp) ++ .p2align 4,,7 ++.L31: ++ movq -24(%rsp), %rsi ++ movl -16(%rsp), %edi ++ movq %rsi, -40(%rsp) ++ movl %edi, -32(%rsp) ++ fldt -40(%rsp) ++ popq %rbx ++ popq %rbp ++ ret ++ .p2align 4,,7 ++.L2: ++ cmpl $62, %r8d ++ jle .L45 ++.L44: ++ ffreep %st(0) ++.L17: ++ movq %rsi, -40(%rsp) ++ movl %edi, -32(%rsp) ++ fldt -40(%rsp) ++ popq %rbx ++ popq %rbp ++ ret ++ .p2align 4,,7 ++.L45: ++ movl -24(%rsp), %edx ++ leal 1(%r8), %ecx ++ movq $-1, %rbx ++ movq %rsi, -40(%rsp) ++ movl %edi, -32(%rsp) ++ shrq %cl, %rbx ++ mov %edx, %r9d ++ testq %rbx, %r9 ++ fldt -40(%rsp) ++ je .L42 ++ ffreep %st(0) ++ testb $-128, -15(%rsp) ++ je .L20 ++ cmpl $31, %r8d ++ je .L36 ++ movl $63, %ecx ++ movl $1, %eax ++ subl %r8d, %ecx ++ salq %cl, %rax ++ leal (%rdx,%rax), %eax ++ movl %eax, -24(%rsp) ++ mov %eax, %eax ++ cmpq %r9, %rax ++ jae .L20 ++.L36: ++ movl -20(%rsp), %eax ++ leal 1(%rax), %ecx ++ cmpl %eax, %ecx ++ jae .L34 ++ leal 1(%r10), %edx ++ movl %r11d, %eax ++ orl $-2147483648, %ecx ++ andw $-32768, %ax ++ andw $32767, %dx ++ orl %edx, %eax ++ movw %ax, -16(%rsp) ++.L34: ++ movl %ecx, -20(%rsp) ++ .p2align 4,,7 ++.L20: ++ faddl .LC0(%rip) ++ fldz ++ fxch %st(1) ++ fucomip %st(1), %st ++ fstp %st(0) ++ jbe .L31 ++ movl %ebx, %eax ++ notl %eax ++ andl %eax, -24(%rsp) ++ jmp .L31 ++ .p2align 4,,7 ++.L42: ++ fstp %st(1) ++ popq %rbx ++ popq %rbp ++ ret ++ .p2align 4,,7 ++.L38: ++ fldl .LC0(%rip) ++ faddp %st, %st(1) ++ fldz ++ fxch %st(1) ++ fucomip %st(1), %st ++ jbe .L44 ++ testl %r10d, %r10d ++ jle .L39 ++.L7: ++ testb $-128, -15(%rsp) ++ je .L9 ++ ffreep %st(0) ++ flds .LC2(%rip) ++.L9: ++ fstpt -40(%rsp) ++ movq -40(%rsp), %rsi ++ movl -32(%rsp), %edi ++ movq %rsi, -24(%rsp) ++ movl %edi, -16(%rsp) ++ jmp .L17 ++.L39: ++ movl -24(%rsp), %eax ++ orl -20(%rsp), %eax ++ je .L44 ++ jmp .L7 ++.LFE17: ++ .size floorl, .-floorl ++ .section .eh_frame,"a",@progbits ++.Lframe1: ++ .long .LECIE1-.LSCIE1 ++.LSCIE1: ++ .long 0x0 ++ .byte 0x1 ++ .string "" ++ .uleb128 0x1 ++ .sleb128 -8 ++ .byte 0x10 ++ .byte 0xc ++ .uleb128 0x7 ++ .uleb128 0x8 ++ .byte 0x90 ++ .uleb128 0x1 ++ .p2align 3 ++.LECIE1: ++.LSFDE1: ++ .long .LEFDE1-.LASFDE1 ++.LASFDE1: ++ .long .LASFDE1-.Lframe1 ++ .quad .LFB17 ++ .quad .LFE17-.LFB17 ++ .byte 0x4 ++ .long .LCFI0-.LFB17 ++ .byte 0xe ++ .uleb128 0x10 ++ .byte 0x4 ++ .long .LCFI1-.LCFI0 ++ .byte 0xe ++ .uleb128 0x18 ++ .byte 0x83 ++ .uleb128 0x3 ++ .byte 0x86 ++ .uleb128 0x2 ++ .p2align 3 ++.LEFDE1: ++ .ident "GCC: (GNU) 3.4.4 [FreeBSD] 20050421" +diff -Nru qemu-0.7.0/bsd.orig/amd64/s_isnormal.c qemu-0.7.0/bsd/amd64/s_isnormal.c +--- qemu-0.7.0/bsd.orig/amd64/s_isnormal.c Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/amd64/s_isnormal.c Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,85 @@ ++/*- ++ * Copyright (c) 2003 Mike Barcroft ++ * Copyright (c) 2002-2004 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ * ++ * $FreeBSD: src/lib/msun/src/s_isnormal.c,v 1.1 2004/07/09 03:32:39 das Exp $ ++ */ ++ ++union IEEEf2bits { ++ float f; ++ struct { ++ unsigned int man :23; ++ unsigned int exp :8; ++ unsigned int sign :1; ++ } bits; ++}; ++ ++union IEEEd2bits { ++ double d; ++ struct { ++ unsigned int manl :32; ++ unsigned int manh :20; ++ unsigned int exp :11; ++ unsigned int sign :1; ++ } bits; ++}; ++ ++union IEEEl2bits { ++ long double e; ++ struct { ++ unsigned int manl :32; ++ unsigned int manh :32; ++ unsigned int exp :15; ++ unsigned int sign :1; ++ unsigned int junk :16; ++ } bits; ++}; ++ ++int ++__isnormal(double d) ++{ ++ union IEEEd2bits u; ++ ++ u.d = d; ++ return (u.bits.exp != 0 && u.bits.exp != 2047); ++} ++ ++int ++__isnormalf(float f) ++{ ++ union IEEEf2bits u; ++ ++ u.f = f; ++ return (u.bits.exp != 0 && u.bits.exp != 255); ++} ++ ++int ++__isnormall(long double e) ++{ ++ union IEEEl2bits u; ++ ++ u.e = e; ++ return (u.bits.exp != 0 && u.bits.exp != 32767); ++} +diff -Nru qemu-0.7.0/bsd.orig/amd64/s_llrint.S qemu-0.7.0/bsd/amd64/s_llrint.S +--- qemu-0.7.0/bsd.orig/amd64/s_llrint.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/amd64/s_llrint.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,6 @@ ++#include ++__FBSDID("$FreeBSD: src/lib/msun/amd64/s_llrint.S,v 1.1 2005/01/15 03:32:28 das Exp $") ++ ++/* sizeof(long) == sizeof(long long) */ ++#define fn llrint ++#include "s_lrint.S" +diff -Nru qemu-0.7.0/bsd.orig/amd64/s_llrintf.S qemu-0.7.0/bsd/amd64/s_llrintf.S +--- qemu-0.7.0/bsd.orig/amd64/s_llrintf.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/amd64/s_llrintf.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,6 @@ ++#include ++__FBSDID("$FreeBSD: src/lib/msun/amd64/s_llrintf.S,v 1.1 2005/04/16 21:12:55 das Exp $") ++ ++/* sizeof(long) == sizeof(long long) */ ++#define fn llrintf ++#include "s_lrintf.S" +diff -Nru qemu-0.7.0/bsd.orig/amd64/s_llrintl.S qemu-0.7.0/bsd/amd64/s_llrintl.S +--- qemu-0.7.0/bsd.orig/amd64/s_llrintl.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/amd64/s_llrintl.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,35 @@ ++/* Round argument to nearest integral value according to current rounding ++ direction. ++ Copyright (C) 1997, 2002 Free Software Foundation, Inc. ++ This file is part of the GNU C Library. ++ ++ The GNU C Library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ The GNU C Library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with the GNU C Library; if not, write to the Free ++ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++ 02111-1307 USA. */ ++ ++#include ++#include ++ ++ .text ++ENTRY(__llrintl) ++ fldt 8(%rsp) ++ fistpll -8(%rsp) ++ fwait ++ movq -8(%rsp),%rax ++ ret ++END(__llrintl) ++weak_alias (__llrintl, llrintl) ++strong_alias (__llrintl, __lrintl) ++weak_alias (__llrintl, lrintl) ++ +diff -Nru qemu-0.7.0/bsd.orig/amd64/s_lrint.S qemu-0.7.0/bsd/amd64/s_lrint.S +--- qemu-0.7.0/bsd.orig/amd64/s_lrint.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/amd64/s_lrint.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,36 @@ ++/*- ++ * Copyright (c) 2005 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++#include ++ ++#ifndef fn ++__FBSDID("$FreeBSD: src/lib/msun/amd64/s_lrint.S,v 1.1 2005/01/15 03:32:28 das Exp $") ++#define fn lrint ++#endif ++ ++ENTRY(fn) ++ cvtsd2si %xmm0, %rax ++ ret +diff -Nru qemu-0.7.0/bsd.orig/amd64/s_lrintf.S qemu-0.7.0/bsd/amd64/s_lrintf.S +--- qemu-0.7.0/bsd.orig/amd64/s_lrintf.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/amd64/s_lrintf.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,36 @@ ++/*- ++ * Copyright (c) 2005 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++#include ++ ++#ifndef fn ++__FBSDID("$FreeBSD: src/lib/msun/amd64/s_lrintf.S,v 1.1 2005/04/16 21:12:55 das Exp $") ++#define fn lrintf ++#endif ++ ++ENTRY(fn) ++ cvtss2si %xmm0, %rax ++ ret +diff -Nru qemu-0.7.0/bsd.orig/amd64/s_lrintl.S qemu-0.7.0/bsd/amd64/s_lrintl.S +--- qemu-0.7.0/bsd.orig/amd64/s_lrintl.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/amd64/s_lrintl.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1 @@ ++/* Not needed, see s_llrintl.S. */ +diff -Nru qemu-0.7.0/bsd.orig/amd64/s_rintl.c qemu-0.7.0/bsd/amd64/s_rintl.c +--- qemu-0.7.0/bsd.orig/amd64/s_rintl.c Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/amd64/s_rintl.c Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,18 @@ ++/* ++ * Written by J.T. Conklin . ++ * Changes for long double by Ulrich Drepper ++ * Public domain. ++ */ ++ ++#include ++ ++long double ++__rintl (long double x) ++{ ++ long double res; ++ ++ asm ("frndint" : "=t" (res) : "0" (x)); ++ return res; ++} ++ ++weak_alias (__rintl, rintl) +diff -Nru qemu-0.7.0/bsd.orig/amd64/s_round.c qemu-0.7.0/bsd/amd64/s_round.c +--- qemu-0.7.0/bsd.orig/amd64/s_round.c Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/amd64/s_round.c Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,51 @@ ++/*- ++ * Copyright (c) 2003, Steven G. Kargl ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice unmodified, this list of conditions, and the following ++ * disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR ++ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ++ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ++ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, ++ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT ++ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, ++ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ++ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ++ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF ++ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ++ */ ++ ++#include ++__FBSDID("$FreeBSD: src/lib/msun/src/s_round.c,v 1.3 2005/01/13 15:43:41 das Exp $"); ++ ++#include ++ ++double ++round(double x) ++{ ++ double t; ++ ++ if (!isfinite(x)) ++ return (x); ++ ++ if (x >= 0.0) { ++ t = ceil(x); ++ if (t - x > 0.5) ++ t -= 1.0; ++ return (t); ++ } else { ++ t = ceil(-x); ++ if (t + x > 0.5) ++ t -= 1.0; ++ return (-t); ++ } ++} +diff -Nru qemu-0.7.0/bsd.orig/amd64/s_sinl.S qemu-0.7.0/bsd/amd64/s_sinl.S +--- qemu-0.7.0/bsd.orig/amd64/s_sinl.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/amd64/s_sinl.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,31 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ * Adapted for x86-64 by Andreas Jaeger . ++ */ ++ ++#include ++#include ++ ++ENTRY(__sinl) ++ fldt 8(%rsp) ++ fsin ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 1f ++ ret ++ .align ALIGNARG(4) ++1: fldpi ++ fadd %st(0) ++ fxch %st(1) ++2: fprem1 ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 2b ++ fstp %st(1) ++ fsin ++ ret ++END (__sinl) ++weak_alias (__sinl, sinl) +diff -Nru qemu-0.7.0/bsd.orig/amd64/s_tanl.S qemu-0.7.0/bsd/amd64/s_tanl.S +--- qemu-0.7.0/bsd.orig/amd64/s_tanl.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/amd64/s_tanl.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,34 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ * Adapted for x86-64 by Andreas Jaeger . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ENTRY(__tanl) ++ fldt 8(%rsp) ++ fptan ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 1f ++ fstp %st(0) ++ ret ++1: fldpi ++ fadd %st(0) ++ fxch %st(1) ++2: fprem1 ++ fstsw %ax ++ testl $0x400,%eax ++ jnz 2b ++ fstp %st(1) ++ fptan ++ fstp %st(0) ++ ret ++END (__tanl) ++weak_alias (__tanl, tanl) +diff -Nru qemu-0.7.0/bsd.orig/i386/e_atan2l.c qemu-0.7.0/bsd/i386/e_atan2l.c +--- qemu-0.7.0/bsd.orig/i386/e_atan2l.c Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/i386/e_atan2l.c Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,20 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++ ++long double ++__ieee754_atan2l (long double y, long double x) ++{ ++ long double res; ++ ++ asm ("fpatan" : "=t" (res) : "u" (y), "0" (x) : "st(1)"); ++ ++ return res; ++} ++ ++weak_alias(__ieee754_atan2l, atan2l) +diff -Nru qemu-0.7.0/bsd.orig/i386/e_logl.S qemu-0.7.0/bsd/i386/e_logl.S +--- qemu-0.7.0/bsd.orig/i386/e_logl.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/i386/e_logl.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,63 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ ++#ifdef __ELF__ ++ .section .rodata ++#else ++ .text ++#endif ++ .align ALIGNARG(4) ++ ASM_TYPE_DIRECTIVE(one,@object) ++one: .double 1.0 ++ ASM_SIZE_DIRECTIVE(one) ++ /* It is not important that this constant is precise. It is only ++ a value which is known to be on the safe side for using the ++ fyl2xp1 instruction. */ ++ ASM_TYPE_DIRECTIVE(limit,@object) ++limit: .double 0.29 ++ ASM_SIZE_DIRECTIVE(limit) ++ ++ ++#ifdef PIC ++#define MO(op) op##@GOTOFF(%edx) ++#else ++#define MO(op) op ++#endif ++ ++ .text ++ENTRY(__ieee754_logl) ++ fldln2 // log(2) ++ fldt 4(%esp) // x : log(2) ++#ifdef PIC ++ call 1f ++1: popl %edx ++ addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %edx ++#endif ++ fld %st // x : x : log(2) ++ fsubl MO(one) // x-1 : x : log(2) ++ fld %st // x-1 : x-1 : x : log(2) ++ fabs // |x-1| : x-1 : x : log(2) ++ fcompl MO(limit) // x-1 : x : log(2) ++ fnstsw // x-1 : x : log(2) ++ andb $0x45, %ah ++ jz 2f ++ fstp %st(1) // x-1 : log(2) ++ fyl2xp1 // log(x) ++ ret ++ ++2: fstp %st(0) // x : log(2) ++ fyl2x // log(x) ++ ret ++END (__ieee754_logl) ++ ++weak_alias(__ieee754_logl,logl) +diff -Nru qemu-0.7.0/bsd.orig/i386/e_powl.S qemu-0.7.0/bsd/i386/e_powl.S +--- qemu-0.7.0/bsd.orig/i386/e_powl.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/i386/e_powl.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,341 @@ ++/* ix87 specific implementation of pow function. ++ Copyright (C) 1996, 1997, 1998, 1999, 2001, 2004 ++ Free Software Foundation, Inc. ++ This file is part of the GNU C Library. ++ Contributed by Ulrich Drepper , 1996. ++ ++ The GNU C Library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ The GNU C Library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with the GNU C Library; if not, write to the Free ++ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++ 02111-1307 USA. */ ++ ++#include ++#include ++ ++#ifdef __ELF__ ++ .section .rodata ++#else ++ .text ++#endif ++ ++ .align ALIGNARG(4) ++ ASM_TYPE_DIRECTIVE(infinity,@object) ++inf_zero: ++infinity: ++ .byte 0, 0, 0, 0, 0, 0, 0xf0, 0x7f ++ ASM_SIZE_DIRECTIVE(infinity) ++ ASM_TYPE_DIRECTIVE(zero,@object) ++zero: .double 0.0 ++ ASM_SIZE_DIRECTIVE(zero) ++ ASM_TYPE_DIRECTIVE(minf_mzero,@object) ++minf_mzero: ++minfinity: ++ .byte 0, 0, 0, 0, 0, 0, 0xf0, 0xff ++mzero: ++ .byte 0, 0, 0, 0, 0, 0, 0, 0x80 ++ ASM_SIZE_DIRECTIVE(minf_mzero) ++ ASM_TYPE_DIRECTIVE(one,@object) ++one: .double 1.0 ++ ASM_SIZE_DIRECTIVE(one) ++ ASM_TYPE_DIRECTIVE(limit,@object) ++limit: .double 0.29 ++ ASM_SIZE_DIRECTIVE(limit) ++ ASM_TYPE_DIRECTIVE(p63,@object) ++p63: .byte 0, 0, 0, 0, 0, 0, 0xe0, 0x43 ++ ASM_SIZE_DIRECTIVE(p63) ++ ++#ifdef PIC ++#define MO(op) op##@GOTOFF(%ecx) ++#define MOX(op,x,f) op##@GOTOFF(%ecx,x,f) ++#else ++#define MO(op) op ++#define MOX(op,x,f) op(,x,f) ++#endif ++ ++ .text ++ENTRY(__ieee754_powl) ++ fldt 16(%esp) // y ++ fxam ++ ++#ifdef PIC ++ call 1f ++1: popl %ecx ++ addl $_GLOBAL_OFFSET_TABLE_+[.-1b], %ecx ++#endif ++ ++ fnstsw ++ movb %ah, %dl ++ andb $0x45, %ah ++ cmpb $0x40, %ah // is y == 0 ? ++ je 11f ++ ++ cmpb $0x05, %ah // is y == ±inf ? ++ je 12f ++ ++ cmpb $0x01, %ah // is y == NaN ? ++ je 30f ++ ++ fldt 4(%esp) // x : y ++ ++ subl $8,%esp ++ ++ fxam ++ fnstsw ++ movb %ah, %dh ++ andb $0x45, %ah ++ cmpb $0x40, %ah ++ je 20f // x is ±0 ++ ++ cmpb $0x05, %ah ++ je 15f // x is ±inf ++ ++ fxch // y : x ++ ++ /* fistpll raises invalid exception for |y| >= 1L<<63. */ ++ fld %st // y : y : x ++ fabs // |y| : y : x ++ fcompl MO(p63) // y : x ++ fnstsw ++ sahf ++ jnc 2f ++ ++ /* First see whether `y' is a natural number. In this case we ++ can use a more precise algorithm. */ ++ fld %st // y : y : x ++ fistpll (%esp) // y : x ++ fildll (%esp) // int(y) : y : x ++ fucomp %st(1) // y : x ++ fnstsw ++ sahf ++ jne 2f ++ ++ /* OK, we have an integer value for y. */ ++ popl %eax ++ popl %edx ++ orl $0, %edx ++ fstp %st(0) // x ++ jns 4f // y >= 0, jump ++ fdivrl MO(one) // 1/x (now referred to as x) ++ negl %eax ++ adcl $0, %edx ++ negl %edx ++4: fldl MO(one) // 1 : x ++ fxch ++ ++6: shrdl $1, %edx, %eax ++ jnc 5f ++ fxch ++ fmul %st(1) // x : ST*x ++ fxch ++5: fmul %st(0), %st // x*x : ST*x ++ shrl $1, %edx ++ movl %eax, %ecx ++ orl %edx, %ecx ++ jnz 6b ++ fstp %st(0) // ST*x ++ ret ++ ++ /* y is ±NAN */ ++30: fldt 4(%esp) // x : y ++ fldl MO(one) // 1.0 : x : y ++ fucomp %st(1) // x : y ++ fnstsw ++ sahf ++ je 31f ++ fxch // y : x ++31: fstp %st(1) ++ ret ++ ++ .align ALIGNARG(4) ++2: /* y is a real number. */ ++ fxch // x : y ++ fldl MO(one) // 1.0 : x : y ++ fld %st(1) // x : 1.0 : x : y ++ fsub %st(1) // x-1 : 1.0 : x : y ++ fabs // |x-1| : 1.0 : x : y ++ fcompl MO(limit) // 1.0 : x : y ++ fnstsw ++ fxch // x : 1.0 : y ++ sahf ++ ja 7f ++ fsub %st(1) // x-1 : 1.0 : y ++ fyl2xp1 // log2(x) : y ++ jmp 8f ++ ++7: fyl2x // log2(x) : y ++8: fmul %st(1) // y*log2(x) : y ++ fxam ++ fnstsw ++ andb $0x45, %ah ++ cmpb $0x05, %ah // is y*log2(x) == ±inf ? ++ je 28f ++ fst %st(1) // y*log2(x) : y*log2(x) ++ frndint // int(y*log2(x)) : y*log2(x) ++ fsubr %st, %st(1) // int(y*log2(x)) : fract(y*log2(x)) ++ fxch // fract(y*log2(x)) : int(y*log2(x)) ++ f2xm1 // 2^fract(y*log2(x))-1 : int(y*log2(x)) ++ faddl MO(one) // 2^fract(y*log2(x)) : int(y*log2(x)) ++ fscale // 2^fract(y*log2(x))*2^int(y*log2(x)) : int(y*log2(x)) ++ addl $8, %esp ++ fstp %st(1) // 2^fract(y*log2(x))*2^int(y*log2(x)) ++ ret ++ ++28: fstp %st(1) // y*log2(x) ++ fldl MO(one) // 1 : y*log2(x) ++ fscale // 2^(y*log2(x)) : y*log2(x) ++ addl $8, %esp ++ fstp %st(1) // 2^(y*log2(x)) ++ ret ++ ++ // pow(x,±0) = 1 ++ .align ALIGNARG(4) ++11: fstp %st(0) // pop y ++ fldl MO(one) ++ ret ++ ++ // y == ±inf ++ .align ALIGNARG(4) ++12: fstp %st(0) // pop y ++ fldt 4(%esp) // x ++ fabs ++ fcompl MO(one) // < 1, == 1, or > 1 ++ fnstsw ++ andb $0x45, %ah ++ cmpb $0x45, %ah ++ je 13f // jump if x is NaN ++ ++ cmpb $0x40, %ah ++ je 14f // jump if |x| == 1 ++ ++ shlb $1, %ah ++ xorb %ah, %dl ++ andl $2, %edx ++ fldl MOX(inf_zero, %edx, 4) ++ ret ++ ++ .align ALIGNARG(4) ++14: fldl MO(one) ++ ret ++ ++ .align ALIGNARG(4) ++13: fldt 4(%esp) // load x == NaN ++ ret ++ ++ .align ALIGNARG(4) ++ // x is ±inf ++15: fstp %st(0) // y ++ testb $2, %dh ++ jz 16f // jump if x == +inf ++ ++ // We must find out whether y is an odd integer. ++ fld %st // y : y ++ fistpll (%esp) // y ++ fildll (%esp) // int(y) : y ++ fucompp // ++ fnstsw ++ sahf ++ jne 17f ++ ++ // OK, the value is an integer, but is it odd? ++ popl %eax ++ popl %edx ++ andb $1, %al ++ jz 18f // jump if not odd ++ // It's an odd integer. ++ shrl $31, %edx ++ fldl MOX(minf_mzero, %edx, 8) ++ ret ++ ++ .align ALIGNARG(4) ++16: fcompl MO(zero) ++ addl $8, %esp ++ fnstsw ++ shrl $5, %eax ++ andl $8, %eax ++ fldl MOX(inf_zero, %eax, 1) ++ ret ++ ++ .align ALIGNARG(4) ++17: shll $30, %edx // sign bit for y in right position ++ addl $8, %esp ++18: shrl $31, %edx ++ fldl MOX(inf_zero, %edx, 8) ++ ret ++ ++ .align ALIGNARG(4) ++ // x is ±0 ++20: fstp %st(0) // y ++ testb $2, %dl ++ jz 21f // y > 0 ++ ++ // x is ±0 and y is < 0. We must find out whether y is an odd integer. ++ testb $2, %dh ++ jz 25f ++ ++ fld %st // y : y ++ fistpll (%esp) // y ++ fildll (%esp) // int(y) : y ++ fucompp // ++ fnstsw ++ sahf ++ jne 26f ++ ++ // OK, the value is an integer, but is it odd? ++ popl %eax ++ popl %edx ++ andb $1, %al ++ jz 27f // jump if not odd ++ // It's an odd integer. ++ // Raise divide-by-zero exception and get minus infinity value. ++ fldl MO(one) ++ fdivl MO(zero) ++ fchs ++ ret ++ ++25: fstp %st(0) ++26: addl $8, %esp ++27: // Raise divide-by-zero exception and get infinity value. ++ fldl MO(one) ++ fdivl MO(zero) ++ ret ++ ++ .align ALIGNARG(4) ++ // x is ±0 and y is > 0. We must find out whether y is an odd integer. ++21: testb $2, %dh ++ jz 22f ++ ++ fld %st // y : y ++ fistpll (%esp) // y ++ fildll (%esp) // int(y) : y ++ fucompp // ++ fnstsw ++ sahf ++ jne 23f ++ ++ // OK, the value is an integer, but is it odd? ++ popl %eax ++ popl %edx ++ andb $1, %al ++ jz 24f // jump if not odd ++ // It's an odd integer. ++ fldl MO(mzero) ++ ret ++ ++22: fstp %st(0) ++23: addl $8, %esp // Don't use 2 x pop ++24: fldl MO(zero) ++ ret ++ ++END(__ieee754_powl) ++ ++weak_alias(__ieee754_powl,powl) +diff -Nru qemu-0.7.0/bsd.orig/i386/e_remainderl.S qemu-0.7.0/bsd/i386/e_remainderl.S +--- qemu-0.7.0/bsd.orig/i386/e_remainderl.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/i386/e_remainderl.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,24 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ENTRY(__ieee754_remainderl) ++ fldt 16(%esp) ++ fldt 4(%esp) ++1: fprem1 ++ fstsw %ax ++ sahf ++ jp 1b ++ fstp %st(1) ++ ret ++END (__ieee754_remainderl) ++ ++weak_alias(__ieee754_remainderl,remainderl) +diff -Nru qemu-0.7.0/bsd.orig/i386/e_sqrtl.c qemu-0.7.0/bsd/i386/e_sqrtl.c +--- qemu-0.7.0/bsd.orig/i386/e_sqrtl.c Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/i386/e_sqrtl.c Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,20 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++ ++long double ++__ieee754_sqrtl (long double x) ++{ ++ long double res; ++ ++ asm ("fsqrt" : "=t" (res) : "0" (x)); ++ ++ return res; ++} ++ ++weak_alias(__ieee754_sqrtl,sqrtl) +diff -Nru qemu-0.7.0/bsd.orig/i386/s_ceill.S qemu-0.7.0/bsd/i386/s_ceill.S +--- qemu-0.7.0/bsd.orig/i386/s_ceill.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/i386/s_ceill.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,27 @@ ++/* ++ * Based on code written by J.T. Conklin . ++ * Public domain. ++ */ ++ ++#include ++RCSID("$FreeBSD: src/lib/msun/i387/s_ceill.S,v 1.1 2005/04/16 21:12:55 das Exp $") ++ ++ENTRY(ceill) ++ pushl %ebp ++ movl %esp,%ebp ++ subl $8,%esp ++ ++ fstcw -4(%ebp) /* store fpu control word */ ++ movw -4(%ebp),%dx ++ orw $0x0800,%dx /* round towards +oo */ ++ andw $0xfbff,%dx ++ movw %dx,-8(%ebp) ++ fldcw -8(%ebp) /* load modfied control word */ ++ ++ fldt 8(%ebp) /* round */ ++ frndint ++ ++ fldcw -4(%ebp) /* restore original control word */ ++ ++ leave ++ ret +diff -Nru qemu-0.7.0/bsd.orig/i386/s_cosl.S qemu-0.7.0/bsd/i386/s_cosl.S +--- qemu-0.7.0/bsd.orig/i386/s_cosl.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/i386/s_cosl.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,32 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ENTRY(__cosl) ++ fldt 4(%esp) ++ fcos ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 1f ++ ret ++ .align ALIGNARG(4) ++1: fldpi ++ fadd %st(0) ++ fxch %st(1) ++2: fprem1 ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 2b ++ fstp %st(1) ++ fcos ++ ret ++END (__cosl) ++weak_alias (__cosl, cosl) +diff -Nru qemu-0.7.0/bsd.orig/i386/s_floorl.S qemu-0.7.0/bsd/i386/s_floorl.S +--- qemu-0.7.0/bsd.orig/i386/s_floorl.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/i386/s_floorl.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,27 @@ ++/* ++ * Based on code written by J.T. Conklin . ++ * Public domain. ++ */ ++ ++#include ++RCSID("$FreeBSD: src/lib/msun/i387/s_floorl.S,v 1.1 2005/04/16 21:12:55 das Exp $") ++ ++ENTRY(floorl) ++ pushl %ebp ++ movl %esp,%ebp ++ subl $8,%esp ++ ++ fstcw -4(%ebp) /* store fpu control word */ ++ movw -4(%ebp),%dx ++ orw $0x0400,%dx /* round towards -oo */ ++ andw $0xf7ff,%dx ++ movw %dx,-8(%ebp) ++ fldcw -8(%ebp) /* load modfied control word */ ++ ++ fldt 8(%ebp) /* round */ ++ frndint ++ ++ fldcw -4(%ebp) /* restore original control word */ ++ ++ leave ++ ret +diff -Nru qemu-0.7.0/bsd.orig/i386/s_isnormal.c qemu-0.7.0/bsd/i386/s_isnormal.c +--- qemu-0.7.0/bsd.orig/i386/s_isnormal.c Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/i386/s_isnormal.c Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,85 @@ ++/*- ++ * Copyright (c) 2003 Mike Barcroft ++ * Copyright (c) 2002-2004 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ * ++ * $FreeBSD: src/lib/msun/src/s_isnormal.c,v 1.1 2004/07/09 03:32:39 das Exp $ ++ */ ++ ++union IEEEf2bits { ++ float f; ++ struct { ++ unsigned int man :23; ++ unsigned int exp :8; ++ unsigned int sign :1; ++ } bits; ++}; ++ ++union IEEEd2bits { ++ double d; ++ struct { ++ unsigned int manl :32; ++ unsigned int manh :20; ++ unsigned int exp :11; ++ unsigned int sign :1; ++ } bits; ++}; ++ ++union IEEEl2bits { ++ long double e; ++ struct { ++ unsigned int manl :32; ++ unsigned int manh :32; ++ unsigned int exp :15; ++ unsigned int sign :1; ++ unsigned int junk :16; ++ } bits; ++}; ++ ++int ++__isnormal(double d) ++{ ++ union IEEEd2bits u; ++ ++ u.d = d; ++ return (u.bits.exp != 0 && u.bits.exp != 2047); ++} ++ ++int ++__isnormalf(float f) ++{ ++ union IEEEf2bits u; ++ ++ u.f = f; ++ return (u.bits.exp != 0 && u.bits.exp != 255); ++} ++ ++int ++__isnormall(long double e) ++{ ++ union IEEEl2bits u; ++ ++ u.e = e; ++ return (u.bits.exp != 0 && u.bits.exp != 32767); ++} +diff -Nru qemu-0.7.0/bsd.orig/i386/s_llrint.S qemu-0.7.0/bsd/i386/s_llrint.S +--- qemu-0.7.0/bsd.orig/i386/s_llrint.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/i386/s_llrint.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,36 @@ ++/*- ++ * Copyright (c) 2005 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++#include ++RCSID("$FreeBSD: src/lib/msun/i387/s_llrint.S,v 1.1 2005/01/11 23:10:53 das Exp $"); ++ ++ENTRY(llrint) ++ fldl 4(%esp) ++ subl $8,%esp ++ fistpll (%esp) ++ popl %eax ++ popl %edx ++ ret +diff -Nru qemu-0.7.0/bsd.orig/i386/s_llrintf.S qemu-0.7.0/bsd/i386/s_llrintf.S +--- qemu-0.7.0/bsd.orig/i386/s_llrintf.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/i386/s_llrintf.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,36 @@ ++/*- ++ * Copyright (c) 2005 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++#include ++RCSID("$FreeBSD: src/lib/msun/i387/s_llrintf.S,v 1.1 2005/04/16 21:12:55 das Exp $") ++ ++ENTRY(llrintf) ++ flds 4(%esp) ++ subl $8,%esp ++ fistpll (%esp) ++ popl %eax ++ popl %edx ++ ret +diff -Nru qemu-0.7.0/bsd.orig/i386/s_llrintl.S qemu-0.7.0/bsd/i386/s_llrintl.S +--- qemu-0.7.0/bsd.orig/i386/s_llrintl.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/i386/s_llrintl.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,35 @@ ++/* Round argument to nearest integral value according to current rounding ++ direction. ++ Copyright (C) 1997 Free Software Foundation, Inc. ++ This file is part of the GNU C Library. ++ Contributed by Ulrich Drepper , 1997. ++ ++ The GNU C Library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ The GNU C Library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with the GNU C Library; if not, write to the Free ++ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++ 02111-1307 USA. */ ++ ++#include ++#include ++ ++ .text ++ENTRY(__llrintl) ++ fldt 4(%esp) ++ subl $8, %esp ++ fistpll (%esp) ++ fwait ++ popl %eax ++ popl %edx ++ ret ++END(__llrintl) ++weak_alias (__llrintl, llrintl) +diff -Nru qemu-0.7.0/bsd.orig/i386/s_lrint.S qemu-0.7.0/bsd/i386/s_lrint.S +--- qemu-0.7.0/bsd.orig/i386/s_lrint.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/i386/s_lrint.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,35 @@ ++/*- ++ * Copyright (c) 2005 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++#include ++RCSID("$FreeBSD: src/lib/msun/i387/s_lrint.S,v 1.1 2005/01/11 23:10:53 das Exp $"); ++ ++ENTRY(lrint) ++ fldl 4(%esp) ++ subl $4,%esp ++ fistpl (%esp) ++ popl %eax ++ ret +diff -Nru qemu-0.7.0/bsd.orig/i386/s_lrintf.S qemu-0.7.0/bsd/i386/s_lrintf.S +--- qemu-0.7.0/bsd.orig/i386/s_lrintf.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/i386/s_lrintf.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,35 @@ ++/*- ++ * Copyright (c) 2005 David Schultz ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice, this list of conditions and the following disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND ++ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE ++ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ++ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE ++ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL ++ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ++ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ++ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT ++ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY ++ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF ++ * SUCH DAMAGE. ++ */ ++ ++#include ++RCSID("$FreeBSD: src/lib/msun/i387/s_lrintf.S,v 1.1 2005/04/16 21:12:55 das Exp $") ++ ++ENTRY(lrintf) ++ flds 4(%esp) ++ subl $4,%esp ++ fistpl (%esp) ++ popl %eax ++ ret +diff -Nru qemu-0.7.0/bsd.orig/i386/s_lrintl.S qemu-0.7.0/bsd/i386/s_lrintl.S +--- qemu-0.7.0/bsd.orig/i386/s_lrintl.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/i386/s_lrintl.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,34 @@ ++/* Round argument to nearest integral value according to current rounding ++ direction. ++ Copyright (C) 1997 Free Software Foundation, Inc. ++ This file is part of the GNU C Library. ++ Contributed by Ulrich Drepper , 1997. ++ ++ The GNU C Library is free software; you can redistribute it and/or ++ modify it under the terms of the GNU Lesser General Public ++ License as published by the Free Software Foundation; either ++ version 2.1 of the License, or (at your option) any later version. ++ ++ The GNU C Library is distributed in the hope that it will be useful, ++ but WITHOUT ANY WARRANTY; without even the implied warranty of ++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ++ Lesser General Public License for more details. ++ ++ You should have received a copy of the GNU Lesser General Public ++ License along with the GNU C Library; if not, write to the Free ++ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA ++ 02111-1307 USA. */ ++ ++#include ++#include ++ ++ .text ++ENTRY(__lrintl) ++ fldt 4(%esp) ++ subl $4, %esp ++ fistpl (%esp) ++ fwait ++ popl %eax ++ ret ++END(__lrintl) ++weak_alias (__lrintl, lrintl) +diff -Nru qemu-0.7.0/bsd.orig/i386/s_rintl.c qemu-0.7.0/bsd/i386/s_rintl.c +--- qemu-0.7.0/bsd.orig/i386/s_rintl.c Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/i386/s_rintl.c Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,18 @@ ++/* ++ * Written by J.T. Conklin . ++ * Changes for long double by Ulrich Drepper ++ * Public domain. ++ */ ++ ++#include ++ ++long double ++__rintl (long double x) ++{ ++ long double res; ++ ++ asm ("frndint" : "=t" (res) : "0" (x)); ++ return res; ++} ++ ++weak_alias (__rintl, rintl) +diff -Nru qemu-0.7.0/bsd.orig/i386/s_round.c qemu-0.7.0/bsd/i386/s_round.c +--- qemu-0.7.0/bsd.orig/i386/s_round.c Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/i386/s_round.c Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,51 @@ ++/*- ++ * Copyright (c) 2003, Steven G. Kargl ++ * All rights reserved. ++ * ++ * Redistribution and use in source and binary forms, with or without ++ * modification, are permitted provided that the following conditions ++ * are met: ++ * 1. Redistributions of source code must retain the above copyright ++ * notice unmodified, this list of conditions, and the following ++ * disclaimer. ++ * 2. Redistributions in binary form must reproduce the above copyright ++ * notice, this list of conditions and the following disclaimer in the ++ * documentation and/or other materials provided with the distribution. ++ * ++ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR ++ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES ++ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. ++ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, ++ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT ++ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, ++ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY ++ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ++ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF ++ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ++ */ ++ ++#include ++__FBSDID("$FreeBSD: src/lib/msun/src/s_round.c,v 1.3 2005/01/13 15:43:41 das Exp $"); ++ ++#include ++ ++double ++round(double x) ++{ ++ double t; ++ ++ if (!isfinite(x)) ++ return (x); ++ ++ if (x >= 0.0) { ++ t = ceil(x); ++ if (t - x > 0.5) ++ t -= 1.0; ++ return (t); ++ } else { ++ t = ceil(-x); ++ if (t + x > 0.5) ++ t -= 1.0; ++ return (-t); ++ } ++} +diff -Nru qemu-0.7.0/bsd.orig/i386/s_sinl.S qemu-0.7.0/bsd/i386/s_sinl.S +--- qemu-0.7.0/bsd.orig/i386/s_sinl.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/i386/s_sinl.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,32 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ENTRY(__sinl) ++ fldt 4(%esp) ++ fsin ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 1f ++ ret ++ .align ALIGNARG(4) ++1: fldpi ++ fadd %st(0) ++ fxch %st(1) ++2: fprem1 ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 2b ++ fstp %st(1) ++ fsin ++ ret ++END (__sinl) ++weak_alias (__sinl, sinl) +diff -Nru qemu-0.7.0/bsd.orig/i386/s_tanl.S qemu-0.7.0/bsd/i386/s_tanl.S +--- qemu-0.7.0/bsd.orig/i386/s_tanl.S Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/i386/s_tanl.S Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,33 @@ ++/* ++ * Written by J.T. Conklin . ++ * Public domain. ++ * ++ * Adapted for `long double' by Ulrich Drepper . ++ */ ++ ++#include ++#include ++ ++RCSID("$NetBSD: $") ++ ++ENTRY(__tanl) ++ fldt 4(%esp) ++ fptan ++ fnstsw %ax ++ testl $0x400,%eax ++ jnz 1f ++ fstp %st(0) ++ ret ++1: fldpi ++ fadd %st(0) ++ fxch %st(1) ++2: fprem1 ++ fstsw %ax ++ testl $0x400,%eax ++ jnz 2b ++ fstp %st(1) ++ fptan ++ fstp %st(0) ++ ret ++END (__tanl) ++weak_alias (__tanl, tanl) +diff -Nru qemu-0.7.0/bsd.orig/sysdep.h qemu-0.7.0/bsd/sysdep.h +--- qemu-0.7.0/bsd.orig/sysdep.h Wed Dec 31 19:00:00 1969 ++++ qemu-0.7.0/bsd/sysdep.h Fri Apr 29 02:11:27 2005 +@@ -0,0 +1,20 @@ ++#ifndef _QEMU_BSD_SYSDEP_H_ ++#define _QEMU_BSD_SYSDEP_H_ ++ ++#include ++ ++#define HAVE_ELF ++ ++#ifdef __ASSEMBLER__ ++#define ALIGNARG(log2) 1< Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 755D416A4CE; Fri, 29 Apr 2005 10:26:28 +0000 (GMT) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1685643D55; Fri, 29 Apr 2005 10:26:28 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1c.sentex.ca [64.7.153.10]) by smarthost1.sentex.ca (8.13.3/8.13.3) with ESMTP id j3TAQRcI062935; Fri, 29 Apr 2005 06:26:27 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.13.3/8.13.3) with ESMTP id j3TAR1sp091581; Fri, 29 Apr 2005 06:27:01 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 9B5BA7306E; Fri, 29 Apr 2005 06:26:27 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20050429102627.9B5BA7306E@freebsd-current.sentex.ca> Date: Fri, 29 Apr 2005 06:26:27 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.82, clamav-milter version 0.82 on clamscanner4 X-Virus-Status: Clean Subject: [current tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2005 10:26:28 -0000 TB --- 2005-04-29 10:22:53 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-04-29 10:22:53 - starting CURRENT tinderbox run for amd64/amd64 TB --- 2005-04-29 10:22:53 - checking out the source tree TB --- 2005-04-29 10:22:53 - cd /home/tinderbox/CURRENT/amd64/amd64 TB --- 2005-04-29 10:22:53 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2005-04-29 10:25:15 - building world (CFLAGS=-O2 -pipe) TB --- 2005-04-29 10:25:15 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-29 10:25:15 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] ===> sbin/growfs (cleandir) ===> sbin/gvinum (cleandir) ===> sbin/ifconfig (cleandir) ===> sbin/init (cleandir) ===> sbin/ip6fw (cleandir) ===> sbin/ipf (cleandir) ".depend", line 269: Inconsistent operator for ipf make: fatal errors encountered -- cannot continue *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src/sbin. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. TB --- 2005-04-29 10:26:27 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-04-29 10:26:27 - ERROR: failed to build world TB --- 2005-04-29 10:26:27 - tinderbox aborted From owner-freebsd-amd64@FreeBSD.ORG Fri Apr 29 17:31:22 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8331016A4CE; Fri, 29 Apr 2005 17:31:22 +0000 (GMT) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB62943D53; Fri, 29 Apr 2005 17:31:20 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1])j3THVHk8010725; Fri, 29 Apr 2005 19:31:17 +0200 Received: from saturn.kn-bremen.de (uucp@localhost)j3THVHWe010722; Fri, 29 Apr 2005 19:31:17 +0200 Received: (from nox@localhost) by saturn.kn-bremen.de (8.11.4/8.8.5) id j3THSqj47962; Fri, 29 Apr 2005 19:28:52 +0200 (CEST) From: Juergen Lock Date: Fri, 29 Apr 2005 19:28:51 +0200 To: Jung-uk Kim Message-ID: <20050429192851.A47512@saturn.kn-bremen.de> Mail-Followup-To: Jung-uk Kim , freebsd-amd64@freebsd.org, freebsd-emulation@freebsd.org References: <20050427210405.A95072@saturn.kn-bremen.de> <20050428210246.A21966@saturn.kn-bremen.de> <200504281514.01411.jkim@niksun.com> <200504290313.18498.jkim@niksun.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <200504290313.18498.jkim@niksun.com> cc: freebsd-emulation@freebsd.org cc: freebsd-amd64@freebsd.org Subject: Re: please test qemu port update X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2005 17:31:22 -0000 On Fri, Apr 29, 2005 at 03:13:15AM -0400, Jung-uk Kim wrote: > On Thursday 28 April 2005 03:14 pm, Jung-uk Kim wrote: > > On Thursday 28 April 2005 03:02 pm, Juergen Lock wrote: >[...] > > > Or is this a difference between i386 and amd64? > > > > I believe Makefile.target is doing something wrong but I haven't > > found it yet. I believe the culprit is Makefile.target not > > checking ARCH == amd64 but x86_64. In fact, it works perfect for > > i386. > > Yup, that's it. MAKE_ENV was overriding ARCH==x86_64 in QEMU's > makefiles. > Yeah looks like after .if !defined(NOPRECIOUSMAKEVARS) in /usr/ports/Mk/bsd.port.mk... > > > And if it really is, I would prefer setting the right variables > > > (like USE_GMAKE, see /usr/ports/Mk/bsd.port.mk) instead of simply > > > overriding the do-* targets. > > > > I'd love to find it out. I will let you know when I get that > > right. > > The final patch (I hope) is attached. This version includes few minor > fixes too. > > I think it is commitable now. I found one small bug, Index: Makefile @@ -39,6 +39,8 @@ BUILD_DEPENDS+= gcc34:${PORTSDIR}/lang/gcc34 GCCVERSION= 030402 CC= gcc34 +.else +USE_GCC= 3.4 .endif .else USE_GCC= 3.4 (tho it probably doesnt matter as i doubt there's an amd64 branch that uses an older gcc than 3.4...) Any commiters here, or should i still send-pr? Juergen From owner-freebsd-amd64@FreeBSD.ORG Fri Apr 29 20:00:15 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9580A16A4CF for ; Fri, 29 Apr 2005 20:00:15 +0000 (GMT) Received: from melon.pingpong.net (82.milagro.bahnhof.net [195.178.168.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E33343D55 for ; Fri, 29 Apr 2005 20:00:15 +0000 (GMT) (envelope-from girgen@FreeBSD.org) Received: from localhost (localhost.pingpong.net [127.0.0.1]) by melon.pingpong.net (Postfix) with ESMTP id 7E5004AFB3 for ; Fri, 29 Apr 2005 22:00:13 +0200 (CEST) Received: from melon.pingpong.net ([127.0.0.1]) by localhost (melon.pingpong.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00777-02-6 for ; Fri, 29 Apr 2005 22:00:13 +0200 (CEST) Received: from [192.168.1.187] (rambutan.pingpong.net [192.168.1.187]) by melon.pingpong.net (Postfix) with ESMTP id 5CCB84AFB2 for ; Fri, 29 Apr 2005 22:00:13 +0200 (CEST) Date: Fri, 29 Apr 2005 22:00:12 +0200 From: Palle Girgensohn To: freebsd-amd64@freebsd.org Message-ID: <42F0A677951F8710C0546786@rambutan.pingpong.net> In-Reply-To: References: X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at pingpong.net Subject: Re: amd64 as nfs-server X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2005 20:00:15 -0000 --On m=E5ndag, april 25, 2005 22.53.01 +0200 Claus Guttesen=20 wrote: > Hi. > > I'm getting a couple of Dell 2850's with dual EMT64 cpu's @ 2.8 GHz to > replace our very trusty PIII-nfs-servers. I am accustomed to the > rock-solid stability of the i386-port of the 5.x-branch and will > probably put i386 on them. But has anyone used the amd64 coupled with > PE 2850's as nfs-servers? They have onboard em-interfaces. Hi, I do use 2850 w/ amd64, and with dual CPU and hyper threading, it is not=20 stable, it crashes a lot. I'm debugging it, we'll see what turns up. /Palle From owner-freebsd-amd64@FreeBSD.ORG Fri Apr 29 20:10:33 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C47C116A4CE; Fri, 29 Apr 2005 20:10:33 +0000 (GMT) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66F4F43D5D; Fri, 29 Apr 2005 20:10:33 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1.sentex.ca [199.212.134.4]) by smarthost2.sentex.ca (8.13.3/8.13.3) with ESMTP id j3TKAXfn014895; Fri, 29 Apr 2005 16:10:33 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.13.3/8.13.3) with ESMTP id j3TKB7qO003575; Fri, 29 Apr 2005 16:11:07 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id D25B87306E; Fri, 29 Apr 2005 16:10:32 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20050429201032.D25B87306E@freebsd-current.sentex.ca> Date: Fri, 29 Apr 2005 16:10:32 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.82, clamav-milter version 0.82 on clamscanner2 X-Virus-Status: Clean Subject: [current tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2005 20:10:34 -0000 TB --- 2005-04-29 20:07:40 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-04-29 20:07:40 - starting CURRENT tinderbox run for amd64/amd64 TB --- 2005-04-29 20:07:40 - checking out the source tree TB --- 2005-04-29 20:07:40 - cd /home/tinderbox/CURRENT/amd64/amd64 TB --- 2005-04-29 20:07:40 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2005-04-29 20:09:26 - building world (CFLAGS=-O2 -pipe) TB --- 2005-04-29 20:09:26 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-29 20:09:26 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f init init.o init.8.gz init.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> sbin/ip6fw (cleandir) rm -f ip6fw ip6fw.o ip6fw.8.gz ip6fw.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> sbin/ipf (cleandir) ".depend", line 269: Inconsistent operator for ipf make: fatal errors encountered -- cannot continue *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src/sbin. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. TB --- 2005-04-29 20:10:32 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-04-29 20:10:32 - ERROR: failed to build world TB --- 2005-04-29 20:10:32 - tinderbox aborted From owner-freebsd-amd64@FreeBSD.ORG Fri Apr 29 21:24:17 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1BECD16A4CE for ; Fri, 29 Apr 2005 21:24:17 +0000 (GMT) Received: from smtp101.rog.mail.re2.yahoo.com (smtp101.rog.mail.re2.yahoo.com [206.190.36.79]) by mx1.FreeBSD.org (Postfix) with SMTP id 25D6943D39 for ; Fri, 29 Apr 2005 21:24:15 +0000 (GMT) (envelope-from mikej@rogers.com) Received: from unknown (HELO 172.16.0.1) (mikej@69.193.222.195 with login) by smtp101.rog.mail.re2.yahoo.com with SMTP; 29 Apr 2005 21:24:14 -0000 Received: from 172.16.0.199 (SquirrelMail authenticated user mikej) by 172.16.0.1 with HTTP; Fri, 29 Apr 2005 17:24:03 -0400 (EDT) Message-ID: <1730.172.16.0.199.1114809843.squirrel@172.16.0.1> In-Reply-To: <42F0A677951F8710C0546786@rambutan.pingpong.net> References: <42F0A677951F8710C0546786@rambutan.pingpong.net> Date: Fri, 29 Apr 2005 17:24:03 -0400 (EDT) From: "Mike Jakubik" To: "Palle Girgensohn" User-Agent: SquirrelMail/1.5.1 [CVS] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit cc: freebsd-amd64@freebsd.org Subject: Re: amd64 as nfs-server X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2005 21:24:17 -0000 On Fri, April 29, 2005 4:00 pm, Palle Girgensohn said: >> I'm getting a couple of Dell 2850's with dual EMT64 cpu's @ 2.8 GHz to >> replace our very trusty PIII-nfs-servers. I am accustomed to the >> rock-solid stability of the i386-port of the 5.x-branch and will >> probably put i386 on them. But has anyone used the amd64 coupled with PE >> 2850's as nfs-servers? They have onboard em-interfaces. >> > > Hi, > > > I do use 2850 w/ amd64, and with dual CPU and hyper threading, it is not > stable, it crashes a lot. I'm debugging it, we'll see what turns up. 5.x is known to be unstable with 4 CPUs. I bet you would be ok if you disabled hyper threading. But hopefully your debugging will help to determine the real problem. From owner-freebsd-amd64@FreeBSD.ORG Fri Apr 29 21:28:30 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97C9416A4CE; Fri, 29 Apr 2005 21:28:30 +0000 (GMT) Received: from april.chuckr.org (april.chuckr.org [66.92.151.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5096543D2D; Fri, 29 Apr 2005 21:28:30 +0000 (GMT) (envelope-from chuckr@chuckr.org) Received: from [66.92.151.195] (july.chuckr.org [66.92.151.195]) by april.chuckr.org (Postfix) with ESMTP id 71E0912123; Fri, 29 Apr 2005 17:23:36 -0400 (EDT) Message-ID: <4272A6D3.3070109@chuckr.org> Date: Fri, 29 Apr 2005 21:27:47 +0000 From: Chuck Robey User-Agent: Mozilla Thunderbird 1.0 (X11/20050316) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Palle Girgensohn References: <42F0A677951F8710C0546786@rambutan.pingpong.net> In-Reply-To: <42F0A677951F8710C0546786@rambutan.pingpong.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit cc: freebsd-amd64@freebsd.org Subject: Re: amd64 as nfs-server X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2005 21:28:30 -0000 Palle Girgensohn wrote: > > > --On måndag, april 25, 2005 22.53.01 +0200 Claus Guttesen > wrote: > >> Hi. >> >> I'm getting a couple of Dell 2850's with dual EMT64 cpu's @ 2.8 GHz to >> replace our very trusty PIII-nfs-servers. I am accustomed to the >> rock-solid stability of the i386-port of the 5.x-branch and will >> probably put i386 on them. But has anyone used the amd64 coupled with >> PE 2850's as nfs-servers? They have onboard em-interfaces. > Well, I don't have the 2850's, but I have a dual amd64 usinmg a Tyan Mobo, and it's quite fast, quite safe. I went and bought a couple of refurbished 145G scsi drives, and linked them up on a raid via vinum, and it's huge, safe, fast, and reliable. Being that it's refurbished, the reliable part needs some watching for, but so far, so good. > > Hi, > > I do use 2850 w/ amd64, and with dual CPU and hyper threading, it is not > stable, it crashes a lot. I'm debugging it, we'll see what turns up. > > /Palle > > _______________________________________________ > freebsd-amd64@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-amd64 > To unsubscribe, send any mail to "freebsd-amd64-unsubscribe@freebsd.org" From owner-freebsd-amd64@FreeBSD.ORG Fri Apr 29 21:57:12 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4326416A5B7 for ; Fri, 29 Apr 2005 21:57:12 +0000 (GMT) Received: from koyukuk.teamcool.net (koyukuk.teamcool.net [209.161.34.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id B72B543D5A for ; Fri, 29 Apr 2005 21:57:11 +0000 (GMT) (envelope-from kgunders@teamcool.net) Received: from cochise.teamcool.net (unknown [192.168.1.57]) by koyukuk.teamcool.net (TeamCool Rocks) with ESMTP id EE9A5F7E7 for ; Fri, 29 Apr 2005 15:57:10 -0600 (MDT) Date: Fri, 29 Apr 2005 15:57:10 -0600 From: Ken Gunderson To: freebsd-amd64@freebsd.org Message-Id: <20050429155710.4cccc75b.kgunders@teamcool.net> In-Reply-To: <4272A6D3.3070109@chuckr.org> References: <42F0A677951F8710C0546786@rambutan.pingpong.net> <4272A6D3.3070109@chuckr.org> Organization: Teamcool Networks X-Mailer: Sylpheed version 1.9.6 (GTK+ 2.6.4; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: amd64 as nfs-server X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2005 21:57:12 -0000 On Fri, 29 Apr 2005 21:27:47 +0000 Chuck Robey wrote: > Palle Girgensohn wrote: > >=20 > >=20 > > --On m=E5ndag, april 25, 2005 22.53.01 +0200 Claus Guttesen=20 > > wrote: > >=20 > >> Hi. > >> > >> I'm getting a couple of Dell 2850's with dual EMT64 cpu's @ 2.8 GHz to > >> replace our very trusty PIII-nfs-servers. I am accustomed to the > >> rock-solid stability of the i386-port of the 5.x-branch and will > >> probably put i386 on them. But has anyone used the amd64 coupled with > >> PE 2850's as nfs-servers? They have onboard em-interfaces. > >=20 >=20 > Well, I don't have the 2850's, but I have a dual amd64 usinmg a Tyan=20 > Mobo, and it's quite fast, quite safe. I went and bought a couple of=20 > refurbished 145G scsi drives, and linked them up on a raid via vinum,=20 > and it's huge, safe, fast, and reliable. Being that it's refurbished,=20 > the reliable part needs some watching for, but so far, so good. Do you mean vinum or gvinum here? (or is gvinum oficially called vinum now??) Could you elaborate on what type of vinum configs you're using? I've used it a lot on 4.x, but last I tried it was a long ways from being ready for prime time on 5.x. Still had issues with gvinum mirror as of early this month. I hear Lukas has been busting a on it though so maybe safe to use now?? TIA- --=20 Best regards, Ken Gunderson GPG Key-- 9F5179FD "Freedom begins between the ears." -- Edward Abbey From owner-freebsd-amd64@FreeBSD.ORG Fri Apr 29 22:52:04 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 661B416A4D5 for ; Fri, 29 Apr 2005 22:52:04 +0000 (GMT) Received: from melon.pingpong.net (82.milagro.bahnhof.net [195.178.168.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id B66FA43D4C for ; Fri, 29 Apr 2005 22:52:03 +0000 (GMT) (envelope-from girgen@FreeBSD.org) Received: from localhost (localhost.pingpong.net [127.0.0.1]) by melon.pingpong.net (Postfix) with ESMTP id 3D1874B048; Sat, 30 Apr 2005 00:52:02 +0200 (CEST) Received: from melon.pingpong.net ([127.0.0.1]) by localhost (melon.pingpong.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00678-01-6; Sat, 30 Apr 2005 00:52:02 +0200 (CEST) Received: from [192.168.1.187] (rambutan.pingpong.net [192.168.1.187]) by melon.pingpong.net (Postfix) with ESMTP id 1A6174B045; Sat, 30 Apr 2005 00:52:01 +0200 (CEST) Date: Sat, 30 Apr 2005 00:52:01 +0200 From: Palle Girgensohn To: Mike Jakubik Message-ID: X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at pingpong.net cc: freebsd-amd64@freebsd.org Subject: Re: amd64 as nfs-server X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2005 22:52:04 -0000 --On fredag, april 29, 2005 17.24.03 -0400 Mike Jakubik wrote: > On Fri, April 29, 2005 4:00 pm, Palle Girgensohn said: > >>> I'm getting a couple of Dell 2850's with dual EMT64 cpu's @ 2.8 GHz to >>> replace our very trusty PIII-nfs-servers. I am accustomed to the >>> rock-solid stability of the i386-port of the 5.x-branch and will >>> probably put i386 on them. But has anyone used the amd64 coupled with PE >>> 2850's as nfs-servers? They have onboard em-interfaces. >>> >> >> Hi, >> >> >> I do use 2850 w/ amd64, and with dual CPU and hyper threading, it is not >> stable, it crashes a lot. I'm debugging it, we'll see what turns up. > > 5.x is known to be unstable with 4 CPUs. > I bet you would be ok if you > disabled hyper threading. It actually says "more than four real CPUs" , so I thought I'd be safe. True, though, disabling hyperthreading seems to fix the problem... /Palle From owner-freebsd-amd64@FreeBSD.ORG Fri Apr 29 23:33:40 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3013816A4CE for ; Fri, 29 Apr 2005 23:33:40 +0000 (GMT) Received: from lorax.ldc.upenn.edu (lorax.LDC.upenn.edu [158.130.16.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7C5B43D2D for ; Fri, 29 Apr 2005 23:33:39 +0000 (GMT) (envelope-from fuzz@ldc.upenn.edu) Received: by lorax.ldc.upenn.edu (Postfix, from userid 32822) id 1B565B256A; Fri, 29 Apr 2005 19:33:39 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by lorax.ldc.upenn.edu (Postfix) with ESMTP id 144AAB2562 for ; Fri, 29 Apr 2005 19:33:39 -0400 (EDT) Date: Fri, 29 Apr 2005 19:33:39 -0400 (EDT) From: "Jason M. Leonard" To: freebsd-amd64@freebsd.org In-Reply-To: <20050429155710.4cccc75b.kgunders@teamcool.net> Message-ID: <20050429191736.B43950@lorax.ldc.upenn.edu> References: <4272A6D3.3070109@chuckr.org> <20050429155710.4cccc75b.kgunders@teamcool.net> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-230314016-1114817619=:43950" Subject: Re: amd64 as nfs-server X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2005 23:33:40 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-230314016-1114817619=:43950 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Fri, 29 Apr 2005, Ken Gunderson wrote: > On Fri, 29 Apr 2005 21:27:47 +0000 > Chuck Robey wrote: > >> Palle Girgensohn wrote: >>> --On m=E5ndag, april 25, 2005 22.53.01 +0200 Claus Guttesen >>> wrote: >>>> >>>> I'm getting a couple of Dell 2850's with dual EMT64 cpu's @ 2.8 GHz to >>>> replace our very trusty PIII-nfs-servers. I am accustomed to the >>>> rock-solid stability of the i386-port of the 5.x-branch and will >>>> probably put i386 on them. But has anyone used the amd64 coupled with >>>> PE 2850's as nfs-servers? They have onboard em-interfaces. >>> >> >> Well, I don't have the 2850's, but I have a dual amd64 usinmg a Tyan >> Mobo, and it's quite fast, quite safe. I went and bought a couple of >> refurbished 145G scsi drives, and linked them up on a raid via vinum, >> and it's huge, safe, fast, and reliable. Being that it's refurbished, >> the reliable part needs some watching for, but so far, so good. > > Do you mean vinum or gvinum here? (or is gvinum oficially called vinum > now??) Could you elaborate on what type of vinum configs you're using? > I've used it a lot on 4.x, but last I tried it was a long ways from > being ready for prime time on 5.x. Still had issues with gvinum mirror > as of early this month. I hear Lukas has been busting a on it though > so maybe safe to use now?? I have been using gmirror + gstripe (RAID10) to serve /home on a busy=20 multi-user system/NFS server since 5.3-RELEASE/amd64 with zero problems.=20 I use the onboard ahd on a Tyan 2882; half of each gmirrored pair is on a= =20 different channel, then gstriped across the pairs. gmirror=09A=09B=09C=09D ahd0=09A0=09B0=09C0=09D0 ahd1=09A1=09B1=09C1=09D1 gstripe A+B+C+D Caveat emptor: I have not had any drive failures in this configuration. :Fuzz --0-230314016-1114817619=:43950-- From owner-freebsd-amd64@FreeBSD.ORG Sat Apr 30 00:07:04 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B94716A4CE for ; Sat, 30 Apr 2005 00:07:04 +0000 (GMT) Received: from koyukuk.teamcool.net (koyukuk.teamcool.net [209.161.34.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDA4843D2F for ; Sat, 30 Apr 2005 00:07:03 +0000 (GMT) (envelope-from kgunders@teamcool.net) Received: from cochise.teamcool.net (unknown [192.168.1.57]) by koyukuk.teamcool.net (TeamCool Rocks) with ESMTP id C88D2F7E7 for ; Fri, 29 Apr 2005 18:07:00 -0600 (MDT) Date: Fri, 29 Apr 2005 18:07:00 -0600 From: Ken Gunderson To: freebsd-amd64@freebsd.org Message-Id: <20050429180700.3111caf1.kgunders@teamcool.net> In-Reply-To: <20050429191736.B43950@lorax.ldc.upenn.edu> References: <4272A6D3.3070109@chuckr.org> <20050429155710.4cccc75b.kgunders@teamcool.net> <20050429191736.B43950@lorax.ldc.upenn.edu> Organization: Teamcool Networks X-Mailer: Sylpheed version 1.9.6 (GTK+ 2.6.4; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: amd64 as nfs-server X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Apr 2005 00:07:04 -0000 On Fri, 29 Apr 2005 19:33:39 -0400 (EDT) "Jason M. Leonard" wrote: >=20 > On Fri, 29 Apr 2005, Ken Gunderson wrote: >=20 > > On Fri, 29 Apr 2005 21:27:47 +0000 > > Chuck Robey wrote: > > > >> Palle Girgensohn wrote: > >>> --On m=E5ndag, april 25, 2005 22.53.01 +0200 Claus Guttesen > >>> wrote: > >>>> > >>>> I'm getting a couple of Dell 2850's with dual EMT64 cpu's @ 2.8 GHz = to > >>>> replace our very trusty PIII-nfs-servers. I am accustomed to the > >>>> rock-solid stability of the i386-port of the 5.x-branch and will > >>>> probably put i386 on them. But has anyone used the amd64 coupled with > >>>> PE 2850's as nfs-servers? They have onboard em-interfaces. > >>> > >> > >> Well, I don't have the 2850's, but I have a dual amd64 usinmg a Tyan > >> Mobo, and it's quite fast, quite safe. I went and bought a couple of > >> refurbished 145G scsi drives, and linked them up on a raid via vinum, > >> and it's huge, safe, fast, and reliable. Being that it's refurbished, > >> the reliable part needs some watching for, but so far, so good. > > > > Do you mean vinum or gvinum here? (or is gvinum oficially called vinum > > now??) Could you elaborate on what type of vinum configs you're using? > > I've used it a lot on 4.x, but last I tried it was a long ways from > > being ready for prime time on 5.x. Still had issues with gvinum mirror > > as of early this month. I hear Lukas has been busting a on it though > > so maybe safe to use now?? >=20 > I have been using gmirror + gstripe (RAID10) to serve /home on a busy=20 > multi-user system/NFS server since 5.3-RELEASE/amd64 with zero problems.= =20 > I use the onboard ahd on a Tyan 2882; half of each gmirrored pair is on a= =20 > different channel, then gstriped across the pairs. >=20 > gmirror A B C D > ahd0 A0 B0 C0 D0 > ahd1 A1 B1 C1 D1 >=20 > gstripe A+B+C+D >=20 > Caveat emptor: I have not had any drive failures in this configuration. This looks like a nice geom based config:) My question was about gvinum though. Vinum is more complex, but I think also allows for more flexibility, albeit at a price. I, too, have been using some gmirror configs on 5.3 for a while now w/ zero problems. And I have simulated drive failures. Works like a charm;) Recently, however, I just bit the bullet and scored an LSI-320-2X... A sister machine is also in the works in near future, so maybe I'll build it w/ a geom base raid10 config and have some fun playing;) --=20 Best regards, Ken Gunderson GPG Key-- 9F5179FD "Freedom begins between the ears." -- Edward Abbey From owner-freebsd-amd64@FreeBSD.ORG Sat Apr 30 00:43:17 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B1FAF16A4CE; Sat, 30 Apr 2005 00:43:17 +0000 (GMT) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3026343D5A; Sat, 30 Apr 2005 00:43:16 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.3/8.13.1/NinthNine) with SMTP id j3U0hAto009242; Sat, 30 Apr 2005 09:43:11 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Sat, 30 Apr 2005 09:43:10 +0900 (JST) Message-Id: <200504300043.j3U0hAto009242@sakura.ninth-nine.com> From: Norikatsu Shigemura To: Juergen Lock In-Reply-To: <20050429192851.A47512@saturn.kn-bremen.de> References: <20050427210405.A95072@saturn.kn-bremen.de> <20050428210246.A21966@saturn.kn-bremen.de> <200504281514.01411.jkim@niksun.com> <200504290313.18498.jkim@niksun.com> <20050429192851.A47512@saturn.kn-bremen.de> X-Mailer: Sylpheed version 1.9.9 (GTK+ 2.6.7; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.6 (sakura.ninth-nine.com [219.127.74.121]); Sat, 30 Apr 2005 09:43:14 +0900 (JST) cc: freebsd-emulation@FreeBSD.org cc: freebsd-amd64@FreeBSD.org Subject: Re: please test qemu port update X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Apr 2005 00:43:17 -0000 On Fri, 29 Apr 2005 19:28:51 +0200 Juergen Lock wrote: > Any commiters here, or should i still send-pr? Please send-pr and Cc: nork@. I'll commit it. From owner-freebsd-amd64@FreeBSD.ORG Sat Apr 30 03:31:02 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C3B6C16A4CE for ; Sat, 30 Apr 2005 03:31:02 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7052F43D31 for ; Sat, 30 Apr 2005 03:31:02 +0000 (GMT) (envelope-from astrodog@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so980044wra for ; Fri, 29 Apr 2005 20:31:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=SpuBNhTWrXTNunnOFOwPPrWNPutOfx9oJgQNJ94LEG35dDACvYRNBD+yVnli9ZothVd+Tgua0S6hMq9qqu2Civh/YH4NFhKr+KQbm4VcRJ6RtKwCm730e+S9ObhRtnyi4lp8Ve58LYDRLcfIzpDQ+1f5iv+HQcbgDtglcLv3STo= Received: by 10.54.120.9 with SMTP id s9mr1677678wrc; Fri, 29 Apr 2005 20:31:02 -0700 (PDT) Received: by 10.54.40.69 with HTTP; Fri, 29 Apr 2005 20:31:01 -0700 (PDT) Message-ID: <2fd864e050429203138dddad7@mail.gmail.com> Date: Fri, 29 Apr 2005 20:31:02 -0700 From: Astrodog To: Ken Gunderson In-Reply-To: <20050429180700.3111caf1.kgunders@teamcool.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4272A6D3.3070109@chuckr.org> <20050429155710.4cccc75b.kgunders@teamcool.net> <20050429191736.B43950@lorax.ldc.upenn.edu> <20050429180700.3111caf1.kgunders@teamcool.net> cc: freebsd-amd64@freebsd.org Subject: Re: amd64 as nfs-server X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Astrodog List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Apr 2005 03:31:02 -0000 A quick thought on the Hyperthreading thing, and a quick glance at the forums indicates to me that Hyperthreading, if anything, hurts performance. Might be a consideration in your configuration. From owner-freebsd-amd64@FreeBSD.ORG Sat Apr 30 06:40:26 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 67F3C16A4CE; Sat, 30 Apr 2005 06:40:26 +0000 (GMT) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 086E543D45; Sat, 30 Apr 2005 06:40:26 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1c.sentex.ca [64.7.153.10]) by smarthost1.sentex.ca (8.13.3/8.13.3) with ESMTP id j3U6eP1M025196; Sat, 30 Apr 2005 02:40:25 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.13.3/8.13.3) with ESMTP id j3U6ePkj031264; Sat, 30 Apr 2005 02:40:25 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 7E2D47306E; Sat, 30 Apr 2005 02:40:25 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20050430064025.7E2D47306E@freebsd-current.sentex.ca> Date: Sat, 30 Apr 2005 02:40:25 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.82, clamav-milter version 0.82 on clamscanner1 X-Virus-Status: Clean Subject: [current tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Apr 2005 06:40:26 -0000 TB --- 2005-04-30 06:37:34 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-04-30 06:37:34 - starting CURRENT tinderbox run for amd64/amd64 TB --- 2005-04-30 06:37:34 - checking out the source tree TB --- 2005-04-30 06:37:34 - cd /home/tinderbox/CURRENT/amd64/amd64 TB --- 2005-04-30 06:37:34 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2005-04-30 06:39:18 - building world (CFLAGS=-O2 -pipe) TB --- 2005-04-30 06:39:18 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-30 06:39:18 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f init init.o init.8.gz init.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> sbin/ip6fw (cleandir) rm -f ip6fw ip6fw.o ip6fw.8.gz ip6fw.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> sbin/ipf (cleandir) ".depend", line 269: Inconsistent operator for ipf make: fatal errors encountered -- cannot continue *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src/sbin. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. TB --- 2005-04-30 06:40:25 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-04-30 06:40:25 - ERROR: failed to build world TB --- 2005-04-30 06:40:25 - tinderbox aborted From owner-freebsd-amd64@FreeBSD.ORG Sat Apr 30 16:36:55 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD10A16A4CE; Sat, 30 Apr 2005 16:36:55 +0000 (GMT) Received: from bgo1smout1.broadpark.no (bgo1smout1.broadpark.no [217.13.4.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id D91E043D39; Sat, 30 Apr 2005 16:36:54 +0000 (GMT) (envelope-from des@des.no) Received: from bgo1sminn1.broadpark.no ([217.13.4.93]) by bgo1smout1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IFR005UNPVW8360@bgo1smout1.broadpark.no>; Sat, 30 Apr 2005 18:31:08 +0200 (CEST) Received: from dsa.des.no ([80.203.228.37]) by bgo1sminn1.broadpark.no (Sun Java System Messaging Server 6.1 HotFix 0.05 (built Oct 21 2004)) with ESMTP id <0IFR00D64Q71YXA0@bgo1sminn1.broadpark.no>; Sat, 30 Apr 2005 18:37:49 +0200 (CEST) Received: by dsa.des.no (Pony Express, from userid 666) id 8E4B2453D1; Sat, 30 Apr 2005 18:36:53 +0200 (CEST) Received: from xps.des.no (xps.des.no [10.0.0.12]) by dsa.des.no (Pony Express) with ESMTP id 0298D45171; Sat, 30 Apr 2005 18:36:49 +0200 (CEST) Received: by xps.des.no (Postfix, from userid 1001) id EFDAB33C09; Sat, 30 Apr 2005 18:36:48 +0200 (CEST) Date: Sat, 30 Apr 2005 18:36:48 +0200 From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) In-reply-to: <20050427210405.A95072@saturn.kn-bremen.de> To: freebsd-emulation@freebsd.org Message-id: <86mzrgmdb3.fsf@xps.des.no> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on dsa.des.no References: <20050427210405.A95072@saturn.kn-bremen.de> User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3 (berkeley-unix) X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED,AWL autolearn=disabled version=3.0.2 X-Spam-Level: cc: freebsd-amd64@freebsd.org Subject: Re: please test qemu port update X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Apr 2005 16:36:55 -0000 Juergen Lock writes: > +.if !defined(WITHOUT_SAMBA) > RUN_DEPENDS+=3D ${LOCALBASE}/sbin/smbd:${PORTSDIR}/net/samba > +.endif This should default to off, not on. Samba is only needed in a very specific case (Windows guest OS which needs access to host filesystem) and no change in the qemu port is needed to support Samba. By turning it on by default, you are forcing people who install qemu from packages to also install Samba, even though most of them won't need it; people who install from packages and *do* want Samba can install it separately. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-amd64@FreeBSD.ORG Sat Apr 30 17:26:19 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62BDF16A4CE; Sat, 30 Apr 2005 17:26:19 +0000 (GMT) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id F29CC43D41; Sat, 30 Apr 2005 17:26:18 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2.sentex.ca [199.212.134.9]) by smarthost2.sentex.ca (8.13.3/8.13.3) with ESMTP id j3UHQISC054694; Sat, 30 Apr 2005 13:26:18 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.3/8.13.3) with ESMTP id j3UHQI1Q050359; Sat, 30 Apr 2005 13:26:18 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 6E98E7306E; Sat, 30 Apr 2005 13:26:18 -0400 (EDT) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20050430172618.6E98E7306E@freebsd-current.sentex.ca> Date: Sat, 30 Apr 2005 13:26:18 -0400 (EDT) X-Virus-Scanned: ClamAV version 0.83, clamav-milter version 0.83 on clamscanner4 X-Virus-Status: Clean Subject: [current tinderbox] failure on amd64/amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Apr 2005 17:26:19 -0000 TB --- 2005-04-30 17:22:39 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2005-04-30 17:22:39 - starting CURRENT tinderbox run for amd64/amd64 TB --- 2005-04-30 17:22:39 - checking out the source tree TB --- 2005-04-30 17:22:39 - cd /home/tinderbox/CURRENT/amd64/amd64 TB --- 2005-04-30 17:22:39 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2005-04-30 17:25:11 - building world (CFLAGS=-O2 -pipe) TB --- 2005-04-30 17:25:11 - cd /home/tinderbox/CURRENT/amd64/amd64/src TB --- 2005-04-30 17:25:11 - /usr/bin/make -B buildworld >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree [...] rm -f init init.o init.8.gz init.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> sbin/ip6fw (cleandir) rm -f ip6fw ip6fw.o ip6fw.8.gz ip6fw.8.cat.gz rm -f .depend GPATH GRTAGS GSYMS GTAGS ===> sbin/ipf (cleandir) ".depend", line 269: Inconsistent operator for ipf make: fatal errors encountered -- cannot continue *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src/sbin. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. *** Error code 1 Stop in /tinderbox/CURRENT/amd64/amd64/src. TB --- 2005-04-30 17:26:18 - WARNING: /usr/bin/make returned exit code 1 TB --- 2005-04-30 17:26:18 - ERROR: failed to build world TB --- 2005-04-30 17:26:18 - tinderbox aborted From owner-freebsd-amd64@FreeBSD.ORG Sat Apr 30 18:57:59 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A42F16A4CE; Sat, 30 Apr 2005 18:57:59 +0000 (GMT) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABEE443D41; Sat, 30 Apr 2005 18:57:57 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1])j3UIvuk8018442; Sat, 30 Apr 2005 20:57:56 +0200 Received: from saturn.kn-bremen.de (uucp@localhost)j3UIvu10018440; Sat, 30 Apr 2005 20:57:56 +0200 Received: (from nox@localhost) by saturn.kn-bremen.de (8.11.4/8.8.5) id j3UIroq75303; Sat, 30 Apr 2005 20:53:50 +0200 (CEST) From: Juergen Lock Date: Sat, 30 Apr 2005 20:53:49 +0200 To: Norikatsu Shigemura Message-ID: <20050430205349.A75283@saturn.kn-bremen.de> Mail-Followup-To: Norikatsu Shigemura , Juergen Lock , jkim@niksun.com, freebsd-emulation@FreeBSD.org, freebsd-amd64@FreeBSD.org References: <20050427210405.A95072@saturn.kn-bremen.de> <20050428210246.A21966@saturn.kn-bremen.de> <200504281514.01411.jkim@niksun.com> <200504290313.18498.jkim@niksun.com> <20050429192851.A47512@saturn.kn-bremen.de> <200504300043.j3U0hAto009242@sakura.ninth-nine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <200504300043.j3U0hAto009242@sakura.ninth-nine.com> cc: freebsd-emulation@FreeBSD.org cc: Juergen Lock cc: freebsd-amd64@FreeBSD.org Subject: Re: please test qemu port update X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Apr 2005 18:57:59 -0000 On Sat, Apr 30, 2005 at 09:43:10AM +0900, Norikatsu Shigemura wrote: > On Fri, 29 Apr 2005 19:28:51 +0200 > Juergen Lock wrote: > > Any commiters here, or should i still send-pr? > > Please send-pr and Cc: nork@. I'll commit it. Just did that. Oops, forgot to Cc you... Sorry, Juergen From owner-freebsd-amd64@FreeBSD.ORG Sat Apr 30 19:06:37 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 297DB16A4CF; Sat, 30 Apr 2005 19:06:37 +0000 (GMT) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48FF043D2D; Sat, 30 Apr 2005 19:06:35 +0000 (GMT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (gwyn [127.0.0.1])j3UJ6Ik8019117; Sat, 30 Apr 2005 21:06:18 +0200 Received: from saturn.kn-bremen.de (uucp@localhost)j3UJ6Iax019115; Sat, 30 Apr 2005 21:06:18 +0200 Received: (from nox@localhost) by saturn.kn-bremen.de (8.11.4/8.8.5) id j3UJ0r975601; Sat, 30 Apr 2005 21:00:53 +0200 (CEST) Date: Sat, 30 Apr 2005 21:00:53 +0200 (CEST) From: Juergen Lock Message-Id: <200504301900.j3UJ0r975601@saturn.kn-bremen.de> To: des@des.no X-Newsgroups: local.list.freebsd.emulation In-Reply-To: <86mzrgmdb3.fsf@xps.des.no> References: <20050427210405.A95072@saturn.kn-bremen.de> Organization: home cc: freebsd-emulation@freebsd.org cc: freebsd-amd64@freebsd.org Subject: Re: please test qemu port update X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Apr 2005 19:06:37 -0000 In article <86mzrgmdb3.fsf@xps.des.no> you write: >Juergen Lock writes: >> +.if !defined(WITHOUT_SAMBA) >> RUN_DEPENDS+= ${LOCALBASE}/sbin/smbd:${PORTSDIR}/net/samba >> +.endif > >This should default to off, not on. Samba is only needed in a very >specific case (Windows guest OS which needs access to host filesystem) >and no change in the qemu port is needed to support Samba. By turning >it on by default, you are forcing people who install qemu from >packages to also install Samba, even though most of them won't need >it; people who install from packages and *do* want Samba can install >it separately. Hmm, packages... Alright, so I changed that. Juergen