Skip to content

cabal-dev doesn't build with profiling turned on #31

Open
dmwit opened this Issue Aug 5, 2011 · 1 comment

2 participants

@dmwit
dmwit commented Aug 5, 2011

The command cabal install cabal-dev --enable-executable-profiling fails. Output from a variant of this command using runghc Setup.hs is included below.

crabgrass:~/inst/cabal-dev-0.8% runghc Setup.hs configure --user --enable-executable-profiling && runghc Setup.hs build

Setup.hs:7:48:
    Warning: In the use of `buildVerbose'
             (imported from Distribution.Simple.Setup):
             Deprecated: "Use buildVerbosity instead"
Configuring cabal-dev-0.8...

Setup.hs:7:48:
    Warning: In the use of `buildVerbose'
             (imported from Distribution.Simple.Setup):
             Deprecated: "Use buildVerbosity instead"
Unpacking to dist/build/cabal-install-0.8.2/
Building cabal-dev-0.8...
Preprocessing executable 'ghc-pkg-6_8-compat' for cabal-dev-0.8...
[1 of 1] Compiling Main             ( src/GhcPkgCompat.hs, dist/build/ghc-pkg-6_8-compat/ghc-pkg-6_8-compat-tmp/Main.p_o )
Linking dist/build/ghc-pkg-6_8-compat/ghc-pkg-6_8-compat ...
Preprocessing executable 'fake-ghc-cabal-dev' for cabal-dev-0.8...
[1 of 2] Compiling Distribution.Dev.GhcArgs ( src/Distribution/Dev/GhcArgs.hs, dist/build/fake-ghc-cabal-dev/fake-ghc-cabal-dev-tmp/Distribution/Dev/GhcArgs.p_o )
[2 of 2] Compiling Main             ( src/FakeGhc.hs, dist/build/fake-ghc-cabal-dev/fake-ghc-cabal-dev-tmp/Main.p_o )
Linking dist/build/fake-ghc-cabal-dev/fake-ghc-cabal-dev ...
Preprocessing executable 'cabal-dev' for cabal-dev-0.8...
[ 1 of 19] Compiling Distribution.Dev.MergeCabalConfig ( src/Distribution/Dev/MergeCabalConfig.hs, dist/build/cabal-dev/cabal-dev-tmp/Distribution/Dev/MergeCabalConfig.p_o )
[ 2 of 19] Compiling Distribution.Dev.RewriteCabalConfig ( src/Distribution/Dev/RewriteCabalConfig.hs, dist/build/cabal-dev/cabal-dev-tmp/Distribution/Dev/RewriteCabalConfig.p_o )

Implicit import declaration:
    Warning: In the use of `catch'
             (imported from Prelude, but defined in System.IO.Error):
             Deprecated: "Please use the new exceptions variant, Control.Exception.catch"
[ 3 of 19] Compiling Distribution.Dev.GhcArgs ( src/Distribution/Dev/GhcArgs.hs, dist/build/cabal-dev/cabal-dev-tmp/Distribution/Dev/GhcArgs.p_o )
[ 4 of 19] Compiling Distribution.Dev.Utilities ( src/Distribution/Dev/Utilities.hs, dist/build/cabal-dev/cabal-dev-tmp/Distribution/Dev/Utilities.p_o )
[ 5 of 19] Compiling Distribution.Dev.InterrogateCabalInstall ( src/Distribution/Dev/InterrogateCabalInstall.hs, dist/build/cabal-dev/cabal-dev-tmp/Distribution/Dev/InterrogateCabalInstall.p_o )
[ 6 of 19] Compiling Distribution.Dev.TH.DeriveCabalCommands ( src/Distribution/Dev/TH/DeriveCabalCommands.hs, dist/build/cabal-dev/cabal-dev-tmp/Distribution/Dev/TH/DeriveCabalCommands.p_o )
[ 7 of 19] Compiling Paths_cabal_dev  ( dist/build/autogen/Paths_cabal_dev.hs, dist/build/cabal-dev/cabal-dev-tmp/Paths_cabal_dev.p_o )
[ 8 of 19] Compiling Distribution.Dev.CabalInstall ( src/Distribution/Dev/CabalInstall.hs, dist/build/cabal-dev/cabal-dev-tmp/Distribution/Dev/CabalInstall.p_o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package bytestring-0.9.2.0 ... linking ... done.
Loading package zlib-0.5.3.1 ... linking ... done.
Loading package array-0.3.0.3 ... linking ... done.
Loading package containers-0.4.1.0 ... linking ... done.
Loading package pretty-1.1.0.0 ... linking ... done.
Loading package template-haskell ... linking ... done.
Loading package filepath-1.2.0.1 ... linking ... done.
Loading package old-locale-1.0.0.3 ... linking ... done.
Loading package old-time-1.0.0.7 ... linking ... done.
Loading package unix-2.5.0.0 ... linking ... done.
Loading package directory-1.1.0.1 ... linking ... done.
Loading package tar-0.3.1.0 ... linking ... done.
Loading package transformers-0.2.2.0 ... linking ... done.
Loading package mtl-2.0.1.0 ... linking ... done.
Loading package parsec-3.1.1 ... linking ... done.
Loading package network-2.3.0.4 ... linking ... done.
Loading package HTTP-4000.1.1 ... linking ... done.
Loading package process-1.1.0.0 ... linking ... done.
Loading package Cabal-1.11.2 ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
src/Distribution/Dev/CabalInstall.hs:1:1:
    cannot find normal object file `dist/build/cabal-dev/cabal-dev-tmp/Distribution/Dev/InterrogateCabalInstall.o'
    while linking an interpreted expression
zsh: exit 1     runghc Setup.hs build
@creswick
Owner
creswick commented Aug 6, 2011

Here's the output from running cabal-dev install --enable-executable-profiling (which generates a slightly different linker error):

<much content pertaining to installing dependencies snipped>
...
Installing library in
/home/creswick/development/cabal-dev/cabal-dev//lib/zlib-0.5.3.1/ghc-7.0.3
Registering zlib-0.5.3.1...
Configuring cabal-dev-0.8...
Building cabal-dev-0.8...
Preprocessing executable 'ghc-pkg-6_8-compat' for cabal-dev-0.8...
[1 of 1] Compiling Main             ( src/GhcPkgCompat.hs, dist/build/ghc-pkg-6_8-compat/ghc-pkg-6_8-compat-tmp/Main.p_o )
Linking dist/build/ghc-pkg-6_8-compat/ghc-pkg-6_8-compat ...
/usr/bin/ld: cannot find -lHSzlib-0.5.3.1_p
/usr/bin/ld: cannot find -lHStar-0.3.1.0_p
/usr/bin/ld: cannot find -lHSHTTP-4000.1.1_p
/usr/bin/ld: cannot find -lHSnetwork-2.3.0.5_p
/usr/bin/ld: cannot find -lHSparsec-3.1.1_p
/usr/bin/ld: cannot find -lHSmtl-2.0.1.0_p
/usr/bin/ld: cannot find -lHStransformers-0.2.2.0_p
collect2: ld returned 1 exit status
cabal: Error: some packages failed to install:
cabal-dev-0.8 failed during the building phase. The exception was:
ExitFailure 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.