https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: app-text/enchant-2.3.4 has implicit function declarations in configure logs (GCC-13-SYSTEM). Discovered on: amd64 (internal ref: gcc13_tinderbox) NOTE: (GCC-13-SYSTEM) in the summary means that the bug was found on a machine that runs gcc-13 but this bug MAY or MAY NOT BE related to the new compiler See also: https://bugs.gentoo.org/898488#c4.
Created attachment 855632 [details] build.log build log and emerge --info
ci has reproduced this issue with version 2.3.4-r1 - Updating summary.
Looks to me that there are problems in these checks: > -checking for good max_align_t... yes > +checking for good max_align_t... no > -checking for static_assert... yes, an <assert.h> macro > +checking for static_assert... no and > configure:24242: checking for alignas and alignof > configure:24300: clang -c -Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types conftest.c >&5 > conftest.c:76:31: error: call to undeclared function 'alignof'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] > char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1]; > ^ These appear to all come from the bundled gnulib.
(In reply to Matt Turner from comment #3) > Looks to me that there are problems in these checks: > > > -checking for good max_align_t... yes > > +checking for good max_align_t... no > > > -checking for static_assert... yes, an <assert.h> macro > > +checking for static_assert... no I cannot reproduce these problems now. Unsure why. > > configure:24242: checking for alignas and alignof > > configure:24300: clang -c -Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types conftest.c >&5 > > conftest.c:76:31: error: call to undeclared function 'alignof'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration] > > char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1]; > > ^ > > These appear to all come from the bundled gnulib. Looking at the gnulib macro, I think this is a false-positive. The configure result is: > checking for alignas and alignof... yes, <stdalign.h> macros so it's properly detected. The gl_ALIGNASOF macro checks the test program first *without* including stdalign.h and then again *with* it if the first test failed. This seems like it's going to hit a lot of packages...
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68383a726272d16177eceed34a1d8797809502e2 commit 68383a726272d16177eceed34a1d8797809502e2 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2023-05-24 02:05:04 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2023-05-24 02:05:04 +0000 app-text/enchant: Ignore implicit declaration of alignof Closes: https://bugs.gentoo.org/898758 Signed-off-by: Matt Turner <mattst88@gentoo.org> app-text/enchant/enchant-2.3.4-r1.ebuild | 4 ++++ app-text/enchant/enchant-2.4.0.ebuild | 4 ++++ 2 files changed, 8 insertions(+)