llvmPackages_rocm.llvm: 4.3.1 → 4.5.2
Fix compiler-rt build and use ninja for faster builds.
This commit is contained in:
parent
923ad46057
commit
de8041b44e
4 changed files with 84 additions and 9 deletions
|
@ -0,0 +1,78 @@
|
||||||
|
--- a/lib/sanitizer_common/sanitizer_common_interceptors_ioctl.inc
|
||||||
|
+++ b/lib/sanitizer_common/sanitizer_common_interceptors_ioctl.inc
|
||||||
|
@@ -370,15 +370,6 @@
|
||||||
|
|
||||||
|
#if SANITIZER_GLIBC
|
||||||
|
// _(SIOCDEVPLIP, WRITE, struct_ifreq_sz); // the same as EQL_ENSLAVE
|
||||||
|
- _(CYGETDEFTHRESH, WRITE, sizeof(int));
|
||||||
|
- _(CYGETDEFTIMEOUT, WRITE, sizeof(int));
|
||||||
|
- _(CYGETMON, WRITE, struct_cyclades_monitor_sz);
|
||||||
|
- _(CYGETTHRESH, WRITE, sizeof(int));
|
||||||
|
- _(CYGETTIMEOUT, WRITE, sizeof(int));
|
||||||
|
- _(CYSETDEFTHRESH, NONE, 0);
|
||||||
|
- _(CYSETDEFTIMEOUT, NONE, 0);
|
||||||
|
- _(CYSETTHRESH, NONE, 0);
|
||||||
|
- _(CYSETTIMEOUT, NONE, 0);
|
||||||
|
_(EQL_EMANCIPATE, WRITE, struct_ifreq_sz);
|
||||||
|
_(EQL_ENSLAVE, WRITE, struct_ifreq_sz);
|
||||||
|
_(EQL_GETMASTRCFG, WRITE, struct_ifreq_sz);
|
||||||
|
--- a/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
|
||||||
|
+++ b/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
|
||||||
|
@@ -143,7 +143,6 @@
|
||||||
|
# include <sys/procfs.h>
|
||||||
|
#endif
|
||||||
|
#include <sys/user.h>
|
||||||
|
-#include <linux/cyclades.h>
|
||||||
|
#include <linux/if_eql.h>
|
||||||
|
#include <linux/if_plip.h>
|
||||||
|
#include <linux/lp.h>
|
||||||
|
@@ -460,7 +459,6 @@
|
||||||
|
|
||||||
|
#if SANITIZER_GLIBC
|
||||||
|
unsigned struct_ax25_parms_struct_sz = sizeof(struct ax25_parms_struct);
|
||||||
|
- unsigned struct_cyclades_monitor_sz = sizeof(struct cyclades_monitor);
|
||||||
|
#if EV_VERSION > (0x010000)
|
||||||
|
unsigned struct_input_keymap_entry_sz = sizeof(struct input_keymap_entry);
|
||||||
|
#else
|
||||||
|
@@ -824,15 +822,6 @@
|
||||||
|
#endif // SANITIZER_LINUX
|
||||||
|
|
||||||
|
#if SANITIZER_LINUX && !SANITIZER_ANDROID
|
||||||
|
- unsigned IOCTL_CYGETDEFTHRESH = CYGETDEFTHRESH;
|
||||||
|
- unsigned IOCTL_CYGETDEFTIMEOUT = CYGETDEFTIMEOUT;
|
||||||
|
- unsigned IOCTL_CYGETMON = CYGETMON;
|
||||||
|
- unsigned IOCTL_CYGETTHRESH = CYGETTHRESH;
|
||||||
|
- unsigned IOCTL_CYGETTIMEOUT = CYGETTIMEOUT;
|
||||||
|
- unsigned IOCTL_CYSETDEFTHRESH = CYSETDEFTHRESH;
|
||||||
|
- unsigned IOCTL_CYSETDEFTIMEOUT = CYSETDEFTIMEOUT;
|
||||||
|
- unsigned IOCTL_CYSETTHRESH = CYSETTHRESH;
|
||||||
|
- unsigned IOCTL_CYSETTIMEOUT = CYSETTIMEOUT;
|
||||||
|
unsigned IOCTL_EQL_EMANCIPATE = EQL_EMANCIPATE;
|
||||||
|
unsigned IOCTL_EQL_ENSLAVE = EQL_ENSLAVE;
|
||||||
|
unsigned IOCTL_EQL_GETMASTRCFG = EQL_GETMASTRCFG;
|
||||||
|
--- a/lib/sanitizer_common/sanitizer_platform_limits_posix.h
|
||||||
|
+++ b/lib/sanitizer_common/sanitizer_platform_limits_posix.h
|
||||||
|
@@ -983,7 +983,6 @@
|
||||||
|
|
||||||
|
#if SANITIZER_LINUX && !SANITIZER_ANDROID
|
||||||
|
extern unsigned struct_ax25_parms_struct_sz;
|
||||||
|
-extern unsigned struct_cyclades_monitor_sz;
|
||||||
|
extern unsigned struct_input_keymap_entry_sz;
|
||||||
|
extern unsigned struct_ipx_config_data_sz;
|
||||||
|
extern unsigned struct_kbdiacrs_sz;
|
||||||
|
@@ -1328,15 +1327,6 @@
|
||||||
|
#endif // SANITIZER_LINUX
|
||||||
|
|
||||||
|
#if SANITIZER_LINUX && !SANITIZER_ANDROID
|
||||||
|
-extern unsigned IOCTL_CYGETDEFTHRESH;
|
||||||
|
-extern unsigned IOCTL_CYGETDEFTIMEOUT;
|
||||||
|
-extern unsigned IOCTL_CYGETMON;
|
||||||
|
-extern unsigned IOCTL_CYGETTHRESH;
|
||||||
|
-extern unsigned IOCTL_CYGETTIMEOUT;
|
||||||
|
-extern unsigned IOCTL_CYSETDEFTHRESH;
|
||||||
|
-extern unsigned IOCTL_CYSETDEFTIMEOUT;
|
||||||
|
-extern unsigned IOCTL_CYSETTHRESH;
|
||||||
|
-extern unsigned IOCTL_CYSETTIMEOUT;
|
||||||
|
extern unsigned IOCTL_EQL_EMANCIPATE;
|
||||||
|
extern unsigned IOCTL_EQL_ENSLAVE;
|
||||||
|
extern unsigned IOCTL_EQL_GETMASTRCFG;
|
|
@ -31,12 +31,8 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./compiler-rt-codesign.patch # Revert compiler-rt commit that makes codesign mandatory
|
./compiler-rt-codesign.patch # Revert compiler-rt commit that makes codesign mandatory
|
||||||
(fetchpatch {
|
# https://github.com/llvm/llvm-project/commit/68d5235cb58f988c71b403334cd9482d663841ab.diff but the compiler-rt part of the path is stripped
|
||||||
name = "libsanitizer-no-cyclades-rocm.patch";
|
./68d5235cb58f988c71b403334cd9482d663841ab.patch
|
||||||
url = "https://gist.github.com/lovesegfault/b255dcf2fa4e202411a6a04b61e6cc04/raw";
|
|
||||||
sha256 = "sha256-PMMSLr2zHuNDn1OWqumqHwB74ktJSHxhJWkqEKB7Z64=";
|
|
||||||
stripLen = 1;
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{ stdenv, lib, buildPackages, fetchFromGitHub, callPackage, wrapCCWith, overrideCC }:
|
{ stdenv, lib, buildPackages, fetchFromGitHub, callPackage, wrapCCWith, overrideCC }:
|
||||||
|
|
||||||
let
|
let
|
||||||
version = "4.3.1";
|
version = "4.5.2";
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "RadeonOpenCompute";
|
owner = "RadeonOpenCompute";
|
||||||
repo = "llvm-project";
|
repo = "llvm-project";
|
||||||
rev = "rocm-${version}";
|
rev = "rocm-${version}";
|
||||||
hash = "sha256-7XVtHcrTpw+NYUvuKQFWWFE0FlOTt8EnfZpvepQqE1c=";
|
hash = "sha256-XWh81+2yyXQEPO+5SgxHh66fzFG1bVbvnjPfvXDC+fU=";
|
||||||
};
|
};
|
||||||
in rec {
|
in rec {
|
||||||
clang = wrapCCWith rec {
|
clang = wrapCCWith rec {
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, writeScript
|
, writeScript
|
||||||
, cmake
|
, cmake
|
||||||
|
, ninja
|
||||||
, python3
|
, python3
|
||||||
, libxml2
|
, libxml2
|
||||||
, libffi
|
, libffi
|
||||||
|
@ -30,7 +31,7 @@ in stdenv.mkDerivation rec {
|
||||||
outputs = [ "out" "python" ]
|
outputs = [ "out" "python" ]
|
||||||
++ lib.optional enableSharedLibraries "lib";
|
++ lib.optional enableSharedLibraries "lib";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake python3 ];
|
nativeBuildInputs = [ cmake ninja python3 ];
|
||||||
|
|
||||||
buildInputs = [ libxml2 libffi ];
|
buildInputs = [ libxml2 libffi ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue