Commit Graph

1310 Commits

Author SHA1 Message Date
nixpkgs-ci[bot]
e88108f433 Merge master into staging-next 2026-02-19 18:18:44 +00:00
John Ericson
5a2694bcf3 cygwin-dll-link: improvements from testing on native cygwin (#476301) 2026-02-19 15:59:06 +00:00
Fabián Heredia Montiel
d80b1bccd5 Merge remote-tracking branch 'origin/master' into staging-next 2026-02-17 12:29:41 -06:00
Alexander Bantyev
22ca96f3a9 various: add meta.identifier.cpeParts to a batch of packages
Co-Authored-By: Silvan Mosberger <silvan.mosberger@tweag.io>
2026-02-16 17:11:52 +01:00
David McFarland
f2ac4eef52 gcc: move cygwin DLLs to $target/bin 2026-02-08 19:47:26 -04:00
Philip Taron
c0988ed534 libhwy: 1.0.7 -> 1.3.0, gcc15: backport aarch64 ICE on vreg split (#320616) 2026-01-22 00:19:56 +00:00
Sergei Trofimovich
7e3600b5fa gcc15: backport aarch64 ICE on vreg split
Without the change `libhwy-1.3.0` fails as:

    libhwy-aarch64-unknown-linux-gnu> /build/source/hwy/contrib/random/random-inl.h: In function 'hwy::N_SVE2::VectorXoshiro::VectorXoshiro(uint64_t, uint64_t)':
    libhwy-aarch64-unknown-linux-gnu> /build/source/hwy/contrib/random/random-inl.h:199:3: error: unrecognizable insn:
    libhwy-aarch64-unknown-linux-gnu>   199 |   }
    libhwy-aarch64-unknown-linux-gnu>       |   ^
    libhwy-aarch64-unknown-linux-gnu> (insn 18 4 19 2 (set (reg:TI 154 [ D.606722 ])
    libhwy-aarch64-unknown-linux-gnu>         (subreg:TI (const_vector:V2DI [
    libhwy-aarch64-unknown-linux-gnu>                     (const_int 4 [0x4])
    libhwy-aarch64-unknown-linux-gnu>                     (const_poly_int:DI [2, 2])
    libhwy-aarch64-unknown-linux-gnu>                 ]) 0)) "/build/source/hwy/contrib/random/random-inl.h":183:9 -1
    libhwy-aarch64-unknown-linux-gnu>      (nil))
    libhwy-aarch64-unknown-linux-gnu> during RTL pass: vregs
    libhwy-aarch64-unknown-linux-gnu> /build/source/hwy/contrib/random/random-inl.h:199:3: internal compiler error: in extract_insn, at recog.cc:2882
    libhwy-aarch64-unknown-linux-gnu> 0x233d5bb diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag (*) [1], diagnostic_t)

