Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 883205

Summary: app-text/ttf2pt1-3.4.4-r2 fails to compile (CLANG-STRICTER-SYSTEM): ft.c:537:2: error: incompatible function pointer types initializing FT_Outline_MoveToFunc (aka int ()(const struct FT_Vector_ , void )) with an expression of type int (FT_Vector , void )
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo Fonts Team <fonts>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-11-26 17:55:22 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-text/ttf2pt1-3.4.4-r1 fails to compile (CLANG-STRICTER-SYSTEM).
Discovered on: amd64 (internal ref: clang-stricter_tinderbox)

NOTE:
(CLANG-STRICTER-SYSTEM) in the summary means that the bug was found on a machine that runs clang with stricter mode

This machine uses clang with CFLAGS/CXXFLAGS=-Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-function-pointer-types

See also:
https://archives.gentoo.org/gentoo-dev/message/dd9f2d3082b8b6f8dfbccb0639e6e240
https://wiki.gentoo.org/wiki/Modern_C_porting
Comment 1 Agostino Sarubbo gentoo-dev 2022-11-26 17:55:24 UTC
Created attachment 837279 [details]
build.log

build log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2023-04-15 06:17:05 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01eecce52925970412864da41cb38c10fadfdba7

commit 01eecce52925970412864da41cb38c10fadfdba7
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-15 06:05:22 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-15 06:05:22 +0000

    app-text/ttf2pt1: fix build w/ clang 16
    
    This does not fix the pointer types issues though.
    
    Closes: https://bugs.gentoo.org/881321
    Bug: https://bugs.gentoo.org/883205
    Signed-off-by: Sam James <sam@gentoo.org>

 app-text/ttf2pt1/files/ttf2pt1-3.4.4-clang16.patch | 61 ++++++++++++++++++++++
 ...pt1-3.4.4-r1.ebuild => ttf2pt1-3.4.4-r2.ebuild} |  5 +-
 2 files changed, 64 insertions(+), 2 deletions(-)
Comment 3 listout 2023-07-22 15:38:37 UTC
Since 01eecce52925970412864da41cb38c10fadfdba7 fixes this, can we close this one?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-12 05:37:30 UTC
(In reply to listout from comment #3)
> Since 01eecce52925970412864da41cb38c10fadfdba7 fixes this, can we close this
> one?

My commit message says:
>    This does not fix the pointer types issues though.
Comment 6 Agostino Sarubbo gentoo-dev 2024-02-03 11:42:42 UTC
clang-lld_tinderbox has reproduced this issue with version 3.4.4-r2 - Updating summary.