From owner-freebsd-amd64@FreeBSD.ORG Wed Jan 25 16:10:39 2012 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C5471065674 for ; Wed, 25 Jan 2012 16:10:39 +0000 (UTC) (envelope-from eligis@orange.fr) Received: from smtp.smtpout.orange.fr (smtp01.smtpout.orange.fr [80.12.242.123]) by mx1.freebsd.org (Postfix) with ESMTP id 897608FC1B for ; Wed, 25 Jan 2012 16:10:37 +0000 (UTC) Received: from young ([217.128.172.94]) by mwinf5d01 with ME id Rrga1i00i22ZY4h03rgakA; Wed, 25 Jan 2012 16:40:35 +0100 From: "Christian Jullien" To: "'John Baldwin'" , References: <201201232217.q0NMHBcK093954@red.freebsd.org> <201201250836.38017.jhb@freebsd.org> In-Reply-To: <201201250836.38017.jhb@freebsd.org> Date: Wed, 25 Jan 2012 16:40:09 +0100 Message-ID: <007801ccdb77$9f3d07f0$ddb717d0$@orange.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQDdlF7RRrTnV6WJCH6y0/R+P/5rDwE6YMtzl/HwAbA= Content-Language: fr X-Mailman-Approved-At: Wed, 25 Jan 2012 16:50:29 +0000 Cc: freebsd-gnats-submit@freebsd.org, "'C. Jullien'" Subject: RE: amd64/164425: stat function doesn't 32bit mode on amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 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, 25 Jan 2012 16:10:39 -0000 Thanks for the reply. In that case, you must admit it is strange that gcc on FreeBSD amd64 has a-m32 support which does not work! I see two options that work equally well for me: - remove -m32 option on gcc amd64, distro will reduce - add /usr/include32 which gcc will use instead of /usr/include in case -m32 is passed (or something similar) NetBSD requires a 32bit OS version to compile and use 32bit programs. At least it is clear. Christian -----Original Message----- From: John Baldwin [mailto:jhb@freebsd.org] Sent: mercredi 25 janvier 2012 14:37 To: freebsd-amd64@freebsd.org Cc: C. Jullien; freebsd-gnats-submit@freebsd.org Subject: Re: amd64/164425: stat function doesn't 32bit mode on amd64 On Monday, January 23, 2012 5:17:11 pm C. Jullien wrote: > > >Number: 164425 > >Category: amd64 > >Synopsis: stat function doesn't 32bit mode on amd64 > >Confidential: no > >Severity: critical > >Priority: low > >Responsible: freebsd-amd64 > >State: open > >Quarter: > >Keywords: > >Date-Required: > >Class: sw-bug > >Submitter-Id: current-users > >Arrival-Date: Mon Jan 23 22:20:03 UTC 2012 > >Closed-Date: > >Last-Modified: > >Originator: C. Jullien > >Release: 8.1 and 9.0 > >Organization: > Eligis > >Environment: > FreeBSD freebsd.eligis.com 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan > 3 07:46: > 30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 > >Description: > A friend of mine also confirmed this issue I discovered at least on > 8.1 and is still present on 9.0-RELEASE. > > The problem is that, when compiled on amd64 but for i686 target, stat function hangs with a core dump. > > $ gcc -m32 -DCOMPAT_32BIT -L/usr/lib32 -B/usr/lib32 > > I don't see where I'm wrong but can't imagine I'm the only one having > this issue. Yes, -m32 doesn't work currently as it uses the wrong set of headers (/usr/include/machine references amd64 headers, not i386 headers). -- John Baldwin