Profiling on large project fails with linking error
Summary
Profiling on large project fails with linking error
Steps to reproduce
$ git clone git@github.com:input-output-hk/cardano-node.git
$ cd cardano-node
$ git checkout 5e18b70da8d40ad33c299524e94c8fbfe0551e57
$ cabal build cardano-cli --enable-tests --enable-executable-profiling --enable-library-profiling
...
[ 40 of 191] Compiling PlutusCore.Core.Instance.Recursive ( plutus-core/src/PlutusCore/Core/Instance/Recursive.hs, dist/build/PlutusCore/Core/Instance/Recursive.p_o )
ghc: ^^ Could not load '_rcrsnzmschmszm5zi2zi2zi2zm930374fe_DataziFunctorziFoldableziTH_zdfMakeBaseFunctorNamezuzdcmakeBaseFunctor_closure', dependency unresolved. See top entry above.
ByteCodeLink.lookupCE
During interactive linking, GHCi couldn't find the following symbol:
rcrsnzmschmszm5zi2zi2zi2zm930374fe_DataziFunctorziFoldableziTH_zdfMakeBaseFunctorNamezuzdcmakeBaseFunctor_closure
This may be due to you not asking GHCi to load extra object files,
archives or DLLs needed by your current session. Restart GHCi, specifying
the missing library using the -L/path/to/object/dir and -lmissinglibname
flags, or simply by naming the relevant files on the GHCi command line.
Alternatively, this link failure might indicate a bug in GHCi.
If you suspect the latter, please report this as a GHC bug:
https://www.haskell.org/ghc/reportabug
cabal: Failed to build plutus-core-0.1.0.0 (which is required by
test:cardano-cli-test from cardano-cli-1.33.0 and test:cardano-cli-golden from
cardano-cli-1.33.0). See the build log above for details.
Expected behavior
Build should succeed
Environment
- GHC version used: ghc-8.10.7
Optional:
- Operating System: MacOS
- System Architecture: Intel