unregisterised and -prof

Serge D. Mechveliani mechvel at botik.ru
Mon Feb 6 18:15:37 CET 2012


Dear GHC team,

For some reason  ghc-7.4.1-unregisterised  cannot build  random-1.0.1.1
-- unlike  ghc-7.4.1-default.

This is for  ghc-7.4.1  built from source by  ghc-7.4.1  on
Debian Linux, i386-uknown.

1. I build  ghc-7.4.1  from source under the default flags, 
   by   ghc-7.4.1,  under
   configure --prefix=/home/mechvel/ghc/7.4.1/inst

2. Build  ghc-7.4.1  from source by new by  ghc/7.4.1/inst  as  unregisterised  
   by setting  
   configure --prefix=/home/mechvel/ghc/7.4.1/instUnregis ,
                                              -----------
   setting
   BuildFlavour = unreg     in  mk/build.mk   by un-commenting this line.

3. Build  random-1.0.1.1  by  ghc  of  7.4.1/inst
   by
  ghc --make Setup
  ./Setup configure --prefix=/home/mechvel/ghc/7.4.1/inst/lib/ghc-7.4.1 -p
  ./Setup build -v
  ./Setup haddock
  ./Setup install -v

It is built all right.


4. Build  random-1.0.1.1  by new by  ghc/7.4.1/instUnregis
   by
  ghc --make Setup
  ./Setup configure --prefix=/home/mechvel/ghc/7.4.1/instUnregis/lib/ghc-7.4.1 -p
  ./Setup build -v

It reports

-----------------------------------------------------------------------
scico:~/ghc/random/random-1.0.1.1> ./Setup configure --prefix=/home/mechvel/ghc/7.4.1/instUnregis/lib/ghc-7.4.1 -p
Configuring random-1.0.1.1...
scico:~/ghc/random/random-1.0.1.1> ./Setup build -v
creating dist/build
creating dist/build/autogen
Building random-1.0.1.1...
Preprocessing library random-1.0.1.1...
Building library...
creating dist/build
/home/mechvel/ghc/7.4.1/instUnregis/bin/ghc --make -package-name random-1.0.1.1 -hide-all-packages -fbuilding-cabal-package -no-user-package-conf -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build -stubdir dist/build -package-id base-4.5.0.0-c8e7184681d410015e93df85fc49e9dd -package-id time-1.4-3e186a51d3674e5d65b5a7925db3d3a7 -O -O2 -XHaskell98 -XCPP System.Random
[1 of 1] Compiling System.Random    ( System/Random.hs, dist/build/System/Random.o )
/home/mechvel/ghc/7.4.1/instUnregis/bin/ghc --make -package-name random-1.0.1.1 -hide-all-packages -fbuilding-cabal-package -no-user-package-conf -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build -stubdir dist/build -package-id base-4.5.0.0-c8e7184681d410015e93df85fc49e9dd -package-id time-1.4-3e186a51d3674e5d65b5a7925db3d3a7 -O -O2 -XHaskell98 -XCPP System.Random -prof -hisuf p_hi -osuf p_o

System/Random.hs:97:8:
    Could not find module `Numeric'
    Perhaps you haven't installed the profiling libraries for package `base'?
    Use -v to see a list of the files searched for.
scico:~/ghc/random/random-1.0.1.1> 
------------------------------------------------------------


Should I set something more in  mk/build.mk  than un-commenting the line
#BuildFlavour = unreg
?
Please, what I am missing?

Thanks,

------
Sergei
mechvel at botik.ru





More information about the Glasgow-haskell-users mailing list