• Bug#1063601: tailspin: FTBFS: error[E0407]: method `backtrace` is not a

    From Sebastian Ramacher@21:1/5 to All on Fri Feb 9 21:10:01 2024
    Source: tailspin
    Version: 3.0.0+dfsg-1
    Severity: serious
    Tags: ftbfs
    Justification: fails to build from source (but built successfully in the past) X-Debbugs-Cc: sramacher@debian.org

    https://buildd.debian.org/status/fetch.php?pkg=tailspin&arch=amd64&ver=3.0.0%2Bdfsg-1&stamp=1706195420&raw=0

    Running `/<<PKGBUILDDIR>>/target/release/build/eyre-15058028a1ebd405/build-script-build`
    [eyre 0.6.8] error[E0407]: method `backtrace` is not a member of trait `Error` [eyre 0.6.8] --> /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/release/build/eyre-eb1eb971e427fb49/out/probe.rs:19:9
    [eyre 0.6.8] |
    [eyre 0.6.8] 19 | / fn backtrace(&self) -> Option<&Backtrace> {
    [eyre 0.6.8] 20 | | let backtrace = Backtrace::capture();
    [eyre 0.6.8] 21 | | match backtrace.status() {
    [eyre 0.6.8] 22 | | BacktraceStatus::Captured | BacktraceStatus::Disabled | _ => {}
    [eyre 0.6.8] 23 | | }
    [eyre 0.6.8] 24 | | unimplemented!()
    [eyre 0.6.8] 25 | | }
    [eyre 0.6.8] | |_________^ not a member of trait `Error`
    [eyre 0.6.8]
    [eyre 0.6.8] error[E0554]: `#![feature]` may not be used on the stable release channel
    [eyre 0.6.8] --> /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/release/build/eyre-eb1eb971e427fb49/out/probe.rs:2:16
    [eyre 0.6.8] |
    [eyre 0.6.8] 2 | #![feature(backtrace)]
    [eyre 0.6.8] | ^^^^^^^^^
    [eyre 0.6.8]
    [eyre 0.6.8] warning: the feature `backtrace` has been stable since 1.65.0 and no longer requires an attribute to enable
    [eyre 0.6.8] --> /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/release/build/eyre-eb1eb971e427fb49/out/probe.rs:2:16
    [eyre 0.6.8] |
    [eyre 0.6.8] 2 | #![feature(backtrace)]
    [eyre 0.6.8] | ^^^^^^^^^
    [eyre 0.6.8] |
    [eyre 0.6.8] = note: `#[warn(stable_features)]` on by default
    [eyre 0.6.8]
    [eyre 0.6.8] error: aborting due to 2 previous errors; 1 warning emitted
    [eyre 0.6.8]
    [eyre 0.6.8] Some errors have detailed explanations: E0407, E0554.
    [eyre 0.6.8] For more information about an error, try `rustc --explain E0407`. [eyre 0.6.8] cargo:rustc-cfg=track_caller

    Cheers
    --
    Sebastian Ramacher

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Tue Feb 13 21:00:02 2024
    Processing control commands:

    reassign -1 librust-eyre-dev
    Bug #1063601 [src:tailspin] tailspin: FTBFS: error[E0407]: method `backtrace` is not a member of trait `Error`
    Bug reassigned from package 'src:tailspin' to 'librust-eyre-dev'.
    No longer marked as found in versions tailspin/3.0.0+dfsg-1.
    Ignoring request to alter fixed versions of bug #1063601 to the same values previously set
    retitle -1 librust-eyre-dev: fails to builds its source
    Bug #1063601 [librust-eyre-dev] tailspin: FTBFS: error[E0407]: method `backtrace` is not a member of trait `Error`
    Changed Bug title to 'librust-eyre-dev: fails to builds its source' from 'tailspin: FTBFS: error[E0407]: method `backtrace` is not a member of trait `Error`'.
    affects -1 tailspin
    Bug #1063601 [librust-eyre-dev] librust-eyre-dev: fails to builds its source Added indication that 1063601 affects tailspin

    --
    1063601: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1063601
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Green@21:1/5 to All on Wed Feb 14 01:00:02 2024
    reassign 1063601 tailspin 3.0.0+dfsg-1
    retitle 1063601 tailspin FTBFS error: environment variable `CARGO_CHANNEL` not defined at compile time
    thanks

    [eyre 0.6.8] error[E0407]: method `backtrace` is not a member of trait `Error`
    [eyre 0.6.8] --> /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/release/build/eyre-eb1eb971e427fb49/out/probe.rs:19:9
    The above seems like a failure not in tailspin but in librust-eyre-dev.

    I don't think the errors Sebastian quoted are the cause of the build failure
    at all. I think they are just noise from a test compilation performed to determine what the compiler supports. Those same errors are present
    in the successful build log for tailspin 2.0.0

    The actual error seems to be.

    error: environment variable `CARGO_CHANNEL` not defined at compile time
    --> tests/utils.rs:11:48
    |
    11 | PathBuf::from(format!("./target/{}/tspin", env!("CARGO_CHANNEL")))
    | ^^^^^^^^^^^^^^^^^^^^^
    |
    = help: Cargo sets build script variables at run time. Use `std::env::var("CARGO_CHANNEL")` instead
    = note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)

    I also notice the following earlier in the build log.

    "debian cargo wrapper: WARNING: falling back to simply calling upstream cargo, because CARGO_HOME does not end with debian/cargo_home:"

    This message appears in the failed logs for 3.0.0 but not in the succesful logs for 2.0.0.

    After serching for CARGO_CHANNEL I think may be the actual cause of the failure.
    All the results on codesearch.debian.net for CARGO_CHANNEL seem to relate to dh_cargo
    or your fork thereof. So I think these are probablly related.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Debian Bug Tracking System@21:1/5 to All on Wed Feb 14 01:00:02 2024
    Processing commands for control@bugs.debian.org:

    reassign 1063601 tailspin 3.0.0+dfsg-1
    Bug #1063601 [librust-eyre-dev] librust-eyre-dev: fails to builds its source Bug reassigned from package 'librust-eyre-dev' to 'tailspin'.
    Ignoring request to alter found versions of bug #1063601 to the same values previously set
    Ignoring request to alter fixed versions of bug #1063601 to the same values previously set
    Bug #1063601 [tailspin] librust-eyre-dev: fails to builds its source
    There is no source info for the package 'tailspin' at version '3.0.0+dfsg-1' with architecture ''
    Unable to make a source version for version '3.0.0+dfsg-1'
    Marked as found in versions 3.0.0+dfsg-1.
    retitle 1063601 tailspin FTBFS error: environment variable `CARGO_CHANNEL` not defined at compile time
    Bug #1063601 [tailspin] librust-eyre-dev: fails to builds its source
    Changed Bug title to 'tailspin FTBFS error: environment variable `CARGO_CHANNEL` not defined at compile time' from 'librust-eyre-dev: fails to builds its source'.
    thanks
    Stopping processing here.

    Please contact me if you need assistance.
    --
    1063601: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1063601
    Debian Bug Tracking System
    Contact owner@bugs.debian.org with problems

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jonas Smedegaard@21:1/5 to All on Wed Feb 14 08:50:01 2024
    Quoting Peter Green (2024-02-14 00:51:12)
    [eyre 0.6.8] error[E0407]: method `backtrace` is not a member of trait `Error`
    [eyre 0.6.8] --> /<<PKGBUILDDIR>>/target/x86_64-unknown-linux-gnu/release/build/eyre-eb1eb971e427fb49/out/probe.rs:19:9
    The above seems like a failure not in tailspin but in librust-eyre-dev.

    I don't think the errors Sebastian quoted are the cause of the build failure at all. I think they are just noise from a test compilation performed to determine what the compiler supports. Those same errors are present
    in the successful build log for tailspin 2.0.0

    The actual error seems to be.

    error: environment variable `CARGO_CHANNEL` not defined at compile time
    --> tests/utils.rs:11:48
    |
    11 | PathBuf::from(format!("./target/{}/tspin", env!("CARGO_CHANNEL")))
    | ^^^^^^^^^^^^^^^^^^^^^
    |
    = help: Cargo sets build script variables at run time. Use `std::env::var("CARGO_CHANNEL")` instead
    = note: this error originates in the macro `env` (in Nightly builds, run with -Z macro-backtrace for more info)

    Ohhh, of course. Sorry to have bothered you instead of checking beyond
    the bugreport itself.

    - Jonas

    --
    * Jonas Smedegaard - idealist & Internet-arkitekt
    * Tlf.: +45 40843136 Website: http://dr.jones.dk/
    * Sponsorship: https://ko-fi.com/drjones

    [x] quote me freely [ ] ask before reusing [ ] keep private --==============B18094202075517622=MIME-Version: 1.0
    Content-Transfer-Encoding: 7bit
    Content-Description: signature
    Content-Type: application/pgp-signature; name="signature.asc"; charset="us-ascii"

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEn+Ppw2aRpp/1PMaELHwxRsGgASEFAmXMbesACgkQLHwxRsGg ASFpZg/+KaZltGZdHL2199L2eAti9+D6wgllI/H0aTDz+gwvkFLTkUZF0OptxG7W p4fW+0pmRMsct7WyldHYA0tZ+w9GSMZnjb87BfWeSeJSyTBarANxHEJcE+2eL5il 7Cw3S93hyV6i57/aaAkYEoHLm31BFaNruPJnSJgZI7fD7/A/p0nGUMPiNp+7nM0j 2KSeejO/vGiAk8mmwD/i2cvqB13pX+h7J+uO2J//GRXHC1PF9DbKNIIkr11Xk1vt bjqJGmXj/kB8iI1Y5flVyx6Wd9Oo9o9amSufmu7VkCsMRqRMhcYsuoWo+SDY7nnW dFFI6QtCB/NwzKv/phyme6UvZJq/CwkLgOwfanDG9+Wx2AeZlyIw/ctkRGzr/6Mq bFLN4Qb78YvnOLcgjPLe40GPR04f02v4YlTsm34AbRVbc9zjcYb8d9+u8HY2yqzH YkikzAV4wGcGGKjp6i4Z7XtvQXIiW4Fa9Jo9F3rQ