Open cameel opened 2 years ago
Hi @cameel you may want to try using a shell script instead of a bash function -- spawnSync in Truffle is set up to handle a shell script or a binary executable. Please let us know if that helps!
Unfortunately it did not help. I get the same error even if I replace the part that exports the function with either of these:
wrapper script:
echo '#!/usr/bin/bash' >> solc
echo "$(realpath solc-linux-amd64-v0.7.3+commit.9bfce1f6) \"\$@\"" >> solc
chmod +x solc
export PATH="$PWD:$PATH"
binary:
mv solc-linux-amd64-v0.7.3+commit.9bfce1f6 solc
export PATH="$PWD:$PATH"
Thanks @cameel for bringing this to our attention! We've added this to our backlog to investigate further.
Issue
I'm trying to compile the Colony contracts using the native compiler and I'm running into an error:
The same contracts compile just fine when using an emscripten binary.
This seems to have already happened before (#3140) and the buffer size was increased to 10 MB in #3002. Something must have changed since then because this size seems insufficient now.
Steps to Reproduce
For the record, the top of the main branch in the Colony repo while I'm testing it is at
e06f7815902801c6b9cc66da8dbfa2aee2b9f874
.Expected Behavior
Compilation finishes without errors.
Actual Results
Environment