Commit Graph

920 Commits

Author SHA1 Message Date
github-actions[bot]
0c6795fa5b
Merge master into staging-next 2021-12-23 00:01:33 +00:00
Dmitry Kalinkin
e1aaaa90fe
llvmPackages.libcxx: unset _LIBCPP_USE_AVAILABILITY_APPLE 2021-12-18 10:09:25 -05:00
Neubauer, Sebastian
de8041b44e llvmPackages_rocm.llvm: 4.3.1 → 4.5.2
Fix compiler-rt build and use ninja for faster builds.
2021-12-15 16:57:22 +01:00
Vladimír Čunát
030e814b88
Merge #148107: llvmPackages_13.clang: fix jemalloc issues
... into staging-next.  Also re-enable jemalloc in firefoxPackages.
2021-12-15 14:09:34 +01:00
github-actions[bot]
0f2bb5a63f
Merge master into staging-next 2021-12-10 12:01:12 +00:00
arcnmx
265ba73a78 llvmPackages_13.compiler-rt: fix aarch32 patch 2021-12-04 07:12:34 -08:00
github-actions[bot]
904ed45698
Merge master into staging-next 2021-12-03 18:01:12 +00:00
Jörg Thalheim
50474e1857
Merge pull request #147543 from risicle/ris-libcxx-13-aarch64
llvmPackages_13.libcxx: require gcc >=10 on gcc platforms
2021-12-03 16:06:34 +00:00
oxalica
754460f861
llvmPackages_13.clang: revert D100879
The malloc alignment assumption is incorrect for jemalloc and causes
mis-compilation in firefox.

https://reviews.llvm.org/D100879
https://bugzilla.mozilla.org/show_bug.cgi?id=1741454
2021-12-01 15:28:33 +08:00
midchildan
24d1fc7c73
llvmPackages_git.libcxx: fix darwin build 2021-11-28 00:58:53 +09:00
Robert Scott
54a487505a llvmPackages_13.libcxx: require gcc >=10 on gcc platforms
specifically aarch64. as of version 13 libcxx does not build on gcc9.
2021-11-26 22:12:42 +00:00
midchildan
7994b1dfc0
fixup! llvmPackages_13.libcxx: fix darwin build 2021-11-26 02:38:44 +09:00
midchildan
d8338cbe06
fixup! llvmPackages_13.libcxx: fix darwin build
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-11-25 20:20:49 +09:00
midchildan
e157b5dc28
llvmPackages_13.libcxx: fix darwin build 2021-11-25 19:59:17 +09:00
toonn
21df776a31 llvmPackages_13.libcxxabi: Align with 11 libcxxabi
LLVM 11 libcxxabi has some flags to support usage in the Darwin stdenv,
in particular, `standalone` and `withLibunwind`.

Darwin stdenv needs the `standalone` flag because its `hostPlatform` set
doesn't have `useLLVM` set to true. And it needs `withLibunwind` to
explicitly disable including `libunwind` as a build input.

We also prefix `install_name_tool` in case we're cross-compiling.
2021-11-24 15:17:13 -08:00
toonn
d90fb1c038 llvmPackages_12.libcxxabi: Align with 11 libcxxabi
LLVM 11 libcxxabi has some flags to support usage in the Darwin stdenv,
in particular, `standalone` and `withLibunwind`.

Darwin stdenv needs the `standalone` flag because its `hostPlatform` set
doesn't have `useLLVM` set to true. And it needs `withLibunwind` to
explicitly disable including `libunwind` as a build input.

We also prefix `install_name_tool` in case we're cross-compiling.
2021-11-24 15:17:13 -08:00
toonn
d964f211f6 llvmPackages_11.libcxxabi: More precise libunwind inclusion 2021-11-24 15:17:13 -08:00
toonn
73d3d0de7f libcxxabi: Use standalone instead of expression
Co-authored-by: Sandro Jäckel <sandro.jaeckel@gmail.com>
2021-11-24 15:17:13 -08:00
toonn
1be8e73fb3 stdenv: libcxxabi dropped standalone in favor of useLLVM
The libcxxabi expression had a `standalone` argument in LLVM 7 which
triggered passing of the `-DLLVM_ENABLE_LIBCXX=ON` flag. In LLVM 11 this
flag and others are toggled by the `useLLVM` attribute of
`stdenv.hostPlatform` but this toggles a flag we don't need on Darwin.

