<div dir="ltr"><div class="gmail_quote"><div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large">Hello</div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large">On my mac, in ghc  9.6.1 can't compile with ghc -prof -fprof-auto  , I get the error:</div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_quote"><div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large"><pre class="gmail-code gmail-highlight" lang="plaintext"><span id="gmail-LC6" class="gmail-line" lang="plaintext">Could not find module ‘Prelude’</span>
<span id="gmail-LC7" class="gmail-line" lang="plaintext">    Perhaps you haven't installed the "p_dyn" libraries for package ‘base-4.18.0.0’?</span>
<span id="gmail-LC8" class="gmail-line" lang="plaintext">    Use -v (or `:set -v` in ghci) to see a list of the files searched for.</span>
</pre></div></div></div></blockquote><div class="gmail_quote"><div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large">Is anybody else experiencing this?</div><br></div><div><br></div><div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large">In more detail:</div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large"><br></div><pre class="gmail-code gmail-highlight" lang="plaintext"><span id="gmail-LC1" class="gmail-line" lang="plaintext"><span class="gmail_default" style="font-family:"times new roman",serif;font-size:large">> </span>ghc -prof  -fprof-auto hello.hs</span>
<span id="gmail-LC2" class="gmail-line" lang="plaintext">Loaded package environment from /Users/gcolpitts/.ghc/x86_64-darwin-9.6.1/environments/default</span>
<span id="gmail-LC3" class="gmail-line" lang="plaintext">[1 of 2] Compiling Main             ( hello.hs, hello.o )</span>
<span id="gmail-LC4" class="gmail-line" lang="plaintext"></span>
<span id="gmail-LC5" class="gmail-line" lang="plaintext">hello.hs:1:1: error:</span>
<span id="gmail-LC6" class="gmail-line" lang="plaintext">    Could not find module ‘Prelude’</span>
<span id="gmail-LC7" class="gmail-line" lang="plaintext">    Perhaps you haven't installed the "p_dyn" libraries for package ‘base-4.18.0.0’?</span>
<span id="gmail-LC8" class="gmail-line" lang="plaintext">    Use -v (or `:set -v` in ghci) to see a list of the files searched for.</span>
<span id="gmail-LC9" class="gmail-line" lang="plaintext">  |</span>
<span id="gmail-LC10" class="gmail-line" lang="plaintext">1 | main = print "hello"</span>
<span id="gmail-LC11" class="gmail-line" lang="plaintext">  | ^</span> </pre><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small">hello.hs consists of</span></div></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div class="gmail_quote"><div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small">main = print "hello"</span></div></div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small"><br></span></div></div></blockquote><font face="times new roman, serif" size="4"><span class="gmail_default" style="font-family:"times new roman",serif;font-size:large">I reported this in 9.2.3 , </span></font><span class="gmail_default" style="font-family:"times new roman",serif;font-size:large">in </span><a class="gmail-gfm gmail-gfm-issue" title="on 9.2.3 can't compile with ghc -prof -fprof-auto -rtsopts , gets error  Could not find module ‘Prelude’     Perhaps you haven't installed the "p_dyn" libraries for package ‘base-4.16.2.0’?" href="https://gitlab.haskell.org/ghc/ghc/-/issues/21709">#21709</a>.<span class="gmail_default" style="font-family:"times new roman",serif;font-size:large"> At that time there was a workaround of adding -static but that no longer works. It gives a slightly different error message:</span><div><font face="times new roman, serif" size="4"><br></font></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div>ghc -prof  -fprof-auto -static hello.hs<br>Loaded package environment from /Users/gcolpitts/.ghc/x86_64-darwin-9.6.1/environments/default<br>[2 of 2] Linking hello<br>ld: warning: directory not found for option '-L/opt/local/lib/'<br>ld: library not found for -lHStyp-qlty-1-186ccc78_p<br>clang: error: linker command failed with exit code 1 (use -v to see invocation)<br>ghc-9.6.1: `gcc' failed in phase `Linker'. (Exit code: 1)<font face="times new roman, serif" size="4"><br></font></div><div><br></div></blockquote><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large">I have updated 21709 with the details of the problem on 9.6.1</div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large"><br></div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large">Thanks</div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large"></div><br><div><div><span class="gmail_default" style="font-family:"times new roman",serif;font-size:large"><br></span></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><span class="gmail_default" style="font-family:"times new roman",serif;font-size:large"></span></div></blockquote><div><span style="font-family:"times new roman",serif;font-size:large"></span><br><div class="gmail_quote"><br></div></div></div></div>