RE: compiling application with prof results in undefined references

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

Simon Marlow
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.
The non-profiling version of the uust package is working fine indeed, so where can I look to see if the profiling version is correctly installed. For every .hi file, there's a corresponding .p_hi file. regards, Niels

my problem is fixed. Apparantly I did a cvs update that did not fully succeed causing a partially upgrade of my uust package installation. Thanks for all help, Niels
participants (2)
-
Niels van der Velden
-
Simon Marlow