GNU bug report logs - #49171
OCaml packages not building (due to updated python-pyyaml)

Previous Next

Package: guix;

Reported by: pukkamustard <pukkamustard <at> posteo.net>

Date: Tue, 22 Jun 2021 17:03:02 UTC

Severity: normal

Done: Julien Lepiller <julien <at> lepiller.eu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49171 in the body.
You can then email your comments to 49171 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#49171; Package guix. (Tue, 22 Jun 2021 17:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to pukkamustard <pukkamustard <at> posteo.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Tue, 22 Jun 2021 17:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: pukkamustard <pukkamustard <at> posteo.net>
To: bug-guix <at> gnu.org
Subject: OCaml packages not building (due to updated python-pyyaml)
Date: Tue, 22 Jun 2021 16:47:07 +0000
Hi Guix,

With commit ac02d423d3fcb11048ee2e4a02626fca40cf1419, which 
updated python-pyyaml to 5.4.1 (from 5.3.1) lot of OCaml packages 
fail to build.

This seems to be due to ocaml-dose3 that has python2-pyyaml as 
dependency for tests. ocaml-dose3 is a dependency of opam - a 
dependency of many OCaml packages.

The output when trying to build ocaml-dose3:

----------------------------------------------------------
phase `build' succeeded after 14.5 seconds
starting phase `check'
/tmp/guix-build-ocaml-dose3-5.0.1.drv-0/dose3-5.0.1
ocamlbuild  -j 10 applications/apps.otarget
# No parallelism done
make testlib
make[1]: Entering directory 
'/tmp/guix-build-ocaml-dose3-5.0.1.drv-0/dose3-5.0.1'
echo

