Not possible to build debug + prof, oversight or expected?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Not possible to build debug + prof, oversight or expected?

Ömer Sinan Ağacan
I just realized GHC 8.4.2 doesn't ship a debug + prof RTS, and HEAD doesn't
build it with release build (no build.mk) or with prof flavor. It seems to me
that this is a bug, because some debug files in RTS (e.g. Printer.c) actually
check PROFILING macro in a few places and print different stuff depending on
that.

Anyone know if this is intentional? It's really inconvenient that I can't use
debug runtime to debug profiling build issues..

(I also realized that we dont' generate .sos for some ways, which means -dynamic
is also don't combine with e.g. -prof)

Thanks

Ömer
_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
Reply | Threaded
Open this post in threaded view
|

Re: Not possible to build debug + prof, oversight or expected?

Ben Gamari-3
Ömer Sinan Ağacan <[hidden email]> writes:

> I just realized GHC 8.4.2 doesn't ship a debug + prof RTS, and HEAD doesn't
> build it with release build (no build.mk) or with prof flavor. It seems to me
> that this is a bug, because some debug files in RTS (e.g. Printer.c) actually
> check PROFILING macro in a few places and print different stuff depending on
> that.
>
> Anyone know if this is intentional? It's really inconvenient that I can't use
> debug runtime to debug profiling build issues..
>
Hmm, it sounds like a bug. I see debug_p in mk/ways.mk. It looks like
it's missing from GhcRTSWays, however (defined in mk/config.mk).

Cheers,

- Ben

_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

signature.asc (497 bytes) Download Attachment