user7631: I've followed the installing-cardano-node#macos guide on the developer portal and about 10 things fail to build and all of them are giving me the same error.
Cannot specify -O# and --passes=/--foo-pass, use -passes='default<O#>,other-pass'
`opt' failed in phase `LLVM Optimiser'. (Exit code: 1)

I also followed the steps on this link and I'm still getting the same errors.
https://github.com/mallapurbharat/cardano-tx-sample/blob/main/0_installation/preview_preprod_network/1_macos_m1_process.md
Thank you for your help.

user6632: This looks to be an issue with LLVM version 15, as per https://gitlab.haskell.org/ghc/ghc/-/issues/21936
Looks like reverting to LLVM 14 should work for you.

7631: <p>I've followed the installing-cardano-node#macos guide on the developer portal and about 10 things fail to build and all of them are giving me the same error.</p>
<pre><code>Cannot specify -O# and --passes=/--foo-pass, use -passes='default&lt;O#&gt;,other-pass'
`opt' failed in phase `LLVM Optimiser'. (Exit code: 1)
</code></pre>
<p>I also followed the steps on this link and I'm still getting the same errors.</p>
<p><a href="https://github.com/mallapurbharat/cardano-tx-sample/blob/main/0_installation/preview_preprod_network/1_macos_m1_process.md" rel="nofollow noreferrer">https://github.com/mallapurbharat/cardano-tx-sample/blob/main/0_installation/preview_preprod_network/1_macos_m1_process.md</a></p>
<p>Thank you for your help.</p>
 6632: <p>This looks to be an issue with LLVM version 15, as per <a href="https://gitlab.haskell.org/ghc/ghc/-/issues/21936" rel="nofollow noreferrer">https://gitlab.haskell.org/ghc/ghc/-/issues/21936</a></p>
<p>Looks like reverting to LLVM 14 should work for you.</p>
