[staging] 'librsvg-next' build failure

DoneSubmitted by Marius Bakke.
Details
3 participants
  • Efraim Flashner
  • Jakub Kądziołka
  • Marius Bakke
Owner
unassigned
Severity
normal
M
M
Marius Bakke wrote on 29 May 2020 15:17
(address . bug-guix@gnu.org)
87r1v2518g.fsf@gnu.org
On the 'staging' branch, "librsvg-next" (a dependency of GNOME) fails tocompile the 'xml-rs' Rust crate:
Toggle snippet (27 lines) Compiling xml-rs v0.8.1error[E0658]: `cfg(doctest)` is experimental and subject to change --> /tmp/guix-build-librsvg-2.46.4.drv-0/librsvg-2.46.4/vendor/rust-xml-rs-0.8.1.tar.gz/src/lib.rs:9:7 |9 | #[cfg(doctest)] | ^^^^^^^ | = note: for more information, see https://github.com/rust-lang/rust/issues/62210
error[E0658]: `cfg(doctest)` is experimental and subject to change --> /tmp/guix-build-librsvg-2.46.4.drv-0/librsvg-2.46.4/vendor/rust-xml-rs-0.8.1.tar.gz/src/lib.rs:13:7 |13 | #[cfg(doctest)] | ^^^^^^^ | = note: for more information, see https://github.com/rust-lang/rust/issues/62210
Compiling downcast-rs v1.1.1 Compiling rand_core v0.3.1 Compiling rand_jitter v0.1.4error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0658`.error: could not compile `xml-rs`.warning: build failed, waiting for other jobs to finish...error: build failed
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl7RC4AACgkQoqBt8qM6VPqetAf/fHS3eHCSTIBFjdEIcjHlGUVk4WGQFabxvnXivDOOkMz6+W2xhdwJcLCmnqWhbS5qc6VDoC44kT9XHaAoZwz+PcerVPWvAUVo8pFoYdfPybDQFjSA0P4qaxljpmZoKQThUGXoJxaaaLYTDgUJ6zcOsOCZ3opPRzTayNdK87zdaCOn0zbkxDV5qMFyj81RispFMu3q4aAA55gwjrBO35xeQQVeAM4AYuby/82IBT0Zz/ooJMSnLCaxwSzFfkv/IMdb0nBReHV0i2gfy7BMODyB8PjAmt9WcAgUqRB3qwXDDJw3YTqUVNQQ53RG/t6VkF0x5l2E6ssHmgJ7Pu38GitRRQ===uh7+-----END PGP SIGNATURE-----
J
J
Jakub Kądziołka wrote on 29 May 2020 15:37
(name . Marius Bakke)(address . marius@gnu.org)(address . bug-guix@gnu.org)
20200529133735.3gn7e3as3r3lg4wb@gravity
On Fri, May 29, 2020 at 03:17:51PM +0200, Marius Bakke wrote:
Toggle quote (13 lines)> On the 'staging' branch, "librsvg-next" (a dependency of GNOME) fails to> compile the 'xml-rs' Rust crate:> > --8<---------------cut here---------------start------------->8---> Compiling xml-rs v0.8.1> error[E0658]: `cfg(doctest)` is experimental and subject to change> --> /tmp/guix-build-librsvg-2.46.4.drv-0/librsvg-2.46.4/vendor/rust-xml-rs-0.8.1.tar.gz/src/lib.rs:9:7> |> 9 | #[cfg(doctest)]> | ^^^^^^^> |> = note: for more information, see https://github.com/rust-lang/rust/issues/62210
That's a feature that was stabilized in Rust 1.40. I have a WIP patchthat updates Rust upto 1.43.1, but it's blocked on a LLVM 9 patch backport Ihaven't had time to prepare yet. I won't have the time to look into itproperly right now, but here are the relevant links:
https://github.com/rust-lang/llvm-project/commit/7d5e7c023053660ffe494d72ce471e48ecc7f49bhttps://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959877https://github.com/rust-lang/llvm-project/pull/43
Regards,Jakub Kądziołka
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEE5Xa/ss9usT31cTO54xWnWEYTFWQFAl7REB8ACgkQ4xWnWEYTFWTEMBAA4iA1+VETg7wd28cB4GnpbTpIzd7CNWTROWDzKTZk4ME0jkJ9RIozxlhweX0KyDdD272mN0VedHkhoySbgO52xLpdN63uDTOH3dTs6RIC5n1pTR40c4PrSj6DWo9Ur7obbCil7QU40DoZaR5Srci8WX0Jpq5gER8X638qQb7qK0xteH4Jox8G3FdBTX7j0Nula0XPBIH2xd8VpNjloDddgmjX85A/Ba/JXU3qIi/3SIXQQ7vLwBY2qQiyn9B82J6A7W2q4rATmYqZQ/hlmgVDZhYpgQWesDocPcWzzybVKGRLMg6hp2gj1ctOBLyKE9GIN75sdFV7OLh0xoPxh4D0dpzfkyuU9yCommYJQgmt6tZNOjM8NjJIXJpOabPPJRMWQ9OknRKVNTImruIMBT7pvlBEfiwuAXKMLleFrZ5hXEamQrXaLAt4rvAx43Ng9SMk0/T6tAXGV5bRUiKgpImVRiQfTolLxnulPZYscPa2G0rLVjAOmUOk+IMnuM8SpzwmrAvVhXR6YaEXNSOo1FmPFHKT7g2EBLUPaz/uXjlyuLWWZcrLeJ3fwL+nOkf7rcZzf2F1il05lXqtWzGs0rYAWjBP7wAIe9hpLl9BOHnFIVQhK2Fpxwm+JUIt8zYke0xLHy/T1iZ3l3kYbPNWk0pIk4/jJVZRYffCykINUuE1Gxk==BcZR-----END PGP SIGNATURE-----

E
E
Efraim Flashner wrote on 30 May 2020 22:23
Re: bug#41596: [staging] 'librsvg-next' build failure
(name . Jakub Kądziołka)(address . kuba@kadziolka.net)
20200530202303.GB7397@E5400
On Fri, May 29, 2020 at 03:37:36PM +0200, Jakub Kądziołka wrote:
Toggle quote (26 lines)> On Fri, May 29, 2020 at 03:17:51PM +0200, Marius Bakke wrote:> > On the 'staging' branch, "librsvg-next" (a dependency of GNOME) fails to> > compile the 'xml-rs' Rust crate:> > > > --8<---------------cut here---------------start------------->8---> > Compiling xml-rs v0.8.1> > error[E0658]: `cfg(doctest)` is experimental and subject to change> > --> /tmp/guix-build-librsvg-2.46.4.drv-0/librsvg-2.46.4/vendor/rust-xml-rs-0.8.1.tar.gz/src/lib.rs:9:7> > |> > 9 | #[cfg(doctest)]> > | ^^^^^^^> > |> > = note: for more information, see https://github.com/rust-lang/rust/issues/62210> > That's a feature that was stabilized in Rust 1.40. I have a WIP patch> that updates Rust upto 1.43.1, but it's blocked on a LLVM 9 patch backport I> haven't had time to prepare yet. I won't have the time to look into it> properly right now, but here are the relevant links:> > https://github.com/rust-lang/llvm-project/commit/7d5e7c023053660ffe494d72ce471e48ecc7f49b> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959877> https://github.com/rust-lang/llvm-project/pull/43> > Regards,> Jakub Kądziołka
In any case, I worked around the issue by changing the doctestdeclarations into test declarations. I also bumped rust-xml-rs-0.8 to0.8.3.

-- Efraim Flashner <efraim@flashner.co.il> אפרים פלשנרGPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351Confidentiality cannot be guaranteed on emails sent or received unencrypted
-----BEGIN PGP SIGNATURE-----
iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl7SwKQACgkQQarn3Mo9g1FnBA/9HvPSLVTwherxDnC404BVpAMVt2Bmdh/sc4THj5K81DwoMIlQyzltd9jqtEU/xQoDDuyh6OgRBuB6+8mlaZwolkVpwnl0okEkm7uAtfdAzrbLoqP1uigTQ2RcC4QGmbfyhXZajARbGDhTxZhscSdYAyK4840Ec3ORtyMGUhbBoTwpFQTZOtqWrn2onaWhvMwbP55LRJldQm40cK/F5KiE7cXhZNVeaIt8YmzT6ETgKY0Q3AAiIrltq3soaB5xocOJYMbHaSkS5+0FC1ZYkOHIDc6ElENBYnZR2We7upGvIg152zi57oWRiweODuxS2X73sceVnL56+qsoOR3rEOdKoiheb34ps6qCx+WdP9jX0shgLU4adLm///bIqmkQwUKR1Xtr7yRUzcaANK+8aI6LAL5biArdARozNDjXT3tE+KqHu8nMIrh3zdFYRVJFZP5bmRo1XHj/uha/n/lLWpo7HIF52IcdoNXlbxUwP6/sj0XITo0y66l0mE1zCfA66EVeK6lrwdynhTecnSe6UyWLllHJtQ+Qk8EBcUP94QhLIljgVvJuwdxdtJoNZ8Z4iWsaV9U3KiPDdx9ycHjDGAyJetCu791j+iil0CYLpoJ1UV0T/fjvWGGEVGZ6+mvCpLQNRGDSQ6WJ/7L+Y8x0lo4KZfjLQw/eeWeIR9KhkA9jf2k==7oH3-----END PGP SIGNATURE-----

Closed
?