Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eth.compile.solidity fails with solc version 0.3.5 #2703

Closed
xavierlepretre opened this issue Jun 15, 2016 · 11 comments
Closed

eth.compile.solidity fails with solc version 0.3.5 #2703

xavierlepretre opened this issue Jun 15, 2016 · 11 comments

Comments

@xavierlepretre
Copy link

System information

Geth version: 1.5.0-unstable
OS & Version: Ubuntu Trusty x86_64
Commit hash :

Expected behaviour

In Geth console, when calling eth.compile.solidity("contract Test{}") we should see the compiled code.
This is ok with solc version 0.3.4.

Actual behaviour

With solc version 0.3.5:

solc: exit status 1
Unknown exception during compilation.

    at web3.js:3119:20
    at web3.js:6023:15
    at web3.js:4995:36
    at <anonymous>:1:22

Steps to reproduce the behaviour

Launch geth console, launch eth.compile.solidity("contract Test{}").

Backtrace

[backtrace]
@fjl
Copy link
Contributor

fjl commented Jun 15, 2016

I am fixing this right now but it will take a bit to get the into a release.
You can downgrade solc as a workaround.

@xavierlepretre
Copy link
Author

I tried downgrading solc but could not. The following commands did not get it down to 0.3.4:

apt-get remove libethereum solc
apt-get install libethereum=1.2.8-SNAPSHOT--20160612-f169b0d~trusty-0ubuntu1
apt-get install solc=1.2.8-SNAPSHOT--20160612-f169b0d~trusty-0ubuntu1

@AsifPS
Copy link

AsifPS commented Jun 15, 2016

I'm running into the same issue, is there any way to downgrade solidity compiler properly and get this working?

@fjl
Copy link
Contributor

fjl commented Jun 15, 2016

Looking at ethereum/solidity#651 the issue is already fixed upstream. The next solidity release will contain this fix and it will work again. Sorry for the inconvenience.

@AnthonyAkentiev
Copy link

Got same thing. Waiting for the solution. Thank you!

@ghost
Copy link

ghost commented Jun 23, 2016

Please @fjl let us know when the new version of solc will be in the ubuntu repository. The repository does not contain the older ones :/

@mattdf
Copy link
Member

mattdf commented Jun 23, 2016

For anyone who wants a temporary workaround, you can clone this repo: https://github.com/mattdf/solidity-static and do a build in docker, then copy the solc file to your install. It makes a statically compiled build of solc so it should work on most distros.

@kayagoban
Copy link

OSX El capitan seems to not like the docker build. Any options for me?

@xavierlepretre
Copy link
Author

@kayagoban It worked like a charm in an Ubuntu VM. Docker on a VM :D

@ghost
Copy link

ghost commented Jul 11, 2016

Errr, Very late to the party, but I just apt-get install'ed solc and 0.3.5 is working nice. In case you want to close guys :-)

@xavierlepretre
Copy link
Author

Works fine with me too:

$ sudo apt-cache policy solc
solc:
  Installed: 1.2.9-SNAPSHOT--20160629-6a05dd7~wily-0ubuntu1
  Candidate: 1.2.9-SNAPSHOT--20160629-6a05dd7~wily-0ubuntu1
  Version table:
 *** 1.2.9-SNAPSHOT--20160629-6a05dd7~wily-0ubuntu1 0
        500 http://ppa.launchpad.net/ethereum/ethereum-dev/ubuntu/ wily/main amd64 Packages
        500 http://ppa.launchpad.net/ethereum/ethereum/ubuntu/ wily/main amd64 Packages
        100 /var/lib/dpkg/status
$ echo "" | solc
$ solc --version
solc, the solidity compiler commandline interface
Version: 0.3.5-0/RelWithDebInfo-Linux/g++/Interpreter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants