[Fwd: [Haskell-cafe] Fun with Cabal on Windows! [Stream fusion for Hackage]]

[See attached message for full report. Short version: Cabal error message on win32: "Setup: ld is required but it could not be found." Solution: add $ghc_path/gcc-lib to searched paths for ld and co. -or-: advise people to add it to their PATH var. ] I have no Windows system, but would is this worth a bug-fix for Cabal? Or has it already been fixed? / Thomas

On Mon, 2007-11-19 at 23:05 +0100, Thomas Schilling wrote:
[See attached message for full report. Short version: Cabal error message on win32: "Setup: ld is required but it could not be found." Solution: add $ghc_path/gcc-lib to searched paths for ld and co. -or-: advise people to add it to their PATH var. ]
I have no Windows system, but would is this worth a bug-fix for Cabal? Or has it already been fixed?
It is supposed to work, so we need to figure out why it is not working. Currently we do some special searching for ld on Windows: -- finding ghc's local ld is a bit tricky as it's not on the path: let conf''' = case os of Windows _ -> let compilerDir = takeDirectory (programPath ghcProg) baseDir = takeDirectory compilerDir binInstallLd = baseDir > "gcc-lib" > "ld.exe" in addKnownProgram ldProgram { programFindLocation = \_ -> return (Just binInstallLd) } conf'' _ -> conf'' (from Distribution.Simple.GHC) So we are trying to look for ld.exe in ghc's gcc-lib directory. It seems that we are not finding it for some reason. So we could do with seeing the output of configure -v3 which shows the location that Cabal looks for and finds all the programs it needs. If anyone else can reproduce this on windows that'd be helpful too. Duncan

Hi
So we could do with seeing the output of configure -v3 which shows the location that Cabal looks for and finds all the programs it needs.
If anyone else can reproduce this on windows that'd be helpful too.
Reproduced on mine too, I think I always have added that to the PATH as well. Thanks Neil --------- MINOR RANT -----------
Well, no, this is Windoze, we don't have ld here...
Calling Microsoft Windows (TM) "Windoze" is a bad idea. Microsoft pay for a good proportion of Haskell development, and hence showing them at least basic politness seems only fair. It may seem cool to people who dislike Windows, but in most cases, you are specifically asking for the help of a Windows user, who kind of gets instantly disinclined to help as soon as you suggest they (or their operating system of choice) is "dozy". It's the same number of keys, and abbreviating it to Win would be perfectly acceptable too!

Reproduced on mine too, I think I always have added that to the PATH as well.
Same here, I've also always had to add gcc-lib to the PATH.
--------- MINOR RANT -----------
Well, no, this is Windoze, we don't have ld here...
Calling Microsoft Windows (TM) "Windoze" is a bad idea. Microsoft pay for a good proportion of Haskell development, and hence showing them at least basic politness seems only fair. It may seem cool to people who dislike Windows, but in most cases, you are specifically asking for the help of a Windows user, who kind of gets instantly disinclined to help as soon as you suggest they (or their operating system of choice) is "dozy". It's the same number of keys, and abbreviating it to Win would be perfectly acceptable too!
+1 /g -- The man who'd introduced them didn't much like either of them, though he acted as if he did, anxious as he was to preserve good relations at all times. One never knew, after all, now did one now did one now did one.

On Mon, 2007-11-19 at 19:40 -0600, J. Garrett Morris wrote:
Reproduced on mine too, I think I always have added that to the PATH as well.
Same here, I've also always had to add gcc-lib to the PATH.
I've pushed what I think is a fix. It now works for me on windows. Mind you it always did for me because it was finding ld.exe from mingw's path. Sigh. Can someone grab Cabal HEAD and make sure it works for them too please. Duncan

On Mon, 2007-11-19 at 23:35 +0000, Neil Mitchell wrote:
Hi
So we could do with seeing the output of configure -v3 which shows the location that Cabal looks for and finds all the programs it needs.
If anyone else can reproduce this on windows that'd be helpful too.
Reproduced on mine too, I think I always have added that to the PATH as well.
Thanks
Neil
--------- MINOR RANT -----------
Well, no, this is Windoze, we don't have ld here...
Calling Microsoft Windows (TM) "Windoze" is a bad idea. Microsoft pay for a good proportion of Haskell development, and hence showing them at least basic politness seems only fair. It may seem cool to people who dislike Windows, but in most cases, you are specifically asking for the help of a Windows user, who kind of gets instantly disinclined to help as soon as you suggest they (or their operating system of choice) is "dozy". It's the same number of keys, and abbreviating it to Win would be perfectly acceptable too!
Minor Clarification: This original remark came from Andrew - a Windows user. (It might have looked different, depending on how your mail reader displayed the attached, forwarded message.) But I agree that remarks like this could be considered rude and decrease the readiness to help, so I will try to avoid this for my own posts.
participants (4)
-
Duncan Coutts
-
J. Garrett Morris
-
Neil Mitchell
-
Thomas Schilling