From owner-freebsd-sparc64@FreeBSD.ORG Sun Feb 28 19:23:46 2010 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2783F106567A for ; Sun, 28 Feb 2010 19:23:46 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from mail14.syd.optusnet.com.au (mail14.syd.optusnet.com.au [211.29.132.195]) by mx1.freebsd.org (Postfix) with ESMTP id AAD868FC29 for ; Sun, 28 Feb 2010 19:23:45 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c122-106-253-149.belrs3.nsw.optusnet.com.au [122.106.253.149]) by mail14.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id o1SJNhlG002969 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 1 Mar 2010 06:23:44 +1100 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.3/8.14.3) with ESMTP id o1SJNUxx068302 for ; Mon, 1 Mar 2010 06:23:31 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.3/8.14.3/Submit) id o1SJNUQp068301 for freebsd-sparc64@freebsd.org; Mon, 1 Mar 2010 06:23:30 +1100 (EST) (envelope-from peter) Date: Mon, 1 Mar 2010 06:23:30 +1100 From: Peter Jeremy To: freebsd-sparc64@freebsd.org Message-ID: <20100228192329.GA68252@server.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="61jdw2sOBCFtR2d/" Content-Disposition: inline X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: gcc code generation problems X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Feb 2010 19:23:46 -0000 --61jdw2sOBCFtR2d/ Content-Type: multipart/mixed; boundary="EVF5PPMfhYS0aIcm" Content-Disposition: inline --EVF5PPMfhYS0aIcm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I've been trying to use FreeBSD 8-stable from a couple of weeks ago on a SunBlade 1500 to investigate some perl problems I'm seeing on Solaris and have bumped into different and more worrying problems on FreeBSD. In particular, the test program used to determine the number of fraction bits in a double (slightly adapted variant attached) is getting the wrong answer. (The command in the comment reflects the compilation flags used by perl). The correct answer is '53', but if optimisation is enabled, I'm getting '51' instead. Disabling the printf() and/or using -fno-strict-aliasing has no effect. $ cc -DXXX -O tryfp.c; ./a.out a 4503599627370495 !=3D 0 51 $ cc -DXXX -O2 tryfp.c; ./a.out a 4503599627370495 !=3D 0 51 $ cc -DXXX tryfp.c; ./a.out a 18014398509481983 !=3D 18014398509481984 53 $=20 I have captured the asm output from those 3 optimisation levels and can see that they are different but I'm still trying to work out the exact differences. For anyone with perl installed, this is the value of nv_preserves_uv_bits in $LOCALBASE/lib/perl5/5.8.?/mach/Config_heavy.pl I would appreciate any comments/suggestions. --=20 Peter Jeremy --EVF5PPMfhYS0aIcm-- --61jdw2sOBCFtR2d/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkuKwrEACgkQ/opHv/APuIfJAwCgmtE2iuea4AJdC8FrWbd8AK3q GoYAoICgcXgIidHEkfQe4mOJcK3uvwph =1FQ3 -----END PGP SIGNATURE----- --61jdw2sOBCFtR2d/-- From owner-freebsd-sparc64@FreeBSD.ORG Mon Mar 1 05:27:26 2010 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 15C431065674; Mon, 1 Mar 2010 05:27:26 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id B9FEA8FC15; Mon, 1 Mar 2010 05:27:25 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.4/8.14.3) with ESMTP id o215RP1A097546; Mon, 1 Mar 2010 00:27:25 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.4/8.14.3/Submit) id o215RP48097538; Mon, 1 Mar 2010 05:27:25 GMT (envelope-from tinderbox@freebsd.org) Date: Mon, 1 Mar 2010 05:27:25 GMT Message-Id: <201003010527.o215RP48097538@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [head tinderbox] failure on sparc64/sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2010 05:27:26 -0000 TB --- 2010-03-01 04:32:21 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2010-03-01 04:32:21 - starting HEAD tinderbox run for sparc64/sparc64 TB --- 2010-03-01 04:32:21 - cleaning the object tree TB --- 2010-03-01 04:32:34 - cvsupping the source tree TB --- 2010-03-01 04:32:34 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/sparc64/sparc64/supfile TB --- 2010-03-01 04:35:02 - building world TB --- 2010-03-01 04:35:02 - MAKEOBJDIRPREFIX=/obj TB --- 2010-03-01 04:35:02 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2010-03-01 04:35:02 - TARGET=sparc64 TB --- 2010-03-01 04:35:02 - TARGET_ARCH=sparc64 TB --- 2010-03-01 04:35:02 - TZ=UTC TB --- 2010-03-01 04:35:02 - __MAKE_CONF=/dev/null TB --- 2010-03-01 04:35:02 - cd /src TB --- 2010-03-01 04:35:02 - /usr/bin/make -B buildworld >>> World build started on Mon Mar 1 04:35:03 UTC 2010 >>> 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 [...] cc -O2 -pipe -DUSE_BSM_AUDIT -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-pointer-sign -o su su.o -lutil -lpam -lbsm gzip -cn /src/usr.bin/su/su.1 > su.1.gz ===> usr.bin/systat (all) cc -O2 -pipe -DINET6 -std=gnu99 -fstack-protector -Wno-pointer-sign -c /src/usr.bin/systat/cmds.c cc -O2 -pipe -DINET6 -std=gnu99 -fstack-protector -Wno-pointer-sign -c /src/usr.bin/systat/cmdtab.c In file included from /src/usr.bin/systat/extern.h:39, from /src/usr.bin/systat/cmdtab.c:43: /obj/sparc64/src/tmp/usr/include/kvm.h:72: error: expected declaration specifiers or '...' before 'u_int' *** Error code 1 Stop in /src/usr.bin/systat. *** Error code 1 Stop in /src/usr.bin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2010-03-01 05:27:25 - WARNING: /usr/bin/make returned exit code 1 TB --- 2010-03-01 05:27:25 - ERROR: failed to build world TB --- 2010-03-01 05:27:25 - 2381.48 user 476.24 system 3304.02 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-sparc64-sparc64.full From owner-freebsd-sparc64@FreeBSD.ORG Mon Mar 1 06:07:59 2010 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B91B3106566B; Mon, 1 Mar 2010 06:07:59 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id 6967E8FC0A; Mon, 1 Mar 2010 06:07:59 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.4/8.14.3) with ESMTP id o2167wx4093591; Mon, 1 Mar 2010 01:07:58 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.4/8.14.3/Submit) id o2167wZM093590; Mon, 1 Mar 2010 06:07:58 GMT (envelope-from tinderbox@freebsd.org) Date: Mon, 1 Mar 2010 06:07:58 GMT Message-Id: <201003010607.o2167wZM093590@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [head tinderbox] failure on sparc64/sun4v X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2010 06:07:59 -0000 TB --- 2010-03-01 05:17:27 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2010-03-01 05:17:27 - starting HEAD tinderbox run for sparc64/sun4v TB --- 2010-03-01 05:17:27 - cleaning the object tree TB --- 2010-03-01 05:17:46 - cvsupping the source tree TB --- 2010-03-01 05:17:46 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/sparc64/sun4v/supfile TB --- 2010-03-01 05:19:57 - building world TB --- 2010-03-01 05:19:57 - MAKEOBJDIRPREFIX=/obj TB --- 2010-03-01 05:19:57 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2010-03-01 05:19:57 - TARGET=sun4v TB --- 2010-03-01 05:19:57 - TARGET_ARCH=sparc64 TB --- 2010-03-01 05:19:57 - TZ=UTC TB --- 2010-03-01 05:19:57 - __MAKE_CONF=/dev/null TB --- 2010-03-01 05:19:57 - cd /src TB --- 2010-03-01 05:19:57 - /usr/bin/make -B buildworld >>> World build started on Mon Mar 1 05:19:58 UTC 2010 >>> 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 [...] cc -O2 -pipe -DUSE_BSM_AUDIT -std=gnu99 -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wno-pointer-sign -o su su.o -lutil -lpam -lbsm gzip -cn /src/usr.bin/su/su.1 > su.1.gz ===> usr.bin/systat (all) cc -O2 -pipe -DINET6 -std=gnu99 -fstack-protector -Wno-pointer-sign -c /src/usr.bin/systat/cmds.c cc -O2 -pipe -DINET6 -std=gnu99 -fstack-protector -Wno-pointer-sign -c /src/usr.bin/systat/cmdtab.c In file included from /src/usr.bin/systat/extern.h:39, from /src/usr.bin/systat/cmdtab.c:43: /obj/sun4v/src/tmp/usr/include/kvm.h:72: error: expected declaration specifiers or '...' before 'u_int' *** Error code 1 Stop in /src/usr.bin/systat. *** Error code 1 Stop in /src/usr.bin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2010-03-01 06:07:58 - WARNING: /usr/bin/make returned exit code 1 TB --- 2010-03-01 06:07:58 - ERROR: failed to build world TB --- 2010-03-01 06:07:58 - 2412.00 user 441.32 system 3031.25 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-sparc64-sun4v.full From owner-freebsd-sparc64@FreeBSD.ORG Mon Mar 1 11:07:09 2010 Return-Path: Delivered-To: freebsd-sparc64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BCB9F10656AE for ; Mon, 1 Mar 2010 11:07:09 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AA1F88FC0C for ; Mon, 1 Mar 2010 11:07:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o21B79YQ017923 for ; Mon, 1 Mar 2010 11:07:09 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o21B79nj017921 for freebsd-sparc64@FreeBSD.org; Mon, 1 Mar 2010 11:07:09 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 1 Mar 2010 11:07:09 GMT Message-Id: <201003011107.o21B79nj017921@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-sparc64@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-sparc64@FreeBSD.org X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2010 11:07:09 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o sparc/142102 sparc64 [nfs] [panic] FreeBSD 8.0 kernel panics on sparc64 whe o sparc/141918 sparc64 [ehci] ehci_interrupt: unrecoverable error, controller s sparc/139134 sparc64 kernel output corruption f sparc/127051 sparc64 [hme] hme interfaces "pause" with the message "device o sparc/119244 sparc64 X11Forwarding to X11 server on sparc crashes Xorg o sparc/119240 sparc64 top has WCPU over 100% on UP system s sparc/119239 sparc64 gdb coredumps on sparc64 o sparc/113556 sparc64 [panic] trap: memory address not aligned; Rebooting... f sparc/108732 sparc64 ping(8) reports 14 digit time on sparc64 s sparc/107087 sparc64 [hang] system is hung during boot from CD o sparc/105048 sparc64 [trm] trm(4) panics on sparc64 o sparc/104428 sparc64 [nullfs] nullfs panics on E4500 (but not E420) o sparc/80890 sparc64 [panic] kmem_malloc(73728): kmem_map too small running o sparc/80410 sparc64 [netgraph] netgraph is causing crash with mpd on sparc o sparc/71729 sparc64 printf in kernel thread causes panic on SPARC 15 problems total. From owner-freebsd-sparc64@FreeBSD.ORG Tue Mar 2 02:26:03 2010 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 793E0106566C; Tue, 2 Mar 2010 02:26:03 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id 3B5018FC0A; Tue, 2 Mar 2010 02:26:02 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.4/8.14.3) with ESMTP id o222Q28t027235; Mon, 1 Mar 2010 21:26:02 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.4/8.14.3/Submit) id o222Q28h027234; Tue, 2 Mar 2010 02:26:02 GMT (envelope-from tinderbox@freebsd.org) Date: Tue, 2 Mar 2010 02:26:02 GMT Message-Id: <201003020226.o222Q28h027234@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [head tinderbox] failure on sparc64/sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Mar 2010 02:26:03 -0000 TB --- 2010-03-02 01:24:11 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2010-03-02 01:24:11 - starting HEAD tinderbox run for sparc64/sparc64 TB --- 2010-03-02 01:24:11 - cleaning the object tree TB --- 2010-03-02 01:24:29 - cvsupping the source tree TB --- 2010-03-02 01:24:29 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/sparc64/sparc64/supfile TB --- 2010-03-02 01:24:53 - building world TB --- 2010-03-02 01:24:53 - MAKEOBJDIRPREFIX=/obj TB --- 2010-03-02 01:24:53 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2010-03-02 01:24:53 - TARGET=sparc64 TB --- 2010-03-02 01:24:53 - TARGET_ARCH=sparc64 TB --- 2010-03-02 01:24:53 - TZ=UTC TB --- 2010-03-02 01:24:53 - __MAKE_CONF=/dev/null TB --- 2010-03-02 01:24:53 - cd /src TB --- 2010-03-02 01:24:53 - /usr/bin/make -B buildworld >>> World build started on Tue Mar 2 01:24:54 UTC 2010 >>> 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 >>> World build completed on Tue Mar 2 02:20:57 UTC 2010 TB --- 2010-03-02 02:20:57 - generating LINT kernel config TB --- 2010-03-02 02:20:57 - cd /src/sys/sparc64/conf TB --- 2010-03-02 02:20:57 - /usr/bin/make -B LINT TB --- 2010-03-02 02:20:57 - building LINT kernel TB --- 2010-03-02 02:20:57 - MAKEOBJDIRPREFIX=/obj TB --- 2010-03-02 02:20:57 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2010-03-02 02:20:57 - TARGET=sparc64 TB --- 2010-03-02 02:20:57 - TARGET_ARCH=sparc64 TB --- 2010-03-02 02:20:57 - TZ=UTC TB --- 2010-03-02 02:20:57 - __MAKE_CONF=/dev/null TB --- 2010-03-02 02:20:57 - cd /src TB --- 2010-03-02 02:20:57 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Tue Mar 2 02:20:57 UTC 2010 >>> 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 [...] /src/sys/dev/msk/if_msk.c:1662: error: (Each undeclared identifier is reported only once /src/sys/dev/msk/if_msk.c:1662: error: for each function it appears in.) /src/sys/dev/msk/if_msk.c:1663: error: 'struct msk_softc' has no member named 'msk_int_holdoff' /src/sys/dev/msk/if_msk.c:1668: error: 'struct msk_softc' has no member named 'msk_int_holdoff' /src/sys/dev/msk/if_msk.c: In function 'msk_init_locked': /src/sys/dev/msk/if_msk.c:3898: error: 'struct msk_softc' has no member named 'msk_int_holdoff' /src/sys/dev/msk/if_msk.c:3900: error: 'struct msk_softc' has no member named 'msk_int_holdoff' /src/sys/dev/msk/if_msk.c:3902: error: 'struct msk_softc' has no member named 'msk_int_holdoff' *** Error code 1 Stop in /obj/sparc64/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2010-03-02 02:26:02 - WARNING: /usr/bin/make returned exit code 1 TB --- 2010-03-02 02:26:02 - ERROR: failed to build lint kernel TB --- 2010-03-02 02:26:02 - 2844.08 user 551.07 system 3710.87 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-sparc64-sparc64.full From owner-freebsd-sparc64@FreeBSD.ORG Wed Mar 3 16:16:08 2010 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 279A010656B7; Wed, 3 Mar 2010 16:16:08 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id 3CC708FC47; Wed, 3 Mar 2010 16:15:36 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.4/8.14.3) with ESMTP id o23GFal1029036; Wed, 3 Mar 2010 11:15:36 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.4/8.14.3/Submit) id o23GFaQf029031; Wed, 3 Mar 2010 16:15:36 GMT (envelope-from tinderbox@freebsd.org) Date: Wed, 3 Mar 2010 16:15:36 GMT Message-Id: <201003031615.o23GFaQf029031@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [head tinderbox] failure on sparc64/sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2010 16:16:08 -0000 TB --- 2010-03-03 15:46:31 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2010-03-03 15:46:31 - starting HEAD tinderbox run for sparc64/sparc64 TB --- 2010-03-03 15:46:31 - cleaning the object tree TB --- 2010-03-03 15:46:45 - cvsupping the source tree TB --- 2010-03-03 15:46:45 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/sparc64/sparc64/supfile TB --- 2010-03-03 15:47:12 - building world TB --- 2010-03-03 15:47:12 - MAKEOBJDIRPREFIX=/obj TB --- 2010-03-03 15:47:12 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2010-03-03 15:47:12 - TARGET=sparc64 TB --- 2010-03-03 15:47:12 - TARGET_ARCH=sparc64 TB --- 2010-03-03 15:47:12 - TZ=UTC TB --- 2010-03-03 15:47:12 - __MAKE_CONF=/dev/null TB --- 2010-03-03 15:47:12 - cd /src TB --- 2010-03-03 15:47:12 - /usr/bin/make -B buildworld >>> World build started on Wed Mar 3 15:47:13 UTC 2010 >>> 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 [...] lex -t /src/usr.bin/csup/token.l > token.c rm -f .depend mkdep -f .depend -a -I. -DHAVE_FFLAGS -DNDEBUG /src/usr.bin/csup/attrstack.c /src/usr.bin/csup/auth.c /src/usr.bin/csup/config.c /src/usr.bin/csup/detailer.c /src/usr.bin/csup/diff.c /src/usr.bin/csup/fattr.c /src/usr.bin/csup/fixups.c /src/usr.bin/csup/fnmatch.c /src/usr.bin/csup/globtree.c /src/usr.bin/csup/idcache.c /src/usr.bin/csup/keyword.c /src/usr.bin/csup/lex.rcs.c /src/usr.bin/csup/lister.c /src/usr.bin/csup/main.c /src/usr.bin/csup/misc.c /src/usr.bin/csup/mux.c parse.c /src/usr.bin/csup/pathcomp.c /src/usr.bin/csup/proto.c /src/usr.bin/csup/rcsfile.c /src/usr.bin/csup/rcsparse.c /src/usr.bin/csup/rsyncfile.c /src/usr.bin/csup/status.c /src/usr.bin/csup/stream.c /src/usr.bin/csup/threads.c token.c /src/usr.bin/csup/updater.c /src/usr.bin/csup/parse.y:32:20: error: config.h: No such file or directory /src/usr.bin/csup/parse.y:33:19: error: token.h: No such file or directory /src/usr.bin/csup/token.l:35:18: error: misc.h: No such file or directory /src/usr.bin/csup/token.l:36:19: error: token.h: No such file or directory mkdep: compile failed *** Error code 1 Stop in /src/usr.bin/csup. *** Error code 1 Stop in /src/usr.bin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2010-03-03 16:15:36 - WARNING: /usr/bin/make returned exit code 1 TB --- 2010-03-03 16:15:36 - ERROR: failed to build world TB --- 2010-03-03 16:15:36 - 1266.16 user 299.62 system 1744.75 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-sparc64-sparc64.full From owner-freebsd-sparc64@FreeBSD.ORG Wed Mar 3 16:39:42 2010 Return-Path: Delivered-To: sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB418106566B; Wed, 3 Mar 2010 16:39:42 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id 59A0C8FC12; Wed, 3 Mar 2010 16:39:41 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.4/8.14.3) with ESMTP id o23Gdfjj091599; Wed, 3 Mar 2010 11:39:41 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.4/8.14.3/Submit) id o23GdfRd091598; Wed, 3 Mar 2010 16:39:41 GMT (envelope-from tinderbox@freebsd.org) Date: Wed, 3 Mar 2010 16:39:41 GMT Message-Id: <201003031639.o23GdfRd091598@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [head tinderbox] failure on sparc64/sun4v X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2010 16:39:42 -0000 TB --- 2010-03-03 16:12:54 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2010-03-03 16:12:54 - starting HEAD tinderbox run for sparc64/sun4v TB --- 2010-03-03 16:12:54 - cleaning the object tree TB --- 2010-03-03 16:13:06 - cvsupping the source tree TB --- 2010-03-03 16:13:06 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/sparc64/sun4v/supfile TB --- 2010-03-03 16:13:30 - building world TB --- 2010-03-03 16:13:30 - MAKEOBJDIRPREFIX=/obj TB --- 2010-03-03 16:13:30 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2010-03-03 16:13:30 - TARGET=sun4v TB --- 2010-03-03 16:13:30 - TARGET_ARCH=sparc64 TB --- 2010-03-03 16:13:30 - TZ=UTC TB --- 2010-03-03 16:13:30 - __MAKE_CONF=/dev/null TB --- 2010-03-03 16:13:30 - cd /src TB --- 2010-03-03 16:13:30 - /usr/bin/make -B buildworld >>> World build started on Wed Mar 3 16:13:31 UTC 2010 >>> 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 [...] lex -t /src/usr.bin/csup/token.l > token.c rm -f .depend mkdep -f .depend -a -I. -DHAVE_FFLAGS -DNDEBUG /src/usr.bin/csup/attrstack.c /src/usr.bin/csup/auth.c /src/usr.bin/csup/config.c /src/usr.bin/csup/detailer.c /src/usr.bin/csup/diff.c /src/usr.bin/csup/fattr.c /src/usr.bin/csup/fixups.c /src/usr.bin/csup/fnmatch.c /src/usr.bin/csup/globtree.c /src/usr.bin/csup/idcache.c /src/usr.bin/csup/keyword.c /src/usr.bin/csup/lex.rcs.c /src/usr.bin/csup/lister.c /src/usr.bin/csup/main.c /src/usr.bin/csup/misc.c /src/usr.bin/csup/mux.c parse.c /src/usr.bin/csup/pathcomp.c /src/usr.bin/csup/proto.c /src/usr.bin/csup/rcsfile.c /src/usr.bin/csup/rcsparse.c /src/usr.bin/csup/rsyncfile.c /src/usr.bin/csup/status.c /src/usr.bin/csup/stream.c /src/usr.bin/csup/threads.c token.c /src/usr.bin/csup/updater.c /src/usr.bin/csup/parse.y:32:20: error: config.h: No such file or directory /src/usr.bin/csup/parse.y:33:19: error: token.h: No such file or directory /src/usr.bin/csup/token.l:35:18: error: misc.h: No such file or directory /src/usr.bin/csup/token.l:36:19: error: token.h: No such file or directory mkdep: compile failed *** Error code 1 Stop in /src/usr.bin/csup. *** Error code 1 Stop in /src/usr.bin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2010-03-03 16:39:41 - WARNING: /usr/bin/make returned exit code 1 TB --- 2010-03-03 16:39:41 - ERROR: failed to build world TB --- 2010-03-03 16:39:41 - 1282.91 user 275.55 system 1607.08 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-sparc64-sun4v.full From owner-freebsd-sparc64@FreeBSD.ORG Wed Mar 3 19:54:00 2010 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B7F4106564A for ; Wed, 3 Mar 2010 19:54:00 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id B1A668FC12 for ; Wed, 3 Mar 2010 19:53:59 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.3/8.14.3/ALCHEMY.FRANKEN.DE) with ESMTP id o23JrtWR038065; Wed, 3 Mar 2010 20:53:56 +0100 (CET) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.3/8.14.3/Submit) id o23Jrtp6038064; Wed, 3 Mar 2010 20:53:55 +0100 (CET) (envelope-from marius) Date: Wed, 3 Mar 2010 20:53:55 +0100 From: Marius Strobl To: Peter Jeremy Message-ID: <20100303195354.GA38017@alchemy.franken.de> References: <20100228192329.GA68252@server.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100228192329.GA68252@server.vk2pj.dyndns.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-sparc64@freebsd.org Subject: Re: gcc code generation problems X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2010 19:54:00 -0000 On Mon, Mar 01, 2010 at 06:23:30AM +1100, Peter Jeremy wrote: > I've been trying to use FreeBSD 8-stable from a couple of weeks ago on > a SunBlade 1500 to investigate some perl problems I'm seeing on > Solaris and have bumped into different and more worrying problems on > FreeBSD. > > In particular, the test program used to determine the number of > fraction bits in a double (slightly adapted variant attached) is There was no attachment. > getting the wrong answer. (The command in the comment reflects > the compilation flags used by perl). > Marius From owner-freebsd-sparc64@FreeBSD.ORG Wed Mar 3 20:31:44 2010 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1B5B1065674 for ; Wed, 3 Mar 2010 20:31:43 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from mail14.syd.optusnet.com.au (mail14.syd.optusnet.com.au [211.29.132.195]) by mx1.freebsd.org (Postfix) with ESMTP id 7F7E78FC2C for ; Wed, 3 Mar 2010 20:31:43 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c122-106-253-149.belrs3.nsw.optusnet.com.au [122.106.253.149]) by mail14.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id o23KVZOX010594 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 4 Mar 2010 07:31:36 +1100 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.3/8.14.3) with ESMTP id o23KVYWD013673; Thu, 4 Mar 2010 07:31:34 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.3/8.14.3/Submit) id o23KVYen013672; Thu, 4 Mar 2010 07:31:34 +1100 (EST) (envelope-from peter) Date: Thu, 4 Mar 2010 07:31:34 +1100 From: Peter Jeremy To: Marius Strobl Message-ID: <20100303203134.GA13366@server.vk2pj.dyndns.org> References: <20100228192329.GA68252@server.vk2pj.dyndns.org> <20100303195354.GA38017@alchemy.franken.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7ZAtKRhVyVSsbBD2" Content-Disposition: inline In-Reply-To: <20100303195354.GA38017@alchemy.franken.de> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-sparc64@freebsd.org Subject: Re: gcc code generation problems X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2010 20:31:44 -0000 --7ZAtKRhVyVSsbBD2 Content-Type: multipart/mixed; boundary="mYCpIKhGyMATD0i+" Content-Disposition: inline --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010-Mar-03 20:53:55 +0100, Marius Strobl wr= ote: >On Mon, Mar 01, 2010 at 06:23:30AM +1100, Peter Jeremy wrote: >> I've been trying to use FreeBSD 8-stable from a couple of weeks ago on >> a SunBlade 1500 to investigate some perl problems I'm seeing on >> Solaris and have bumped into different and more worrying problems on >> FreeBSD. >>=20 >> In particular, the test program used to determine the number of >> fraction bits in a double (slightly adapted variant attached) is > >There was no attachment. Oops, sorry. It's attached now. Try comparing the output from running "cc tryfp.c;./a.out" with "cc -O2 tryfp.c;./a.out". The correct answer is 53. --=20 Peter Jeremy --mYCpIKhGyMATD0i+-- --7ZAtKRhVyVSsbBD2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkuOxyYACgkQ/opHv/APuIdlzACgwl6SW/WR4U7QrIYif+pS7kLR eo8AoL9gTIa4QUrbbn9dL1YUkkvUmi0/ =sBwD -----END PGP SIGNATURE----- --7ZAtKRhVyVSsbBD2-- From owner-freebsd-sparc64@FreeBSD.ORG Wed Mar 3 22:14:14 2010 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17DFF106566B for ; Wed, 3 Mar 2010 22:14:14 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 7FA388FC14 for ; Wed, 3 Mar 2010 22:14:13 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.3/8.14.3/ALCHEMY.FRANKEN.DE) with ESMTP id o23ME9aZ039093; Wed, 3 Mar 2010 23:14:09 +0100 (CET) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.3/8.14.3/Submit) id o23ME9iL039092; Wed, 3 Mar 2010 23:14:09 +0100 (CET) (envelope-from marius) Date: Wed, 3 Mar 2010 23:14:09 +0100 From: Marius Strobl To: Peter Jeremy Message-ID: <20100303221409.GM18466@alchemy.franken.de> References: <20100228192329.GA68252@server.vk2pj.dyndns.org> <20100303195354.GA38017@alchemy.franken.de> <20100303203134.GA13366@server.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100303203134.GA13366@server.vk2pj.dyndns.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-sparc64@freebsd.org Subject: Re: gcc code generation problems X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2010 22:14:14 -0000 On Thu, Mar 04, 2010 at 07:31:34AM +1100, Peter Jeremy wrote: > On 2010-Mar-03 20:53:55 +0100, Marius Strobl wrote: > >On Mon, Mar 01, 2010 at 06:23:30AM +1100, Peter Jeremy wrote: > >> I've been trying to use FreeBSD 8-stable from a couple of weeks ago on > >> a SunBlade 1500 to investigate some perl problems I'm seeing on > >> Solaris and have bumped into different and more worrying problems on > >> FreeBSD. > >> > >> In particular, the test program used to determine the number of > >> fraction bits in a double (slightly adapted variant attached) is > > > >There was no attachment. > > Oops, sorry. It's attached now. Try comparing the output from > running "cc tryfp.c;./a.out" with "cc -O2 tryfp.c;./a.out". > > The correct answer is 53. > Hrm, this appears to be CPU specific (but neither FreeBSD nor compiler version specific): marius@t1-105:/tmp > grep cpu0 /var/run/dmesg.boot cpu0: Sun Microsystems UltraSparc-IIi Processor (440.04 MHz CPU) marius@t1-105:/tmp > cc tryfp.c;./a.out 53 marius@t1-105:/tmp > cc -O2 tryfp.c;./a.out 53 marius@v215:/tmp > grep cpu0 /var/run/dmesg.boot cpu0: Sun Microsystems UltraSparc-IIIi Processor (1504.00 MHz CPU) marius@v215:/tmp > cc tryfp.c;./a.out 53 marius@v215:/tmp > cc -O2 tryfp.c;./a.out 51 There's some well known difference between spitfire-class (i.e. sun4u < USIII) and cheetah-class (i.e. sun4u >= USIII) CPUs where IIRC the latter do some floating point operations with higher precision in hardware while the former rely on software emulation, leading to different albeit both "correct" results as only the less precise software emulation is guaranteed. Could this also be the reason for the unexpected result you're seeing? Unfortunately, I currently fail to find a reference to this although I remember to have read at least one analysis of this issue on the web and a note about it in some ABI documentation. Marius From owner-freebsd-sparc64@FreeBSD.ORG Thu Mar 4 19:02:25 2010 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 977EF106566B for ; Thu, 4 Mar 2010 19:02:25 +0000 (UTC) (envelope-from peterjeremy@acm.org) Received: from mail34.syd.optusnet.com.au (mail34.syd.optusnet.com.au [211.29.133.218]) by mx1.freebsd.org (Postfix) with ESMTP id 261E58FC1D for ; Thu, 4 Mar 2010 19:02:24 +0000 (UTC) Received: from server.vk2pj.dyndns.org (c122-106-253-149.belrs3.nsw.optusnet.com.au [122.106.253.149]) by mail34.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id o24J2IVj023775 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 5 Mar 2010 06:02:19 +1100 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.3/8.14.3) with ESMTP id o24J2GDK047266; Fri, 5 Mar 2010 06:02:16 +1100 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.3/8.14.3/Submit) id o24J2GGB047265; Fri, 5 Mar 2010 06:02:16 +1100 (EST) (envelope-from peter) Date: Fri, 5 Mar 2010 06:02:16 +1100 From: Peter Jeremy To: Marius Strobl Message-ID: <20100304190216.GF17640@server.vk2pj.dyndns.org> References: <20100228192329.GA68252@server.vk2pj.dyndns.org> <20100303195354.GA38017@alchemy.franken.de> <20100303203134.GA13366@server.vk2pj.dyndns.org> <20100303221409.GM18466@alchemy.franken.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mxv5cy4qt+RJ9ypb" Content-Disposition: inline In-Reply-To: <20100303221409.GM18466@alchemy.franken.de> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-sparc64@freebsd.org Subject: Re: gcc code generation problems X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Mar 2010 19:02:25 -0000 --mxv5cy4qt+RJ9ypb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010-Mar-03 23:14:09 +0100, Marius Strobl wr= ote: >Hrm, this appears to be CPU specific (but neither FreeBSD nor compiler >version specific): >marius@t1-105:/tmp > grep cpu0 /var/run/dmesg.boot=20 >cpu0: Sun Microsystems UltraSparc-IIi Processor (440.04 MHz CPU) >marius@t1-105:/tmp > cc tryfp.c;./a.out >53 >marius@t1-105:/tmp > cc -O2 tryfp.c;./a.out >53 > >marius@v215:/tmp > grep cpu0 /var/run/dmesg.boot=20 >cpu0: Sun Microsystems UltraSparc-IIIi Processor (1504.00 MHz CPU) >marius@v215:/tmp > cc tryfp.c;./a.out >53 >marius@v215:/tmp > cc -O2 tryfp.c;./a.out >51 Interesting. My SB1500 has: cpu0: Sun Microsystems UltraSparc-IIIi Processor (1062.00 MHz CPU) Unfortunately, I don't have access to any other SPARCs running FreeBSD or any older SPARCs at all. >There's some well known difference between spitfire-class (i.e. >sun4u < USIII) and cheetah-class (i.e. sun4u >=3D USIII) CPUs where >IIRC the latter do some floating point operations with higher >precision in hardware while the former rely on software emulation, >leading to different albeit both "correct" results as only the >less precise software emulation is guaranteed. Could this also >be the reason for the unexpected result you're seeing? I recall seeing references to long double being emulated but I wasn't aware that any CPUs emulated double operations. I will do some more investigating but I don't see this as being an explanation as the USIIIi answer is not correct: enabling the prints shows that, with optimisation, the USIIIi reports (double)(1UL | 1UL << 52) =3D=3D 0.0 A precision loss would mean that it saw (double)(1UL | 1UL << 52) =3D=3D (double)(1UL << 52) Note that Sun Studio 12.1 on OpenSolaris gets the correct answer, as does gcc without optimisation, so even if it is hardware issue, it can be worked around in software. --=20 Peter Jeremy --mxv5cy4qt+RJ9ypb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkuQA7gACgkQ/opHv/APuIcZpwCdH8aWkVZa9BfU71t1HXVKKGcG EToAoK5qvKbobtqaVWZ9u+Y+oU89ooOS =nhaz -----END PGP SIGNATURE----- --mxv5cy4qt+RJ9ypb-- From owner-freebsd-sparc64@FreeBSD.ORG Sat Mar 6 23:09:04 2010 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4AB0106566B; Sat, 6 Mar 2010 23:09:04 +0000 (UTC) (envelope-from mexas@bristol.ac.uk) Received: from dirg.bris.ac.uk (dirg.bris.ac.uk [137.222.10.102]) by mx1.freebsd.org (Postfix) with ESMTP id 733638FC12; Sat, 6 Mar 2010 23:09:04 +0000 (UTC) Received: from ncsc.bris.ac.uk ([137.222.10.41]) by dirg.bris.ac.uk with esmtp (Exim 4.69) (envelope-from ) id 1No37H-0002vN-5N; Sat, 06 Mar 2010 23:09:03 +0000 Received: from mech-cluster241.men.bris.ac.uk ([137.222.187.241]) by ncsc.bris.ac.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.67) (envelope-from ) id 1No37H-0004r7-14; Sat, 06 Mar 2010 23:09:03 +0000 Received: from mech-cluster241.men.bris.ac.uk (localhost [127.0.0.1]) by mech-cluster241.men.bris.ac.uk (8.14.3/8.14.3) with ESMTP id o26N923n028864; Sat, 6 Mar 2010 23:09:02 GMT (envelope-from mexas@bristol.ac.uk) Received: (from mexas@localhost) by mech-cluster241.men.bris.ac.uk (8.14.4/8.14.3/Submit) id o26N92fn028863; Sat, 6 Mar 2010 23:09:02 GMT (envelope-from mexas@bristol.ac.uk) X-Authentication-Warning: mech-cluster241.men.bris.ac.uk: mexas set sender to mexas@bristol.ac.uk using -f Date: Sat, 6 Mar 2010 23:09:02 +0000 From: Anton Shterenlikht To: gnome@freebsd.org, freebsd-sparc64@freebsd.org Message-ID: <20100306230902.GI28483@mech-cluster241.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Cc: Subject: devel/gobject-introspection fails to build on sparc64 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Mar 2010 23:09:04 -0000 On FreeBSD sparc64 9.0-CURRENT #0 r202774 I get Making all in gir gmake[2]: Entering directory `/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.6.7/gir' ../tools/g-ir-compiler --includedir=. --includedir=../gir --includedir=../gir --includedir=. GLib-2.0.gir -o GLib-2.0.typelib gmake[2]: *** [GLib-2.0.typelib] Illegal instruction: 4 (core dumped) gmake[2]: Leaving directory `/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.6.7/gir' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/usr/ports/devel/gobject-introspection/work/gobject-introspection-0.6.7' gmake: *** [all] Error 2 *** Error code 1 Stop in /usr/ports/devel/gobject-introspection. # Please advise many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 331 5944 Fax: +44 (0)117 929 4423