From owner-freebsd-stable@FreeBSD.ORG Thu Dec 13 03:13:26 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA8C916A41B for ; Thu, 13 Dec 2007 03:13:26 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from mail.barafranca.com (mail.barafranca.com [67.19.101.164]) by mx1.freebsd.org (Postfix) with ESMTP id 975FF13C448 for ; Thu, 13 Dec 2007 03:13:26 +0000 (UTC) (envelope-from hugo@barafranca.com) Received: from localhost (localhost [127.0.0.1]) by mail.barafranca.com (Postfix) with ESMTP id 1A739C4D20; Thu, 13 Dec 2007 03:19:38 +0000 (UTC) Received: from mail.barafranca.com ([67.19.101.164]) by localhost (mail.barafranca.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 61875-09; Thu, 13 Dec 2007 03:19:04 +0000 (UTC) Received: from nexus.bsdlan.org (a213-22-38-76.cpe.netcabo.pt [213.22.38.76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.barafranca.com (Postfix) with ESMTP id AA574C4D1F; Thu, 13 Dec 2007 03:19:03 +0000 (UTC) Message-ID: <4760A35C.1010502@barafranca.com> Date: Thu, 13 Dec 2007 03:13:32 +0000 From: Hugo Silva User-Agent: Thunderbird 2.0.0.6 (X11/20070816) MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <475DADF7.6020702@yahoo.com> <475EA859.7000407@yahoo.com> <9bbcef730712110815g34adb0dfv8fe89dbb52225cb3@mail.gmail.com> <475F2D07.2080205@barafranca.com> <20071212180349.GQ11310@server.vk2pj.dyndns.org> In-Reply-To: <20071212180349.GQ11310@server.vk2pj.dyndns.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at barafranca.com X-Spam-Status: No, score=0 tagged_above=-1 required=4 tests=[none] X-Spam-Score: 0 X-Spam-Level: Cc: Peter Jeremy Subject: Re: More issues with 7.0-BETA4 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: Thu, 13 Dec 2007 03:13:26 -0000 Peter Jeremy wrote: > On Wed, Dec 12, 2007 at 12:36:23AM +0000, Hugo Silva wrote: > >> Building 32 bit binaries on amd64 apparently isn't working: >> >> # cc -m64 -march=k8 -o test64 test.c && ./test64 >> testing!! >> >> # cc -m32 -march=k8 -o test32 test.c && ./test32 >> /usr/bin/ld: skipping incompatible /usr/lib/libgcc.a when searching for >> -lgcc >> /usr/bin/ld: skipping incompatible /usr/lib/libgcc.a when searching for >> -lgcc >> /usr/bin/ld: cannot find -lgcc >> > > This isn't supported at present. Note that just pointing at > /usr/lib32 results in executables that won't run on FreeBSD/i386. > And, quite apart from the linker issues, 'cc -m32' is using the wrong > include files: All the machine-dependent types are defined in terms of > I32LP64 primitives whilst 'cc -m32' uses ILP32 primitives. > > The current suggestion is to perform i386 compiles in a FreeBSD/i386 > chroot environment. > > I only tried to run the binary that was successfully compiled on the host, never moved it to an i386 machine. I'll keep that in mind, thanks for the tip. Regards, Hugo