http://bugs.winehq.org/show_bug.cgi?id=24402
--- Comment #4 from Armin Kazmi armin.kazmi@tu-dortmund.de 2010-09-16 06:24:02 CDT --- @Alexandre Julliard:
The specific problem is that I try to compile 32bit code using an 64bit host (with both wine versions available). Only using winegcc test.c -o test -m32 (and well, -m32 is crucial here) results in the following error message:
/usr/bin/ld: Relocatable linking with relocations from format elf64-x86-64 (/usr/lib/wine/libwinecrt0.a(exe_entry.o)) to format elf32-i386 (test.ayxZu1.o) is not supported winebuild: /usr/bin/ld failed with status 1 winegcc: winebuild failed
Also adding the 32bit search path for ld using -Wb,-L /usr/lib32 does not change anything here. I'd also like to add that this error (more precise, building lmms vst plugin which uses the following extra cflags "-m32 -Wb,--as-cmd='as --32',--ld-cmd='ld -melf_i386' -L/usr/lib32") does not occur with wine 1.2.