I'm really hoping this is just a GHC version issue, and nothing to do
with different shell quoting behaviour. Don: you were trying to build
with 6.0.x on OpenBSD, right?
There is a way around: namely to generate a Version.hs in the same way
that ghc/compiler/Makefile generates Config.hs. Backing off to this
solution might be the right way.
Cheers,
Simon
On 30 August 2004 16:48, Sigbjorn Finne wrote:
> I couldn't remember whether or not this <= 6.0.x argument quoting
> issue also applied to non-win32 platforms, hence the restriction. The
> Makefile has been tweaked to hopefully sort this one out.
>
> --sigbjorn
>
> ----- Original Message -----
> From: "Donald Bruce Stewart" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, August 29, 2004 19:04
> Subject: String literal cpp syms
>
>
>> Hey all,
>>
>> Some cpp/sh goop.
>>
>> HEAD fails to build quite early on, on OpenBSD/i386 with sh, due to
>> double-quotes disappearing in cpp sym definitions. The result is no
>> quotes in the .hs file, so ghc stops with the following:
>>
>> Main.hs:87:
>> No instance for (Fractional String)
>> arising from the literal `6.3' at Main.hs:87
>> In the definition of `version': version = 6.3
>> gmake: *** [Main.o] Error 1
>>
>> The following patch fixes the problem, by using the escaped version
>> of the shell string. I'm not sure why we couldn't use the escaped
>> version by default on (at least) all unixy systems. Sigbjorn?
>>
>> -- Don
>>
>> Index: ghc/utils/ghc-pkg/Makefile
>> ===================================================================
>> RCS file: /cvs/fptools/ghc/utils/ghc-pkg/Makefile,v
>> retrieving revision 1.25
>> diff -u -u -r1.25 Makefile
>> --- ghc/utils/ghc-pkg/Makefile 25 Aug 2004 17:14:55 -0000 1.25
>> +++ ghc/utils/ghc-pkg/Makefile 30 Aug 2004 01:49:05 -0000 @@ -14,11
>> +14,7 @@
>>
>> SRC_HC_OPTS += -cpp -DPKG_TOOL -DWANT_PRETTY
>>
>> -ifeq "$(HOSTPLATFORM)$(ghc_le_600)" "i386-unknown-mingw32YES"
>> SRC_HC_OPTS += -D'GHC_PKG_VERSION=\"$(ProjectVersion)\"'
>> -else
>> -SRC_HC_OPTS += -D'GHC_PKG_VERSION="$(ProjectVersion)"'
>> -endif
>>
>> ifeq "$(ghc_ge_504)" "NO"
>> SRC_HC_OPTS += -package lang -package util -package text
>
> _______________________________________________
> Cvs-ghc mailing list
> [EMAIL PROTECTED]
> http://www.haskell.org/mailman/listinfo/cvs-ghc
_______________________________________________
Cvs-ghc mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/cvs-ghc