Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[staging-next] More llvm fixes #122272

Merged
merged 11 commits into from
May 9, 2021
2 changes: 1 addition & 1 deletion pkgs/applications/misc/blender/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ stdenv.mkDerivation rec {

patches = lib.optional stdenv.isDarwin ./darwin.patch;

nativeBuildInputs = [ cmake makeWrapper python3Packages.wrapPython ]
nativeBuildInputs = [ cmake makeWrapper python3Packages.wrapPython llvmPackages.llvm.dev ]
++ optionals cudaSupport [ addOpenGLRunpath ];
buildInputs =
[ boost ffmpeg gettext glew ilmbase
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/compilers/ispc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,9 @@ stdenv.mkDerivation rec {
})
];

nativeBuildInputs = [ cmake which m4 bison flex python3 ];
nativeBuildInputs = [ cmake which m4 bison flex python3 llvmPackages.llvm.dev ];
buildInputs = with llvmPackages; [
# we need to link against libclang, so we need the unwrapped
llvm llvmPackages.clang-unwrapped
llvm llvmPackages.libclang
];

postPatch = ''
Expand Down Expand Up @@ -66,6 +65,7 @@ stdenv.mkDerivation rec {
'';

cmakeFlags = [
"-DLLVM_CONFIG_EXECUTABLE=${llvmPackages.llvm.dev}/bin/llvm-config"
"-DCLANG_EXECUTABLE=${llvmPackages.clang}/bin/clang"
"-DCLANGPP_EXECUTABLE=${llvmPackages.clang}/bin/clang++"
"-DISPC_INCLUDE_EXAMPLES=OFF"
Expand Down
3 changes: 2 additions & 1 deletion pkgs/development/compilers/spirv-llvm-translator/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib, stdenv
, fetchFromGitHub
, cmake
, pkg-config

, lit
, llvm_8
Expand All @@ -17,7 +18,7 @@ stdenv.mkDerivation rec {
sha256 = "0hxalc3fkliqs61hpr97phbm3qsx4b8vgnlg30aimzr6aas403r5";
};

nativeBuildInputs = [ cmake ];
nativeBuildInputs = [ pkg-config cmake llvm_8.dev ];

buildInputs = [ llvm_8 ];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/compilers/zig/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ llvmPackages.stdenv.mkDerivation rec {
sha256 = "1z6c4ym9jmga46cw2arn7zv2drcpmrf3vw139gscxp27n7q2z5md";
};

nativeBuildInputs = [ cmake ];
nativeBuildInputs = [ cmake llvmPackages.llvm.dev ];
buildInputs = [
llvmPackages.clang-unwrapped
llvmPackages.libclang
llvmPackages.llvm
llvmPackages.lld
libxml2
Expand Down
5 changes: 3 additions & 2 deletions pkgs/development/interpreters/cling/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
, runCommandNoCC
, llvmPackages_5
, glibc
, ncurses
}:

let
Expand Down Expand Up @@ -38,8 +39,8 @@ let
chmod -R a+w ./tools/cling
'';

nativeBuildInputs = [ python3 git cmake ];
buildInputs = [ libffi llvmPackages_5.llvm zlib ];
nativeBuildInputs = [ python3 git cmake llvmPackages_5.llvm.dev ];
buildInputs = [ libffi llvmPackages_5.llvm zlib ncurses ];

strictDeps = true;

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/opencl-clang/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ let
./opencl-headers-dir.patch
];

nativeBuildInputs = [ cmake git ];
nativeBuildInputs = [ cmake git llvm.dev ];

buildInputs = [ libclang llvm spirv-llvm-translator ];

Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/misc/umr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
sha256 = "IwTkHEuJ82hngPjFVIihU2rSolLBqHxQTNsP8puYPaY=";
};

nativeBuildInputs = [ cmake pkg-config ];
nativeBuildInputs = [ cmake pkg-config llvmPackages.llvm.dev ];

