From: Ville A. B. <vbe...@cc...> - 2002-04-16 11:40:42
|
On Mon, 15 Apr 2002, Earnie Boyd wrote: > Ville Axel Bergholm wrote: > > > > I'm trying to compile Mesa-4.0.1 for Windows 98 using MinGW > > (unsuccessfully so far). > cd Mesa-4.0.1 > mkdir bld > cd bld > ../configure --prefix=/mingw > make This almost worked;) Here's a more precise description of the problem: My MinGW is installed at c:\Program Files\MinGW. In MSYS this directory is mounted in /mingw. The MSYS PATH is /mingw/bin:/bin (in this order because the make that came with MSYS keeps complaining about a missing dll. Strange.) In the following, my comments are on lines beginning with "---": cd Mesa-4.0.1 mkdir bld cd bld ../configure --prefix=/mingw make --- configure works OK, builds the Makefiles and other stuff --- make starts processing the Makefile, but the libtool script doesn't --- quite work: it gives an output like this with every source file C:/PROGRAM FILES/MSYS/1.0/BIN/sh.exe ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../../src/math -I../.. -I../../../include -I../../../src -g -O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fstrict-aliasing -malign-loops=2 -malign-jumps=2 -malign-functions=2 -c ../../../src/math/m_debug_clip.c ../../libtool: cygpath: command not found --- gcc then successfully compiles the source module into an .o object --- which is renamed: mv -f m_debug_clip.o m_debug_clip.lo --- this repeats a few times. Then the first linking step arrives: mv -f m_xform.o m_xform.lo C:/PROGRAM FILES/MSYS/1.0/BIN/sh.exe ../../libtool --mode=link gcc -g -O2 -Wall -fomit-frame-pointer -ffast-math -fexpensive-optimizations -fstrict-aliasing -malign-loops=2 -malign-jumps=2 -malign-functions=2 -o libMesaMath.la m_debug_clip.lo m_debug_norm.lo m_debug_vertex.lo m_debug_xform.lo m_eval.lo m_matrix.lo m_translate.lo m_vector.lo m_vertices.lo m_xform.lo ../../libtool: cygpath: command not found mkdir .libs rm -fr .libs/libMesaMath.la .libs/libMesaMath.* .libs/libMesaMath.* --- here excrement hits the fan: lib /OUT:.libs/libMesaMath.al m_debug_clip.lo m_debug_norm.lo m_debug_vertex.lo m_debug_xform.lo m_eval.lo m_matrix.lo m_translate.lo m_vector.lo m_vertices.lo m_xform.lo ../../libtool: lib: command not found c:\Program Files\MinGW\bin\make.exe[3]: *** [libMesaMath.la] Error 127 c:\Program Files\MinGW\bin\make.exe[3]: Leaving directory `c:/Ohjelmat/Mesa-4.0.1/bld/src/math' c:\Program Files\MinGW\bin\make.exe[2]: *** [all-recursive] Error 1 c:\Program Files\MinGW\bin\make.exe[2]: Leaving directory `c:/Ohjelmat/Mesa-4.0.1/bld/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `c:/Ohjelmat/Mesa-4.0.1/bld' c:\Program Files\MinGW\bin\make.exe: *** [all-recursive-am] Error 2 To me it seems as if libtool were trying to call some MSVC-style linker with switch /OUT:outputfilename. I also tried compiling Mesa-4.0.2 which has also been released. In this case the configure script failed: ../configure: line 10959: syntax error: unexpected end of file This looks like a bug in the Mesa release, not something concerning MinGW. Regards, Ville |