Sven Panne writes:
> Compiling with -prof doesn't work on HPs (HP-UX 10.20):
> 
> -- Main.hs ----------
> main = return ()
> ---------------------
> 
> panne@rimatara: > ghc-3.01 -prof Main.hs
> ghc-3.01: module version changed to 1; reason: no old .hi file
> collect2: ld returned 1 exit status
> /usr/bin/ld: Internal Error 4012 (invalid subspace in symbol_value)
> 
> Using GHC-2.10 gives the same error. I can't even guess what HP's
> linker is trying to tell me, so what's going on here? Without -prof
> everything is fine.
> 

Hard to tell, the HP linker is very picky about symbols being in the
right subspace, so the output from the code you're profiling is
tickling a problem in the mangler, I'd say. If you have an assembler
dump (i.e., the output of -ddump-raw-asm and the file produced by
-keep-s-file-to) at hand, I'd be happy to have a look.

--Sigbjorn

Reply via email to