Similar to the refactoring of LLVM 7 libc++abi by Ericson2314 in
3af7e98470, I have reintroduced the standalone argument for use in
bootstrapping the Darwin stdenv.
2021-11-24 15:17:13 -08:00
Ryan Burns
93e835bd92
Merge pull request #146814 from r-burns/clang-tools-extra
[staging] llvmPackages_{13,git}.clang: build clang-tools-extra
2021-11-21 15:19:52 -08:00
Ryan Burns
93543c69c6
Merge pull request #146855 from trofi/fix-llvm-for-gcc-12
llvm_{5..11}: pull upstream build fix for for gcc-12
2021-11-21 14:43:37 -08:00
Sergei Trofimovich
e9dfe892ef llvm_{5..11}: pull upstream build fix for for gcc-12
Without the fix build fails on gcc-12 as:

    /build/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp:
      In member function 'std::string llvm::NVPTXAsmPrinter::getPTXFundamentalTypeStr(...':
    /build/llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp:1319:10:
      error: use of deleted function 'std::__cxx11::basic_string<...>; std::nullptr_t = std::nullptr_t]'
     1319 |   return nullptr;
          |          ^~~~~~~

The patch is present in upstream releases since llvm-12.
2021-11-21 09:50:01 +00:00
Ryan Burns
dd8ad828de llvmPackages_{13,git}.clang: build clang-tools-extra
This is already done for previous versions of clang which use
a release tarball, but must be done differently for the more
recent versions which use fetchFromGitHub.

Fixes clang-tools clangd wrapper
2021-11-20 14:29:06 -08:00
Vladimír Čunát
e4afe81567
Merge #144935: llvmPackages_7.libcxxabi: fix build with gcc 2021-11-20 16:23:31 +01:00
Rick van Schijndel
e31f392946 llvm_13: fix cross-compilation
apply the same fix as used in 517d2b963f
2021-11-16 00:42:58 +01:00
Ryan Burns
3f90cde719 llvmPackages_7.libcxxabi: fix build with gcc
Unblocks 17 dependers on aarch64-linux
2021-11-06 15:03:13 -07:00
Anders Kaseorg
e12f4db556 treewide: Fix unsafe concatenation of $LD_LIBRARY_PATH, round 2
Naive concatenation of $LD_LIBRARY_PATH can result in an empty
colon-delimited segment; this tells glibc to load libraries from the
current directory, which is definitely wrong, and may be a security
vulnerability if the current directory is untrusted.  (See #67234, for
example.)  Fix this throughout the tree.

Followup to #76804.  Fixes #144646.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2021-11-04 16:15:05 -07:00
Jonathan Ringer
fc25d94010
Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	pkgs/development/python-modules/jupyter-client/default.nix
	pkgs/development/python-modules/jupyterlab-git/default.nix
2021-10-22 09:33:07 -07:00
Vladimír Čunát
68c40000a7
Merge #141397: llvmPackages_{5,6,7}.compiler-rt: fix patches 2021-10-21 20:26:37 +02:00
Sergei Trofimovich
a410420844 pkgsStatic.llvmPackages_{{5..13},git}.compiler-rt: drop unused musl patches
Commit 199b7c50 "compiler-rt: remove <cyclades.h> from libsanitizer"
broke conditional conditional musl patches.

The change has a few effects:
- pkgsStatic.llvmPackages_{5,6,7}.compiler-rt: fix build on musl after cyclades backport
- pkgsStatic.llvmPackages_{{5..13},git}.compiler-rt: drop incomplete musl patches as
  sanitizers are disabled anyway and require more upstream porting.
