http://bugs.winehq.org/show_bug.cgi?id=32872
--- Comment #8 from Austin English austinenglish@gmail.com 2013-06-03 17:11:00 CDT --- There's a similar problem. On linux64, with wine32 and clang installed, running winemaker fails unless --wine32 is specified. By default, it will attempt to use clang to assemble, and it will do so as a 64-bit build:
austin@aw25 ~/b $ winegcc -v -mwindows -mno-cygwin -o b.exe test_freopen.o -lodbc32 -lole32 -loleaut32 -lwinspool -lodbccp32 -luuid winebuild -v -fno-asynchronous-unwind-tables -D_REENTRANT -fPIC --exe -o b.exe-IGE76X.spec.o -F b.exe --subsystem windows -L/usr/local/lib/wine -L/usr/local/lib -- test_freopen.o /usr/local/lib/wine/libodbc32.def /usr/local/lib/wine/libole32.def /usr/local/lib/wine/liboleaut32.def /usr/local/lib/wine/libwinspool.def /usr/local/lib/wine/libodbccp32.def /usr/local/lib/wine/libuuid.a /usr/local/lib/wine/libmsvcrt.def /usr/local/lib/wine/libshell32.def /usr/local/lib/wine/libcomdlg32.def /usr/local/lib/wine/libgdi32.def /usr/local/lib/wine/libadvapi32.def /usr/local/lib/wine/libuser32.def /usr/local/lib/wine/libwinecrt0.a /usr/local/lib/wine/libkernel32.def /usr/local/lib/wine/libntdll.def /usr/local/bin/clang -xassembler -c -o b.nV3xVG.o b.AI1XuP.s /usr/bin/ld -r -o b.0IxHKw.o b.nV3xVG.o test_freopen.o /usr/local/lib/wine/libuuid.a /usr/local/lib/wine/libwinecrt0.a /usr/bin/ld: Relocatable linking with relocations from format elf32-i386 (test_freopen.o) to format elf64-x86-64 (b.0IxHKw.o) is not supported winebuild: /usr/bin/ld failed with status 1 winegcc: winebuild failed
using 'winemaker --wine32' instead is a workaround.