aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 9ca98e858fe1aca8601640ea1f6e9a94bbb1227d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
```
$ cabal clean

$ cabal run --enable-profiling
Resolving dependencies...
Build profile: -w ghc-9.4.7 -O1
In order, the following will be built (use -v for more details):
 - repro-0.1.0.0 (exe:test)  --enable-profiling (first run)
Configuring executable 'test' for repro-0.1.0.0..
Preprocessing executable 'test' for repro-0.1.0.0..
Building executable 'test' for repro-0.1.0.0..
[1 of 2] Compiling Foo              ( Foo.hs, /home/tom/code/ghc-prof-dyn-repro/dist-newstyle/build/x86_64-linux/ghc-9.4.7/repro-0.1.0.0/x/test/build/test/test-tmp/Foo.p_o )
[2 of 2] Compiling Main             ( Main.hs, /home/tom/code/ghc-prof-dyn-repro/dist-newstyle/build/x86_64-linux/ghc-9.4.7/repro-0.1.0.0/x/test/build/test/test-tmp/Main.p_o )

<no location info>: error:
    Main.hs:10:12: fatal:
    cannot find object file ‘/home/tom/code/ghc-prof-dyn-repro/dist-newstyle/build/x86_64-linux/ghc-9.4.7/repro-0.1.0.0/x/test/build/test/test-tmp/Foo.dyn_o’
    while linking an interpreted expression

$
```