RE: GHC 4.00 "symbol ... is multiply defined"

1998-11-11 Thread Sigbjorn Finne (Intl Vendor)



Jan Laitenberger <[EMAIL PROTECTED]> writes: 
> 
> 
> Hi!
> 
> 
> The final ghc call to combine the object files of our project
> 
>   /public/languages/ghc-4.00/bin/ghc -o P -H30M  Avl.o Codegen.o 
> 
> produces 
> 
> ld: fatal: symbol `DoubleNaN' is multiply defined:
>   (file 
> /public/languages/ghc-4.00/lib/ghc-4.00/libHS_cbits.a(floatExtreme.o) 
>   and file 
> /public/languages/ghc-4.00/lib/ghc-4.00/libHSrts.a(StgPrimFloat.o));
> 
> messages. (also for symbols isFloatInfinite, isFloatDenormalized,
> isFloatNegativeZero, isDoubleInfinite, isDoubleDenormalized,
> isDoubleNegativeZero, isFloatNaN)
> 
> What can I do to avoid this?
> 

Do a 'cvs update' - this was fixed sometime yesterday afternoon.
(i.e., ghc/lib/std/cbits/floatExtreme.{c,h} doesn't exist any longer.)

--Sigbjorn



GHC 4.00 "symbol ... is multiply defined"

1998-11-11 Thread Jan Laitenberger


Hi!


The final ghc call to combine the object files of our project

  /public/languages/ghc-4.00/bin/ghc -o P -H30M  Avl.o Codegen.o 

produces 

ld: fatal: symbol `DoubleNaN' is multiply defined:
  (file /public/languages/ghc-4.00/lib/ghc-4.00/libHS_cbits.a(floatExtreme.o) 
  and file /public/languages/ghc-4.00/lib/ghc-4.00/libHSrts.a(StgPrimFloat.o));

messages. (also for symbols isFloatInfinite, isFloatDenormalized,
isFloatNegativeZero, isDoubleInfinite, isDoubleDenormalized,
isDoubleNegativeZero, isFloatNaN)

What can I do to avoid this?


Many thanks in advance,

Jan

 ___
'---|--
|  __,   _  _  EMail: [EMAIL PROTECTED]
| /  |  / |/ | WWWeb: http://www.uni-passau.de/~laitenbe/
|/\_/|_/  |  |_/
   /| Laitenberger
--(-|--
   \|