producing/using i386 libs/apps under amd64

Michael Reifenberger mike at
Tue May 24 08:14:50 PDT 2005

there seems to be at last two instances of the same problem
when using freebsd/amd64:

After compiling all base libs for i386 (into /usr/lib32)
and fetching the missing i386 libs from an i386 machine (into /usr/lib32)
starting leads to:
/usr/libexec/ /usr/X11R6/lib/ unsupported file layout
( It seems to be the wrong linker which uses the wrong lib... )

make testmain fails with:
cc -O -pipe -fno-strict-aliasing -ffreestanding -mpreferred-stack-boundary=2 
-DTESTMAIN -D_TESTMAIN  -m32 -I. -I/usr/src/sys/boot/ficl 
-I/usr/src/sys/boot/ficl/i386  -I/usr/src/sys/boot/ficl/../common -c 
cc -O -pipe -fno-strict-aliasing -ffreestanding -mpreferred-stack-boundary=2 
-DTESTMAIN -D_TESTMAIN  -m32 -I. -I/usr/src/sys/boot/ficl 
-I/usr/src/sys/boot/ficl/i386  -I/usr/src/sys/boot/ficl/../common  -o testmain 
dict.o ficl.o fileaccess.o float.o loader.o math64.o prefix.o search.o stack.o 
tools.o vm.o words.o sysdep.o softcore.o testmain.o
  /usr/bin/ld: skipping incompatible /usr/lib/libgcc.a when searching for -lgcc /usr/bin/ld: cannot find -lgcc
*** Error code 1

(Here it seems that the linker is not aware of the -m32 option)

Is someone working in this area?
Or are there workarounds available?


Michael Reifenberger, Business Development Manager SAP-Basis, Plaut Consulting
Comp: Michael.Reifenberger at | Priv: Michael at           |

More information about the freebsd-amd64 mailing list