buildInputs = [
bash-completion
Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/tools/misc/creduce/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib, stdenv, fetchurl, cmake, makeWrapper
, llvm, clang-unwrapped
, llvm, libclang
, flex
, zlib
, perlPackages
Expand All @@ -15,12 +15,12 @@ stdenv.mkDerivation rec {
sha256 = "1b833z0g1hich68kzbkpfc26xb8w2phfl5savy8c6ir9ihwy1a8w";
};

nativeBuildInputs = [ cmake makeWrapper ];
nativeBuildInputs = [ cmake makeWrapper llvm.dev ];
buildInputs = [
# Ensure stdenv's CC is on PATH before clang-unwrapped
stdenv.cc
# Actual deps:
llvm clang-unwrapped
llvm libclang
flex zlib
] ++ (with perlPackages; [ perl ExporterLite FileWhich GetoptTabular RegexpCommon TermReadKey ]);

Expand Down
6 changes: 3 additions & 3 deletions pkgs/development/tools/misc/cvise/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ lib, buildPythonApplication, fetchFromGitHub, cmake, flex
, clang-unwrapped, llvm, unifdef
, libclang, llvm, unifdef
, pebble, psutil, pytestCheckHook, pytest-flake8
}:

Expand All @@ -19,8 +19,8 @@ buildPythonApplication rec {
./unifdef.patch
];

nativeBuildInputs = [ cmake flex ];
buildInputs = [ clang-unwrapped llvm unifdef ];
nativeBuildInputs = [ cmake flex llvm.dev ];
buildInputs = [ libclang llvm llvm.dev unifdef ];
propagatedBuildInputs = [ pebble psutil ];
checkInputs = [ pytestCheckHook pytest-flake8 unifdef ];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/os-specific/linux/bcc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ python.pkgs.buildPythonApplication rec {
format = "other";

buildInputs = with llvmPackages; [
llvm clang-unwrapped kernel
llvm llvm.dev libclang kernel
elfutils luajit netperf iperf
systemtap.stapBuild flex bash
libbpf
Expand All @@ -32,7 +32,7 @@ python.pkgs.buildPythonApplication rec {
];

propagatedBuildInputs = [ python.pkgs.netaddr ];
nativeBuildInputs = [ makeWrapper cmake flex bison ]
nativeBuildInputs = [ makeWrapper cmake flex bison llvmPackages.llvm.dev ]
# libelf is incompatible with elfutils-libelf
++ lib.filter (x: x != libelf) kernel.moduleBuildDependencies;

Expand Down
4 changes: 2 additions & 2 deletions pkgs/os-specific/linux/bpftrace/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ stdenv.mkDerivation rec {
};

buildInputs = with llvmPackages;
[ llvm clang-unwrapped
[ llvm libclang
kernel elfutils libelf bcc
libbpf libbfd libopcodes
];

nativeBuildInputs = [ cmake pkg-config flex bison ]
nativeBuildInputs = [ cmake pkg-config flex bison llvmPackages.llvm.dev ]
# libelf is incompatible with elfutils-libelf
++ lib.filter (x: x != libelf) kernel.moduleBuildDependencies;

Expand Down
4 changes: 2 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12756,7 +12756,7 @@ in
credstash = with python3Packages; toPythonApplication credstash;

creduce = callPackage ../development/tools/misc/creduce {
inherit (llvmPackages_7) llvm clang-unwrapped;
inherit (llvmPackages_7) llvm libclang;
};

cscope = callPackage ../development/tools/misc/cscope { };
Expand All @@ -12768,7 +12768,7 @@ in
css-html-js-minify = with python3Packages; toPythonApplication css-html-js-minify;

cvise = python3Packages.callPackage ../development/tools/misc/cvise {
inherit (llvmPackages_11) llvm clang-unwrapped;
inherit (llvmPackages_11) llvm libclang;
};

libcxx = llvmPackages.libcxx;
Expand Down