Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913141 - sci-libs/cantera-2.6.0-r2 fails to compile (PYTHON-3.12-SYSTEM): func1.pyx:89:38: Cannot assign type double (double, void , void ) except? -1 to callback_wrapper
Summary: sci-libs/cantera-2.6.0-r2 fails to compile (PYTHON-3.12-SYSTEM): func1.pyx:89...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sergey Torokhov
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: cython3-tracker
  Show dependency tree
 
Reported: 2023-08-28 07:21 UTC by Agostino Sarubbo
Modified: 2023-10-27 02:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,155.41 KB, text/plain)
2023-08-28 07:21 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-08-28 07:21:22 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sci-libs/cantera-2.6.0-r2 fails to compile (PYTHON-3.12-SYSTEM).
Discovered on: amd64 (internal ref: python-3.12_tinderbox)

NOTE:
(PYTHON-3.12-SYSTEM) in the summary means that the bug was found on a machine that runs python-3.12 but this bug MAY or MAY NOT BE related to the new python version
Comment 1 Agostino Sarubbo gentoo-dev 2023-08-28 07:21:24 UTC
Created attachment 868855 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-08-28 07:21:25 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


Cython.Compiler.Errors.CompileError: build/python/cantera/_cantera.pyx
build/python/cantera/func1.pyx:89:38: Cannot assign type 'double (double, void *, void **) except? -1' to 'callback_wrapper'. Exception values are incompatible. Suggest adding 'noexcept' to type 'double (double, void *, void **) except? -1'.
Comment 3 Sergey Torokhov 2023-08-28 18:59:34 UTC
Cantera 3.0.0 was released resently. I didn't check beta with python 3.12 but maybe it's fixed there.

If issue is present for 3.0.0 I will report to upstream.
Comment 4 Sergey Torokhov 2023-08-28 21:53:09 UTC
This is Cython-3.0.x related issue (not Python 3.12). New Cantera 3.0.0 recent release (it takes place on last week) isn't affected this issue. I will bump it's version after some additional testing.

But Cantera-2.6.0 seems should be restricted with "<dev-python/cython-3.0.0" (i.e. <=dev-python/cython-0.29.36).
Comment 5 Larry the Git Cow gentoo-dev 2023-08-28 22:57:55 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9e9a1de3acf6e766bc86f39084c7b38d13f5d95

commit c9e9a1de3acf6e766bc86f39084c7b38d13f5d95
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-08-28 22:56:22 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-08-28 22:56:22 +0000

    sci-libs/cantera: depend on <cython-3
    
    Fixed in new upstream release which will be packaged soon.
    
    Bug: https://bugs.gentoo.org/913141
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-libs/cantera/cantera-2.6.0-r2.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Comment 6 Sergey Torokhov 2023-10-14 07:25:21 UTC
The sci-libs/cantera-3.0.0 version bump pull request is ready. New version resolves this issue.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-10-14 07:27:40 UTC
(In reply to Sergey Torokhov from comment #6)
> The sci-libs/cantera-3.0.0 version bump pull request is ready. New version
> resolves this issue.

Sorry Sergey, I have been quite busy IRL. I will get to this today.
Comment 8 Larry the Git Cow gentoo-dev 2023-10-27 02:34:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=406802a99084b8c9bf57e9b5f7bad816e86ad821

commit 406802a99084b8c9bf57e9b5f7bad816e86ad821
Author:     Sergey Torokhov <torokhov-s-a@yandex.ru>
AuthorDate: 2023-09-03 20:43:37 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-10-27 02:30:38 +0000

    sci-libs/cantera: 3.0.0 version bump
    
    New release is compatible with cython-3.
    
    The USE="cti" is dropped due to supplied converters have restricted
    functionality or doesn't work (yaml2ck) without full python support.
    
    Python examples aren't provided within tarball since this release.
    
    USE="lapack" support is still restricted using >=sundials-6.5.0.
    
    Closes: https://bugs.gentoo.org/913141
    Bug: https://bugs.gentoo.org/888667
    
    Signed-off-by: Sergey Torokhov <torokhov-s-a@yandex.ru>
    Signed-off-by: Sam James <sam@gentoo.org>

 sci-libs/cantera/Manifest                      |   1 +
 sci-libs/cantera/cantera-3.0.0.ebuild          | 139 +++++++++++++++++++++++++
 sci-libs/cantera/files/cantera-3.0.0_env.patch |  25 +++++
 sci-libs/cantera/metadata.xml                  |   3 +-
 4 files changed, 167 insertions(+), 1 deletion(-)