osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: Re: ghc-6.6 on Windows Vista: "cannot exec
as" - msg#00163

List: lang.haskell.glasgow.bugs

Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index

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:sof@xxxxxxxxxx]
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


Thread at a glance:

Previous Message by Date:

[GHC] #954: internal error: scavenge_mark_stack: unimplemented/strange closure type 28 @ 0xaffe7500

#954: internal error: scavenge_mark_stack: unimplemented/strange closure type 28 @ 0xaffe7500 -------------------------+-------------------------------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 6.6 Severity: normal | Keywords: Difficulty: Unknown | Testcase: Architecture: x86 | Os: Linux -------------------------+-------------------------------------------------- Program work correctly if it was compiled by GHC 6.4.1. If program was compiled by GHC 6.6, some time it print this error. ghc -v: Glasgow Haskell Compiler, Version 6.6, for Haskell 98, compiled by GHC version 6.6 Using package config file: /usr/lib/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 gcc -v: Configured with: ./configure --prefix=/usr --enable- languages=c,c++,objc,java,treelang,f77 : (reconfigured) ./configure --prefix=/usr --enable-languages=c,c++,objc,java,treelang : (reconfigured) ./configure --prefix=/usr --enable- languages=c,ada,c++,fortran,java,objc,obj-c++,treelang : (reconfigured) ./configure --prefix=/usr --enable- languages=c,ada,c++,fortran,java,objc,treelang : (reconfigured) ./configure --prefix=/usr --enable- languages=c,ada,c++,f77,java,objc,treelang Thread model: posix gcc version 3.4.6 -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/954> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler_______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@xxxxxxxxxxx http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Next Message by Date:

Re: [GHC] #314: #line pragmas not respected inside nested comments

#314: #line pragmas not respected inside nested comments -------------------------------+-------------------------------------------- Reporter: nobody | Owner: simonmar Type: bug | Status: assigned Priority: low | Milestone: 6.8 Component: Compiler (Parser) | Version: 6.4 Severity: normal | Resolution: None Keywords: | Difficulty: Unknown Testcase: read032 | Architecture: Unknown Os: Unknown | -------------------------------+-------------------------------------------- Changes (by igloo): * architecture: => Unknown * difficulty: => Unknown * milestone: => 6.8 * testcase: => read032 * os: => Unknown Old description: > {{{ > If one tries to compile a .hs file, with the -cpp > option and the file contains > C-style comments (/* comment */), then the linenumbers > GHC reports > are wrong. > > Minimal file exhibiting the error: > > --- > {- > /* > * Copyright (c) 2005 Jesper Louis Andersen > <jlouis@xxxxxxxxxxx> > * > * Permission to use, copy, modify, and distribute this > software for any > * purpose with or without fee is hereby granted, > provided that the above > * copyright notice and this permission notice appear > in all copies. > * > * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR > DISCLAIMS ALL WARRANTIES > * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED > WARRANTIES OF > * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE > AUTHOR BE LIABLE FOR > * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL > DAMAGES OR ANY DAMAGES > * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR > PROFITS, WHETHER IN AN > * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS > ACTION, ARISING OUT OF > * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS > SOFTWARE. > */ > -} > > c = 3 * "string" > > main = putStrLn $ show c > ---- > > ; ghc -cpp tmp.hs > > tmp.hs:6: > No instance for (Num [Char]) > arising from use of `*' at tmp.hs:6 > In the definition of `c': c = 3 * "string" > > Which is clearly wrong, since ``c'' is not defined on > line 6. > > Note I am not sure wether it is in the parser, or it is > rather in compilation > chain where cpp gets invoked one has to look for the > error. I have filed > it as a parser-bug nonetheless. > > Fix: cpp(1) seems to output comments in the style > # xx "filename" > > where ``xx'' is a number stating the linenumber in the > original file. > Keeping track of this probably fixes the bug. > > CPP version: GNU CPP from GCC 3.3.5 > Operating System: OpenBSD 3.6-current (GENERIC) #1: Sun > Feb 20 10:23:54 CET 2005 > > Submitter: Jesper Louis Andersen <jlouis@xxxxxxxxxxx> > > }}} New description: {{{ If one tries to compile a .hs file, with the -cpp option and the file contains C-style comments (/* comment */), then the linenumbers GHC reports are wrong. Minimal file exhibiting the error: --- {- /* * Copyright (c) 2005 Jesper Louis Andersen <jlouis@xxxxxxxxxxx> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -} c = 3 * "string" main = putStrLn $ show c ---- ; ghc -cpp tmp.hs tmp.hs:6: No instance for (Num [Char]) arising from use of `*' at tmp.hs:6 In the definition of `c': c = 3 * "string" Which is clearly wrong, since ``c'' is not defined on line 6. Note I am not sure wether it is in the parser, or it is rather in compilation chain where cpp gets invoked one has to look for the error. I have filed it as a parser-bug nonetheless. Fix: cpp(1) seems to output comments in the style # xx "filename" where ``xx'' is a number stating the linenumber in the original file. Keeping track of this probably fixes the bug. CPP version: GNU CPP from GCC 3.3.5 Operating System: OpenBSD 3.6-current (GENERIC) #1: Sun Feb 20 10:23:54 CET 2005 Submitter: Jesper Louis Andersen <jlouis@xxxxxxxxxxx> }}} -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/314> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler_______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@xxxxxxxxxxx http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Previous Message by Thread:

