Re: Linking hsc2hs .c output on Windows w/ build system: is it just me..?

2009-05-21 Thread Sigbjorn Finne
Simon Marlow wrote: On 29/04/2009 01:23, Sigbjorn Finne wrote: Thanks Simon, sorry for not noticing your reply amidst the flow of g-h-b ticket reports before now. As there is no need to sail that close to the wind of playing with the delicate linking & loading orders of the CRT and base DLLs

Re: Linking hsc2hs .c output on Windows w/ build system: is it just me..?

2009-05-21 Thread Simon Marlow
On 29/04/2009 01:23, Sigbjorn Finne wrote: Thanks Simon, sorry for not noticing your reply amidst the flow of g-h-b ticket reports before now. As there is no need to sail that close to the wind of playing with the delicate linking & loading orders of the CRT and base DLLs like kernel32, my sugge

Re: Linking hsc2hs .c output on Windows w/ build system: is it just me..?

2009-04-28 Thread Sigbjorn Finne
Thanks Simon, sorry for not noticing your reply amidst the flow of g-h-b ticket reports before now. As there is no need to sail that close to the wind of playing with the delicate linking & loading orders of the CRT and base DLLs like kernel32, my suggestion would be simply to avoid it. You don't

Re: Linking hsc2hs .c output on Windows w/ build system: is it just me..?

2009-04-27 Thread kyra
Sigbjorn Finne wrote: Long and rambling..hope you made it this far ;-) Is anyone else running into this issue & should we do something about it? If not, details of compilation environment that you've got that avoids running into this issue would be most welcome. It's a bit of a chore spinning

RE: Linking hsc2hs .c output on Windows w/ build system: is it just me..?

2009-04-27 Thread Simon Peyton-Jones
2009 12:59 | To: Sigbjorn Finne | Cc: glasgow-haskell-bugs@haskell.org | Subject: Re: Linking hsc2hs .c output on Windows w/ build system: is it just me..? | | On 24/04/2009 23:04, Sigbjorn Finne wrote: | > I've been experiencing repeated woes over the past 4-5 months | > when trying to sp

Re: Linking hsc2hs .c output on Windows w/ build system: is it just me..?

2009-04-27 Thread Simon Marlow
On 24/04/2009 23:04, Sigbjorn Finne wrote: I've been experiencing repeated woes over the past 4-5 months when trying to spin up build trees on Windows with the new build system. This is happening on the 3-4 boxes that I regularly develop on, which leads me to believe that this may not be limited

Re: Linking hsc2hs .c output on Windows w/ build system: is it just me..?

2009-04-25 Thread Sigbjorn Finne
Oh, and a simple test case: foo$ cat a.c int main() { return 0; } foo$ c:/ghc/ghc-6.10.1/gcc -o a a.c foo$ ./a ; echo $? 0 foo$ c:/ghc/ghc-6.10.1/gcc -o a a.c -lkernel32 foo$ ./a ; echo $? 0 foo$ c:/ghc/ghc-6.10.1/gcc -o a a.c -lkernel32 -lmsvcrt foo$ ./a ; echo $? 5 foo$ --sigbjorn On 4/25/20

Re: Linking hsc2hs .c output on Windows w/ build system: is it just me..?

2009-04-25 Thread Sigbjorn Finne
On 4/25/2009 05:37, Ian Lynagh wrote: Hi Sigbjorn, On Fri, Apr 24, 2009 at 03:04:14PM -0700, Sigbjorn Finne wrote: I've been experiencing repeated woes over the past 4-5 months when trying to spin up build trees on Windows with the new build system. By "new build system" do you mean

Re: Linking hsc2hs .c output on Windows w/ build system: is it just me..?

2009-04-25 Thread Ian Lynagh
Hi Sigbjorn, On Fri, Apr 24, 2009 at 03:04:14PM -0700, Sigbjorn Finne wrote: > > I've been experiencing repeated woes over the past 4-5 months > when trying to spin up build trees on Windows with the new build > system. By "new build system" do you mean http://darcs.haskell.org/ghc-new-buil

Re: Linking hsc2hs .c output on Windows w/ build system: is it just me..?

2009-04-24 Thread Duncan Coutts
On Fri, 2009-04-24 at 15:04 -0700, Sigbjorn Finne wrote: > There's a couple of things that are odd here: > > * base.cabal files have kernel32 and msvcrt as extra-libraries. This > is clearly not required when doing invocations via ld(1), and causes > considerable mischief, so it'd be good if th

Linking hsc2hs .c output on Windows w/ build system: is it just me..?

2009-04-24 Thread Sigbjorn Finne
Hi, I've been experiencing repeated woes over the past 4-5 months when trying to spin up build trees on Windows with the new build system. This is happening on the 3-4 boxes that I regularly develop on, which leads me to believe that this may not be limited to just me.. The problem is that hsc2h