10.7: unable to compile contourpy-1.3.1

50 views
Skip to first unread message

Harald Schilly

unread,
Aug 18, 2025, 10:37:03 AMAug 18
to sage-devel
Hi, I'm trying to compile Sage 10.7 for CoCalc, i.e. an Ubuntu 24.04 environment. However, so far I am unable to compile it. I tried to enable/disable a couple of packages that seem to be related, but no luck.

Attached is the contourpy-1.3.1 log

My most recent attempt had that configuration:

./configure --with-system-ninja_build=no --with-system-contourpy=no --with-system-pybind=no --with-system-cmake=no

Any ideas what I could try are welcome :-)

-- Harald
contourpy-1.3.1.log

Dima Pasechnik

unread,
Aug 18, 2025, 4:52:57 PMAug 18
to sage-...@googlegroups.com, Harald Schilly
On Mon, Aug 18, 2025 at 9:37 AM Harald Schilly <harald....@gmail.com> wrote:
>
> Hi, I'm trying to compile Sage 10.7 for CoCalc, i.e. an Ubuntu 24.04 environment. However, so far I am unable to compile it. I tried to enable/disable a couple of packages that seem to be related, but no luck.
>
> Attached is the contourpy-1.3.1 log

[spkg-install] Run-time dependency pybind11 found: YES 2.11.1

tells you that a wrong pybind11 is used.
So a quick fix would be to uninstall it, and try again.
(this is known to work - I think it's the 2nd such report)

It would be great if you tried a more consistent way: removing
`--no-build-isolation` in the last line of
build/pkgs/contourpy/spkg-install.in

(this option causes an old buggy pybind11 to be picked; by the way, I
don't think you need to ban system cmake or ninja in the ./configure
call)




>
> My most recent attempt had that configuration:
>
> ./configure --with-system-ninja_build=no --with-system-contourpy=no --with-system-pybind=no --with-system-cmake=no
>
> Any ideas what I could try are welcome :-)
>
> -- Harald
>
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/sage-devel/f3370fd0-94cc-4614-855c-07477a101482n%40googlegroups.com.

Harald Schilly

unread,
Aug 18, 2025, 4:53:18 PMAug 18
to Dima Pasechnik, sage-...@googlegroups.com
Dima, thank you for the quick response!

So, removing the system's pybind11 isn't really an option, at least one tool depends on it, which is required to be installed.

I don't know much about the build setup, but is there a way to just tell it to not use pybind11? I'm happy to edit any file!

(I changed the build/pkgs/contourpy/spkg-install.in but as far as I can tell that didn't change anything)

-- Harald

Dima Pasechnik

unread,
Aug 18, 2025, 7:14:11 PMAug 18
to sage-...@googlegroups.com, Harald Schilly
I proposed the upstream if not a complete fix, but at least an
improvement w.r.t. the current situation
https://github.com/contourpy/contourpy/pull/498

John Cremona

unread,
Aug 19, 2025, 5:47:28 AMAug 19
to sage-devel
Harald, I had the same issue and Dima made the same suggestion, and it worked fine.  Thanks, Dima, I think I forgot to say.

John
Reply all
Reply to author
Forward
0 new messages