From owner-freebsd-current@FreeBSD.ORG  Sat Dec 11 00:23:58 2004
Return-Path: <owner-freebsd-current@FreeBSD.ORG>
Delivered-To: freebsd-current@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 2248716A4CE; Sat, 11 Dec 2004 00:23:58 +0000 (GMT)
Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 0A8F143D46; Sat, 11 Dec 2004 00:23:58 +0000 (GMT)
	(envelope-from dwhite@gumbysoft.com)
Received: by carver.gumbysoft.com (Postfix, from userid 1000)
	id EB17372DD4; Fri, 10 Dec 2004 16:23:57 -0800 (PST)
Received: from localhost (localhost [127.0.0.1])
	by carver.gumbysoft.com (Postfix) with ESMTP id E6B1C72DCB;
	Fri, 10 Dec 2004 16:23:57 -0800 (PST)
Date: Fri, 10 Dec 2004 16:23:57 -0800 (PST)
From: Doug White <dwhite@gumbysoft.com>
To: Kris Kennaway <kris@obsecurity.org>
In-Reply-To: <20041208171947.GA46271@xor.obsecurity.org>
Message-ID: <20041210161650.I63382@carver.gumbysoft.com>
References: <200412081205.39354.mi+mx@aldan.algebra.com>
 <20041208171947.GA46271@xor.obsecurity.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
cc: Mikhail Teterin <mi+mx@aldan.algebra.com>
cc: freebsd-current@FreeBSD.org
cc: freebsd-amd64@FreeBSD.org
cc: ade@FreeBSD.org
Subject: Re: new TCL vs. current-6
X-BeenThere: freebsd-current@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Discussions about the use of FreeBSD-current
	<freebsd-current.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
	<mailto:freebsd-current-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current>
List-Post: <mailto:freebsd-current@freebsd.org>
List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-current>,
	<mailto:freebsd-current-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sat, 11 Dec 2004 00:23:58 -0000

On Wed, 8 Dec 2004, Kris Kennaway wrote:

> On Wed, Dec 08, 2004 at 12:05:38PM -0500, Mikhail Teterin wrote:
> > Three of my TCL-based ports fail now on amd64 running current-6. All failures
> > occur, when an attempt is made to use the TCL-interpreter -- either to run
> > the port's self-tests, or to generate the manual pages. The failures are
> > either "Floating point exceptions" or "Segmentation faults" and appear to
> > only happen on amd64 (may be, on ia64 as well):
> >
> > http://people.freebsd.org/~fenner/errorlogs/mi%40aldan.algebra.com.html
> >
> > Can anyone confirm being able to use freshly built TCL on amd64 _at all_?
> >
> > My ports did not change in months -- what could be wrong with TCL and/or
> > amd64?
>
> Peter speculated a problem when the world is built with -O2 (with or
> without -fno-strict-aliasing).  I haven't been able to confirm this by
> testing with a world built with -O, because I only have one working
> amd64 package builder.

A quick Makefile look and gdb run finds it taking SIGFPE in strtod().
The tcl build is also very odd since it seems to apply CFLAGS twice like:

cc $CFLAGS -O $CFLAGS ...

I haven't gone looking for why, just noticed it during the build.

This is on a machine built with -O2.  I'll kick off an -O build now and
see what happens.

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite@gumbysoft.com          |  www.FreeBSD.org