Co-authored-by: Philip Taron <philip.taron@gmail.com>
2026-01-21 06:42:19 +00:00
nixpkgs-ci[bot]
c3d339e54c Merge master into staging-next 2026-01-14 00:19:10 +00:00
John Ericson
beb0e1eeed gcc: fix cygwin build (#476299) 2026-01-13 21:38:07 +00:00
David McFarland
cde2dbab81 gcc: fix cygwin build 2026-01-13 13:16:01 -04:00
Vladimír Čunát
3b4a003049 gcc: reconfigure build system (#469356) 2026-01-10 12:35:08 +00:00
Vladimír Čunát
57d9ca5d49 Merge branch 'master' into staging 2026-01-08 12:47:15 +01:00
Vladimír Čunát
6ea24aa5c3 gcc14: fixup build on aarch64-darwin
https://hydra.nixos.org/build/317993814
Same for gfortran14 and perhaps other derivatives.
This is a partial revert of 385a5e2917 from PR #461497
(with added comment to explain)
2026-01-08 07:57:17 +01:00
lzcunt
cd3604f63a gcc: reconfigure build system
Split from #371092.

See <https://github.com/NixOS/nixpkgs/pull/371092/files#r2401287986> and
<https://wiki.debian.org/Autoreconf> for some rationale.

Co-Authored-By: Arsen Arsenović <arsen@aarsen.me>
2026-01-06 00:56:31 +03:00
Maximilian Bosch
823f64e01f gccNGPackages_15: 15.1.0 -> 15.2.0, fix build w/ glibc-2.42
To fix build with glibc-2.42.
Failing Hydra build: https://hydra.nixos.org/build/308474067
2026-01-03 20:39:44 +01:00
Maximilian Bosch
00105a15ea gcc13,gcc14: fix build w/ glibc-2.42 2025-12-30 14:57:14 +01:00
Sergei Trofimovich
df4f7ea710 gcc: don't apply c++tools --enable-default-pie patch for gcc-16+
The patch is already applied upstream at https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=3f1f99ef82a65d66e3aaa429bf4fb746b93da0db
and causes conflict when applied on top of current git master as:

    xgcc> applying patch /nix/store/kxfa7n7k3clgw13yafj5irj51gk2w3dg-c++tools-dont-check-enable-default-pie.patch
    xgcc> patching file c++tools/configure
    xgcc> Reversed (or previously applied) patch detected!  Assume -R? [n]
    xgcc> Apply anyway? [n]
    xgcc> Skipping patch.
    xgcc> 3 out of 3 hunks ignored -- saving rejects to file c++tools/configure.rej
    xgcc> patching file c++tools/configure.ac
    xgcc> Reversed (or previously applied) patch detected!  Assume -R? [n]
    xgcc> Apply anyway? [n]
    xgcc> Skipping patch.
    xgcc> 1 out of 1 hunk ignored -- saving rejects to file c++tools/configure.ac.rej
2025-12-17 12:08:33 +00:00
dramforever
48878a8096 gcc{14,15}: Pick c++tools --enable-default-pie patch 2025-12-13 13:39:07 +08:00
nixpkgs-ci[bot]
795ce4c7c1 Merge staging-next into staging 2025-12-11 00:19:41 +00:00
John Ericson
120107d894 gccNGPackages: Replace some mailing list fetches with commits
A few patches of mine were just merged (yay!). Let's upgrade the
`fetchpatch` invocations from the original mailing list submission to
the accepted commit, accordingly.

I narrowed down the the files to patch because patching
autoconf-generated files will break, and is not needed because we are
regenerating those files anyways.
2025-12-10 14:05:03 -05:00
Vladimír Čunát
355876da68 gcc15: fix build on aarch64-darwin (#461497) 2025-12-08 09:33:12 +00:00
David McFarland
22144b94ae gcc: remove unix define on cygwin
This breaks compilation of nix, because it uses 'namespace unix'.  Other
platforms currently do something similar to this.
2025-12-05 15:56:17 -04:00
Ben Siraphob
385a5e2917 gcc15: fix build on aarch64-darwin
This fixes the GCC 15.2.0 build on aarch64-darwin by addressing two issues
in the libgcc build process:

1. Update libgcc-darwin-detection.patch:
- Catch arm64-apple-darwin (which lacks a version number)
- Add t-darwin-libgccs1 to enable libgcc_s.1.dylib compatibility build

2. Added libgcc-darwin-fix-reexport.patch:
- Remove reexport of darwin-unwind.ver symbols in libgcc_s.1.dylib
- These symbols (___register_frame_info, etc.) don't exist in libgcc
  on modern macOS as they come from libSystem

The original build failed with:
  Undefined symbols for architecture arm64:
    "___deregister_frame_info", referenced from:
       -reexported_symbols_list command line option
    ...

This occurred because darwin-unwind.ver lists unwinder symbols that are
excluded from libgcc (via libgcc-libsystem.ver) on macOS 11+ where they
are provided by the system's libSystem.
2025-11-14 00:08:40 -08:00
nixpkgs-ci[bot]
4434bd9511 Merge master into staging-next 2025-11-05 00:17:33 +00:00
Ben Siraphob
3d8133c572 gccNGPackages.libbacktrace: fix tests on darwin
The libbacktrace test suite was failing on darwin because the
btest_gnudebuglink tests attempted to use GNU debuglink functionality,
which only works on ELF binaries, not Mach-O on darwin.

We set `libbacktrace_cv_objcopy_debuglink=no`, allowing the remaining 21 tests to run successfully.
2025-11-02 22:56:41 -08:00
K900
934d11cb78 Merge remote-tracking branch 'origin/staging-next' into staging 2025-11-02 00:50:30 +03:00
Philip Taron
21623b7ce7 Reapply "splice.nix: make pkgs splicedPackages" (#456138) 2025-11-01 13:49:33 +00:00
nixpkgs-ci[bot]
9c7c6cc7ff Merge staging-next into staging 2025-10-31 00:17:58 +00:00
Aliaksandr
03bb7d8195 all-packages: do not export lib functions from pkgs 2025-10-30 22:38:49 +02:00
K900
45df334930 Merge remote-tracking branch 'origin/staging-next' into staging 2025-10-30 12:20:34 +03:00
Artturin
2494e3664f splice.nix: make pkgs splicedPackages when required
This will make `pkgs` used in `callPackage`, and `pkgsCross.X.pkgs` have
packages with `__spliced`.

3029741718/pkgs/development/interpreters/python/passthrufun.nix (L37)

d2bd9a39de/pkgs/top-level/python-packages.nix (L10720)

```
nix-repl>
pkgsCross.aarch64-multiplatform.python3Packages.protobuf4.protobuf.__spliced
error:
       … while evaluating the attribute
'aarch64-multiplatform.python3Packages.protobuf4.protobuf.__spliced'
         at
/home/artturin/nixgits/my-nixpkgs/.worktree/1/pkgs/development/python-modules/protobuf/4.nix:119:13:
          118|   passthru = {
          119|     inherit protobuf;
             |             ^
          120|   };

       error: attribute '__spliced' missing
       at «string»:1:1:
            1|
pkgsCross.aarch64-multiplatform.python3Packages.protobuf4.protobuf.__spliced
             | ^
```

to

```
nix-repl>
pkgsCross.aarch64-multiplatform.python3Packages.protobuf4.protobuf.__spliced
{
  buildBuild = «derivation
/nix/store/s7da5mfvx4h1n86j78knaj9cprglxqz6-protobuf-25.4.drv»;
  buildHost = «derivation
/nix/store/s7da5mfvx4h1n86j78knaj9cprglxqz6-protobuf-25.4.drv»;
  buildTarget = «repeated»;
  hostHost = «derivation
/nix/store/mszvybzs4zxh43awyrjnybsfcb265n9r-protobuf-aarch64-unknown-linux-gnu-25.4.drv»;
  hostTarget = «repeated»;
}
```

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-10-28 21:54:10 +01:00
Alyssa Ross
8a847eb3e0 gcc: disable enableDefaultPie when !hasSharedLibraries (#452791) 2025-10-25 12:25:01 +02:00
Luna Nova
0c7e14e688 gcc: disable enableDefaultPie when !hasSharedLibraries
In discussion on #439314 conditionalizing this seemed unnecessary
as pkgsStatic's gcc kept working. However, some less typical
!hasSharedLibraries stdenvs for embedded platforms broke.

It seems simplest to make this conditional on hasSharedLibraries for
now. We may need to revisit this if we want to enable static-pie by
default with gcc spec file changes.
2025-10-16 18:09:55 -07:00
nixpkgs-ci[bot]
65442c44e7 Merge staging-next into staging 2025-10-15 12:55:45 +00:00
nixpkgs-ci[bot]
ce0844a584 Merge master into staging-next 2025-10-15 12:55:06 +00:00
Luna Nova
e7fbed853b treewide: remove usages of obsolete pie hardening flag 2025-10-09 10:13:03 -07:00
Marie Ramlow
06e1588e57 gcc: drop libstdc++ patch
This patch was introduced in 2010 to fix mingw compilers.
See c548c084bb
It no longer applies to gcc15 and all of our current gccs (13, 14 and 15)
build fine without it.

Tested the following cross-compilers:
```shell
nix-build --expr 'with (import ./. { }).pkgsCross.mingwW64; hello.override { stdenv = gcc13Stdenv; }' \
          --expr 'with (import ./. { }).pkgsCross.mingwW64; hello.override { stdenv = gcc14Stdenv; }' \
          --expr 'with (import ./. { }).pkgsCross.mingwW64; hello.override { stdenv = gcc15Stdenv; }' \
          --expr 'with (import ./. { }).pkgsCross.mingw32; hello.override { stdenv = gcc13Stdenv; }' \
          --expr 'with (import ./. { }).pkgsCross.mingw32; hello.override { stdenv = gcc14Stdenv; }' \
          --expr 'with (import ./. { }).pkgsCross.mingw32; hello.override { stdenv = gcc15Stdenv; }'
```
2025-10-07 10:28:13 +02:00
Wolfgang Walther
5e1f5b623b Merge branch 'staging-next' into staging 2025-10-05 11:40:56 +02:00
K900
e93c560b79 Merge remote-tracking branch 'origin/master' into staging-next 2025-10-05 12:17:08 +03:00
Wolfgang Walther
91a8fee3aa treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00
Wolfgang Walther
c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00
Wolfgang Walther
90e7159c55 treewide: remove unused rec
Auto-fix by nixf-diagnose.
2025-10-05 10:49:12 +02:00
nixpkgs-ci[bot]
e23d356469 Merge staging-next into staging 2025-10-05 00:18:23 +00:00
K900
f8d669f413 Merge remote-tracking branch 'origin/master' into staging-next 2025-10-04 21:10:21 +03:00
NAHO
c8d4dabc43 pkgs: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --type file \
      . \
      pkgs \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2025-10-04 19:02:37 +02:00
David McFarland
70529ae3bc Revert "treewide: undo changes causing rebuilds" (#447736) 2025-10-02 11:24:30 -03:00
David McFarland
b8cf634aa1 Revert "treewide: undo changes causing rebuilds"
This reverts commit e098bea39d.
2025-09-30 19:05:25 -03:00
K900
4999ae577c Merge remote-tracking branch 'origin/master' into staging-next 2025-09-30 21:47:55 +03:00
David McFarland
e098bea39d treewide: undo changes causing rebuilds 2025-09-27 21:21:48 -03:00
David McFarland
c5d92e0dbf gcc: disable libssp on cygwin 2025-09-27 21:21:48 -03:00