Commit Graph

1219 Commits

Author SHA1 Message Date
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
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
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
David McFarland
0db0ac301a gcc: fix cross-win32 build of libstdc++ 2025-09-27 13:33:44 -03:00
David McFarland
bff4b038d8 gcc: disable libgcc output on cygwin 2025-09-27 13:33:44 -03:00
David McFarland
1bc4449ff6 gcc: add w32api target flags 2025-09-27 13:33:44 -03:00
David McFarland
d4217f410f gcc: fix cross-cygwin build 2025-09-27 13:33:44 -03:00
nixpkgs-ci[bot]
6ec57b45c7 Merge staging-next into staging 2025-09-15 16:09:34 +00:00
Yuriy Taraday
dd12290517 Reapply "stdenv: Add CPE fields to meta"
This reverts commit de74f9caf0.
2025-09-15 17:25:11 +02:00
Emily
411faf46e2 gcc: build with --enable-default-pie configure option (#439314) 2025-09-13 18:21:26 +01:00
Luna Nova
ccc56d1a79 gcc: build with --enable-default-pie configure option
Rather than implementing this at the wrapper level (which has been
attempted but not merged in # 252310 and # 205031), configuring GCC
directly with --enable-default-pie is simple and matches mainstream
distribution practices. Packages that cannot build with PIE can
explicitly pass -no-pie when needed, and mostly already do
due to the prevalence of GCCs built with this flag.

Requires followup to decide what to do with "pie" flag.
2025-09-13 10:15:36 -07:00
Marie Ramlow
69cde4d543 gcc: fix powerpc-linux cross compilers 2025-09-10 08:15:07 +02:00
K900
de74f9caf0 Revert "stdenv: Add CPE fields to meta" 2025-08-30 09:29:43 +03:00
Yuriy Taraday
b0ce3dc09f stdenv: Add CPE fields to meta
Add `identifiers` attr to `meta` attribute with following attrs:
* `cpe` with the full CPE string when available
* `possibleCPEs` with the list of potential CPEs when not all
  information is provided
* `cpeParts` with the destructured CPE string, allowing to override it
  whenever needed
* `v1` attribute set with `cpe` and `cpeParts` from above and a
  guarantee of a backwards-compatible interface

Related issue: https://github.com/NixOS/nixpkgs/issues/354012
2025-08-29 15:40:03 +02:00
John Ericson
aeaa19c420 gccNGPackages_15.gcc: Fetch more patches (#436085) 2025-08-23 22:29:15 -04:00
K900
e9a7500b70 Merge remote-tracking branch 'origin/master' into staging-next 2025-08-23 09:24:59 +03:00
John Ericson
b58f15124b gccNGPackages_15.gcc: Fetch more patches
Another has been upstreamed, yay. And for the yet-to-be-merged ones on
top of it, we can fetch from the mailing list instead of vendoring in
Nixpkgs.
2025-08-23 01:46:19 -04:00
Emily
f3186c5958 {gcc12,gfortran12,gccgo12,gnat12,gnat-bootstrap12}: drop
EOL as of July; no longer used in the tree.
2025-08-22 23:01:59 +01:00
Emily
10ce2b4791 {gcc11,gfortran11,gdc11,gnat11,gnat-bootstrap11}: drop
EOL since 2024; no longer used in the tree.
2025-08-22 23:01:59 +01:00
Emily
b5a4a0a6cc {gdc,gdmd}: drop
GDC 11 was the last version that could bootstrap without a D compiler,
and GDC don’t offer their own binaries any more. GCC 11 is now
end‐of‐life and being removed (as is GCC 12, even).

It’s possible that we could use another distribution’s binary
packages to bootstrap this, or go via our DMD package (it’s
apparently not possible to bootstrap GDC with LDC, but I’m not sure
about DMD), but as nobody has worked on it in the three years since
GCC 12 came out, it seems like interest is limited, and it’s more
of a yak shave than I’m up for right now.

A full from‐source bootstrap chain would of course be nice, but is
more the realm of the minimal bootstrap work than something we’d
want to keep GCC 11 around in the main package set indefinitely for.
2025-08-22 23:01:59 +01:00
Emily
4e7ee62b94 {gcc10,gfortran10}: drop
EOL since 2023; no longer used in the tree.
2025-08-22 23:01:59 +01:00
Emily
2a196a7278 {gcc9,gfortran9}: drop
EOL since 2022; no longer used in the tree.
2025-08-22 23:01:59 +01:00
Emily
b8f75c8f75 gcc: clean up unused patches 2025-08-22 23:01:59 +01:00
nixpkgs-ci[bot]
8721febb4b Merge master into staging-next 2025-08-20 00:16:19 +00:00
misilelab
cb94de7007 gcc15: 15.1.0 -> 15.2.0
https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=15.2

Signed-off-by: misilelab <misileminecord@gmail.com>
2025-08-20 02:13:47 +05:30
Vladimír Čunát
16c4d39695 gcc: pass -Wno-complain-wrong-lang... (#432060) 2025-08-10 09:22:10 +02:00
Emily
18bf03bc48 gcc: pass -Wno-complain-wrong-lang when using -fmacro-prefix-map
This will break GCC < 13 when compiled with LLVM, but those versions
are EOL and should be removed anyway, so I’m happy to do the nudge
rather than spend more effort on this hopefully‐temporary hack.
2025-08-08 17:48:58 +01:00
nixpkgs-ci[bot]
11f1819945 Merge staging-next into staging 2025-08-06 12:08:36 +00:00
Sergei Trofimovich
02eb6d0571 gcc13: 13.3.0 -> 13.4.0
Changes: https://sourceware.org/pipermail/gcc/2025-June/246131.html
2025-08-03 09:42:51 +02:00
Emily
4401eb4b3b sanitiseHeaderPathsHook: drop
This is now handled by the compiler wrapper.

I have verified that `webkitgtk_6_0` still has no GCC dependency on
`aarch64-linux`, and that `watchman` doesn’t pull in any `dev`
outputs on `aarch64-darwin`.

Closes: #424844
Closes: #426934
Closes: #427475
Closes: #428546
2025-07-31 16:39:48 +01:00
Emily
a413c6f5b4 cc-wrapper: use -fmacro-prefix-map to scrub __FILE__ references
This accomplishes the same thing as `sanitiseHeaderPathsHook`, but
applies to every build input and should have fewer side effects.
2025-07-29 18:32:43 +01:00
Tristan Ross
a155990361 gcc-unwrapped: set main program 2025-07-28 00:08:36 -07:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
John Ericson
61656014e2 gccNGPackages: Force regular dirs (#427189) 2025-07-21 16:51:27 -04:00
John Ericson
424f8f2abb gccNGPackages: Force regular dirs
Because we're building things separately, we don't need the fancy
lib/... namespacing tricks that GCC normally does to squeeze itself in
the FHS. We can just use the normal autotools libdir and include dir,
and the nixpkgs infra will sort everything out.

Where possible I submitted patches to the mailing list, and fetched
those. The ones I am vendoring are the residuals which I don't think are
ready for upstreaming yet. (I can imagine a further reworking upstream
such that we wouldn't need our own patches of that sort, but it would be
good to get the first crop merged first before discussing that.)
2025-07-21 15:40:34 -04:00
sanana
066da58d3a gccWithoutTargetLibc: disable features that require a libc
Missing these weren't causing any issues because they only require
headers, and gcc was likely using newlib headers. However, these
features must be disabled for `libc = null;` to work properly.
2025-07-20 10:24:38 +02:00
sanana
5046e89a35 gcc: enable withoutTargetLibc if target libc is null 2025-07-20 10:24:38 +02:00
Sergei Trofimovich
6a74f3839d gccNGPackages_15.gcc: drop unused libelf dependency
This mirrors the https://github.com/NixOS/nixpkgs/pull/187234 change
where `libelf` was removed from `gcc` packages. `libelf` is not used
by `gcc` since `4.6.0` version.
2025-07-16 18:25:36 +01:00
John Ericson
d6d5e9a7c6 gccNGPackages_15: fix gfortran & libstdcxx (#424411) 2025-07-14 00:05:54 -04:00
John Ericson
f50bcb34e5 gccNGPackages: Rework threading model patch based on feedback on IRC (#424918) 2025-07-13 23:13:25 -04:00
John Ericson
1840d4dbf0 gccNGPackages: Rework threading model patch based on feedback on IRC
Also clean up some comments, and avoid unnecessarily patching GCC
itself.
2025-07-13 12:51:54 -04:00
Tristan Ross
dffc946786 gccNGPackages_15.gfortran: fix missing spec file 2025-07-11 13:02:16 -07:00
nixpkgs-ci[bot]
e7ecba7a3a Merge master into staging-next 2025-07-11 15:03:21 +00:00
Tristan Ross
e51bc1ab23 gccNGPackages: init 2025-07-11 07:42:18 -07:00