Help with Solidity compile.

GwilymIBMGwilymIBM Member Posts: 2
1) Sorry, is the best play to ask for trouble shooting help?

2) This seems close to https://github.com/ethereum/go-ethereum/issues/1770 , but my sol version is not the one that causes the problem ( I think )

I am hitting problems getting started eith ethereum, trying to get my first contract to work.

So here is my stack

C:\ProgramData\chocolatey\lib\geth-stable\tools>geth --networkid 999 -genesis C:\Etherum\privatenetwork.json --datadir C:\Etherum\block_data console
I1022 11:00:46.194525 11052 database.go:71] Alloted 16MB cache to C:\Etherum\block_data\chaindata
I1022 11:00:46.210526 11052 database.go:71] Alloted 16MB cache to C:\Etherum\block_data\dapp
I1022 11:00:46.221526 11052 backend.go:291] Protocol Versions: [62 61], Network Id: 999
I1022 11:00:46.223527 11052 genesis.go:88] Genesis block already in chain. Writing canonical number
I1022 11:00:46.224527 11052 backend.go:303] Successfully wrote genesis block. New genesis hash = a53bea44e29ff885cc5e6b8852618449aa9591d26bd8255b0610e86cdd475ad2
I1022 11:00:46.225527 11052 backend.go:333] Blockchain DB Version: 3
I1022 11:00:46.226527 11052 chain_manager.go:248] Last block (#0) a53bea44e29ff885cc5e6b8852618449aa9591d26bd8255b0610e86cdd475ad2 TD=1024
I1022 11:00:46.233527 11052 cmd.go:125] Starting Geth/v1.2.1/windows/go1.4.2
I1022 11:00:46.234527 11052 server.go:311] Starting Server
I1022 11:00:48.498657 11052 udp.go:204] Listening, enode://ca17b2b2888d752a1779b25cd7ca0196807bf9067a06e49e61ec26333bdf52a0934e1fd8418[email protected]:30
303
I1022 11:00:48.503657 11052 backend.go:559] Server started
I1022 11:00:48.503657 11052 server.go:552] Listening on [::]:30303
I1022 11:00:48.505657 11052 ipc_windows.go:724] IPC service started (\\.\pipe\geth.ipc)
instance: Geth/v1.2.1/windows/go1.4.2
datadir: C:\Etherum\block_data
coinbase: 0xf92c191da5951eee20a9fe359cbf8e8b6a773c54
at block: 0 (Thu, 01 Jan 1970 00:00:00 GMT)
modules: admin:1.0 db:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 shh:1.0 txpool:1.0 web3:1.0
> geth.getCompilers()
ReferenceError: 'geth' is not defined
at :1:1

> eth.getCompilers()
[""]
>
> admin.setSolc("C:/Program Files/Ethereum 0.9.41/Release/solc.exe")
I1022 11:01:35.671355 11052 solidity.go:114] solc, the solidity compiler commandline interface
Version: 0.1.1-ed7a8a35/Release-Windows/msvc/JIT

path: C:/Program Files/Ethereum 0.9.41/Release/solc.exe
"solc, the solidity compiler commandline interface\r\nVersion: 0.1.1-ed7a8a35/Release-Windows/msvc/JIT\r\n\npath: C:/Program Files/Ethereum 0.9.41/Release/solc.exe"
> source = "contract test { function multiply(uint a) returns(uint d) { return a * 7; } }"
"contract test { function multiply(uint a) returns(uint d) { return a * 7; } }"
> contract = eth.compile.solidity(source).test
solc: no build results found
at InvalidResponse (:-81662:-45)
at send (:-156322:-45)
at solidity (:-133322:-45)
at :1:12

> eth.getCompilers()
["Solidity"]
>

Any idea what I can do to fix the "solc: no build results found" Error

Thanks in advance to help.

Comments

Sign In or Register to comment.