solana-labs / example-helloworld

Hello world on Solana
MIT License
898 stars 868 forks source link

npm run build:program-rust -> infinite recursion detected #328

Open salisbury-espinosa opened 3 years ago

salisbury-espinosa commented 3 years ago

npm run build:program-rust

> helloworld@0.0.1 build:program-rust /tmp/example-helloworld
> cargo build-bpf --manifest-path=./src/program-rust/Cargo.toml --bpf-out-dir=dist/program

BPF SDK: ~/.local/share/solana/install/releases/1.7.12/solana-release/bin/sdk/bpf
Running: rustup toolchain list -v
Running: cargo +bpf build --target bpfel-unknown-unknown --release
error: process didn't exit successfully: `rustc -vV` (exit status: 1)
--- stderr
error: infinite recursion detected

ENV:

$rustc -vV
rustc 1.55.0 (c8dfcfe04 2021-09-06)
binary: rustc
commit-hash: c8dfcfe046a7680554bf4eb612bad840e7631c4b
commit-date: 2021-09-06
host: x86_64-unknown-linux-gnu
release: 1.55.0
LLVM version: 12.0.1

$ cargo -vV
cargo 1.55.0 (32da73ab1 2021-08-23)
release: 1.55.0
commit-hash: 32da73ab19417aa89686e1d85c1440b72fdf877d
commit-date: 2021-08-23

tested on 1.7.9-1.7.12 versions of solana

itayLev1 commented 1 year ago

try doing this, it might help

run these in Linux CLI: 1) download file from the link: wget https://packages.ubuntu.com/focal/amd64/libssl1.1/download 2) then install it using: sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.18_amd64.deb