On 04 April 2005 12:07, Niels van der Velden wrote:

> Hi all,
> I have an application that uses a package called 'uust'.
> Normally I would compile using;
> 
> ghc -O2 -o genAST -fglasgow-exts -package uust GenAst.hs
> 
> This works fine. However, I want to profile my application and
> therefore need to add -prof. The uust package was compiled for
> profiling (there are _p files), but when I compile using;
> 
> ghc -prof -O2 -o genAST -fglasgow-exts -package uust GenAst.hs
> 
> I get undefined references during the link phase;
> 
> GenAST.o(.rodata+0xe5f0): undefined reference to
> `UUziParsingziInterface_lvl8_closure'
> GenAST.o(.rodata+0xe630): undefined reference to
> `UUziParsingziInterface_zdwevalStepsIOzq_closure'
> GenAST.o(.rodata+0xe6cc): undefined reference to
> `UUziPrettyziBasic_lvl19_closure'
> GenAST.o(.rodata+0xe6e8): undefined reference to
> `UUziParsingziInterface_lvl8_closure'
> GenAST.o(.rodata+0xe724): undefined reference to
> `UUziParsingziInterface_zdwevalStepsIOzq_closure'
> 
> and many many more. I'm kinda in the dark here what I'm doing wrong.
> Can anyone help?

It looks like there's something wrong with the profiling version of your
uust package: either some of the object code is missing, or it doesn't
correspond to the .p_hi files.  I would check your uust package build.

Cheers,
        Simon
_______________________________________________
Glasgow-haskell-users mailing list
Glasgow-haskell-users@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to