From 02310b34b5ef5286a7a8d9eafd302cea9f9819e7 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 22 Sep 2021 19:59:01 +0100 Subject: [PATCH] llvm_5: disable print_context.c (fails on gcc-11 / dwarf-5) gcc-11 defaults to -gdwarf-5 and makes llvm symbolizer test fail. As it's the only failing test let's just skip it for llvm-5. --- pkgs/development/compilers/llvm/5/llvm/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/compilers/llvm/5/llvm/default.nix b/pkgs/development/compilers/llvm/5/llvm/default.nix index 54fd783a7c2d..6388cd65fbf4 100644 --- a/pkgs/development/compilers/llvm/5/llvm/default.nix +++ b/pkgs/development/compilers/llvm/5/llvm/default.nix @@ -82,6 +82,9 @@ stdenv.mkDerivation ({ substituteInPlace unittests/Support/CMakeLists.txt \ --replace "Path.cpp" "" rm unittests/Support/Path.cpp + + # llvm-5 does not support dwarf-5 style info, fails on gcc-11. + rm test/tools/llvm-symbolizer/print_context.c '' + optionalString stdenv.isAarch64 '' patch -p0 < ${../../aarch64.patch} '' + optionalString stdenv.hostPlatform.isMusl ''