Thank you, something's changed wrt path handling it seems. A temporary
fix/workaround (as reported by other Vista users) is to add the
ghc-6.6\gcc-lib directory to your PATH.

If you have the time, here's a couple of things to try out to
diagnose the problem further:

c:\foo> echo int x = 22; > foo.c
c:\foo> c:\ghc\ghc-6.6\gcc -Bc:\ghc\ghc-6.6\gcc-lib/ -c foo.c
<...> # expected to fail (same as ghc's invoc of gcc below)
c:\foo> c:\ghc\ghc-6.6\gcc -Bc:\ghc\ghc-6.6\gcc-lib -c foo.c
<...> # what happens here?
c:\foo> c:\ghc\ghc-6.6\gcc -Bc:\ghc\ghc-6.6\gcc-lib\ -c foo.c
<...> # what happens here?

--sigbjorn

Satnam Singh wrote:
The -v output below. I shall try it with Vista RC2 and see if that make a 
difference.
The same installer file on Windows XP and Windows Server seems to work fine.

Cheers,

Satnam

C:\sd\satnams\haskell\hello>ghc Hello.hs
gcc: installation problem, cannot exec `as': No such file or directory

C:\sd\satnams\haskell\hello>ghc -v Hello.hs
Glasgow Haskell Compiler, Version 6.6, for Haskell 98, compiled by GHC version 
6.6
Using package config file: c:\ghc\ghc-6.6\package.conf
wired-in package base mapped to base-2.0
wired-in package rts mapped to rts-1.0
wired-in package haskell98 mapped to haskell98-1.0
wired-in package template-haskell mapped to template-haskell-2.0
Hsc static flags: -static
Created temporary directory: C:/Users/satnams/AppData/Local/Temp/ghc5440_0
*** Checking old interface for main:Main:
*** Parser:
*** Renamer/typechecker:
*** Desugar:
    Result size = 10
*** Simplify:
    Result size = 8
*** Tidy Core:
    Result size = 8
*** CorePrep:
    Result size = 10
*** Stg2Stg:
*** CodeGen:
*** CodeOutput:
*** Assembler:
c:\ghc\ghc-6.6\gcc -Bc:\ghc\ghc-6.6\gcc-lib/ -I. -c 
C:\Users\satnams\AppData\Local\Temp\ghc5440_0\ghc5440_0.s -o Hello.o
gcc: installation problem, cannot exec `as': No such file or directory
*** Deleting temp files:
Deleting: C:/Users/satnams/AppData/Local/Temp/ghc5440_0/ghc5440_0.s
*** Deleting temp dirs:
Deleting: C:/Users/satnams/AppData/Local/Temp/ghc5440_0

C:\sd\satnams\haskell\hello>

-----Original Message-----
From: Sigbjorn Finne [mailto:[EMAIL PROTECTED]
Sent: 18 October 2006 14:03
To: Satnam Singh
Cc: GHC-bugs list
Subject: Re: ghc-6.6 on Windows Vista: "cannot exec as"


Thanks; for people that don't have access to Vista, the output resulting
from 'ghc -v Hello.hs' would help narrowing this down a bit...I hope.

--sigbjorn

Satnam Singh wrote:
I just installed GHC-6.6. on Windows Vista RC1 (using the MSI
installer) but when I compile I get the error:

c:\sd\satnams\haskell\hello>ghc Hello.hs

gcc: installation problem, cannot exec `as': No such file or directory

Has anyone else noticed this?

And before anyone tells me to: no, I can't use Linux!


Cheers,


Satnam

_______________________________________________
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to