From owner-freebsd-stable@FreeBSD.ORG Wed Aug 24 12:44:44 2011 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 C657B1065672 for ; Wed, 24 Aug 2011 12:44:44 +0000 (UTC) (envelope-from benzene@arcor.de) Received: from fh-dortmund.de (fhdo-2.dvz.fh-dortmund.de [193.25.16.6]) by mx1.freebsd.org (Postfix) with ESMTP id 5AAD48FC1B for ; Wed, 24 Aug 2011 12:44:44 +0000 (UTC) Received: from gatekeeper.informatik.fh-dortmund.de (gatekeeper.informatik.FH-Dortmund.DE [193.25.22.84]) by fh-dortmund.de (Switch-3.3.0/Switch-3.3.0) with ESMTP id p7OC8jw5004149 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 24 Aug 2011 14:08:54 +0200 (MEST) Received: from custos.hw1.fb4.fh (n43.informatik.FH-Dortmund.DE [193.25.22.43]) by gatekeeper.informatik.fh-dortmund.de (8.12.10/8.12.10) with ESMTP id p7OBBB5x029895 for ; Wed, 24 Aug 2011 13:11:46 +0200 From: Michael Hoffmann To: freebsd-stable@freebsd.org Date: Wed, 24 Aug 2011 13:11:11 +0200 User-Agent: KMail/1.9.10 References: <201103092015.p29KFd0U077849@dave.dignus.com> <1314084403216-4725801.post@n5.nabble.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201108241311.11319.benzene@arcor.de> Subject: Re: -m32 on freeBSD 8.2r amd64 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: Wed, 24 Aug 2011 12:44:44 -0000 Maybe off topic? 1: echo "int main(void) { return 0; }" > t.c 2: setenv LDEMULATION elf_i386_fbsd 3: gcc -c -m32 -o t.o t.c 4: gcc -nostartfiles -o a.out t.o -L/usr/lib32 /usr/lib32/crt1.o /usr/lib32/crti.o 5: file a.out a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 8.2, not stripped 6: uname -m amd64 2: q.v. info binutils -> Selecting The Target System Maybe there is a more comfortable way. Michael Am Tuesday 23 August 2011 09:46:11 schrieb Edho Arief: > On Tue, Aug 23, 2011 at 2:26 PM, noel beck wrote: > > We are trying to compile i386 on a FreeBSD 8.2r amd64. > > we are getting an error stating that libstdc++.so.6, is missing. > > COMPACT6x and COMPACT7x have been installed. But this does not solve the > > problem. > > Is it possible to compile i386 on and amd64 system? > > I believe compiler flags to /lib32 is required (-L/usr/lib32 or something) > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"