rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
94.88k stars 12.23k forks source link

Rust project's build fails without any error message #94201

Open yurivict opened 2 years ago

yurivict commented 2 years ago

The solana project build fails, and the log doesn't have any error message:

[librocksdb-sys 6.20.3] exit status: 0
[librocksdb-sys 6.20.3] running: "ar" "s" "/wrkdirs/usr/ports/security/solana/work/target/x86_64-unknown-freebsd/release/build/librocksdb-sys-7337c7ec879bb9d0/out/liblz4.a"
[librocksdb-sys 6.20.3] exit status: 0
[librocksdb-sys 6.20.3] cargo:rustc-link-lib=static=lz4
[librocksdb-sys 6.20.3] cargo:rustc-link-search=native=/wrkdirs/usr/ports/security/solana/work/target/x86_64-unknown-freebsd/release/build/librocksdb-sys-7337c7ec879bb9d0/out
error: build failed

rust-1.58.1 FreeBSD 13

workingjubilee commented 1 year ago

I realize this is somewhat unusual behavior but this bug lacks reproduction instructions so there's no way to verify that it is a continuing issue. I am somewhat inclined to close it outright, as there have been many small changes in FreeBSD support over the past year+ and there are about to be more, so this issue was at risk of being outmoded very quickly to begin with, but perhaps you are still available to fill us in?

kpreid commented 6 months ago

@rustbot label +S-needs-repro -E-needs-mcve

yurivict commented 6 months ago

Solana builds now. I will reopen when there would be another reproducer.

yurivict commented 6 months ago

@kpreid

Here is another case when the build fails without any particular error message: llm-0.1.1-build.log

The project is LLM.

yurivict commented 6 months ago

Sorry, this isn't a good case because this is caused my a missing submodule.

yurivict commented 6 months ago

@kpreid

Here is a Rust failure without any error message on the Tauri project https://github.com/tauri-apps/tauri :

error: failed to run custom build command for `app-updater v0.1.0 (/usr/ports/devel/tauri/work/tauri-1.0.5/core/tests/app-updater)`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

Caused by:
  process didn't exit successfully: `/usr/ports/devel/tauri/work/target/release/build/app-updater-c9cc50f467f260d7/build-script-build` (exit status: 1)
  --- stdout
  cargo:rerun-if-env-changed=TAURI_CONFIG
  cargo:rerun-if-changed=tauri.conf.json
  The configured updater endpoint must use the `https` protocol.
warning: build failed, waiting for other jobs to finish...
warning: unused import: `bitflags`

There is no error message that explains what exactly is missing.

rust-1.74.1 FreeBSD 14.0