Ticket #143 (closed defect: wontfix)

Opened 6 years ago

Last modified 17 months ago

Cannot execute ar.exe on Vista

Reported by: gracjanpolak@… Owned by: ijones
Priority: normal Milestone:
Component: Cabal library Version: 1.1.6
Severity: major Keywords: Vista
Cc: Difficulty: normal
GHC Version: 6.6 Platform: Windows

Description

Cabal cannot execute ar.exe on Windows Vista. Shouldn't check exec bit, just exec, as Vista doesn't have this bit set.

Seems related to problems of GHC when executing as.exe

Following example with HList, happens exactly in the same way on any library cabal project.

C:\Sources>darcs get --partial http://darcs.haskell.org/HList
Copying patch 13 of 13... done.
Applying patch 12 of 12... done.
Finished getting.

C:\Sources>cd HList

C:\Sources\HList>runhaskell Setup.hs configure
Setup.hs: Warning: The field "hs-source-dir" is deprecated, please use hs-sourc
-dirs.
Setup.hs: Warning: No license-file field.
Configuring HList-0.1...
configure: Dependency base-any: using base-2.1.1
configure: Using install prefix: C:\Program Files
configure: Binaries installed in: C:\Program Files\Haskell\bin
configure: Libraries installed in: C:\Program Files\Haskell\HList-0.1\ghc-6.6.1
configure: Private binaries installed in: C:\Program Files\HList-0.1
configure: Data files installed in: C:\Program Files\Common Files\HList-0.1
configure: Using compiler: C:\ghc\ghc-6.6.1\bin\ghc.exe
configure: Compiler flavor: GHC
configure: Compiler version: 6.6.1
configure: Using package tool: C:\ghc\ghc-6.6.1\bin\ghc-pkg.exe
configure: Using ar found on system at: C:\ghc\ghc-6.6.1\bin\ar.exe
configure: Using haddock found on system at: C:\ghc\ghc-6.6.1\bin\haddock.exe
configure: No pfesetup found
configure: No ranlib found
configure: Using runghc found on system at: C:\ghc\ghc-6.6.1\bin\runghc.exe
configure: No runhugs found
configure: No happy found
configure: No alex found
configure: Using hsc2hs: C:\ghc\ghc-6.6.1\bin\hsc2hs.exe
configure: No c2hs found
configure: No cpphs found
configure: No greencard found

C:\Sources\HList>runhaskell Setup.hs build
Preprocessing library HList-0.1...
Building HList-0.1...
[ 1 of 19] Compiling FakePrelude      ( src/FakePrelude.hs, dist\build/FakePrelde.o )
...
[19 of 19] Compiling HList            ( src/HList.hs, dist\build/HList.o )

Setup.hs: Error: file is not executable: "C:\\ghc\\ghc-6.6.1\\bin\\ar.exe"

C:\Sources\HList>

Change History

Changed 6 years ago by duncan

  • status changed from new to closed
  • resolution set to wontfix

This is a bug in the base libs which I believe has been fixed in ghc-6.8. I don't think we intend to workaround the old code just so that new cabal can work with old ghc on Vista.

If this is still a problem with the newer base lib that comes with recent ghc then please reopen.

Changed 17 months ago by elga

Note: See TracTickets for help on using tickets.