Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 906363 - dev-games/godot-3.5.2 fails to compile (MUSL-SYSTEM): vhacdManifoldMesh.h:36:5: error: int32_t does not name a type
Summary: dev-games/godot-3.5.2 fails to compile (MUSL-SYSTEM): vhacdManifoldMesh.h:36:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ionen Wolkens
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-05-14 20:51 UTC by Agostino Sarubbo
Modified: 2023-06-05 13:39 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,251.38 KB, text/plain)
2023-05-14 20:51 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-05-14 20:51:54 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-games/godot-3.5.2 fails to compile (MUSL-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc but this bug MAY or MAY NOT BE related to musl.
Comment 1 Agostino Sarubbo gentoo-dev 2023-05-14 20:51:56 UTC
Created attachment 861706 [details]
build.log

build log and emerge --info
Comment 2 Ionen Wolkens gentoo-dev 2023-06-05 09:42:35 UTC
Kind of put this issue on low priority given thought it was more musl-1.2.4 lfs64 issues at first, but looking closer:

thirdparty/vhacd/inc/vhacdManifoldMesh.h:36:5: error: 'int32_t' does not name a type
   36 |     int32_t m_name;
      |     ^~~~~~~
thirdparty/vhacd/inc/vhacdManifoldMesh.h:21:1: note: 'int32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
   20 | #include "vhacdVector.h"
  +++ |+#include <cstdint>

But unsure what's leading to this given gcc-13 + glibc is fine with same USE, maybe(?) it's combination of gcc-13 + musl which I haven't tried yet (used gcc:12 for that last time).

Furthermore, godot-3.5.2 already has a vhacd/0006-fix-gcc13.patch which adds cstdint but not to *this* header.
Comment 3 Larry the Git Cow gentoo-dev 2023-06-05 13:39:31 UTC
The bug has been closed via the following commit(s):

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

commit 694bb52f4d3139a846ec0713575934f3d3471fc0
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2023-06-05 12:30:06 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2023-06-05 13:37:52 +0000

    dev-games/godot: fix build with musl+gcc13
    
    Not extensively checked with musl, so there could still be issues.
    
    Closes: https://bugs.gentoo.org/906363
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 dev-games/godot/files/godot-3.5.2-gcc13.patch | 15 +++++++++++++++
 dev-games/godot/files/godot-4.0.3-gcc13.patch |  9 +++++++++
 dev-games/godot/godot-3.5.2.ebuild            |  1 +
 dev-games/godot/godot-4.0.3.ebuild            |  1 +
 4 files changed, 26 insertions(+)