<p>I think between CHaP movements and upstream updates the build process has started failing for 1.35.4, they've been fixed since on master branch. But for visibility of those using 1.35.4 to build:</p>
<ol>
<li>Failed to build tx-generator-2.2 =&gt; This error itself would not prevent you to build <code>cardano-node</code> and <code>cardano-cli</code> binaries.</li>
<li>For those who receive an error with openssl, they'd need to modify cabal.project file as per <a href="https://github.com/input-output-hk/cardano-node/issues/4721#issuecomment-1357924401" rel="nofollow noreferrer">this issue</a>.</li>
<li><code>cabal install</code> (running as-is for any component) was broken on that tag, fixed later on master</li>
</ol>

CC BY-SA 4.0
2022-12-22T09:45:14.437Z
Thank you for your response. I will try this out. Yes, it wouldn’t prevent us from building binaries but the nodes won’t sync up to preview/prepped after that. That is the major issue am facing.
Srinath
CC BY-SA 4.0
2022-12-22T12:55:46.680Z
Sync of node should work fine on preview/preprod once node binary is built, and is actually used for node startup (you can confirm running node version via logs as well if using ScJson)
RdLrT
CC BY-SA 4.0
2022-12-29T15:26:48.987Z
Hi @RdLrt, Sadly adjusting the `cabal.project` file did not work. However, I didn't receive any error on the `master` branch.
Srinath
CC BY-SA 4.0
2022-12-30T07:14:32.190Z
You should not use master branch, it may often contain changes that may not be supported by current network[s] or tools
RdLrT
CC BY-SA 4.0
2022-12-22T02:00:20.120Z
2022-12-22T02:00:20.120Z
RdLrT
<p>What version of <code>ghc</code> are you using? Currently the only supported version is <code>ghc-8.10.*</code>.</p>
<p>Work is being done to support <code>ghc-9.2.*</code> and when that is supported across the complete stake, then support for <code>ghc-9.10.*</code> will be dropped.</p>

CC BY-SA 4.0
2022-12-22T09:44:47.860Z
Hi there, Thank you for your response. I am using the 8.10.7.
Srinath
CC BY-SA 4.0
2022-12-21T22:48:18.747Z
2022-12-21T23:28:48.463Z
2022-12-21T23:28:48.463Z
Erik de Castro Lopo
<p>When building cardano-node-1.35.4 using</p>
<pre><code>git checkout tags/1.35.4
cabal update
cabal build all
</code></pre>
<p>I get the following error</p>
<pre><code>cabal: Failed to build tx-generator-2.2 (which is required by

test:tx-generator-test from tx-generator-2.2 and exe:tx-generator from

tx-generator-2.2).
</code></pre>
<p>Upon scrolling up a few lines, I see this</p>
<pre><code>src/Cardano/Benchmarking/Script/Setters.hs:40:1: error:

    • Illegal constraint: c NumberOfInputsPerTx

        (Use ConstraintKinds to permit this)

    • In the instance declaration for

        ‘Data.Constraint.Extras.Has c_a3mLE Tag’

   |

40 | deriveArgDict ''Tag

   | ^^^^^^^^^^^^^^^^^^^

</code></pre>
<p>Can someone please help me understand what this error means and on how to solve this? Thanks in advance.</p>

<cardano-cli><cardano-node><transaction><cabal><ghci>
Error - Building Cardano Node 1.35.4 in Ubuntu Linux 22.04
# Error - Building Cardano Node 1.35.4 in Ubuntu Linux 22.04

(Asked by: username_0 on 2022-12-21)

When building cardano-node-1.35.4 using
git checkout tags/1.35.4
cabal update
cabal build all

I get the following error
cabal: Failed to build tx-generator-2.2 (which is required by

test:tx-generator-test from tx-generator-2.2 and exe:tx-generator from

tx-generator-2.2).

Upon scrolling up a few lines, I see this
src/Cardano/Benchmarking/Script/Setters.hs:40:1: error:

    • Illegal constraint: c NumberOfInputsPerTx

        (Use ConstraintKinds to permit this)

    • In the instance declaration for

        ‘Data.Constraint.Extras.Has c_a3mLE Tag’

   |

40 | deriveArgDict ''Tag

   | ^^^^^^^^^^^^^^^^^^^


Can someone please help me understand what this error means and on how to solve this? Thanks in advance.

**Tags:** cardano-cli, cardano-node, transaction, cabal, ghci

---

## 2 answers

### Answer by username_1 on 2022-12-22. Score: 2

I think between CHaP movements and upstream updates the build process has started failing for 1.35.4, they've been fixed since on master branch. But for visibility of those using 1.35.4 to build:

1. Failed to build tx-generator-2.2 => This error itself would not prevent you to build `cardano-node` and `cardano-cli` binaries.
2. For those who receive an error with openssl, they'd need to modify cabal.project file as per [this issue](https://github.com/input-output-hk/cardano-node/issues/4721#issuecomment-1357924401).
3. `cabal install` (running as-is for any component) was broken on that tag, fixed later on master

> **Comments:**
> **username_0**: Thank you for your response. I will try this out. Yes, it wouldn’t prevent us from building binaries but the nodes won’t sync up to preview/prepped after that. That is the major issue am facing.  
> **username_1**: Sync of node should work fine on preview/preprod once node binary is built, and is actually used for node startup (you can confirm running node version via logs as well if using ScJson)  
> **username_0**: Hi @RdLrt, Sadly adjusting the `cabal.project` file did not work. However, I didn't receive any error on the `master` branch.  
> **username_1**: You should not use master branch, it may often contain changes that may not be supported by current network[s] or tools  

---

### Answer by username_2 on 2022-12-21. Score: 0

What version of `ghc` are you using? Currently the only supported version is `ghc-8.10.*`.

Work is being done to support `ghc-9.2.*` and when that is supported across the complete stake, then support for `ghc-9.10.*` will be dropped.

> **Comments:**
> **username_0**: Hi there, Thank you for your response. I am using the 8.10.7.  

---

