Summary: | sci-libs/mpir-3.0.0-r1 with lto: get_d.c:125:34: error: storage size of ‘u’ isn’t known | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | WGH <wgh> |
Component: | Current packages | Assignee: | Gentoo Science Related Packages <sci> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | eschwartz93, ionen, mjo, treecleaner, zerochaos |
Priority: | Normal | Keywords: | PMASKED |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 618550 | ||
Attachments: | build.log |
Description
WGH
2021-09-13 14:54:53 UTC
Created attachment 739192 [details]
build.log
>-flto=24
Where's this -flto coming from? I don't see it in your CFLAGS
But either way, it's caused by lto.
I have LTO enabled for all sci-*/* packages through package.env thing. I can confirm that indeed builds without lto. I think this should just be treecleaned. It's an optimized fork of dev-libs/gmp, but has fallen too far behind to be useful. (In reply to Michael Orlitzky from comment #5) > I think this should just be treecleaned. It's an optimized fork of > dev-libs/gmp, but has fallen too far behind to be useful. And it fails tests with >= GCC-12 (bug 925308). Inside of acinclude.m4's GMP_PROG_CC_WORKS_PART([$1], [long long reliability test 1], it produces a conftest that fails with -Werror=implicit-int -Werror=implicit-function-declaration and results in ./configure completely failing due to checking compiler x86_64-pc-linux-gnu-gcc -march=native -fstack-protector-all -O2 -pipe -fdiagnostics-color=always -frecord-gcc-switches -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-clash-protection -flto=4 -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing -Wformat -Werror=format-security -Werror=implicit-function-declaration -Werror=implicit-int -Werror=int-conversion -Werror=incompatible-pointer-types ... no, long long reliability test 1 configure: error: could not find a working compiler, see config.log for details The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8c2b35f50a01d401be9c29abe6d720804ebbe44 commit a8c2b35f50a01d401be9c29abe6d720804ebbe44 Author: Eli Schwartz <eschwartz93@gmail.com> AuthorDate: 2024-02-29 23:39:22 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-02-29 23:57:40 +0000 dev-ml/zarith: remove support for mpir USE flag mpir is an ancient fork of gmp from 2017. It claims to be focused on speed. It doesn't build with modern compilers due to Modern C issues, and it fails to build with LTO as well. Unlike gmp, this will never be fixed. Bug: https://bugs.gentoo.org/812950 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> dev-ml/zarith/zarith-1.13.ebuild | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97ba9187a8c14f6773d4402d4681bb0c66157990 commit 97ba9187a8c14f6773d4402d4681bb0c66157990 Author: Eli Schwartz <eschwartz93@gmail.com> AuthorDate: 2024-02-29 23:32:47 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-02-29 23:57:39 +0000 app-office/libalkimia: remove gmp USE flag, force it instead of mpir mpir is an ancient fork of gmp from 2017. It claims to be focused on speed. It doesn't build with modern compilers due to Modern C issues, and it fails to build with LTO as well. Unlike gmp, this will never be fixed. Bug: https://bugs.gentoo.org/812950 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> .../{libalkimia-8.1.2.ebuild => libalkimia-8.1.2-r1.ebuild} | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9a290239287bf9a67b1e6ef31d50d8d95954fca commit c9a290239287bf9a67b1e6ef31d50d8d95954fca Author: Eli Schwartz <eschwartz93@gmail.com> AuthorDate: 2024-03-01 00:11:18 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-03-01 00:32:31 +0000 media-gfx/meshlab: remove various totally erroneous dependencies mpir: mpir is an ancient fork of gmp from 2017. It claims to be focused on speed. It doesn't build with modern compilers due to Modern C issues, and it fails to build with LTO as well. Unlike gmp, this will never be fixed. meshlab can look for either mpir or gmp, but we depended on BOTH and only gmp got used. mpir was completely extraneous. levmar: It would be great if we could use the system levmar, as meshlab genuinely depends on it. But it hardcodes a vendored copy: https://github.com/cnr-isti-vclab/meshlab/blob/bd88167db9839109487f401be50991c4bc990d27/src/external/levmar.cmake qhull: Currently, the build logs this: -- Could NOT find Qhull: missing: libqhull (found /usr/lib64/cmake/Qhull/QhullConfig.cmake (found version "8.0.2")) This happens because cmake is broken, probably. But meshlab 2021 ports to libqhull_r, which "should" work fine. Pity we are stuck in 2020 instead. We really could and should use the system copy but the build system cannot and does not detect it, which means we shouldn't be depending on something we cannot use. Bug: https://bugs.gentoo.org/905859 Bug: https://bugs.gentoo.org/812950 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> .../{meshlab-2020.12-r2.ebuild => meshlab-2020.12-r3.ebuild} | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6988357743d4db2556673e90357017d2e230206 commit e6988357743d4db2556673e90357017d2e230206 Author: Eli Schwartz <eschwartz93@gmail.com> AuthorDate: 2024-03-01 00:41:27 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-03-01 00:48:29 +0000 net-wireless/gnuradio: remove erroneous dependency on mpir mpir is an ancient fork of gmp from 2017. It claims to be focused on speed. It doesn't build with modern compilers due to Modern C issues, and it fails to build with LTO as well. Unlike gmp, this will never be fixed. gnuradio checks for "MPLIB", which is internally implemented by first checking for gmp, and if gmp cannot be found, checking for mpir. mpir was never required, and if gmp happened to be installed, it would be an automagic dependency. Furthermore, there was a USE-conditional dependency on gmp for wavelets, which I am not sure makes sense but when triggered, resulted in a forced gmp dependency that then guaranteed mpir wouldn't be used. Bug: https://bugs.gentoo.org/812950 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> .../{gnuradio-3.10.9.2-r1.ebuild => gnuradio-3.10.9.2-r2.ebuild} | 3 +-- net-wireless/gnuradio/gnuradio-9999.ebuild | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2588694ab405ba0f0952278d56e7006bdcc2e512 commit 2588694ab405ba0f0952278d56e7006bdcc2e512 Author: Eli Schwartz <eschwartz93@gmail.com> AuthorDate: 2024-03-01 04:21:34 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-03-01 04:50:23 +0000 package.mask: Last rite sci-libs/mpir Bug: https://bugs.gentoo.org/812950 Bug: https://bugs.gentoo.org/815685 Bug: https://bugs.gentoo.org/874537 Bug: https://bugs.gentoo.org/903157 Bug: https://bugs.gentoo.org/925308 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> profiles/package.mask | 8 ++++++++ 1 file changed, 8 insertions(+) (In reply to Larry the Git Cow from comment #10) > The bug has been referenced in the following commit(s): > > https://gitweb.gentoo.org/repo/gentoo.git/commit/ > ?id=e6988357743d4db2556673e90357017d2e230206 > > commit e6988357743d4db2556673e90357017d2e230206 > Author: Eli Schwartz <eschwartz93@gmail.com> > AuthorDate: 2024-03-01 00:41:27 +0000 > Commit: Sam James <sam@gentoo.org> > CommitDate: 2024-03-01 00:48:29 +0000 > > net-wireless/gnuradio: remove erroneous dependency on mpir > > mpir is an ancient fork of gmp from 2017. It claims to be focused on > speed. It doesn't build with modern compilers due to Modern C issues, > and it fails to build with LTO as well. Unlike gmp, this will never be > fixed. > > gnuradio checks for "MPLIB", which is internally implemented by first > checking for gmp, and if gmp cannot be found, checking for mpir. > > mpir was never required, and if gmp happened to be installed, it would > be an automagic dependency. > > Furthermore, there was a USE-conditional dependency on gmp for wavelets, > which I am not sure makes sense but when triggered, resulted in a forced > gmp dependency that then guaranteed mpir wouldn't be used. > > Bug: https://bugs.gentoo.org/812950 > Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> > Signed-off-by: Sam James <sam@gentoo.org> > > .../{gnuradio-3.10.9.2-r1.ebuild => gnuradio-3.10.9.2-r2.ebuild} | 3 > +-- > net-wireless/gnuradio/gnuradio-9999.ebuild | 3 > +-- > 2 files changed, 2 insertions(+), 4 deletions(-) Nice, thanks for the fix. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/kde.git/commit/?id=2b641d2a1cdd886f628067eee31c06672227fd16 commit 2b641d2a1cdd886f628067eee31c06672227fd16 Author: Eli Schwartz <eschwartz93@gmail.com> AuthorDate: 2024-03-01 23:42:17 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-03-01 23:42:38 +0000 app-office/libalkimia: remove gmp USE flag, force it instead of mpir mpir is an ancient fork of gmp from 2017. It claims to be focused on speed. It doesn't build with modern compilers due to Modern C issues, and it fails to build with LTO as well. Unlike gmp, this will never be fixed. Bug: https://bugs.gentoo.org/812950 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> app-office/libalkimia/libalkimia-8.9999.ebuild | 7 +++---- app-office/libalkimia/libalkimia-9999.ebuild | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c33939dfcebcd2e10b00ac832a70128d2407dc5 commit 0c33939dfcebcd2e10b00ac832a70128d2407dc5 Author: Arthur Zamarin <arthurzam@gentoo.org> AuthorDate: 2024-04-12 17:02:05 +0000 Commit: Arthur Zamarin <arthurzam@gentoo.org> CommitDate: 2024-04-12 17:03:10 +0000 sci-libs/mpir: treeclean Closes: https://bugs.gentoo.org/925308 Bug: https://bugs.gentoo.org/815685 Bug: https://bugs.gentoo.org/812950 Bug: https://bugs.gentoo.org/874537 Bug: https://bugs.gentoo.org/903157 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> profiles/package.mask | 8 -- sci-libs/mpir/Manifest | 1 - sci-libs/mpir/files/mpir-2.7.2-ABI-multilib.patch | 145 ---------------------- sci-libs/mpir/metadata.xml | 24 ---- sci-libs/mpir/mpir-3.0.0-r1.ebuild | 77 ------------ 5 files changed, 255 deletions(-) |