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

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

krisnadiputra opened this Issue Dec 21, 2018 · 1 comment


None yet
1 participant
Copy link

krisnadiputra commented Dec 21, 2018

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 (
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 (
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/
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

Can you help me with this?


This comment has been minimized.

Copy link

krisnadiputra commented Dec 21, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment