Skip to content

0.15.0 Build error with Nix, and a test failure on latest master #1263

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

Open
doronbehar opened this issue Feb 23, 2025 · 8 comments
Open

0.15.0 Build error with Nix, and a test failure on latest master #1263

doronbehar opened this issue Feb 23, 2025 · 8 comments

Comments

@doronbehar
Copy link

Hello,

Recently on NixOS we encountered the following build error on our CI:

https://cache.nixos.org/log/mhksk5hxip92z7k523wkpfd73n690lgz-tectonic-0.15.0.drv

I suspected first it is related to icu 75->76 upgrade, but apparently it's not. I suspect it is related to GCC 14 upgrade. I don't experience this error when building against c2ae25f , but I experience a test failure:

tectonic> running 5 tests
tectonic> test errors::tests::test_def_same_option ... ok
tectonic> test errors::tests::test_def_same_box_err ... ok
tectonic> test errors::tests::test_def_same_err ... ok
tectonic> test io::memory::tests::shrinking_file ... ok
tectonic> test tests::no_segfault_after_failed_compilation ... FAILED
tectonic> failures:
tectonic> ---- tests::no_segfault_after_failed_compilation stdout ----
tectonic> thread 'tests::no_segfault_after_failed_compilation' panicked at /build/tectonic-0.15.0-unstable-2025-02-21-vendor/reqwest-0.12.12/src/blocking/client.rs:1047:38:
tectonic> Client::new(): reqwest::Error { kind: Builder, source: Normal(ErrorStack([])) }
tectonic> note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
tectonic> failures:
tectonic>     tests::no_segfault_after_failed_compilation
tectonic> test result: FAILED. 4 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s
tectonic> error: test failed, to rerun pass `--lib
@bryango
Copy link
Contributor

bryango commented Feb 24, 2025

I think it may be hard to fix the build on Nix for the 0.15.0 release (also it seems it's only failing on linux with gcc, darwin builds are fine). Let's just switch to master. It seems to me that the failure here is because it tries to access the internet and fails to do so within the build sandbox as it returns reqwest::Error:

tectonic> thread 'tests::no_segfault_after_failed_compilation' panicked at /build/tectonic-0.15.0-unstable-2025-02-21-vendor/reqwest-0.12.12/src/blocking/client.rs:1047:38:
tectonic> Client::new(): reqwest::Error { kind: Builder, source: Normal(ErrorStack([])) }

... but I don't understand why it didn't fail before...

Update: for nixpkgs we eventually decided to fix the 0.15.0 release and ignore the master failures for the moment until it is resolved upstream (i.e. here).

@GuillaumeDIDIER
Copy link

Any update ? This sort of build failure is problematic.

@doronbehar
Copy link
Author

This was fixed on our end with:

See https://nixpk.gs/pr-tracker.html?pr=392621 .

@HerrMuellerluedenscheid
Copy link

Having the issue on Apple silicon. How about creating a release?

@GuillaumeDIDIER
Copy link

I tested master, and it indeed solved things for me, so I second this question about making a new release (which hasn't happened in a year).

@doronbehar
Copy link
Author

See also:

@CraftSpider
Copy link
Contributor

While I am a maintainer of tectonic, I unfortunately do not have the ability to cut a release. @pkgw will need to be the one to do so when he has time.

@ilyapopov
Copy link

ilyapopov commented Apr 14, 2025

The same problem started happening on upgrade to Ubuntu 25.04 (to be released on Apr 17).

Update Master branch works.

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

6 participants