unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#52837: Failed to compile rav1e which is dependence for tons of packages
@ 2021-12-27 23:09 Evgenii Lepikhin via Bug reports for GNU Guix
  2021-12-28  1:20 ` Leo Famulari
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Evgenii Lepikhin via Bug reports for GNU Guix @ 2021-12-27 23:09 UTC (permalink / raw)
  To: 52837

Hi there,

rav1e failed to compile with error:

starting phase `build'
Error: CliError { error: Some(failed to select a version for `clang-sys`.
    ... required by package `bindgen v0.58.1`
    ... which is depended on by `dav1d-sys v0.3.4`
    ... which is depended on by `rav1e v0.4.1 (/tmp/guix-build-rav1e-0.4.1.drv-0/rav1e-0.4.1)`
versions that meet the requirements `^1` are: 1.0.0

the package `clang-sys` links to the native library `clang`, but it conflicts with a previous package which links to `clang` as well:
package `clang-sys v0.29.3`
    ... which is depended on by `bindgen v0.54.1`
    ... which is depended on by `aom-sys v0.2.1`
    ... which is depended on by `rav1e v0.4.1 (/tmp/guix-build-rav1e-0.4.1.drv-0/rav1e-0.4.1)`

The issue caused by commit ad1e8a0906c. Possible fix:

diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index e4cd01fadf..269bd991ab 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -208,7 +208,7 @@ (define-public rust-aom-sys-0.2
     (build-system cargo-build-system)
     (arguments
       `(#:cargo-inputs
-        (("rust-bindgen" ,rust-bindgen-0.54)
+        (("rust-bindgen" ,rust-bindgen-0.58)
          ("rust-metadeps" ,rust-metadeps-1))))
     (native-inputs
      (list pkg-config))


-- 




^ permalink raw reply related	[flat|nested] 12+ messages in thread

* bug#52837: Failed to compile rav1e which is dependence for tons of packages
  2021-12-27 23:09 bug#52837: Failed to compile rav1e which is dependence for tons of packages Evgenii Lepikhin via Bug reports for GNU Guix
@ 2021-12-28  1:20 ` Leo Famulari
  2021-12-28  1:32 ` Leo Famulari
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 12+ messages in thread
From: Leo Famulari @ 2021-12-28  1:20 UTC (permalink / raw)
  To: 52837

On Tue, Dec 28, 2021 at 02:09:42AM +0300, Evgenii Lepikhin via Bug reports for GNU Guix wrote:
> Hi there,
> 
> rav1e failed to compile with error:

Oof, thanks for the report. Looking into it now...




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52837: Failed to compile rav1e which is dependence for tons of packages
  2021-12-27 23:09 bug#52837: Failed to compile rav1e which is dependence for tons of packages Evgenii Lepikhin via Bug reports for GNU Guix
  2021-12-28  1:20 ` Leo Famulari
@ 2021-12-28  1:32 ` Leo Famulari
  2021-12-28 13:46   ` Nicolas Goaziou
  2021-12-28  3:04 ` 0xFA11BABE via Bug reports for GNU Guix
  2021-12-28  6:01 ` bug#52837: We need deeper research Evgenii Lepikhin via Bug reports for GNU Guix
  3 siblings, 1 reply; 12+ messages in thread
From: Leo Famulari @ 2021-12-28  1:32 UTC (permalink / raw)
  To: 52837; +Cc: mail

On Tue, Dec 28, 2021 at 02:09:42AM +0300, Evgenii Lepikhin via Bug reports for GNU Guix wrote:
> Hi there,
> 
> rav1e failed to compile with error:

Alright, for now I've reverted the commits that caused the problem.

Specifically, I reverted this range of commits:
5b1ec376239602725171d4523406801b684ee195^..13d3120095e4baa03594d095b0afe9febbb7cee0

IIUC, these were pushed together.

Nicolas, can you take a look at the suggested fix shown below?

> The issue caused by commit ad1e8a0906c. Possible fix:
> 
> diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
> index e4cd01fadf..269bd991ab 100644
> --- a/gnu/packages/crates-graphics.scm
> +++ b/gnu/packages/crates-graphics.scm
> @@ -208,7 +208,7 @@ (define-public rust-aom-sys-0.2
>      (build-system cargo-build-system)
>      (arguments
>        `(#:cargo-inputs
> -        (("rust-bindgen" ,rust-bindgen-0.54)
> +        (("rust-bindgen" ,rust-bindgen-0.58)
>           ("rust-metadeps" ,rust-metadeps-1))))
>      (native-inputs
>       (list pkg-config))
> 
> 
> -- 




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52837: Failed to compile rav1e which is dependence for tons of packages
  2021-12-27 23:09 bug#52837: Failed to compile rav1e which is dependence for tons of packages Evgenii Lepikhin via Bug reports for GNU Guix
  2021-12-28  1:20 ` Leo Famulari
  2021-12-28  1:32 ` Leo Famulari
@ 2021-12-28  3:04 ` 0xFA11BABE via Bug reports for GNU Guix
  2021-12-28  6:01 ` bug#52837: We need deeper research Evgenii Lepikhin via Bug reports for GNU Guix
  3 siblings, 0 replies; 12+ messages in thread
From: 0xFA11BABE via Bug reports for GNU Guix @ 2021-12-28  3:04 UTC (permalink / raw)
  To: 52837@debbugs.gnu.org

[-- Attachment #1: Type: text/plain, Size: 1235 bytes --]

I got the same problem.

> starting phase `build'
> Error: CliError { error: Some(failed to select a version for `clang-sys`.
> ... required by package `bindgen v0.58.1`
> ... which is depended on by `dav1d-sys v0.3.4`
> ... which is depended on by `rav1e v0.4.1 (/tmp/guix-build-rav1e-0.4.1.drv-0/rav1e-0.4.1)`
> versions that meet the requirements `^1` are: 1.0.0
>
> the package `clang-sys` links to the native library `clang`, but it conflicts with a previous package which links to `clang` as well:
> package `clang-sys v0.29.3`
> ... which is depended on by `bindgen v0.54.1`
> ... which is depended on by `aom-sys v0.2.1`
> ... which is depended on by `rav1e v0.4.1 (/tmp/guix-build-rav1e-0.4.1.drv-0/rav1e-0.4.1)`
>
> failed to select a version for `clang-sys` which could resolve this conflict), exit_code: 101 }
> error: in phase 'build': uncaught exception:
> %exception #<&invoke-error program: "cargo" arguments: ("cinstall" "--release" "--prefix=/gnu/store/83mfvccy0szp2v9v2qk8xf5wz867ndnx-rav1e-0.4.1") exit-status: 1 term-signal: #f stop-signal: #f>
> phase `build' failed after 0.7 seconds
> command "cargo" "cinstall" "--release" "--prefix=/gnu/store/83mfvccy0szp2v9v2qk8xf5wz867ndnx-rav1e-0.4.1" failed with status 1

[-- Attachment #2: Type: text/html, Size: 1445 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52837: We need deeper research
  2021-12-27 23:09 bug#52837: Failed to compile rav1e which is dependence for tons of packages Evgenii Lepikhin via Bug reports for GNU Guix
                   ` (2 preceding siblings ...)
  2021-12-28  3:04 ` 0xFA11BABE via Bug reports for GNU Guix
@ 2021-12-28  6:01 ` Evgenii Lepikhin via Bug reports for GNU Guix
  2021-12-28 19:41   ` Leo Famulari
  3 siblings, 1 reply; 12+ messages in thread
From: Evgenii Lepikhin via Bug reports for GNU Guix @ 2021-12-28  6:01 UTC (permalink / raw)
  To: 52837

Hi,

Suggested fix is insufficient because dependency on version is hard coded in the crate: https://github.com/rust-av/aom-rs/blob/ea9a45d6ec7bfd2cd0d6f9f43268d9e379bba168/aom-sys/Cargo.toml#L18

We need to update both rust-aom-sys to == 0.3.0 and rav1e to >= 0.5.0.


-- 
QA automation teamlead at Mail.ru.




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52837: Failed to compile rav1e which is dependence for tons of packages
  2021-12-28  1:32 ` Leo Famulari
@ 2021-12-28 13:46   ` Nicolas Goaziou
  2021-12-28 19:35     ` Leo Famulari
  0 siblings, 1 reply; 12+ messages in thread
From: Nicolas Goaziou @ 2021-12-28 13:46 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 52837

Hello,

Leo Famulari <leo@famulari.name> writes:

> On Tue, Dec 28, 2021 at 02:09:42AM +0300, Evgenii Lepikhin via Bug reports for GNU Guix wrote:
>> Hi there,
>> 
>> rav1e failed to compile with error:
>
> Alright, for now I've reverted the commits that caused the problem.
>
> Specifically, I reverted this range of commits:
> 5b1ec376239602725171d4523406801b684ee195^..13d3120095e4baa03594d095b0afe9febbb7cee0

Thank you.

You reverted 100+ commits but only one of them is problematic. Could you
unrevert them barring ad1e8a0906cca4f5c2fd18534a935a375161e608?

> IIUC, these were pushed together.
>
> Nicolas, can you take a look at the suggested fix shown below?

IIUC, a safe solution would be to exceptionally provide both
rust-dav1d-sys 0.3.2 (for rav1e) and 0.3.4 (for nushell), the latter
being called rust-dav1d-sys-0.3.

With this we do not have to bother updating rav1e yet.

WDYT?


Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52837: Failed to compile rav1e which is dependence for tons of packages
  2021-12-28 13:46   ` Nicolas Goaziou
@ 2021-12-28 19:35     ` Leo Famulari
  2021-12-28 20:31       ` Nicolas Goaziou
  0 siblings, 1 reply; 12+ messages in thread
From: Leo Famulari @ 2021-12-28 19:35 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 52837

On Tue, Dec 28, 2021 at 02:46:23PM +0100, Nicolas Goaziou wrote:
> You reverted 100+ commits but only one of them is problematic. Could you
> unrevert them barring ad1e8a0906cca4f5c2fd18534a935a375161e608?

I did so like this:

`git cherry-pick 5b1ec376239602725171d4523406801b684ee195^..13d3120095e4baa03594d095b0afe9febbb7cee0 && \
git revert ad1e8a0906cca4f5c2fd18534a935a375161e608`

Then, rav1e (and FFmpeg) built successfully.

So, I pushed as 9309b488ca4ceef4fcc9283546e3b05c57b16ca8.

> IIUC, a safe solution would be to exceptionally provide both
> rust-dav1d-sys 0.3.2 (for rav1e) and 0.3.4 (for nushell), the latter
> being called rust-dav1d-sys-0.3.
> 
> With this we do not have to bother updating rav1e yet.
> 
> WDYT?

Sounds like a plan. Are you able to do it?




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52837: We need deeper research
  2021-12-28  6:01 ` bug#52837: We need deeper research Evgenii Lepikhin via Bug reports for GNU Guix
@ 2021-12-28 19:41   ` Leo Famulari
  2021-12-29  8:42     ` Evgenii Lepikhin via Bug reports for GNU Guix
  0 siblings, 1 reply; 12+ messages in thread
From: Leo Famulari @ 2021-12-28 19:41 UTC (permalink / raw)
  To: 52837

On Tue, Dec 28, 2021 at 09:01:07AM +0300, Evgenii Lepikhin via Bug reports for GNU Guix wrote:
> Hi,
> 
> Suggested fix is insufficient because dependency on version is hard coded in the crate: https://github.com/rust-av/aom-rs/blob/ea9a45d6ec7bfd2cd0d6f9f43268d9e379bba168/aom-sys/Cargo.toml#L18
> 
> We need to update both rust-aom-sys to == 0.3.0 and rav1e to >= 0.5.0.

Okay, that's good to know. I hope that somebody will try it and report
back.




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52837: Failed to compile rav1e which is dependence for tons of packages
  2021-12-28 19:35     ` Leo Famulari
@ 2021-12-28 20:31       ` Nicolas Goaziou
  2021-12-28 21:29         ` Leo Famulari
  0 siblings, 1 reply; 12+ messages in thread
From: Nicolas Goaziou @ 2021-12-28 20:31 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 52837

Hello,

Leo Famulari <leo@famulari.name> writes:

> So, I pushed as 9309b488ca4ceef4fcc9283546e3b05c57b16ca8.

Thanks!
>
>> IIUC, a safe solution would be to exceptionally provide both
>> rust-dav1d-sys 0.3.2 (for rav1e) and 0.3.4 (for nushell), the latter
>> being called rust-dav1d-sys-0.3.
>> 
>> With this we do not have to bother updating rav1e yet.
>> 
>> WDYT?
>
> Sounds like a plan. Are you able to do it?

This is now done on master. AFAICT both nushell and rav1e build. I'll
let the OP confirm the issue is fixed and close the bug report.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52837: Failed to compile rav1e which is dependence for tons of packages
  2021-12-28 20:31       ` Nicolas Goaziou
@ 2021-12-28 21:29         ` Leo Famulari
  0 siblings, 0 replies; 12+ messages in thread
From: Leo Famulari @ 2021-12-28 21:29 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 52837

On Tue, Dec 28, 2021 at 09:31:19PM +0100, Nicolas Goaziou wrote:
> This is now done on master. AFAICT both nushell and rav1e build. I'll
> let the OP confirm the issue is fixed and close the bug report.

Thanks!

I noticed that Guix complained about "possibly undefined variables" for
llvm and clang and rust-dav1d-sys-0.3.2 failed to build, so I pushed a
commit that imports the LLVM module in (gnu package video).

At first I was confused because rav1e still built, but our Rust
packaging doesn't require dependencies to build.




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52837: We need deeper research
  2021-12-28 19:41   ` Leo Famulari
@ 2021-12-29  8:42     ` Evgenii Lepikhin via Bug reports for GNU Guix
  2021-12-29 13:57       ` Nicolas Goaziou
  0 siblings, 1 reply; 12+ messages in thread
From: Evgenii Lepikhin via Bug reports for GNU Guix @ 2021-12-29  8:42 UTC (permalink / raw)
  To: Leo Famulari; +Cc: 52837


On 2021-12-28 14:41, Leo Famulari wrote:

>> We need to update both rust-aom-sys to == 0.3.0 and rav1e to >= 0.5.0.
>
> Okay, that's good to know. I hope that somebody will try it and report
> back.

Now it is fixed.

Thank you.


-- 
QA automation teamlead at Mail.ru.




^ permalink raw reply	[flat|nested] 12+ messages in thread

* bug#52837: We need deeper research
  2021-12-29  8:42     ` Evgenii Lepikhin via Bug reports for GNU Guix
@ 2021-12-29 13:57       ` Nicolas Goaziou
  0 siblings, 0 replies; 12+ messages in thread
From: Nicolas Goaziou @ 2021-12-29 13:57 UTC (permalink / raw)
  To: Evgenii Lepikhin via Bug reports for GNU Guix; +Cc: 52837-done

Hello,

Evgenii Lepikhin via Bug reports for GNU Guix <bug-guix@gnu.org> writes:

> Now it is fixed.

Closing it, then. Thanks for the feedback.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2021-12-29 13:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-27 23:09 bug#52837: Failed to compile rav1e which is dependence for tons of packages Evgenii Lepikhin via Bug reports for GNU Guix
2021-12-28  1:20 ` Leo Famulari
2021-12-28  1:32 ` Leo Famulari
2021-12-28 13:46   ` Nicolas Goaziou
2021-12-28 19:35     ` Leo Famulari
2021-12-28 20:31       ` Nicolas Goaziou
2021-12-28 21:29         ` Leo Famulari
2021-12-28  3:04 ` 0xFA11BABE via Bug reports for GNU Guix
2021-12-28  6:01 ` bug#52837: We need deeper research Evgenii Lepikhin via Bug reports for GNU Guix
2021-12-28 19:41   ` Leo Famulari
2021-12-29  8:42     ` Evgenii Lepikhin via Bug reports for GNU Guix
2021-12-29 13:57       ` Nicolas Goaziou

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).