Problem with --split-objs on windoze (when building HOpenGL)

Peter Smith
Sat, 25 Jan 2003 11:25:30 +1000

I'm having some difficulties with the --split-objs parameter when building 
HOpenGL on win xp ine with --disable-split-objs.

Tried uninstalling my 'normal' copy of perl & upgrading GHC to 5.04.2 but 
am still getting the same error.

Couldn't find anything in the archives, so anyone got any ideas??

$ make
Recursively making `all' in lib examples ...
PWD = /usr/local/HOpenGL-1.04
make all - --unix;
in /usr/local/HOpenGL-1.04/lib
rm -f GL_Marshal.o ; if [ ! -d GL_Marshal_split ]; then mkdir 
else find GL_Marshal_split -name '*.o' -print | xargs -s 8000 rm -f 
__rm_food ;
fi ;
"/cygdrive/c/ghc/ghc-5.04.1/bin/ghc" -package lang -package-name HOpenGL 
UT -I../GLUT/include -cpp -DCALLCONV=stdcall -split-objs -odir 
-fglasgow-exts "-#include <GL/glut.h>" -O -c GL_Marshal.hs -o GL_Marshal.o
Can't locate in @INC (@INC contains: .) at 
c:\ghc\ghc-5.04.1\ghc-split l
ine 50, <TMPI> line 7.
BEGIN failed--compilation aborted, <TMPI> line 7.
make[1]: *** [GL_Marshal.o] Error 1make: *** [all] Error 1


At 01:10 PM 24/01/2003 +0100, Sven Panne wrote:
Peter Smith wrote:
 > I'm getting the following error when running make all/make install (make
 > depend worked fine).
 > I'm building on windoze xp home, GHC5.04.1, cygwin. Any ideas? [...]
Hmmm, this looks like a GHC/Perl installation problem (GHC uses Perl
e.g. for -split-objs). A few questions:
* Can you compile and link a simple HelloWorld.hs with -O?
* Can you do the same with -O *and* -split-objs?
* Does HOpenGL work when configure is called with --disable-split-objs?