Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905445 - sci-libs/gmsh-4.11.1 fails to compile: meshGFacePack.cpp:209:7: error: uint32_t was not declared in this scope
Summary: sci-libs/gmsh-4.11.1 fails to compile: meshGFacePack.cpp:209:7: error: uint32...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthias Maier
Keywords: PullRequest
Depends on:
Blocks: gcc-13
  Show dependency tree
Reported: 2023-05-02 07:30 UTC by Agostino Sarubbo
Modified: 2023-05-02 17:45 UTC (History)
3 users (show)

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

build.log (build.log,881.49 KB, text/plain)
2023-05-02 07:30 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-05-02 07:30:28 UTC

Issue: sci-libs/gmsh-4.11.1 fails to compile.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2023-05-02 07:30:30 UTC
CC'ing also the author of the commit (dae904a2d9c40cd0a549576706abecd596692cfc)
Comment 2 Agostino Sarubbo gentoo-dev 2023-05-02 07:30:32 UTC
Created attachment 861031 [details]

build log and emerge --info
Comment 3 Agostino Sarubbo gentoo-dev 2023-05-02 07:30:33 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:

FAILED: CMakeFiles/gmsh.dir/src/mesh/meshGFacePack.cpp.o 
/var/tmp/portage/sci-libs/gmsh-4.11.1/work/gmsh-4.11.1-source/src/mesh/meshGFacePack.cpp:209:7: error: ‘uint32_t’ was not declared in this scope
Comment 4 Sergey Torokhov 2023-05-02 10:36:18 UTC
It seems it GCC 13 related issue.

In GCC 13 changelog and porting tips [1] is stated:
The following headers are used less widely in libstdc++ and may need to be included explicitly when compiling with GCC 13:

<string> (for std::string, std::to_string, std::stoi etc.)
<system_error> (for std::error_code, std::error_category, std::system_error).
<cstdint> (for std::int8_t, std::int32_t etc.)
<cstdio> (for std::printf, std::fopen etc.)
<cstdlib> (for std::strtol, std::malloc etc.)

So maybe smth else. with <cstdint> additionnaly must be added.

Comment 5 Larry the Git Cow gentoo-dev 2023-05-02 17:45:06 UTC
The bug has been closed via the following commit(s):

commit 020a22ee51f59b72936943e69953b0971acf127f
Author:     Sergey Torokhov <>
AuthorDate: 2023-05-02 17:14:21 +0000
Commit:     Sam James <>
CommitDate: 2023-05-02 17:44:57 +0000

    sci-libs/gmsh: 4.11.1 fix GCC-13 compatibility
    Signed-off-by: Sergey Torokhov <>
    Signed-off-by: Sam James <>

 .../gmsh-4.11.1_gcc13_fix_cstdint_include.patch    | 29 ++++++++++++++++++++++
 sci-libs/gmsh/gmsh-4.11.1.ebuild                   |  5 +++-
 2 files changed, 33 insertions(+), 1 deletion(-)