Hi, I'm trying to compile Wine cvs on this system: debian potato libc6 2.1.3 gcc 2.95.3 (upgraded) binutils 2.12.2 (upgraded) X 4.2 (upgraded) Nvidia drivers from Nvidias website (libGL 1.3) I get the following errors, I've tryied to compile this several times with tools/wineinstall and also 'configure && make depend && make', with and without these CLFAGS "-O3 -m486 -mcpu=i686 -march=i686 -ffast-math -malign-double", configure goes thru, make depend goes thru, but it stops and says Segfault at kernel32.spec.c - everything else (other programs) compile fine on this box and it is stable.. Here is the tail end of the compile before it stops: ---cut here--- gcc -shared ntdll.spec.o cdrom.o critsection.o debugtools.o exception.o error.o file.o heap.o large_int.o loader.o misc.o nt.o om.o reg.o rtl.o rtlstr.o string.o sec.o signal_i386.o signal_sparc.o sync.o time.o wcstring.o relay32.o ../../files/files.o ../../if1632/if1632.o ../../loader/loader.o ../../loader/ne/ne.o ../../memory/memory.o ../../misc/misc.o ../../msdos/msdos.o ../../ole/ole.o ../../relay32/relay32.o ../../scheduler/scheduler.o ../../win32/win32.o -o libntdll.so -L../../dlls -L../../library -lwine -L../../unicode -lwine_unicode -lm make[2]: Leaving directory `/home/kreator/files/wine/dlls/ntdll' rm -f libntdll.so && ln -s ntdll/libntdll.so libntdll.so make[2]: Entering directory `/home/kreator/files/wine/dlls/kernel' LD_LIBRARY_PATH="../../unicode:$LD_LIBRARY_PATH" ../../tools/wmc/wmc -i -H /dev/null -o messages/winerr_enu.mc.rc messages/winerr_enu.mc LD_LIBRARY_PATH="../../unicode:$LD_LIBRARY_PATH" ../../tools/wrc/wrc -I. -I. -I../../include -I../../include -o kernel.res -r kernel.rc LD_LIBRARY_PATH="../../unicode:$LD_LIBRARY_PATH" ../../tools/winebuild/winebuild -fPIC -L../../dlls -o kernel32.spec.c -spec ./kernel32.spec make[2]: *** [kernel32.spec.c] Segmentation fault make[2]: *** Deleting file `kernel32.spec.c' make[2]: Leaving directory `/home/kreator/files/wine/dlls/kernel' make[1]: *** [kernel/libkernel32.so] Error 2 make[1]: Leaving directory `/home/kreator/files/wine/dlls' make: *** [dlls] Error 2 Compilation failed, aborting install. ---snip here--- LD_LIBRARY_PATH is set to "/lib:/usr/lib:/usr/X11R6/lib:/usr/local/lib" Help!!! Is this a bug or is there something I'm not doing? TIA!
On Thu, 18 Jul 2002, KrEaToR wrote:> I get the following errors, I've tryied to compile this several times with > tools/wineinstall and also 'configure && make depend && make', with and > without these CLFAGS "-O3 -m486 -mcpu=i686 -march=i686 -ffast-math > -malign-double"Never compile Wine with -malign-double. Wine sets _FILE_OFFSET_BITS=64, which tells libc to use 64-bit file operations, which breaks if you use that (and yes, the problem is in libc, not Wine, though Wine's primary purpose, running Windows applications, might also be affected when you make Wine align structures differently than Windows apps do). Did you "make clean" before trying without those CFLAGS? (Also, Wine has often suffered problems from -O3 due to Wine's use of numerous assembly-language constructs, so you may not want to use that either.)