Merge pull request #279904 from jansol/more-gcc13-include-fixes

More gcc13 include fixes
This commit is contained in:
Martin Weinelt 2024-01-10 04:05:37 +01:00 committed by GitHub
commit fa63c00ff8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 26 additions and 0 deletions

View File

@ -37,6 +37,11 @@ mkDerivation rec {
"-DALGLIB_DIR:PATH=${alglib}"
];
CXXFLAGS = [
# GCC 13: error: 'uint32_t' does not name a type
"-include cstdint"
];
patches = [
# https://github.com/jcelaya/hdrmerge/pull/222
(fetchpatch {

View File

@ -75,6 +75,11 @@ mkDerivation rec {
"-DALLOW_BUNDLED_LEVMAR=ON"
];
CXXFLAGS = [
# GCC 13: error: 'int16_t' has not been declared in 'std'
"-include cstdint"
];
postFixup = ''
patchelf --add-needed $out/lib/meshlab/libmeshlab-common.so $out/bin/.meshlab-wrapped
'';

View File

@ -18,6 +18,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
cmakeFlags = [ "-DTERMCOLOR_TESTS=ON" ];
CXXFLAGS = [
# GCC 13: error: 'uint8_t' has not been declared
"-include cstdint"
];
doCheck = true;

View File

@ -31,6 +31,11 @@ stdenv.mkDerivation rec {
buildInputs = [ SDL2 gtk3 freetype ];
CXXFLAGS = [
# GCC 13: error: 'uint32_t' has not been declared
"-include cstdint"
];
meta = with lib; {
description = "GPU Trace Visualizer";
homepage = "https://github.com/mikesart/gpuvis";

View File

@ -122,6 +122,13 @@ stdenv.mkDerivation rec {
"-DOpenGL_GL_PREFERENCE=GLVND"
];
CXXFLAGS = [
# GCC 13: error: 'snprintf' was not declared in this scope
"-include cstdio"
# GCC 13: error: 'runtime_error' is not a member of 'std'
"-include stdexcept"
];
# Extract binary from built app bundle
postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
mkdir $out/bin