From owner-freebsd-stable@FreeBSD.ORG Mon Jun 4 09:32:56 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C430A1065670 for ; Mon, 4 Jun 2012 09:32:56 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 7FCCA8FC1B for ; Mon, 4 Jun 2012 09:32:56 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:15e3:354:8c5f:bc21] (unknown [IPv6:2001:7b8:3a7:0:15e3:354:8c5f:bc21]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id B68BC5C37; Mon, 4 Jun 2012 11:32:55 +0200 (CEST) Message-ID: <4FCC80C7.8060802@FreeBSD.org> Date: Mon, 04 Jun 2012 11:32:55 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20120529 Thunderbird/13.0 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Trond_Endrest=F8l?= References: In-Reply-To: X-Enigmail-Version: 1.5a1pre Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD stable Subject: Re: cvsup{, d} woes after upgrading to RELENG_9 on amd64 this weekend X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2012 09:32:56 -0000 On 2012-06-04 10:53, Trond Endrest=F8l wrote: > After upgrading to RELENG_9 as of yesterday on my amd64 system, cvsup=20 > bombs out with Bus error: 10. =2E.. > The only recent change I can think of is switching to clang for=20 > building the kernel and base. Made I should rebuild world and kernel=20 > using gcc. Currently, the ezm3 port is broken for a world compiled with clang (or more specifically, for a world that uses SSE), see: http://www.freebsd.org/cgi/query-pr.cgi?pr=3D162588 The problem is that ezm3 doesn't correctly align the stack, causing certain routines in libz to crash, because clang emits SSE instructions in them, whilst assuming the stack is 16-byte aligned. This could also occur with any other compiler that uses SSE. Basically, ezm3 doesn't seem to respect the amd64 ABI. I haven't been able to fix ezm3's stack alignment; it is based on a very old branch of gcc, and I am not familiar with Modula-3 in general. Any assistance in this area will be greatly appreciated. That said, since the ezm3 software is essentially unmaintained, the only practical solutions to your problem currently are: - Compile libz without SSE - Compile libz with gcc - Use csup instead of cvsup - Fix ezm3 to respect the amd64 ABI - Rewrite cvsupd in C (this is left as an exercise for the reader ;)