Commit Graph

15909 Commits

Author SHA1 Message Date
Randy Eckenrode
adc8950856
llvmPackages_16.libcxxabi: fix build on Darwin 2023-08-24 18:28:25 -04:00
Randy Eckenrode
314584b222
llvmPackages_15.libcxxabi: fix build on Darwin 2023-08-24 18:28:16 -04:00
Peter Waller
044e8c4e44 llvmPackages_git: Port stdenv fix for cxx-headers
Signed-off-by: Peter Waller <p@pwaller.net>
2023-08-22 17:34:16 +01:00
Peter Waller
6ba1b5b0b3 llvmPackages_15, llvmPackages_16: Make the pkgsLLVM.stdenv work
What changed:

* Fixed crtbeginS.o and crtendS.o missing
  (they may or may not be called crt{begin_end},{,_shared}.

* Fixed implicit function declaration causing build errors for various
  builds by supplying -Wno-implicit-function-declaration.

* Fixed __cxxabi_config.h missing, by adding -I${cxxabi}/include/c++/v1
  in the wrapper.

* Fixed libcxx failing to build due to missing libunwind symbols by
  including libunwind as a buildInput, and setting
  -DLIBCXX_ADDITIONAL_LIBRARIES=unwind for stdenv.hostPlatform.useLLVM == true.

* libcxxabi wants to find libunwind at libunwind_shared.so, so symlink
  it there in libunwind.

* llvmPackages_16.libcxxabi: Pass -nostdlib via CMAKE_*_LINKER_FLAGS

  Without this flag, the link of libcxxabi.so tries to pull in libgcc and
  friends, from the clang compiler driver.

* Drop unneeded musl hack patch from libcxx.

* Pass -Wno-error=implicit-function-declaration only to compiler-rt

  See LLVM forum discussion:

  https://discourse.llvm.org/t/configure-script-breakage-with-the-new-werror-implicit-function-declaration/65213

  In summary, LLVM 16 made implicit function declaration an error. This
  happens a lot in configure scripts which can break things.

* llvmPackages_16: !isDarwin: Supply -DLIBCXX_ABI_USE_LLVM_UNWINDER=On

  Otherwise it fails with various undefined references to _Unwind_*
  functions: (full list: _Unwind_DeleteException _Unwind_GetIP
  _Unwind_GetLanguageSpecificData _Unwind_GetRegionStart
  _Unwind_RaiseException _Unwind_Resume _Unwind_SetGR _Unwind_SetIP).

* 16.libcxxabi: Only pass -nostdlib for useLLVM and Darwin builds

What was tested:

* x86_64-linux, aarch64-linux, the stdenv builds.
  * Additionally I was able to get nix to build, with an overlay to fix
    a couple of minor issues in downstream packages (overlay supplied in
    PR #246577.

* aarch64-darwin fails spuriously in a single LLVM test
  strip-preserve-atime.test checking atime timestamps.

* The same for pkgsLLVM with llvmPackages = llvmPackages_15.

Signed-off-by: Peter Waller <p@pwaller.net>
2023-08-22 17:33:24 +01:00
figsoda
3b6bef448e zig.hook: clean up
- remove noop `lib.concatStringsSep`
- reformat `releaseType`
- inline `cpu`
2023-08-22 10:09:56 +00:00
figsoda
fcdf10cd12 zig: restore with lib.maintainers;
This reverts 8315e00d46
2023-08-22 10:09:56 +00:00
Theodore Ni
174e4f41b4
Merge pull request #247066 from reckenrode/compiler-rt-static
llvmPackages_16.compiler-rt: fix static build on Darwin
2023-08-21 19:36:50 -07:00
Anderson Torres
ebb4d8a13f zig-shell-completions: refactor
- Use rec-less, overlay-style overridable recursive attributes (in effect since
https://github.com/NixOS/nixpkgs/pull/119942);
- Remove nested with (according to
https://nix.dev/anti-patterns/language#with-attrset-expression);
- Add updateScript.
2023-08-22 02:08:01 +00:00
Anderson Torres
fd774bd82b zig.hook: reword 2023-08-22 02:08:01 +00:00
Anderson Torres
b058a2fc29 zig: remove with lib 2023-08-22 02:08:01 +00:00
Randy Eckenrode
761aa9bf9f
llvmPackages_16.compiler-rt: fix static build on Darwin
This fixes two issues on Darwin to allow pkgsStatic to work with LLVM 16

* It fixes an infinite recursion where Darwin was using a regular stdenv
  to build compiler-rt instead of one without compiler-rt; and
* It disables sanitizers that won’t build statically and makes sure the
  build can find the cross-lipo.
2023-08-21 21:51:35 -04:00
Someone Serge
065f90d25c
cudaPackages.autoAddOpenGLRunpathHook: don't skip shared libraries 2023-08-22 03:14:47 +03:00
figsoda
ad956977da
Merge pull request #250232 from figsoda/august 2023-08-21 11:14:31 -04:00
Aaron Jheng
9182fed84c zig-shell-completions: init at unstable-2023-08-17 2023-08-21 11:36:49 +00:00
Adam Joseph
e61c8da98d
Merge pull request #249707 from amjoseph-nixpkgs/pr/gcc/deduplicate
gcc: deduplicate version expressions

The last merge of `staging` into `master` caused a really nasty merge conflict here.

Since this is strictly cleanup (no change after eval), in order to prevent that from happening again I am merging this to both `master` and `staging`.  It's much easier to rebase other patches past this one than it is to rebase this one past other patches.
2023-08-21 09:17:31 +00:00
Adam Joseph
1b0ed9f81b gcc: patches: fix patch name 2023-08-20 23:43:45 -07:00
Emery Hemingway
380a34d03c nim2: init 2.0.0 2023-08-21 07:32:46 +01:00
HuangYi
cbc976a97c fix: install go.env in go_1_21
fix build error: "GOPROXY list is not the empty string, but contains no entries"

see: https://github.com/golang/go/issues/57179
2023-08-21 16:10:30 +10:00
Adam Joseph
8221d5f4e7 gcc: resolve merge conflict from staging 2023-08-20 23:00:03 -07:00
Adam Joseph
8f225b515f gcc: match weird whack-a-mole per-version hash algorithm 2023-08-20 23:00:03 -07:00
Adam Joseph
de36365466 gcc: clean up version conditions 2023-08-20 23:00:03 -07:00
Adam Joseph
30171782b7 gcc: move version-map out of all-packages.nix, into pkgs/ 2023-08-20 23:00:02 -07:00
Adam Joseph
911452ccbd gcc: move patches attribute into patches/ subdirectory 2023-08-20 23:00:02 -07:00
Adam Joseph
95475034d5 gcc: if atLeast 4.8, use deduplicated version 2023-08-20 23:00:02 -07:00
Adam Joseph
beeb48d17a gcc: if atLeast 4.9, use deduplicated version 2023-08-20 23:00:02 -07:00
Adam Joseph
920df10ab7 gcc: if atLeast 6, use deduplicated version 2023-08-20 23:00:02 -07:00
Adam Joseph
33f7f2c5aa gcc: if atLeast 7, use deduplicated version 2023-08-20 23:00:01 -07:00
Adam Joseph
e7afebbc4c gcc: if atLeast 8, use deduplicated version 2023-08-20 23:00:01 -07:00
Adam Joseph
4116fc3e6f gcc: if atLeast 9, use deduplicated version 2023-08-20 23:00:01 -07:00
Adam Joseph
10ee71f582 gcc: if atLeast 10, use deduplicated version 2023-08-20 23:00:01 -07:00
Adam Joseph
72fe04286e gcc: if atLeast 11, use deduplicated version 2023-08-20 23:00:00 -07:00
Adam Joseph
e9ece66a80 gcc: if atLeast 12, use deduplicated version 2023-08-20 23:00:00 -07:00
Adam Joseph
93d63aaa05 gcc: if atLeast 13, use deduplicated version 2023-08-20 23:00:00 -07:00
Adam Joseph
9dc9872922 gcc: default.nix: parameterize by version 2023-08-20 23:00:00 -07:00
Adam Joseph
57a2dfe646 gcc: default.nix: replace ../ with ./ 2023-08-20 23:00:00 -07:00
Adam Joseph
671b761d05 gcc: cp ./13/default.nix ./default.nix 2023-08-20 22:59:59 -07:00
zowoq
8ed712ec90 go_1_21: 1.21rc4 -> 1.21.0
Changelog: https://go.dev/doc/devel/release#go1.21
2023-08-21 08:02:30 +10:00
Vladimír Čunát
fc70e5a336
Merge #250296: swift: update for cc-wrapper changes
...into staging-next
2023-08-20 21:36:24 +02:00
Theodore Ni
dab839357e
Merge branch 'master' into staging-next
Had to merge https://github.com/NixOS/nixpkgs/pull/245957 and
https://github.com/NixOS/nixpkgs/pull/247245.
2023-08-20 12:01:22 -07:00
Janik
d2d2edea93
Merge pull request #245445 from kirillrdy/tinygo 2023-08-20 20:29:13 +02:00
Randy Eckenrode
e7cf9a7c45
swift: update for cc-wrapper changes
The Swift compiler derivation modifies the clang wrapper to use
`exec -a "$0"` to allow it to use the same binary for both `clang` and
`clang++`. The sed script it uses to do this fails after the cc-wrapper
changes in 6f2b3ba027 were merged.

This is fixed by updating `makeClangWrapper` to work with the cc-wrapper
changes by having Bash invoke a simple script that uses `exec -a "$0"`
to set the required name for clang.

This fixes the staging-next build failures with Swift on Darwin and Linux.

https://github.com/NixOS/nixpkgs/pull/248496#issuecomment-1676831102
2023-08-20 00:17:10 -04:00
figsoda
60195447f3 august: init at unstable-2023-08-13
https://github.com/yoav-lavi/august
2023-08-19 14:42:10 -04:00
github-actions[bot]
d3b2560b73
Merge master into staging-next 2023-08-19 12:01:03 +00:00
Marek Fajkus
338decd50f
Merge pull request #250068 from dotlambda/elm-test-buildNpmPackage
elmPackages.elm-test: use buildNpmPackage
2023-08-19 13:47:31 +02:00
Mario Rodas
d998b83332
Merge pull request #248079 from marsam/update-fstar
fstar: 2023.02.01 -> 2023.04.25
2023-08-19 03:04:18 -05:00
Robert Schütz
5a5401dc95 elmPackages.elm-test: use buildNpmPackage 2023-08-18 17:34:58 -07:00
github-actions[bot]
d87ab3bf05
Merge master into staging-next 2023-08-18 12:01:03 +00:00
Ulrik Strid
014409451f
Merge pull request #249555 from ligolang/ligo--0_72_0
ligo: 0.71.1 -> 0.72.0
2023-08-18 08:11:08 +02:00
Vladimír Čunát
636fd56f69
Merge #248552: gcc10, gcc13: patch-version bumps
...into staging-next
2023-08-18 06:48:53 +02:00
Laurent CaniBot
35473208fe ligo: 0.71.1 -> 0.72.0 2023-08-17 14:33:27 +02:00