Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944329 - games-fps/worldofpadman-1.6-r2 fails to compile: c.h:647:1: error: constexpr used with extern
Summary: games-fps/worldofpadman-1.6-r2 fails to compile: c.h:647:1: error: constexpr ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-21 16:14 UTC by Agostino Sarubbo
Modified: 2025-03-27 19:21 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,291.70 KB, text/plain)
2024-11-21 16:14 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-11-21 16:14:38 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: games-fps/worldofpadman-1.6-r2 fails to compile.
Discovered on: amd64 (internal ref: tinderbox_musl)
System: MUSL-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#MUSL)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-11-21 16:14:39 UTC
Created attachment 911012 [details]
build.log

build log and emerge --info
Comment 2 NHO 2025-03-27 19:08:32 UTC
Tried to bump to 1.7, same issue.
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-03-27 19:10:01 UTC
>   647 | extern Tree constexpr(int);

The issue is that 'constexpr' is a keyword in C23. Their 'constexpr' function should be renamed to avoid the collision.
Comment 4 NHO 2025-03-27 19:15:48 UTC
That constexpr belongs to bundled lcc compiler. Why they do that? I dunno.
Reported to lcc in https://github.com/drh/lcc/issues/56