MSYS build - stage 2 problem

Gour gour at mail.inet.hr
Thu Feb 26 19:07:13 EST 2004


Simon Peyton-Jones (simonpj at microsoft.com) wrote:

> There are several steps you need to check
> 
> 1.  hsc2hs creates System\Posix\Signals_hsc_make.c
                          ^^^   ^^^
Ahhh...didn't see this.

It should be System/Posix/Signals_hsc_make.c

By inspecting hsc2hs' Makefile, I've found (probably) the culprit - l.102:

ifneq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
        @echo "pathSep               = '/'" >> $(CONFIG_HS)
else
	@echo "pathSep               = (toEnum 92 :: Char)" >> $(CONFIG_HS)
endif

which (afaik) puts wrong (suited for cygwin build) separator for hsc2hs.

I don't know much of Makefile rules, but will try to adjust it.

> You have not checked that this works.  You can do this by first running
> hsc2hs with -v, then doing step 1 manually (hsc2hs --no-compile), then
> copy/pasting the gcc command from the -v step.  Please try this.  Does
> the .o file get created?  Does gcc run?

It works.

> 
> 3.  hsc2hs deletes System\Posix\Signals_hsc_make.c
> This presumably works
> 
> 4.  hsc2hs runs gcc System\Posix\Signals_hsc_make.o  -o
> System\Posix\Signals_hsc_make.exe
> Does this step work?  You can try it too by hand.

Yes.
> 
> 5.  hsc2hs deletes System\Posix\Signals_hsc_make.o
> This definitely fails
> 
> 6.  hsc2hs runs System\Posix\Signals_hsc_make.exe
> 
> Try these and send output.

It seems that I've found one piece which needs to be adapted for MSYS build :-)

My modification in hsc2hs' Makefile has passed and now the "make" is contnuing
with the build.

Will inform you about the result.

Sincerely,
Gour

-- 
Gour
gour at mail.inet.hr
Registered Linux User #278493



More information about the Cvs-ghc mailing list