RE: ghc-6.6 on Windows Vista: "cannot exec as"

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:sof@xxxxxxxxxx] 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 > > ------------------------------------------------------------------------ > > Satnam Singh > Microsoft > 7 JJ Thomson Avenue > Cambridge > CB3 0FB > United Kingdom > > Email: satnams@xxxxxxxxxxxxx <mailto:satnams@xxxxxxxxxxxxx> > UK tel: +44 1223 479905 > US tel: +1 206 219 9024 > Fax: +44 1223 479 999 > UK cell: +44 7979 648412 > URL: http://research.microsoft.com/~satnams > <http://research.microsoft.com/%7Esatnams> > MSN IM: satnam@xxxxxxxxxxxx > > ------------------------------------------------------------------------ > > _______________________________________________ > Glasgow-haskell-bugs mailing list > Glasgow-haskell-bugs@xxxxxxxxxxx > http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs >

Next Message by Thread:

[GHC] #951: stage2 on sparc dies with "schedule: re-entered unsafely"

#951: stage2 on sparc dies with "schedule: re-entered unsafely" -------------------------------+-------------------------------------------- Reporter: duncan | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Runtime System | Version: 6.6 Severity: major | Keywords: Difficulty: Unknown | Testcase: Architecture: sparc | Os: Multiple -------------------------------+-------------------------------------------- Building a registerised GHC-6.6 on Sparc Solaris or Sparc Linux gives a stage2 with the following problem: {{{ $ ghc --version ghc-6.6: schedule: re-entered unsafely. Perhaps a 'foreign import unsafe' should be 'safe'? }}} This happens for Christian Maeder on Solaris and for me on Linux. It does not seem to be related to {{{SPLIT_OBJS=}}} in the {{{mk/build.mk}}}. Christian reports that it works for him with gcc-4.0.3 but not gcc-3.4.4, though that was not the only thing different between the two configurations: {{{ It works with gcc_4.0.3_s10 on "SunOS leo 5.10 Generic_118833-20 sun4u sparc SUNW,Sun-Fire-280R" It crashes as above on "SunOS cni 5.10 Generic_118833-24 sun4u sparc SUNW,Sun-Fire-V240" with gcc_3.4.4_s10. }}} My results do not contradict this as I am using gcc-3.4.6 on Sparc Linux. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/951> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler_______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@xxxxxxxxxxx http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!