Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946142 - app-text/texlive-core-2024-r1 fails to compile: ustring.c:399:19: error: conflicting types for strtod; have double(void)
Summary: app-text/texlive-core-2024-r1 fails to compile: ustring.c:399:19: error: conf...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: TeX project
URL:
Whiteboard: Needs to be reported upstream
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-12-09 09:47 UTC by Agostino Sarubbo
Modified: 2025-01-16 11:05 UTC (History)
2 users (show)

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


Attachments
build.log.xz (build.log.xz,39.55 KB, application/x-xz)
2024-12-09 09:47 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 2024-12-09 09:47:18 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-text/texlive-core-2023-r10 fails to compile.
Discovered on: amd64 (internal ref: gcc15_tinderbox)
System: GCC-15-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-15)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-12-09 09:47:19 UTC
Created attachment 913646 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2024-12-12 19:06:09 UTC
gcc15_tinderbox has reproduced this issue with version 2024-r1 - Updating summary.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-12-24 05:03:12 UTC
I'll add -std=gnu17 for now, I still have handling C23 porting for various TeX stuff WIP locally.
Comment 4 Larry the Git Cow gentoo-dev 2024-12-24 05:06:04 UTC
The bug has been referenced in the following commit(s):

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

commit c6c81669c9bc90c22b1ca7d842eed1f299efd99b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-12-24 05:03:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-24 05:03:24 +0000

    app-text/texlive-core: build w/ -std=gnu17
    
    I have drafts for some (not all yet) for TL for C23 porting. I need
    to report this upstream still but ideally with a patch.
    
    Bug: https://bugs.gentoo.org/946142
    Signed-off-by: Sam James <sam@gentoo.org>

 app-text/texlive-core/texlive-core-2024-r1.ebuild | 3 +++
 1 file changed, 3 insertions(+)
Comment 5 Zhixu Liu 2025-01-16 06:17:36 UTC
command-line option '-std=gnu17' is valid for C/ObjC but not for C++
so:

-       append-flags -std=gnu17
+       append-cflags -std=gnu17
Comment 6 Larry the Git Cow gentoo-dev 2025-01-16 11:05:25 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54fd3650e550eee4bcdbb6b3683c1e2fa326b859

commit 54fd3650e550eee4bcdbb6b3683c1e2fa326b859
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-01-16 11:04:56 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-01-16 11:05:04 +0000

    app-text/texlive-core: append-flags -> append-cflags
    
    Apparently there's some C++ in TL.
    
    Bug: https://bugs.gentoo.org/946142
    Signed-off-by: Sam James <sam@gentoo.org>

 app-text/texlive-core/texlive-core-2024-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)