compiling hslibs/xlib

Jens Petersen
02 Feb 2002 07:18:02 +0900

"Julian Seward (Intl Vendor)" <> writes:

> Precisely what version of gcc are you using here?
> (gcc -v)
> This has been known to happen if you use the default
> gcc on RedHat 6.1 and 6.2.

Good question.  Nothing so old, is the short answer I think.

The ghc I'm using is from Manuel's ghc-5.02.2-1 rpm (built
on RH72 I believe) is probably with gcc-2.96.

I am building green-card and xlib with gcc from cvs!

        gcc version 3.1 20020131 (Red Hat Linux Rawhide 3.1-0.20)

Actually I wanted to build with gcc296, but it (rightly?)
doesn't seem to like "-o" and "-c" in the same command:

ghc -ldl -package-name greencard  -package lang    -fvia-C -cpp -fglasgow-exts -package lang -fno-prune-tydecls -c StdDIS.hs -o StdDIS.o
gcc296 -ldl -package-name greencard  -package lang    -fvia-C -cpp -fglasgow-exts -package lang -fno-prune-tydecls -c StdDIS_stub_ffi.c -o StdDIS_stub_ffi.o
gcc296: cannot specify -o with -c or -S and multiple compilations


> | From: Jens Petersen [] 
> | 
> | I'm trying to build xlib from cvs.  I built green-card in
> | the cvs tree with ghc-5.02.2 (though I didn't install it),
> | then while compiling xlib I get:
> | 
> | ghc -ldl -recomp  -fglasgow-exts -fvia-C -monly-3-regs 
> | -package greencard -I/usr/X11R6/include  -O -Rghc-timing  
> | -I../greencard/cbits -package-name xlib  -package greencard   
> |  -c Xlib.hs -o Xlib.o
> | Prologue junk?: .globl Xlib_zdwrectInRegion_fast6
> | Xlib_zdwrectInRegion_fast6:
> | 	movl	$0, (%esp)
> | 	movl	$0, 4(%esp)