Search Criteria
Package Details: python-graph-tool 2.48-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/python-graph-tool.git (read-only, click to copy) |
---|---|
Package Base: | python-graph-tool |
Description: | A Python module for manipulation and statistical analysis of graphs |
Upstream URL: | https://graph-tool.skewed.de |
Keywords: | graphs networks science |
Licenses: | LGPL3 |
Conflicts: | python3-graph-tool |
Provides: | python3-graph-tool |
Replaces: | python3-graph-tool |
Submitter: | muellner |
Maintainer: | count0 |
Last Packager: | count0 |
Votes: | 29 |
Popularity: | 0.000292 |
First Submitted: | 2013-11-24 19:22 (UTC) |
Last Updated: | 2023-03-20 10:27 (UTC) |
Dependencies (15)
- boost-libs (boost171, boost-libs-git, boost174-libs)
- cairomm-1.16
- cgal (cgal-git)
- expat (expat-git)
- python (nogil-python, python36, python32, python39, python38, python37, python311, python312)
- python-cairo (python-cairo-git)
- python-gobject (python-gobject-git)
- python-numpy (python-numpy-git, python-numpy1.22, python-numpy-openblas, python-numpy-mkl-bin, python-numpy-mkl, python-numpy-flame)
- python-scipy (python-scipy-git, python-scipy-mkl, python-scipy-mkl-bin)
- python-zstandard
- autoconf-archive (autoconf-archive-git) (make)
- boost (boost-git, boost174) (make)
- sparsehash (make)
- graphviz (optional) – graph layout
- python-matplotlib (python-matplotlib-git) (optional) – graph drawing
Latest Comments
1 2 3 4 5 6 .. 15 Next › Last »
count0 commented on 2022-12-09 13:51 (UTC)
I've incorporated your suggestion, which indeed is enough to prevent the runtime errors.
I've investigated further and found the source of the problem. It's entirely innocuous, and the vector access in question would be completely optimized away if it weren't for the assert itself. 🤦
I've fixed it upstream, but I will keep this fix here, since I don't understand why asserts should be turned on by default in production code. The assert that fails here is evoked in every vector access!!! I'm glad the user got an error instead of a super slow code... Otherwise this performance regression would have passed unnoticed.
lahwaacz commented on 2022-12-09 07:05 (UTC)
@count0 OK, I've got it. In that case, I propose the following which removes the one flag from default
/etc/makepkg.conf
which triggers the assertions:Those assertion errors still indicate an error, though. Some code in graph-tool or boost-python or something is most likely abusing the STL. Has anyone reported the issue?
jg-you commented on 2022-12-09 02:29 (UTC)
@count0 Thanks for the patch; I just successfully rebuilt from the AUR and do not get STL assertion errors anymore.
count0 commented on 2022-12-08 22:45 (UTC)
@lahwaacz Building the package is not the issue — the problem here are the arbitrary assertion errors that come from within STL code. Take a look at the example from @johnabs below. Are you able to reproduce this error?
lahwaacz commented on 2022-12-08 20:02 (UTC)
@count0: Your change completely disregards all CXXFLAGS set in /etc/makepkg.conf which goes against the Arch package guidelines. Can you explain the "pollution" and which flags actually make the build fail?
FWIW, I just successfully built the package before the last change (using a clean chroot), which resulted in these flags being used:
count0 commented on 2022-12-08 18:37 (UTC)
The problems below are due to the pollution of CXXFLAGS with some unnecessary and destructive flags. I've pushed a new version of the package the prevents this from happening. Please test!
jg-you commented on 2022-12-08 18:15 (UTC)
Confirming that I am getting the same assertion failure as @johnabs and @chmue with the AUR version and that a git build works.
chmue commented on 2022-10-18 12:21 (UTC) (edited on 2022-10-18 12:24 (UTC) by chmue)
I tried building this package and ran into the same issues as @johnabs: The compilation would finish without errors but when I run the block model test code from below, it would give the same assertion error. I also tried removing the LTO CXXFLAGS as suggested here and reran
makepkg
but the error with the block model code was still there.I proceeded to build the package directly from git (without makepkg):
The block model works after this!
YMMV (and you want to adjust DESTDIR) but I got it to work like this. The "issue" might stem from additional CXXFLAGS which are added by
makepkg
to make the executable more stable and safer to use so building directly from git does not "solve" the problem. I hope it helps if you desperately need to get the package to work (like me) and maybe as a hint to look into CXXFLAGS as the root of the issue.Config snippet with flags:
johnabs commented on 2022-08-22 21:19 (UTC) (edited on 2022-08-23 03:00 (UTC) by johnabs)
Okay, I tried rebuilding without LTO (twice for good measure). Here's the configuration summary, the only thing I changed in the pkgbuild was line 24 and removed the following: -flto=auto -fno-fat-lto-objects.
One thing I noticed was that in the config summary the -DNDEBUG flag was enabled, but I didn't do this, and apparently this is an issue according to count0's initial comment on this issue.
count0, just to make sure, is your build system fully up-to-date, and did you clear your pacman cache before doing your latest test build with the most recent pkgbuild file on the aur? I just want to make sure we can rule out everything that could by different and causing such an issue, as at this stage, I've done everything I can think of to isolate the issue and with no success, I'm guessing due to the fact that I am not an expert on C++.
If there is any other information I can provide, please let me know. According to npfeiler, apparently this issue is reproducible, though the fix he suggested didn't work for me (unless I failed to implement it properly).
johnabs commented on 2022-08-22 16:51 (UTC) (edited on 2022-08-22 16:54 (UTC) by johnabs)
Just a heads up; I fully updated arch, reinstalled graph tool and tried again, and I'm still getting the same error :/
Edit: Thanks npfeiler, I misread can as can't. I'll try disabling LTO and rebuilding, and I'll let you know what I get. Could you let me know what changes you made to the pkgbuild to disable it? Is it just -flto=false?
1 2 3 4 5 6 .. 15 Next › Last »