Open elenadimitrova opened 5 years ago
@elenadimitrova are you able to successfully compile your contracts using the custom solc
outside of truffle?
InternalCompilerError
looks like a solc compiler specific error.
Edit: See item 9.
Yes indeed. I logged it separately, see above. It'll be nice that we actually get the compiler internal output on error with truffle
as reproducing it with solc
itself is not always as straight forward. For example when running solc --allow-paths
I have not found a way to do this sort of thing with the path truffle compile --contracts_directory 'lib/dappsys/[!note][!stop][!proxy][!thing][!token]*.sol'
Ping - has there been any update to this - would be great if it was straight forward as in truffle config the solc.version could accept something like 0.6.12+z3
or something like that
I'm not sure there has been any activity on this yet. Are you saying you want to configure your own version of solc? You can indeed do that kind of thing - you can specify a path to a local solc, a docker image, whaterver solc is installed natively, or any version you can find when doing truffle compile --list
. I don't know if this is helpful but here are the compiler config docs https://www.trufflesuite.com/docs/truffle/reference/configuration#solc
ya - something like that - like so that truffle could compile with the version of solidity that was built with smt checking enabled
will check that doc -
Issue
Compilation with
SMTChecker
fails withInternalCompilerError
Steps to Reproduce
Build custom
solc
with Z3 support Note that installing Z3 for me wasn't exactly straight forward, so I've recorded the steps in point 1 here https://github.com/JoinColony/colonyNetwork/issues/547Switch the
truffle
compiler to use thisAdd
pragma experimental "SMTChecker";
to a single contract.Run
truffle compile
Expected Behavior
Contract compiles successfully
Actual Results
Environment
ganache-cli
truffle version
): 5.0.18node --version
): 10.12.0npm --version
): 6.4.1