neqo icon indicating copy to clipboard operation
neqo copied to clipboard

Thunderbird 145.0 fails to build: called `Result::unwrap()` on an `Err` value: NoNssDir

Open nteodosio opened this issue 1 month ago • 2 comments

I tried to build Thunderbird 145.0 but it failed with

       Compiling nss_sys v0.1.0 (https://github.com/mozilla/application-services?rev=cd04a4d1a74294ab08434d7a5a8152d25d25e53c#cd04a4d1)
    error: failed to run custom build command for `nss_sys v0.1.0 (https://github.com/mozilla/application-services?rev=cd04a4d1a74294ab08434d7a5a8152d25d25e53c#cd04a4d1)`

    Caused by:
      process didn't exit successfully: `/root/parts/thunderbird/build/target/release/build/nss_sys-25a9c1d021cc0dd4/build-script-build` (exit status: 101)
      --- stdout
      cargo:rerun-if-env-changed=NSS_DIR
      --- stderr
      thread 'main' panicked at /root/.cargo/git/checkouts/application-services-99bb257f08384f94/cd04a4d/components/support/rc_crypto/nss/nss_sys/build.rs:6:34:
      called `Result::unwrap()` on an `Err` value: NoNssDir
      stack backtrace:
         0: rust_begin_unwind
                   at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/std/src/panicking.rs:662:5
         1: core::panicking::panic_fmt
                   at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/panicking.rs:74:14
         2: core::result::unwrap_failed
                   at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/result.rs:1677:5
         3: core::result::Result<T,E>::unwrap
                   at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/result.rs:1102:23
         4: build_script_build::main
                   at ./build.rs:6:5
         5: core::ops::function::FnOnce::call_once
                   at /rustc/f6e511eec7342f59a25f7c0534f1dbea00d01b14/library/core/src/ops/function.rs:250:5

I traced this back to NSS_DIR being undefined in components/support/rc_crypto/nss/nss_build_common/src/lib.rs:get_nss, but I did not determine if Thunderbird or Neqo surfaced the issue; Seeing some related changes in this repository, I opted for the latter, although Thunderbird 145 beta does build fine.

As I found NSS installed to /usr/lib/$ARCH_TRIPLET, I tried setting NSS_DIR=/usr/lib/$ARCH_TRIPLET and opened a merge request for us downstream as the build indeed proceeds, but I still want to test the run-time.

nteodosio avatar Nov 11 '25 09:11 nteodosio

This seems to be due to a build issue in https://github.com/mozilla/application-services and not neqo?

larseggert avatar Nov 11 '25 09:11 larseggert

I now filed https://bugzilla.mozilla.org/show_bug.cgi?id=1999466.

nteodosio avatar Nov 11 '25 10:11 nteodosio

That bug is resolved, closing here.

larseggert avatar Dec 10 '25 15:12 larseggert