I would think this sort of problem, as well as GHC-version
incompatibilities, could be avoided by putting the relevant
information (-prof, GHC version, etc.?) in the .hi file.  You could
also add a version-and-way symbol to the ".o"s to catch link time
problems (i.e, ".o"s created with version n-1 linking with version n's
runtime library.)  With these, I would think you'd get warnings
(somewhat obscure in the link-time error case -- something like
"symbol __ghc_05_02_01 not found") in all incompatible-ABI cases.

Or no?

        mike

> > Certainly.
> > 
> > We've just spent lots of time trying to get this stuff to be utterly 
> > painless to compile, so please let us know if the instructions below 
> > give you any trouble.
> 
> The problem is that you didn't compile the whole program with -prof: the
> BareBonesArrows library was compiled the normal way, and the rest of the
> files were compiled with -prof.  When using -prof, you have to make sure
> the whole program, including libraries, are compiled with -prof,
> otherwise disaster will ensue because different parts of the program are
> using different representations for fundamental data structures.


_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to