Re: -package-name flag in 6.10.x

2009-11-25 Thread Duncan Coutts
On Wed, 2009-11-25 at 04:56 +, Malcolm Wallace wrote:
 Moreover, when I attempt to use the flag, like so:
 
  $ ghc -package-name hat-2.06 ...
  command line: cannot parse 'hat-2.06' as a package identifier
 
 This used to work with ghc-6.6.x and ghc-6.8.x, but seems to have  
 stopped working with ghc-6.10.x.  I surmise that the leading zero  
 after the version point separator is to blame?  It seems an  
 unfortunate regression.

On the contrary, it is good that it checks this now. The package name
compiled into the code really ought to match the package name registered
with ghc-pkg and the latter is a package identifier, not an arbitrary
string.

In principle it would be possible to parse 2.06 as a Version [2,6],
however I think we decided that allowing that redundancy in the original
string is not a good idea since people might expect 2.6 and 2.06 to be
different. It would also mean we could not rely on lossless round trips
between parser and printer which would be annoying for things like
finding the file or directory containing a package (imagine we go
looking for 2.6/ when the files are really in 2.06/).

Duncan

___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


Build of HEAD fails in integer-gmp

2009-11-25 Thread Bryan O'Sullivan
I get this error message, which suggests that the gmp-wrappers file should
be compiled with -fPIC but isn't being:

/usr/bin/ld:
libraries/integer-gmp/dist-install/build/cbits/gmp-wrappers.dyn_o:
relocation R_X86_64_PC32 against undefined symbol `__gmpz_init' can not be
used when making a shared object; recompile with -fPIC
___
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users