Hello, Here is a test case showing poor results with '+RTS -xc'. The program dies with error message:
<Wrappers.unsingleton,Main.CAF>sparse-test: Wrappers.hs:218:4-9: Assertion failed Clearly, the 'stack trace' is incomplete, since Wrappers is not imported directly by the main module (so I think there should be a few intervening levels as well). Here are commands to reproduce: wget http://ofb.net/~frederik/ghc-xc-test.tar.gz tar -xzf ghc-xc-test.tar.gz cd sparse-work ./gen-ops && ./gen-foreignimports && g++ -g sparse_lib.cpp -c -o sparse_lib.o && ghc -prof -auto-all -fno-do-eta-reduction -fno-do-lambda-eta-expansion \ -fno-case-merge -frules-off -fno-cse -fno-pre-inlining -fno-strictness \ -fno-unbox-strict-fields --make sparse-test.hs sparse_lib.o -lm -lc -lstdc++ ./sparse-test +RTS -xc I've included all the '-fno-*' stuff on the ghc command line because I thought it might help produce more information, but the problem occurs without it. Thank you, Frederik P.S. Also, it would of course be very helpful if the '-xc' traces showed line numbers. :) On Mon, Jan 15, 2007 at 03:09:48PM +0000, Frederik Eaton wrote: > Hello, > > Are some profiling options incompatible? Here are problems I've run into: > > $ ghc -Wall -prof -auto-all -caf-all --make sparse-test.hs sparse_lib.o -lm > -lc -lstdc++ > [10 of 10] Compiling Main ( sparse-test.hs, sparse-test.o ) > sparse-test.hs:18:0: > Warning: Definition but no type signature for `main' > /tmp/ghc4721_0/ghc4721_0.s: Assembler messages: > > /tmp/ghc4721_0/ghc4721_0.s:4185:0: > Error: symbol `Mainmain_CAF_cc_ccs' is already defined > > => '-auto-all' and '-caf-all' can't be used together? > > $ ghc -Wall -prof -auto-all -debug --make sparse-test.hs sparse_lib.o -lm -lc > -lstdc++ > Linking sparse-test ... > /usr/bin/ld: cannot find -lHSrts_debug_p > collect2: ld returned 1 exit status > > => '-prof' and '-debug' can't be used together? > > (I have installed the ghc6-prof Debian package) > > If these pairs of options are incompatible then an error message from > GHC would be helpful. > > Many thanks, > > Frederik > > -- > http://ofb.net/~frederik/ > -- http://ofb.net/~frederik/ _______________________________________________ Glasgow-haskell-bugs mailing list [email protected] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
