question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NO_DYNAMIC_EXECUTION was set, cannot eval - ccall/cwrap are not functional

See original GitHub issue

Hi. I’m using solcjs to compile solidity project and it was working fine with all the ^0.4.0 versions. Now I want to try solidity 0.5.0 versions and I’m getting this error message:

NO_DYNAMIC_EXECUTION was set, cannot eval - ccall/cwrap are not functional

I’ve looked through the issues but wasn’t able to figure it out. Do you have any idea how to fix it? Seems emscripten related.

NO_DYNAMIC_EXECUTION was set, cannot eval - ccall/cwrap are not functional
abort("NO_DYNAMIC_EXECUTION was set, cannot eval - ccall/cwrap are not functional") at Error
    at jsStackTrace (/Users/leonidlogvinov/Dev/0x/0x-monorepo/packages/sol-compiler/solc_bin/soljson-v0.5.0+commit.1d4f565a.js:1:19656)
    at stackTrace (/Users/leonidlogvinov/Dev/0x/0x-monorepo/packages/sol-compiler/solc_bin/soljson-v0.5.0+commit.1d4f565a.js:1:19839)
    at abort (/Users/leonidlogvinov/Dev/0x/0x-monorepo/packages/sol-compiler/solc_bin/soljson-v0.5.0+commit.1d4f565a.js:20:13296)
    at getCFunc (/Users/leonidlogvinov/Dev/0x/0x-monorepo/packages/sol-compiler/solc_bin/soljson-v0.5.0+commit.1d4f565a.js:1:7278)
    at ccallFunc (/Users/leonidlogvinov/Dev/0x/0x-monorepo/packages/sol-compiler/solc_bin/soljson-v0.5.0+commit.1d4f565a.js:1:8028)
    at /Users/leonidlogvinov/Dev/0x/0x-monorepo/packages/sol-compiler/solc_bin/soljson-v0.5.0+commit.1d4f565a.js:1:8564
    at Object.compile (/Users/leonidlogvinov/Dev/0x/0x-monorepo/packages/sol-compiler/node_modules/solc/wrapper.js:77:16)
    at Compiler._compile (/Users/leonidlogvinov/Dev/0x/0x-monorepo/packages/sol-compiler/src/compiler.ts:423:26)
    at Compiler.<anonymous> (/Users/leonidlogvinov/Dev/0x/0x-monorepo/packages/sol-compiler/src/compiler.ts:250:41)
    at step (/Users/leonidlogvinov/Dev/0x/0x-monorepo/packages/sol-compiler/lib/src/compiler.js:43:23)
If this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
LogvinovLeoncommented, Jan 9, 2019

Fixed I was using the new solidity binaries with the old solc version. ^0.4.24.

"solc": "^0.5.2",
0reactions
hefelealcommented, Jan 9, 2019

Thanks a lot @LogvinovLeon Updating the package.json file fixed my issue as well 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to dynamically execute/eval JavaScript code that ...
In order to do so, I need to dynamically execute the source code. There seem to be two main options for dynamically executing...
Read more >
Using Dynamic Evaluation and Execution
Dynamic execution​​ The Eval function only allows for expression evaluation. If you need to execute a statement—such as an assignment statement, a variable ......
Read more >
See No Eval: Runtime Dynamic Code Execution in ...
A problem for this method is that it won't do anything when the target property is nil . There is no way for...
Read more >
Dynamic code execution should not be vulnerable to ...
I/O function calls should not be vulnerable to path injection attacks. Vulnerability ... A new session should be created during user authentication.
Read more >
Dynamic Execution
This page describes how to enable, tune, and debug dynamic execution. If you have both local and remote execution set up and are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found