linking problems after switching from GHC5 to GHC6

Simon Marlow simonmar at microsoft.com
Mon Feb 2 10:21:15 EST 2004


Thanks; looks like I overlooked that patch.

One workaround is to use '-lfoo' rather than 'foo.a' (not forgetting to
add the lib directory with -L<dir> if necessary).

Cheers,
	Simon 

> -----Original Message-----
> From: glasgow-haskell-users-bounces at haskell.org 
> [mailto:glasgow-haskell-users-bounces at haskell.org] On Behalf 
> Of Sigbjorn Finne
> Sent: 30 January 2004 16:39
> To: glasgow-haskell-users at haskell.org
> Subject: Re: linking problems after switching from GHC5 to GHC6
> 
> This is a 6.x bug; I fixed it in HEAD a while back,
> 
> http://haskell.org/pipermail/cvs-ghc/2003-October/018991.html
> 
> but the change wasn't merged for some reason.
> 
> --sigbjorn
> 
> ----- Original Message ----- 
> From: "Sven Panne" <Sven.Panne at aedion.de>
> To: "Volker Wysk" <post at volker-wysk.de>
> Cc: <glasgow-haskell-users at haskell.org>
> Sent: Friday, January 30, 2004 08:28
> Subject: Re: linking problems after switching from GHC5 to GHC6
> 
> 
> > Volker Wysk wrote:
> > > I've put together a minimal program which reproduces the 
> problem. Save
> the
> > > three attachments in a new directroy and type "make". I'ts just as
> > > described earlier. The trivial program compiles with 
> GHC5, but not GHC6.
> [...]
> >
> > Hmmm, it looks like GHC is reversing the order of files in 
> the linking
> step.
> > Mentioning liba.a *before* Main.o in the linking step is a 
> workaround...
> >
> > Cheers,
> >     S.
> >
> >
> > _______________________________________________
> > Glasgow-haskell-users mailing list
> > Glasgow-haskell-users at haskell.org
> > http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
> 
> _______________________________________________
> Glasgow-haskell-users mailing list
> Glasgow-haskell-users at haskell.org
> http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
> 


More information about the Glasgow-haskell-users mailing list