[staging] 'librsvg-next' build failure

  • Done
  • quality assurance status badge
Details
3 participants
  • Efraim Flashner
  • Jakub K?dzio?ka
  • Marius Bakke
Owner
unassigned
Submitted by
Marius Bakke
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 to
compile the 'xml-rs' Rust crate:

Toggle snippet (27 lines)
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

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.4
error: 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-----

iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl7RC4AACgkQoqBt8qM6
VPqetAf/fHS3eHCSTIBFjdEIcjHlGUVk4WGQFabxvnXivDOOkMz6+W2xhdwJcLCm
nqWhbS5qc6VDoC44kT9XHaAoZwz+PcerVPWvAUVo8pFoYdfPybDQFjSA0P4qaxlj
pmZoKQThUGXoJxaaaLYTDgUJ6zcOsOCZ3opPRzTayNdK87zdaCOn0zbkxDV5qMFy
j81RispFMu3q4aAA55gwjrBO35xeQQVeAM4AYuby/82IBT0Zz/ooJMSnLCaxwSzF
fkv/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 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:


Regards,
Jakub K?dzio?ka
-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEE5Xa/ss9usT31cTO54xWnWEYTFWQFAl7REB8ACgkQ4xWnWEYT
FWTEMBAA4iA1+VETg7wd28cB4GnpbTpIzd7CNWTROWDzKTZk4ME0jkJ9RIozxlhw
eX0KyDdD272mN0VedHkhoySbgO52xLpdN63uDTOH3dTs6RIC5n1pTR40c4PrSj6D
Wo9Ur7obbCil7QU40DoZaR5Srci8WX0Jpq5gER8X638qQb7qK0xteH4Jox8G3FdB
TX7j0Nula0XPBIH2xd8VpNjloDddgmjX85A/Ba/JXU3qIi/3SIXQQ7vLwBY2qQiy
n9B82J6A7W2q4rATmYqZQ/hlmgVDZhYpgQWesDocPcWzzybVKGRLMg6hp2gj1ctO
BLyKE9GIN75sdFV7OLh0xoPxh4D0dpzfkyuU9yCommYJQgmt6tZNOjM8NjJIXJpO
abPPJRMWQ9OknRKVNTImruIMBT7pvlBEfiwuAXKMLleFrZ5hXEamQrXaLAt4rvAx
43Ng9SMk0/T6tAXGV5bRUiKgpImVRiQfTolLxnulPZYscPa2G0rLVjAOmUOk+IMn
uM8SpzwmrAvVhXR6YaEXNSOo1FmPFHKT7g2EBLUPaz/uXjlyuLWWZcrLeJ3fwL+n
Okf7rcZzf2F1il05lXqtWzGs0rYAWjBP7wAIe9hpLl9BOHnFIVQhK2Fpxwm+JUIt
8zYke0xLHy/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 doctest
declarations into test declarations. I also bumped rust-xml-rs-0.8 to
0.8.3.


--
Efraim Flashner <efraim@flashner.co.il> ????? ?????
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl7SwKQACgkQQarn3Mo9
g1FnBA/9HvPSLVTwherxDnC404BVpAMVt2Bmdh/sc4THj5K81DwoMIlQyzltd9jq
tEU/xQoDDuyh6OgRBuB6+8mlaZwolkVpwnl0okEkm7uAtfdAzrbLoqP1uigTQ2Rc
C4QGmbfyhXZajARbGDhTxZhscSdYAyK4840Ec3ORtyMGUhbBoTwpFQTZOtqWrn2o
naWhvMwbP55LRJldQm40cK/F5KiE7cXhZNVeaIt8YmzT6ETgKY0Q3AAiIrltq3so
aB5xocOJYMbHaSkS5+0FC1ZYkOHIDc6ElENBYnZR2We7upGvIg152zi57oWRiweO
DuxS2X73sceVnL56+qsoOR3rEOdKoiheb34ps6qCx+WdP9jX0shgLU4adLm///bI
qmkQwUKR1Xtr7yRUzcaANK+8aI6LAL5biArdARozNDjXT3tE+KqHu8nMIrh3zdFY
RVJFZP5bmRo1XHj/uha/n/lLWpo7HIF52IcdoNXlbxUwP6/sj0XITo0y66l0mE1z
CfA66EVeK6lrwdynhTecnSe6UyWLllHJtQ+Qk8EBcUP94QhLIljgVvJuwdxdtJoN
Z8Z4iWsaV9U3KiPDdx9ycHjDGAyJetCu791j+iil0CYLpoJ1UV0T/fjvWGGEVGZ6
+mvCpLQNRGDSQ6WJ/7L+Y8x0lo4KZfjLQw/eeWeIR9KhkA9jf2k=
=7oH3
-----END PGP SIGNATURE-----


Closed
?