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

Simon Peyton-Jones simonpj@microsoft.com
Wed, 5 Feb 2003 14:32:57 -0000


Sven, Peter,

Did you two sort out what was going on here?  We haven't a clue.  (If
there's some advice to offer to other users, we'll gladly add it to the
FAQ.)

Simon

| -----Original Message-----
| From: Peter Smith [mailto:smithp@gil.com.au]
| Sent: 25 January 2003 01:26
| To: glasgow-haskell-users@haskell.org
| Subject: Problem with --split-objs on windoze (when building HOpenGL)
|=20
| I'm having some difficulties with the --split-objs parameter when
building
| HOpenGL on win xp ine with --disable-split-objs.
|=20
| Tried uninstalling my 'normal' copy of perl & upgrading GHC to 5.04.2
but
| am still getting the same error.
|=20
| Couldn't find anything in the archives, so anyone got any ideas??
|=20
| $ make
|
------------------------------------------------------------------------
| Recursively making `all' in lib examples ...
| PWD =3D /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
| GL_Marshal_split;
| 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
| -i../GL
| UT -I../GLUT/include -cpp -DCALLCONV=3Dstdcall -split-objs -odir
| GL_Marshal_split
| -fglasgow-exts "-#include <GL/glut.h>" -O -c GL_Marshal.hs -o
GL_Marshal.o
| Can't locate utf8.pm 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
|=20
|=20
| Peter
|=20
| 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?
| Cheers,
| S.
|=20
| _______________________________________________
| Glasgow-haskell-users mailing list
| Glasgow-haskell-users@haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-users