• Status New
  • Percent Complete
    0%
  • Task Type Bug Report
  • Category Packages
  • Assigned To No-one
  • Operating System pentium4
  • Severity Low
  • Priority Medium
  • Reported Version
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Archlinux32
Opened by Andreas Baumann - 30.05.2019

FS#77 - librsvg doesn't rebuild

    --> /build/librsvg/src/librsvg/target/release/build/typenum-ff577e94a786118f/out/consts.rs:2113:5
     |
2111 |     pub type P1024 = PInt; pub type N1024 = NInt;
     |     ----------------------------- previous definition of the type `P1024` here
2112 |     pub type U1024 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>;
2113 |     pub type P1024 = PInt; pub type N1024 = NInt;
     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `P1024` redefined here
     |
     = note: `P1024` must be defined only once in the type namespace of this module

error[E0428]: the name `N1024` is defined multiple times
    --> /build/librsvg/src/librsvg/target/release/build/typenum-ff577e94a786118f/out/consts.rs:2113:35
     |
2111 |     pub type P1024 = PInt; pub type N1024 = NInt;
     |                                   ----------------------------- previous definition of the type `N1024` here
2112 |     pub type U1024 = UInt, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>;
2113 |     pub type P1024 = PInt; pub type N1024 = NInt;
     |                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `N1024` redefined here
     |
     = note: `N1024` must be defined only once in the type namespace of this module

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0428`.
error: Could not compile `typenum`.

Caused by:
  process didn't exit successfully: `rustc --crate-name typenum /build/.cargo/registry/src/github.com-1ecc6299db9ec823/typenum-1.10.0/src/lib.rs --color never --crate-type lib --emit=dep-info,link -C opt-level=3 -C debuginfo=2 -C metadata=045a2ce7f5cfaab5 -C extra-filename=-045a2ce7f5cfaab5 --out-dir /build/librsvg/src/librsvg/target/release/deps -L dependency=/build/librsvg/src/librsvg/target/release/deps --cap-lints allow -C target-cpu=pentium3 -C target-feature=-sse2` (exit code: 1)
warning: build failed, waiting for other jobs to finish...
error: build failed
make[2]: *** [Makefile:1934: /build/librsvg/src/librsvg/target/release/librsvg_internals.a] Error 101
make[2]: Leaving directory '/build/librsvg/src/librsvg'
make[1]: *** [Makefile:1438: all-recursive] Error 1
make[1]: Leaving directory '/build/librsvg/src/librsvg'
make: *** [Makefile:931: all] Error 2

The same error with typenum as when bootstrapping rust in stage 2.

librsvg is very important as it blocks tons of other stuff (so why
again was it written in Rust?!)

I might have seen a Debian patch for it, but Debian goes a “complete
Rust micro-packaging” way, not sure whether we can apply it here?

Levi commented on 30.05.2019 18:26

Since it looks to me like it's redefining P1024 and N1024 the same, can't you just eliminate one of these definitions. Sure, it makes a patch you'd have to maintain henceforth until they fix this upstream, and I don't understand what kind of preprocessing is ending up with this particular duplication, but deleting a line is about the simplest patch you could maintain.

Admin
Andreas Baumann commented on 10.09.2019 15:33

Yes, got this during rust bootstrapping too. On pentium4 it went away, on i686 it is still
there. In librsvg it happens everywhere.

Admin
Andreas Baumann commented on 10.09.2019 15:59

https://www.archlinux.org/packages/extra/x86_64/librsvg/

Flagged out of date upstream, the Debian mailing list says the bug has been fixed upstream, so we wait. :-)

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing