sci-libs/geos-3.11.0 compiles fine with sys-devel/12.3.1_p20230526 but fails with sys-devel/gcc-13.2.1_p20230826 with "error: 'uint8_t' has not been declared" Reproducible: Always Steps to Reproduce: 1. emerge geos with gcc-13 2. 3. Actual Results: /usr/bin/x86_64-pc-linux-gnu-g++ -DDLL_EXPORT -DNDEBUG -DUSE_UNSTABLE_GEOS_CPP_API -Dgeos_EXPORTS -I/var/tmp/portage/sci-libs/geos-3.11.0/work/geos-3.11.0/include -I/var/tmp/portage/sci-libs/geos-3.11.0/work/geos-3.11.0_build/include -I/var/tmp/portage/sci-libs/geos-3.11.0/work/geos-3.11.0/src/deps -I/var/tmp/portage/sci-libs/geos-3.11.0/work/geos-3.11.0_build/src/deps -march=native -O2 -pipe -std=c++11 -fPIC -ffp-contract=off -MD -MT CMakeFiles/geos.dir/src/geomgraph/Depth.cpp.o -MF CMakeFiles/geos.dir/src/geomgraph/Depth.cpp.o.d -o CMakeFiles/geos.dir/src/geomgraph/Depth.cpp.o -c /var/tmp/portage/sci-libs/geos-3.11.0/work/geos-3.11.0/src/geomgraph/Depth.cpp In file included from /var/tmp/portage/sci-libs/geos-3.11.0/work/geos-3.11.0/src/geomgraph/Depth.cpp:23: /var/tmp/portage/sci-libs/geos-3.11.0/work/geos-3.11.0/include/geos/geomgraph/Depth.h:115:17: error: 'uint8_t' has not been declared 115 | bool isNull(uint8_t geomIndex) const | ^~~~~~~ (will attach full build log) Expected Results: successful emerge
Created attachment 871987 [details] output of emerge --info
Created attachment 871988 [details] build.log
From here: https://gcc.gnu.org/gcc-13/porting_to.html Probably, must add #include <cstdint>
But it needs to be added in more than one place. I added one for the first error I got, and then got the same error further on. I have no idea how many files need this added. I suppose I can also file this upstream, unless it has already been done.
I know, I've just pointed to the cause and a solution. It must definitely be fixed upstream, but also a grep for the `uint8_t` data type could find the files that need to be patched. There may be more data types with this issue too. I've seen many projects hit by this over the Internet.
FYI, sci-libs/geos-3.12.0 compiles fine.
sci-libs/geos-3.11.1 also builds successfully
Might this then most easily be solved by stabilizing 3.11.1?
amd64 done
arm done
arm64 done
ppc64 done