Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 898758 - app-text/enchant-2.3.4-r1 has implicit function declarations in configure logs (GCC-13-SYSTEM)
Summary: app-text/enchant-2.3.4-r1 has implicit function declarations in configure log...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 906027
  Show dependency tree
 
Reported: 2023-03-02 09:09 UTC by Agostino Sarubbo
Modified: 2023-05-24 02:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,148.10 KB, text/plain)
2023-03-02 09:09 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-03-02 09:09:29 UTC
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.
Comment 1 Agostino Sarubbo gentoo-dev 2023-03-02 09:09:31 UTC
Created attachment 855632 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-04-02 08:35:43 UTC
ci has reproduced this issue with version 2.3.4-r1 - Updating summary.
Comment 3 Matt Turner gentoo-dev 2023-05-09 20:49:28 UTC
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.
Comment 4 Matt Turner gentoo-dev 2023-05-24 02:01:42 UTC
(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...
Comment 5 Larry the Git Cow gentoo-dev 2023-05-24 02:05:29 UTC
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(+)