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

Opening in gitpod - build fails #421

Open
sudipghimire533 opened this issue Feb 12, 2022 · 0 comments
Open

Opening in gitpod - build fails #421

sudipghimire533 opened this issue Feb 12, 2022 · 0 comments

Comments

@sudipghimire533
Copy link

Just starting out by opening the project in gitpod. But while opening it throws with following error

 HISTFILE=/workspace/.gitpod/cmd-0 history -r; {
[ -r /workspace/.prebuild-log-0 ] && cat /workspace/.prebuild-log-0; [ -r /workspace/.gitpod/prebuild-log-0 ] && cat /workspace/.gitpod/prebuild-log-0; true
} && {
gp open README-gitpod.md
solana-keygen new --no-bip39-passphrase -o keypair.json
solana config set --keypair keypair.json
solana config set --url localhost

}
gitpod /workspace/example-helloworld (master) $  HISTFILE=/workspace/.gitpod/cmd-0 history -r; {
> [ -r /workspace/.prebuild-log-0 ] && cat /workspace/.prebuild-log-0; [ -r /workspace/.gitpod/prebuild-log-0 ] && cat /workspace/.gitpod/prebuild-log-0; true
> } && {
> gp open README-gitpod.md
> solana-keygen new --no-bip39-passphrase -o keypair.json
> solana config set --keypair keypair.json
> solana config set --url localhost
> 
> }
{
sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
export PATH="/home/gitpod/.local/share/solana/install/active_release/bin:$PATH"
eval $(gp env -e PATH=$HOME/.local/share/solana/install/active_release/bin:$PATH)
npm install
npm run build:program-rust

}; exit
gitpod /workspace/example-helloworld ((bdbee5a...)) $ {
> sh -c "$(curl -sSfL https://release.solana.com/stable/install)"
> export PATH="/home/gitpod/.local/share/solana/install/active_release/bin:$PATH"
> eval $(gp env -e PATH=$HOME/.local/share/solana/install/active_release/bin:$PATH)
> npm install
> npm run build:program-rust
> 
> }; exit
downloading stable installer
  ✨ stable commit 4ce59bb initialized
Adding 
export PATH="/home/gitpod/.local/share/solana/install/active_release/bin:$PATH" to /home/gitpod/.profile
Adding 
export PATH="/home/gitpod/.local/share/solana/install/active_release/bin:$PATH" to /home/gitpod/.bash_profile

Close and reopen your terminal to apply the PATH changes or run the following in your existing shell:
  
export PATH="/home/gitpod/.local/share/solana/install/active_release/bin:$PATH"

npm WARN deprecated @types/[email protected]: This is a stub types definition. yaml provides its own type definitions, so you do not need this installed.

added 295 packages, and audited 296 packages in 13s

29 packages are looking for funding
  run `npm fund` for details

2 high severity vulnerabilities

To address all issues, run:
  npm audit fix

Run `npm audit` for details.

> [email protected] build:program-rust
> cargo build-bpf --manifest-path=./src/program-rust/Cargo.toml --bpf-out-dir=dist/program

BPF SDK: /home/gitpod/.local/share/solana/install/releases/stable-4ce59bbbb5b6dafdcb6c99749ea523ebd0409c9d/solana-release/bin/sdk/bpf
cargo-build-bpf child: rustup toolchain list -v
cargo-build-bpf child: rustup toolchain link bpf /home/gitpod/.local/share/solana/install/releases/stable-4ce59bbbb5b6dafdcb6c99749ea523ebd0409c9d/solana-release/bin/sdk/bpf/dependencies/bpf-tools/rust
cargo-build-bpf child: cargo +bpf build --target bpfel-unknown-unknown --release
   Compiling proc-macro2 v1.0.27
   Compiling unicode-xid v0.2.2
   Compiling syn v1.0.73
   Compiling serde v1.0.126
   Compiling serde_derive v1.0.126
   Compiling version_check v0.9.3
   Compiling semver-parser v0.7.0
   Compiling typenum v1.13.0
   Compiling block-padding v0.2.1
   Compiling feature-probe v0.1.1
   Compiling opaque-debug v0.3.0
   Compiling autocfg v1.0.1
   Compiling log v0.4.14
   Compiling once_cell v1.8.0
   Compiling rustversion v1.0.5
   Compiling cfg-if v1.0.0
   Compiling bs58 v0.3.1
   Compiling keccak v0.1.0
   Compiling either v1.6.1
   Compiling spin v0.5.2
   Compiling hex v0.4.3
   Compiling semver v0.9.0
   Compiling bv v0.11.1
   Compiling generic-array v0.14.4
   Compiling ahash v0.7.6
   Compiling num-traits v0.2.14
   Compiling lazy_static v1.4.0
   Compiling itertools v0.9.0
   Compiling rustc_version v0.2.3
   Compiling quote v1.0.9
   Compiling solana-frozen-abi-macro v1.7.9
   Compiling solana-frozen-abi v1.7.9
   Compiling solana-program v1.7.9
   Compiling hashbrown v0.11.2
   Compiling borsh-derive-internal v0.9.3
   Compiling borsh-schema-derive-internal v0.9.3
   Compiling thiserror-impl v1.0.25
   Compiling solana-sdk-macro v1.7.9
   Compiling num-derive v0.3.3
   Compiling thiserror v1.0.25
   Compiling bincode v1.3.3
   Compiling serde_bytes v0.11.5
   Compiling toml v0.5.8
   Compiling block-buffer v0.9.0
   Compiling digest v0.9.0
   Compiling sha2 v0.9.5
   Compiling sha3 v0.9.1
   Compiling proc-macro-crate v0.1.5
   Compiling borsh-derive v0.9.3
   Compiling borsh v0.9.3
   Compiling solana-bpf-helloworld v0.0.1 (/workspace/example-helloworld/src/program-rust)
    Finished release [optimized] target(s) in 39.59s
