From owner-freebsd-stable@FreeBSD.ORG Mon May 1 22:56:06 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E890D16A43C; Mon, 1 May 2006 22:56:06 +0000 (UTC) (envelope-from noackjr@alumni.rice.edu) Received: from mail.clickfox.com (cffw1.clickfox.com [72.16.213.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63A6C43D48; Mon, 1 May 2006 22:56:06 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) X-PMWin-Version: 2.5.1s, Antispam-Engine: 2.3.0.1, Antivirus-Engine: 2.32.14 X-PMWin-Spam: Gauge=IIIIIIII, Probability=8%, Report='__HAS_MSGID, __SANE_MSGID, __USER_AGENT, __MIME_VERSION, __CT, __CHARSET_IS_KOI8U, __CTYPE_CHARSET_QUOTED, __CT_TEXT_PLAIN, __CTE, __HIGHBITS, __MIME_TEXT_ONLY' Thread-Index: AcZtcxKNrCm1bXjBSvS0dlbpsIJI5A== Received: from [10.20.30.156] ([10.20.30.156]) by mail.clickfox.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Mon, 1 May 2006 19:00:42 -0400 Message-ID: <445691FE.6000608@alumni.rice.edu> Date: Mon, 01 May 2006 18:55:58 -0400 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2663 Content-class: urn:content-classes:message Importance: normal Priority: normal From: "Jonathan Noack" User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: "Mikhail Teterin" References: <200605011604.26507.mi+mx@aldan.algebra.com> <20060501212539.GA24193@regurgitate.ugcs.caltech.edu> <200605011739.02920.mi+mx@aldan.algebra.com> In-reply-to: <200605011739.02920.mi+mx@aldan.algebra.com> Content-Type: text/plain; format=flowed; charset="KOI8-U" Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 01 May 2006 23:00:42.0439 (UTC) FILETIME=[126C4570:01C66D73] Cc: stable@freebsd.org, Paul Allen , current@freebsd.org Subject: Re: cc can't build 32-bit executables on amd64 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 May 2006 22:56:07 -0000 Mikhail Teterin wrote: > понед╕лок 01 травень 2006 17:25, Paul Allen написав: >> This was originally mentioned in amd64/76224 which was closed by obrien >> with the terse remark: "We don't yet support building 32-bit apps on a >> 64-bit system. We only barely support *running* them at this point." > > I may be missing something huge, but, it seems to me, that my little patch is > sufficient to point cc to the right direction. With it I can create 32-bit > executables. Thus created lame, for example (from the audio/lame port) works > and happily converts mp3 files (using assembler-optimized routines available > only for 32-bit i386). Did you miss the previous reply which mentioned using '-B/usr/lib32 -B/usr/local/lib32' in addition to '-m32'? From gcc(1): The run-time support file 'libgcc.a' is also searched for using the '-B' prefix, if needed. If it is not found there, the two standard prefixes above are tried, and that is all. The file is left out of the link if it is not found by those means. Most of the time, on most machines, 'libgcc.a' is not actually necessary. -Jonathan