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

error[E0425]: cannot find function backup_entropy in this scope #251

Closed
yurivict opened this issue Dec 8, 2023 · 4 comments
Closed

error[E0425]: cannot find function backup_entropy in this scope #251

yurivict opened this issue Dec 8, 2023 · 4 comments

Comments

@yurivict
Copy link

yurivict commented Dec 8, 2023

Build fails:

error[E0425]: cannot find function `backup_entropy` in this scope
  --> /wrkdirs/usr/ports/math/fend/work/fend-1.3.3/cargo-crates/nanorand-0.7.0/src/entropy.rs:51:2
   |            
51 |     backup_entropy(out);
   |     ^^^^^^^^^^^^^^ not found in this scope
     
For more information about this error, try `rustc --explain E0425`.
error: could not compile `nanorand` (lib) due to previous error

Caused by:
  process didn't exit successfully: `CARGO=/usr/local/bin/cargo CARGO_CRATE_NAME=nanorand CARGO_MANIFEST_DIR=/wrkdirs/usr/ports/math/fend/work/fend-1.3.3/cargo-crates/nanorand-0.7.0 CARGO_PKG_AUTHORS='Lucy <lucy@absolucy.moe>' CARGO_PKG_DESCRIPTION='A tiny, fast, zero-dep library for random number generation.' CARGO_PKG_HOMEPAGE='' CARGO_PKG_LICENSE=Zlib CARGO_PKG_LICENSE_FILE='' CARGO_PKG_NAME=nanorand CARGO_PKG_README=README.md CARGO_PKG_REPOSITORY='https://github.com/Absolucy/nanorand-rs' CARGO_PKG_RUST_VERSION='' CARGO_PKG_VERSION=0.7.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=7 CARGO_PKG_VERSION_PATCH=0 CARGO_PKG_VERSION_PRE='' LD_LIBRARY_PATH='/wrkdirs/usr/ports/math/fend/work/target/release/deps:/usr/local/lib' /usr/local/bin/rustc --crate-name nanorand --edition=2021 /wrkdirs/usr/ports/math/fend/work/fend-1.3.3/cargo-crates/nanorand-0.7.0/src/lib.rs --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat --crate-type lib --emit=dep-info,metadata,link -C opt-level=z -C panic=abort -C linker-plugin-lto -C codegen-units=1 --cfg 'feature="alloc"' --cfg 'feature="std"' --cfg 'feature="wyrand"' -C metadata=b8763ff55087bd9a -C extra-filename=-b8763ff55087bd9a --out-dir /wrkdirs/usr/ports/math/fend/work/target/x86_64-unknown-freebsd/release/deps --target x86_64-unknown-freebsd -C linker=cc -C strip=symbols -L dependency=/wrkdirs/usr/ports/math/fend/work/target/x86_64-unknown-freebsd/release/deps -L dependency=/wrkdirs/usr/ports/math/fend/work/target/release/deps --cap-lints warn -C link-arg=-fstack-protector-strong` (exit status: 1)
warning: build failed, waiting for other jobs to finish...
warning: `toml_edit` (lib) generated 17 warnings
*** Error code 101

Version: 1.3.3
rust-1.73.0
FreeBSD 13.2

@printfn
Copy link
Owner

printfn commented Dec 8, 2023

Thanks for the report! It looks like this is in the nanorand dependency, so we might need to look for an alternative RNG implementation to fix this.

printfn added a commit that referenced this issue Dec 10, 2023
@printfn
Copy link
Owner

printfn commented Dec 10, 2023

I've replaced nanorand with the rand crate which seems to resolve the error when cross-compiling fend to FreeBSD. I don't have a FreeBSD VM to actually test it though, are you able to confirm if this fixes the issue?

@yurivict
Copy link
Author

The latest revision doesn't have this problem.

@printfn
Copy link
Owner

printfn commented Dec 10, 2023

Thanks, I’ll go and close this issue now. I’ll probably make a new fend release in the next couple days.

@printfn printfn closed this as completed Dec 10, 2023
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

2 participants