From 3eab97c775abdefac7a7ee1770bb7fb638858832 Mon Sep 17 00:00:00 2001 From: Jan Solanti Date: Tue, 9 Jan 2024 22:56:54 +0200 Subject: [PATCH 1/5] hdrmerge: fix build with GCC 13 --- pkgs/applications/graphics/hdrmerge/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/graphics/hdrmerge/default.nix b/pkgs/applications/graphics/hdrmerge/default.nix index a8db24c35283..827ee15af60a 100644 --- a/pkgs/applications/graphics/hdrmerge/default.nix +++ b/pkgs/applications/graphics/hdrmerge/default.nix @@ -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 { From b8da68b20785468050910a7b108488641ea341cc Mon Sep 17 00:00:00 2001 From: Jan Solanti Date: Tue, 9 Jan 2024 22:57:06 +0200 Subject: [PATCH 2/5] meshlab: fix build with GCC 13 --- pkgs/applications/graphics/meshlab/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/applications/graphics/meshlab/default.nix b/pkgs/applications/graphics/meshlab/default.nix index 656713fb25e4..bee1e35ec129 100644 --- a/pkgs/applications/graphics/meshlab/default.nix +++ b/pkgs/applications/graphics/meshlab/default.nix @@ -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 ''; From 7c59bc5c457daffe8184c652043e22d208c8065c Mon Sep 17 00:00:00 2001 From: Jan Solanti Date: Tue, 9 Jan 2024 22:57:20 +0200 Subject: [PATCH 3/5] termcolor: fix build with GCC 13 --- pkgs/development/libraries/termcolor/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/termcolor/default.nix b/pkgs/development/libraries/termcolor/default.nix index fbae29f4ca58..f29776226dc2 100644 --- a/pkgs/development/libraries/termcolor/default.nix +++ b/pkgs/development/libraries/termcolor/default.nix @@ -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; From 5062375b6a9a4f14a48855ebed48a391bb1557b9 Mon Sep 17 00:00:00 2001 From: Jan Solanti Date: Tue, 9 Jan 2024 22:57:37 +0200 Subject: [PATCH 4/5] gpuvis: fix build with GCC 13 --- pkgs/development/tools/misc/gpuvis/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/tools/misc/gpuvis/default.nix b/pkgs/development/tools/misc/gpuvis/default.nix index d4476a963525..c0a10a09b02b 100644 --- a/pkgs/development/tools/misc/gpuvis/default.nix +++ b/pkgs/development/tools/misc/gpuvis/default.nix @@ -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"; From 95c05c41027486403bb6b6a3f61207c2967bca8b Mon Sep 17 00:00:00 2001 From: Jan Solanti Date: Tue, 9 Jan 2024 22:57:56 +0200 Subject: [PATCH 5/5] superTuxKart: fix build with GCC 13 --- pkgs/games/super-tux-kart/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/games/super-tux-kart/default.nix b/pkgs/games/super-tux-kart/default.nix index d92f01cad37a..3077d5b9443c 100644 --- a/pkgs/games/super-tux-kart/default.nix +++ b/pkgs/games/super-tux-kart/default.nix @@ -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