2021-10-21 18:42:31 +01:00
Martin Weinelt
a415d5dd2e Merge remote-tracking branch 'origin/master' into staging-next 2021-10-15 23:10:08 +02:00
pennae
dc895fb281 lib: make extendDerivation lighter on eval
the fix to extendDerivation in #140051 unwittingly worsened eval performance by
quite a bit. set elements alone needed over 1GB extra after the change, which
seems disproportionate to how small it was. if we flip the logic used to
determine which outputs to install around and keep a "this one exactly" flag in
the specific outputs instead of a "all of them" in the root we can avoid most
of that cost.
2021-10-15 16:39:10 +02:00
Ryan Burns
a3cd66ba95
Merge pull request #137259 from quyse/llvm13_libcxxabi_musl
llvmPackages_13, llvmPackages_git: libcxxabi: fix musl build
2021-10-14 20:07:11 -07:00
github-actions[bot]
32615f6f8c
Merge staging-next into staging 2021-10-06 06:01:40 +00:00
Bernardo Meurer
45be479255
llvmPackages_rocm.compiler-rt: replace dead patch with clone 2021-10-05 19:17:59 -07:00
github-actions[bot]
f4ec0a418f
Merge staging-next into staging 2021-10-05 18:01:58 +00:00
Domen Kožar
b095319218
Merge pull request #140575 from jkarlson/llvmworkaround
llvmPackages_13.compiler-rt: disable libfuzzer for aarch64
2021-10-05 10:46:16 -05:00
Emil Karlson
248936ea57 llvmPackages_13.compiler-rt: disable libfuzzer for aarch64
Libfuzzer fails to compile for aarch64 #140441.
This change allows us to have sufficient functionality to build latest chromium.
2021-10-05 10:18:58 +03:00
github-actions[bot]
143452baae
Merge staging-next into staging 2021-10-02 12:01:40 +00:00
github-actions[bot]
d03095b67a
Merge master into staging-next 2021-10-02 12:01:09 +00:00
Michael Weiss
ed2c99e65f
llvmPackages_13: 13.0.0-rc4 -> 13.0.0 2021-10-01 22:10:21 +02:00
github-actions[bot]
29cadb4162
Merge staging-next into staging 2021-10-01 00:02:08 +00:00
Josh Hoffer
2549800a1a compiler-rt: cont. remove <cyclades.h> from libsanitizer
See commit 199b7c505b for the
original issue.

This patch is from the upstream rocm llvm repo:
https://reviews.llvm.org/rG884040db086936107ec81656aa5b4c607235fb9a
2021-09-29 22:28:16 -06:00
John Ericson
80345d7083
Merge pull request #139022 from trofi/fix-llvm-8-to-10-on-gcc11
llvm_8, llvm_9, llvm_10: apply upstream fix for gcc-11
2021-09-27 12:35:11 -04:00
github-actions[bot]
5dd6e3a959
Merge staging-next into staging 2021-09-25 18:01:44 +00:00
Michael Weiss
8bc030eb13
llvmPackages_13: 13.0.0-rc3 -> 13.0.0-rc4 2021-09-25 13:52:14 +02:00
Timothy DeHerrera
4493c55376
Merge pull request #139008 from trofi/fix-llvm-5-for-gcc-11
llvm_5: disable print_context.c (fails on gcc-11 / dwarf-5)
2021-09-23 20:19:29 -06:00
github-actions[bot]
194b50aba8
Merge staging-next into staging 2021-09-23 06:01:47 +00:00
Divam
d32e0e6b1b llvmPackages_13.lld: add postPatch to fix Darwin build 2021-09-23 09:17:31 +09:00
Sergei Trofimovich
e9b26087ad llvm_8, llvm_9, llvm_10: apply upstream fix for gcc-11
On gcc-11 build fails due to missing <limits> include.
The fix pulls upstream change as is.
2021-09-22 22:34:01 +01:00