cargo-build-bpf child: /home/gitpod/.local/share/solana/install/releases/stable-4ce59bbbb5b6dafdcb6c99749ea523ebd0409c9d/solana-release/bin/sdk/bpf/scripts/strip.sh /workspace/example-helloworld/src/program-rust/target/bpfel-unknown-unknown/release/helloworld.so /workspace/example-helloworld/dist/program/helloworld.so
+ wget https://github.com/Snaipe/Criterion/releases/download/v2.3.3/criterion-v2.3.3-linux-x86_64.tar.bz2 -O criterion-v2.3.3-linux-x86_64.tar.bz2 --progress=dot:giga --retry-connrefused --read-timeout=30
--2022-02-10 09:51:45--  https://github.com/Snaipe/Criterion/releases/download/v2.3.3/criterion-v2.3.3-linux-x86_64.tar.bz2
Resolving github.com (github.com)... 192.30.255.112
Connecting to github.com (github.com)|192.30.255.112|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/30111969/98b27400-e1f1-11e8-8f10-e43f4ef84b92?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220210%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220210T095145Z&X-Amz-Expires=300&X-Amz-Signature=43052b9fa84a00aa90829e0b7fea78e02128d37040633e893e04345d454666ff&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=30111969&response-content-disposition=attachment%3B%20filename%3Dcriterion-v2.3.3-linux-x86_64.tar.bz2&response-content-type=application%2Foctet-stream [following]
--2022-02-10 09:51:45--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/30111969/98b27400-e1f1-11e8-8f10-e43f4ef84b92?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220210%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220210T095145Z&X-Amz-Expires=300&X-Amz-Signature=43052b9fa84a00aa90829e0b7fea78e02128d37040633e893e04345d454666ff&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=30111969&response-content-disposition=attachment%3B%20filename%3Dcriterion-v2.3.3-linux-x86_64.tar.bz2&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 677858 (662K) [application/octet-stream]
Saving to: ‘criterion-v2.3.3-linux-x86_64.tar.bz2’

     0K                                    100% 20.4M=0.03s

2022-02-10 09:51:46 (20.4 MB/s) - ‘criterion-v2.3.3-linux-x86_64.tar.bz2’ saved [677858/677858]

+ tar --strip-components 1 -jxf criterion-v2.3.3-linux-x86_64.tar.bz2
+ ./bpf-tools/rust/bin/rustc --version
+ ./bpf-tools/rust/bin/rustc --print sysroot
+ set +e
+ rustup toolchain uninstall bpf
info: uninstalling toolchain 'bpf'
info: toolchain 'bpf' uninstalled
+ set -e
+ rustup toolchain link bpf bpf-tools/rust
+ exit 0
cargo-build-bpf child: /home/gitpod/.local/share/solana/install/releases/stable-4ce59bbbb5b6dafdcb6c99749ea523ebd0409c9d/solana-release/bin/sdk/bpf/dependencies/bpf-tools/llvm/bin/llvm-readelf --dyn-symbols /workspace/example-helloworld/dist/program/helloworld.so

To deploy this program:
  $ solana program deploy /workspace/example-helloworld/dist/program/helloworld.so
The program address will default to this keypair (override with --program-id):
  /workspace/example-helloworld/dist/program/helloworld-keypair.json

🤙 This task ran as a workspace prebuild
🎉 Well done on saving 3 minutes

bash: solana-keygen: command not found
bash: solana: command not found
bash: solana: command not found
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

1 participant