-
-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
building libgd must fail if it does not get all of its dependencies #27901
Comments
Changed keywords from none to libgd libpng cygwin macos |
comment:1
Perhaps purely out of personal interest I'm moving this up to blocker. |
comment:2
Okay, at least as described this is not the problem I'm having. Upon rebuilding libgd I get the following configuration:
I assume we don't care about JPEG? |
comment:3
I got curious about what we actually use libgd for in the first place. Apparently it is only used in some little-used(?? I see no use within Sage itself...) to bitmap matrices in Z_2 to a PNG image. Maybe sometimes interesting to look at, but does anyone use this? And is there any reason we explicitly need this library to do it efficiently? It really looks like the only thing it's used for. Apparently there is also some support for unpickling a matrix from such a PNG image. Weird. |
comment:4
So in my case I have a libgd that is compiled with PNG support, and linked against the libpng16 in Sage, at least presumably, and it still fails to load. If, out of curiosity, I manually comment out all the parts of matrix_mod2_dense.pyx that use libgd, and remove its requirement from the link flags for that module, it imports fine. So there is definitely something about the libgd requirement that is blowing up, but I can't figure out easily what it is for some reason. I'm trying now with rebuilding libpng (and in turn all its dependents of which there are many) in the off chance that can tell me anything... |
comment:5
Still having some very bizarre problems related to loading I even hypothesized whether it was a problem with using some of the system libraries for xz, bz2, or more likely zlib, but even disabling those (and building them in Sage) didn't make the problem go away. Meanwhile, I have a build of Sage in another directory where I experimented with using the system libgd (#27825) and it works! No problem. At the very least that's a point in favor of moving forward on #27825. But this is still very fishy and I need to get to the bottom of it. It turns out I will likely need to use WinDBG to have any hope of seeing what's going wrong here. |
comment:6
The Cygwin problem I was discussing here is fixed by #27970, ironically due to libgd using too many (more than necessary) of its possible dependencies. |
comment:7
Moving open critical and blocker issues to the next release milestone (optimistically). |
comment:8
Any progress here? This doesn't seem to be affecting a lot of users, I don't think it should be a blocker. But if a fix materializes real soon then I'm open to merging it... |
comment:10
We should check, somehow, (in the |
comment:11
hmm, do you mean "check in |
This comment has been minimized.
This comment has been minimized.
comment:14
Workaround for the
on Fedora 34 is to set
|
comment:15
Confirmed, sage 9.4.beta0 compiles with that option. I declared it using |
comment:16
I've made a patch at #31879 |
We get errors like libpng not being linked to libgd, and then oops,
things get broken.
Also, as reported in #31624 comment:28, on
fedora-34
C++ ABI issues in optional dependencies oflibgd
cause trouble.CC: @enriqueartal
Component: build
Keywords: libgd libpng cygwin macos
Issue created by migration from https://trac.sagemath.org/ticket/27901
The text was updated successfully, but these errors were encountered: