Date: Wed, 24 Aug 2011 13:11:11 +0200 From: Michael Hoffmann <benzene@arcor.de> To: freebsd-stable@freebsd.org Subject: Re: -m32 on freeBSD 8.2r amd64 Message-ID: <201108241311.11319.benzene@arcor.de> In-Reply-To: <CAAtReC=NhQq2A7bwgo_H8tN23_x3xxS3ADFnHnpjfmU=27TdSQ@mail.gmail.com> References: <201103092015.p29KFd0U077849@dave.dignus.com> <1314084403216-4725801.post@n5.nabble.com> <CAAtReC=NhQq2A7bwgo_H8tN23_x3xxS3ADFnHnpjfmU=27TdSQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <nbeck@hobsoft.com.mt> 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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108241311.11319.benzene>