-m32 on freeBSD 8.2r amd64

Michael Hoffmann benzene at arcor.de
Wed Aug 24 12:44:44 UTC 2011


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 at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe at freebsd.org"


More information about the freebsd-stable mailing list