make[1]: Leaving directory 
'/tmp/guix-build-ocaml-dose3-5.0.1.drv-0/dose3-5.0.1'
applications/dose-tests.py applications/dose-tests.list
Traceback (most recent call last):
 File "applications/dose-tests.py", line 17, in <module>
   warning('YAML C-library not available, falling back to 
   python')
NameError: name 'warning' is not defined
make: *** [Makefile:206: test] Error 1
command "make" "test" 
"LIBDIR=/gnu/store/v939nvdn67cdgb7rjkyvplfw1qr2hkjl-ocaml-dose3-5.0.1/lib/ocaml/site-lib" 
failed with status 2
note: keeping build directory 
`/tmp/guix-build-ocaml-dose3-5.0.1.drv-3'
builder for 
`/gnu/store/lybbyb38k0009jrbviymq88vi6xak5ii-ocaml-dose3-5.0.1.drv' 
failed with exit code 1
build of 
/gnu/store/lybbyb38k0009jrbviymq88vi6xak5ii-ocaml-dose3-5.0.1.drv 
failed
View build log at 
'/var/log/guix/drvs/ly/bbyb38k0009jrbviymq88vi6xak5ii-ocaml-dose3-5.0.1.drv.bz2'.
guix build: error: build of 
`/gnu/store/lybbyb38k0009jrbviymq88vi6xak5ii-ocaml-dose3-5.0.1.drv' 
failed
----------------------------------------------------------

This seems to also be what CI is encoutering: 
https://ci.guix.gnu.org/build/623375/details

Any ideas? Any other packages failing for the same reason?

Would disabling tests for ocaml-dose3 be an acceptable quick hack?

Cheers,
pukkamustard




Information forwarded to bug-guix <at> gnu.org:
bug#49171; Package guix. (Wed, 23 Jun 2021 11:14:02 GMT) Full text and rfc822 format available.

Message #8 received at 49171 <at> debbugs.gnu.org (full text, mbox):

From: pukkamustard <pukkamustard <at> posteo.net>
To: Xinglu Chen <public <at> yoctocell.xyz>
Cc: 49171 <at> debbugs.gnu.org, 49183 <at> debbugs.gnu.org, guix-patches <at> gnu.org
Subject: Re: [bug#49183] [PATCH] gnu: ocaml-dose3: Fix tests.
Date: Wed, 23 Jun 2021 11:09:44 +0000
Neat. Thanks!

Fixes the test and looks got to me.

> No idea why one would use Python to test OCaml code...

Yeah, makes one wonder. At least they've updated to Python3 
(https://gitlab.com/irill/dose3/-/blob/master/CHANGES#L33) 
recently.




Reply sent to Julien Lepiller <julien <at> lepiller.eu>:
You have taken responsibility. (Wed, 23 Jun 2021 12:47:02 GMT) Full text and rfc822 format available.

Notification sent to pukkamustard <pukkamustard <at> posteo.net>:
bug acknowledged by developer. (Wed, 23 Jun 2021 12:47:02 GMT) Full text and rfc822 format available.

Message #13 received at 49171-done <at> debbugs.gnu.org (full text, mbox):

From: Julien Lepiller <julien <at> lepiller.eu>
To: pukkamustard <pukkamustard <at> posteo.net>
Cc: 49183-done <at> debbugs.gnu.org, 49171-done <at> debbugs.gnu.org,
 Xinglu Chen <public <at> yoctocell.xyz>
Subject: Re: [bug#49183] [PATCH] gnu: ocaml-dose3: Fix tests.
Date: Wed, 23 Jun 2021 14:45:52 +0200
Le Wed, 23 Jun 2021 11:09:44 +0000,
pukkamustard <pukkamustard <at> posteo.net> a écrit :

> Neat. Thanks!
> 
> Fixes the test and looks got to me.
> 
> > No idea why one would use Python to test OCaml code...  
>  
> Yeah, makes one wonder. At least they've updated to Python3 
> (https://gitlab.com/irill/dose3/-/blob/master/CHANGES#L33) 
> recently.
> 
> 
> 

Thanks! Pushed as 91b29aa37394b660117e1d79927621db1344b7fe.




Information forwarded to bug-guix <at> gnu.org:
bug#49171; Package guix. (Sun, 04 Jul 2021 13:16:01 GMT) Full text and rfc822 format available.

Message #16 received at 49171 <at> debbugs.gnu.org (full text, mbox):

From: Xinglu Chen <public <at> yoctocell.xyz>
To: pukkamustard <pukkamustard <at> posteo.net>, 49171 <at> debbugs.gnu.org
Subject: Re: bug#49171: OCaml packages not building (due to updated
 python-pyyaml)
Date: Sun, 04 Jul 2021 15:14:54 +0200
[Message part 1 (text/plain, inline)]
On Tue, Jun 22 2021, pukkamustard wrote:

> Hi Guix,
>
> With commit ac02d423d3fcb11048ee2e4a02626fca40cf1419, which 
> updated python-pyyaml to 5.4.1 (from 5.3.1) lot of OCaml packages 
> fail to build.
>
> This seems to be due to ocaml-dose3 that has python2-pyyaml as 
> dependency for tests. ocaml-dose3 is a dependency of opam - a 
> dependency of many OCaml packages.
>
> The output when trying to build ocaml-dose3:
>
> ----------------------------------------------------------
> phase `build' succeeded after 14.5 seconds
> starting phase `check'
> /tmp/guix-build-ocaml-dose3-5.0.1.drv-0/dose3-5.0.1
> ocamlbuild  -j 10 applications/apps.otarget
> # No parallelism done
> make testlib
> make[1]: Entering directory 
> '/tmp/guix-build-ocaml-dose3-5.0.1.drv-0/dose3-5.0.1'
> echo
>
> make[1]: Leaving directory 
> '/tmp/guix-build-ocaml-dose3-5.0.1.drv-0/dose3-5.0.1'
> applications/dose-tests.py applications/dose-tests.list
> Traceback (most recent call last):
>   File "applications/dose-tests.py", line 17, in <module>
>     warning('YAML C-library not available, falling back to 
>     python')
> NameError: name 'warning' is not defined
> make: *** [Makefile:206: test] Error 1
> command "make" "test" 
> "LIBDIR=/gnu/store/v939nvdn67cdgb7rjkyvplfw1qr2hkjl-ocaml-dose3-5.0.1/lib/ocaml/site-lib" 
> failed with status 2
> note: keeping build directory 
> `/tmp/guix-build-ocaml-dose3-5.0.1.drv-3'
> builder for 
> `/gnu/store/lybbyb38k0009jrbviymq88vi6xak5ii-ocaml-dose3-5.0.1.drv' 
> failed with exit code 1
> build of 
> /gnu/store/lybbyb38k0009jrbviymq88vi6xak5ii-ocaml-dose3-5.0.1.drv 
> failed
> View build log at 
> '/var/log/guix/drvs/ly/bbyb38k0009jrbviymq88vi6xak5ii-ocaml-dose3-5.0.1.drv.bz2'.
> guix build: error: build of 
> `/gnu/store/lybbyb38k0009jrbviymq88vi6xak5ii-ocaml-dose3-5.0.1.drv' 
> failed
> ----------------------------------------------------------
>
> This seems to also be what CI is encoutering: 
> https://ci.guix.gnu.org/build/623375/details
>
> Any ideas? Any other packages failing for the same reason?
>
> Would disabling tests for ocaml-dose3 be an acceptable quick hack?
>
> Cheers,
> pukkamustard

I think this was fixed in commit
91b29aa37394b660117e1d79927621db1344b7fe (gnu: ocaml-dose3: Fix tests.),
do you think we can close the issue?
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#49171; Package guix. (Sun, 04 Jul 2021 21:31:02 GMT) Full text and rfc822 format available.

Message #19 received at 49171 <at> debbugs.gnu.org (full text, mbox):

From: pukkamustard <pukkamustard <at> posteo.net>
To: Xinglu Chen <public <at> yoctocell.xyz>
Cc: 49171 <at> debbugs.gnu.org
Subject: Re: bug#49171: OCaml packages not building (due to updated
 python-pyyaml)
Date: Sun, 04 Jul 2021 21:23:18 +0000
Xinglu Chen <public <at> yoctocell.xyz> writes:

> I think this was fixed in commit
> 91b29aa37394b660117e1d79927621db1344b7fe (gnu: ocaml-dose3: Fix 
> tests.),
> do you think we can close the issue?

Yup, was fixed and already closed by Julien (see 
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=49171#13).




Information forwarded to bug-guix <at> gnu.org:
bug#49171; Package guix. (Mon, 05 Jul 2021 17:11:02 GMT) Full text and rfc822 format available.

Message #22 received at 49171 <at> debbugs.gnu.org (full text, mbox):

From: Xinglu Chen <public <at> yoctocell.xyz>
To: pukkamustard <pukkamustard <at> posteo.net>
Cc: 49171 <at> debbugs.gnu.org
Subject: Re: bug#49171: OCaml packages not building (due to updated
 python-pyyaml)
Date: Mon, 05 Jul 2021 19:10:27 +0200
[Message part 1 (text/plain, inline)]
On Sun, Jul 04 2021, pukkamustard wrote:

> Xinglu Chen <public <at> yoctocell.xyz> writes:
>
>> I think this was fixed in commit
>> 91b29aa37394b660117e1d79927621db1344b7fe (gnu: ocaml-dose3: Fix 
>> tests.),
>> do you think we can close the issue?
>
> Yup, was fixed and already closed by Julien (see 
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=49171#13).

Oh, I didn’t check the Web UI, sorry for the noise.
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 03 Aug 2021 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 260 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.