enigma-core-deprecated icon indicating copy to clipboard operation
enigma-core-deprecated copied to clipboard

cannot build core container from enigma-docker-network due to method named 'trim_end_matches'

Open krisnadiputra opened this issue 6 years ago • 1 comments

I'm trying to build containers for enigma network on my local SGX-enabled pc with the HARDWARE option, but found this error. Only x-term for surface appeared but not the others.

core_1_d86d4a746552 |     Finished release [optimized] target(s) in 0.0 secs
core_1_d86d4a746552 | Cargo  =>  bin/app
core_1_d86d4a746552 | mkdir -p ./bin
core_1_d86d4a746552 | cp ./app/target/release/enigma-core-app ./bin/enigma-core-app
core_1_d86d4a746552 | make -C ./enclave/
core_1_d86d4a746552 | make[1]: Entering directory '/root/enigma-core/enigma-core/enclave'
core_1_d86d4a746552 | cargo build --release  
core_1_d86d4a746552 |    Compiling cc v1.0.27
core_1_d86d4a746552 |    Compiling sgx_tstd v1.0.0 (https://github.com/baidu/rust-sgx-sdk.git?rev=v1.0.0#378a4f0d)
core_1_d86d4a746552 |    Compiling tiny-keccak v1.4.2
core_1_d86d4a746552 |    Compiling synstructure v0.6.1
core_1_d86d4a746552 |    Compiling serde_derive_internals v0.16.0 (https://github.com/baidu/rust-sgx-sdk.git?rev=v1.0.0#378a4f0d)
core_1_d86d4a746552 |    Compiling crossbeam-epoch v0.3.1
core_1_d86d4a746552 |    Compiling block-buffer v0.2.0
core_1_d86d4a746552 |    Compiling crypto-mac v0.4.0
core_1_d86d4a746552 | error[E0599]: no method named `trim_end_matches` found for type `&std::string::String` in the current scope
core_1_d86d4a746552 |     --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.27/src/lib.rs:1722:67
core_1_d86d4a746552 |      |
core_1_d86d4a746552 | 1722 |                     let cross_compile = cc_env.as_ref().map(|s| s.trim_end_matches('-'));
core_1_d86d4a746552 |      |                                                                   ^^^^^^^^^^^^^^^^
core_1_d86d4a746552 |      |
core_1_d86d4a746552 |      = help: did you mean `trim_left_matches`?
core_1_d86d4a746552 | 
core_1_d86d4a746552 | error: aborting due to previous error
core_1_d86d4a746552 | 
core_1_d86d4a746552 | For more information about this error, try `rustc --explain E0599`.
core_1_d86d4a746552 | error: Could not compile `cc`.
core_1_d86d4a746552 | warning: build failed, waiting for other jobs to finish...
Compiling ./contracts/Billionare.sol...
Compiling ./contracts/CoinMixer.sol...
Compiling ./contracts/Enigma.sol...
Compiling ./contracts/EnigmaToken.sol...
Compiling ./contracts/Migrations.sol...
Compiling ./contracts/utils/GetCode2.sol...
Compiling openzeppelin-solidity/contracts/ECRecovery.sol...
Compiling openzeppelin-solidity/contracts/math/SafeMath.sol...
Compiling openzeppelin-solidity/contracts/token/ERC20/BasicToken.sol...
Compiling openzeppelin-solidity/contracts/token/ERC20/ERC20.sol...
Compiling openzeppelin-solidity/contracts/token/ERC20/ERC20Basic.sol...
Compiling openzeppelin-solidity/contracts/token/ERC20/StandardToken.sol...
core_1_d86d4a746552 | error: build failed

I've googled it about it seems nothing similar to this one. I'm pretty sure i m following the getting started documentation of enigma.co.

Can you help me with this?

krisnadiputra avatar Dec 21 '18 09:12 krisnadiputra

The X-Term for surface showing enigma_surface_1: Waiting for enigma_core_1... I am running this on Ubuntu 16.04.3

krisnadiputra avatar Dec 21 '18 10:12 krisnadiputra