Commit graph

422 commits

Author SHA1 Message Date
Maxim Cournoyer
10482f731e
Reapply "Update Maxim's email address."
This reverts commit a7db92d9b3, this time with
the more careful command, to avoid a world rebuild:

grep -rl --exclude-dir=build --exclude-dir=patches --exclude=ld-wrapper.in \
  --exclude=sitecustomize.py --exclude=guix-emacs.el maxim.cournoyer@gmail.com |
  xargs sed -i 's/maxim.cournoyer@gmail.com/maxim@guixotic.coop/g'

Change-Id: I0871f5cf9ace79e34e78e24154d0da6ea95a3a91
2025-09-18 13:44:12 +09:00
Maxim Cournoyer
a7db92d9b3
Revert "Update Maxim's email address."
This reverts commit d0d87a744d. Oops! This
caused a world rebuild.

Change-Id: I25fff644b2b61d0ee93d69b457b04c72b5b74d15
2025-09-18 12:07:31 +09:00
Maxim Cournoyer
d0d87a744d
Update Maxim's email address.
The change was automated via:

  git grep -l maxim.cournoyer@gmail.com |
    xargs sed -i 's/maxim.cournoyer@gmail.com/maxim@guixotic.coop/g'

* .mailmap: New entry.

Change-Id: Iaa88b1e51c94159c49138fb43910badb990eb169
2025-09-18 08:05:19 +09:00
Efraim Flashner
19092ca56f
gnu: gcc-4.8: Fix supported systems list.
* gnu/packages/gcc.scm (gcc-4.8)[supported-systems]: Re-add
powerpc64le-linux.

Change-Id: Icf5d8ceb63f49d2429cd3c10f8eb929c68c39aff
2025-09-08 13:08:22 +03:00
Efraim Flashner
de00dc3251
gnu: gcc-4.8: Fix supported systems list.
* gnu/packages/gcc.scm (gcc-4.8)[supported-systems]: Re-add
powerpc64le-linux.

Change-Id: I7cb69a6320fb19b2cbc07c1099f6937f351948ff
2025-09-08 13:07:26 +03:00
Efraim Flashner
f369967578
gnu: gcc-5: Fix supported systems list.
This is a follow-up to 926225ec3e.

* gnu/packages/gcc.scm (gcc-5)[supported-systems]: Re-add
powerpc64le-linux.

Change-Id: I90ad75944605b457935f3d831181b3c96469ac54
2025-09-08 13:04:10 +03:00
Efraim Flashner
b0333c8b5b
gnu: gcc-4.8: Unbreak embedded builds.
* gnu/packages/gcc.scm (gcc-4.8)[arguments]: When cross-compiling don't
adjust the inherited modules.

Change-Id: Idbe1b6c4a3c2e9d1fe0ca5b1e9fa922080e9de86
2025-09-08 12:50:52 +03:00
Efraim Flashner
3614c6d1b5
gnu: gcc-4.9: Unbreak embedded builds.
Reported by Ludovic Courtès <ludo@gnu.org>.

* gnu/packages/gcc.scm (gcc-4.9)[arguments]: When cross-compiling don't
adjust the inherited modules.

Change-Id: I763746c25a8f24f89db8c6b100a6395b816cbcaf
2025-09-08 12:50:52 +03:00
Efraim Flashner
8c9493cb31
gnu: gcc-4.8: Use less inheritance.
* gnu/packages/gcc.scm (gcc-4.8)[arguments]: Take the version specific
configure-flag from gcc-base.
[supported-systems]: Update supported systems.
(gcc-base)[arguments]: Remove version specific configure-flag logic.

Change-Id: I9104cdc81d5caae4c3310e1c8d3821e0509f928e
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2025-09-08 10:01:47 +03:00
Efraim Flashner
88449118f2
gnu: gcc-4.9: Inherit from gcc-base.
* gnu/packages/gcc.scm (gcc-4.9): Inherit from gcc-base.
[arguments]: Add inherited phases.  Take the version specific
configure-flag from gcc-base.
[inputs]: List specifically.
[supported-systems]: New field.

Change-Id: Iff481ef403faff7047bcb7a27cc13833d98e5de7
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2025-09-08 10:01:47 +03:00
Efraim Flashner
926225ec3e
gnu: gcc-5: Inherit from gcc-base.
* gnu/packages/gcc.scm (gcc-5): Inherit from gcc-base.
[arguments]: Add inherited phases.  Take the version specific
configure-flag from gcc-base.
[native-inputs]: List specifically.
[supported-systems]: New field.

Change-Id: I8fd89cda090a69f4a60891e8c387beb416d250ad
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2025-09-08 10:01:47 +03:00
Efraim Flashner
c559d6862f
gnu: gcc-6: Inherit from gcc-base.
* gnu/packages/gcc.scm (gcc-6): Inherit from gcc-base.
[native-inputs]: List specifically.

Change-Id: Id8606c49b4f19f46a84a6c105e4f90a506b198bf
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2025-09-08 10:01:47 +03:00
Efraim Flashner
1956a64494
gnu: gcc-7: Inherit from gcc-base.
* gnu/packages/gcc.scm (gcc-7): Inherit from gcc-base.
[native-inputs]: Add explicitly.
[inputs]: Add explicitly.

Change-Id: Id982ecb81ec774121858251723341f89507f0332
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2025-09-08 10:01:47 +03:00
Efraim Flashner
d32153f736
gnu: gcc-4.7: Break out into its own package.
* gnu/packages/gcc.scm (gcc-4.7): Rename to gcc-base.
(gcc-4.7): New package, inherit from gcc-base.
[source]: Add snippet to fix building with newer glibc.
[arguments]: Add phase to adjust the C++ include path when not
cross-building.
[supported-systems]: Update supported systems.
(gcc-4.8, gcc-4.9, gcc-6): Inherit from gcc-base.
(base-gcc)[supported-systems]: Remove field.
* gnu/packages/embedded.scm (make-propeller-gcc-4): Inherit from
gcc-base.

Change-Id: I843049420e2afcf1ea342e87eaa9ac46576e4307
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2025-09-08 10:01:47 +03:00
fanquake
79fce89fd0
gnu: gcc@12: Update to 12.5.0.
* gnu/packages/gcc.scm (gcc-12): Update to 12.5.0.

Signed-off-by: Andreas Enge <andreas@enge.fr>
2025-09-01 22:03:13 +02:00
Maxim Cournoyer
2c922f9371
gnu: gdc: Fix build.
* gnu/packages/gcc.scm (gdc): Add gdc-11 (and gcc) to native inputs.

Fixes: #1460
Co-authored-by: Dariqq <dariqq@posteo.net>
Change-Id: I1d25704829d48a9819cc493e227b050083b18ea4
2025-08-26 10:27:15 +09:00
Maxim Cournoyer
0dbe72111f
gnu: Remove gdc-toolchain-10.
* gnu/packages/commencement.scm (gdc-toolchain-10): Delete variable.

Change-Id: I0862bd93ae6fea8a50889990db454485b6f22513
2025-08-26 10:25:47 +09:00
Zheng Junjie
cc083d6b95
gnu: gcc-15: Update to 15.2.0.
* gnu/packages/gcc.scm (gcc-15): Update to 15.2.0.

Change-Id: Idfb116056b57406ddb746c0e0583adad284296ae
Signed-off-by: Greg Hogan <code@greghogan.com>
2025-08-15 14:18:55 +00:00
Efraim Flashner
681f70737e
gnu: gcc: Update recognized micro-architectures.
* gnu/packages/gcc.scm (%gcc-13-x86_64-micro-architectures): Add
lujiazui.
(%gcc-14-x86_64-micro-architectures): Add yongfeng.
(%gcc-14-aarch64-micro-architectures,
%gcc-14-ppc64le-micro-architectures,
%gcc-15-aarch64-micro-architectures,
%gcc-15-x86_64-micro-architectures): New variables.
(gcc-14)[properties]: Update compiler-cpu-architectures.
(gcc-15)[properties]: Same.

Change-Id: Iac85a691c577aadd24e073d70621d0dea69e43f2
2025-08-06 12:02:52 +03:00
Zheng Junjie
3d2efdbd33
gnu: libstdc++: Fix build for gcc-13.
* gnu/packages/gcc.scm (make-libstdc++)[arguments]: use patch-tzdb.cc phase
for gcc >= 13.

Change-Id: I6e8ae4b973e80c11d67b7333ec2dfa732d1d016a
2025-07-18 20:17:35 +02:00
Ludovic Courtès
42f7c1bb17
gnu: gcc: Fix compilation of libstdc++ for GCC 7 to 13.
With the introduction of GCC 14 as the default compiler, compilation of
libstdc++ of all previous versions would fail due to a different
signature for ‘__cxa_call_terminate’ (a builtin in GCC 14).  This fixes it.

* gnu/packages/patches/gcc-libstdc++-newer-gcc.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
* gnu/packages/gcc.scm (gcc-7, gcc-8, gcc-9, gcc-10)
(gcc-11, gcc-12, gcc-13): Use it.

Change-Id: I84dc26e46d56259d7d610f19b0521fa9c5499d5e
2025-07-18 20:17:34 +02:00
Leo Nikkilä
c4a100f3c6
gnu: gcc-6: Use libstdc++ headers appropriate for each GCC.
After the "hack" introduced for <https://issues.guix.gnu.org/42392>, all GCCs
are built with the current GCC's libstdc++ headers.  This results in subtly
broken C++ headers in older versions, which aren't necessarily compatible with
libstdc++s from other versions.

For example, this test case works with GCC 11:

    $ guix shell --container --emulate-fhs --pure -e '(@ (gnu packages gcc) gcc)' binutils -- sh -c 'echo -e "#include <cmath>\nint main() { return std::isnan(0); }" | g++ -x c++ -; echo $?'
    0

but fails with GCC 9:

    $ guix shell --container --emulate-fhs --pure -e '(@ (gnu packages gcc) gcc-9)' binutils -- sh -c 'echo -e "#include <cmath>\nint main() { return std::isnan(0); }" | g++ -x c++ -; echo $?'

    In file included from /gnu/store/gkh2rljdrnj24q1q7baa6bhb119251w4-profile/include/c++/cmath:45,
                     from <stdin>:1:
    <stdin>: In function 'int main()':
    <stdin>:2:26: error: '__builtin_isnan' is not a member of 'std'; did you mean '__builtin_isnan'?
    <built-in>: note: '__builtin_isnan' declared here
    1

This specific error can be traced back to the GCC build, where GCC 10 and 11
are configured with:

    checking for ISO C99 support in <math.h> for C++11... yes

but GCC 9 is configured with:

    checking for ISO C99 support in <math.h> for C++11... no

The configure check fails due to errors like these due to the mismatched
libstdc++:

    configure:17817: checking for ISO C99 support in <math.h> for C++11
    […]
    In file included from /gnu/store/y3kk0ybf7hqwndl8xpm61r4a5b3lhwix-libstdc++-11.4.0/include/cmath:41,
                     from /gnu/store/y3kk0ybf7hqwndl8xpm61r4a5b3lhwix-libstdc++-11.4.0/include/math.h:36,
                     from conftest.cpp:41:
    /gnu/store/y3kk0ybf7hqwndl8xpm61r4a5b3lhwix-libstdc++-11.4.0/include/bits/c++config.h:491:18: error: missing binary operator before token "("
      491 | #if __has_builtin(__builtin_is_constant_evaluated)
          |                  ^

Updating libstdc++ to reference each GCC works around this.

* gnu/packages/gcc.scm (libstdc++, libstdc++-headers): Remove variables.
(make-libstdc++-headers): New procedure.
(gcc-6)[native-inputs]: Use it with `this-package'.

Change-Id: Ie05878c83860c4ccc29d66b916d11613e367e142
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Modified-by: Ludovic Courtès <ludo@gnu.org>
2025-07-18 20:17:32 +02:00
Leo Nikkilä
24f0d5d1ee
gnu: gcc-4.7: Fix slash in startfile prefix.
These prefixes must have a trailing slash.  When this slash is
omitted, gcc fails to find ?crt*.o files when LIBRARY_PATH is not set.

Fixes #75483, see <https://issues.guix.gnu.org/75483>.

* gnu/packages/gcc.scm (gcc-4.7): Fix replaced startfile prefix.
[arguments]: <#:phases>: Fix it.

Change-Id: I1988e0bf98b0002e83e0c0233310d05b72644ac9
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2025-07-18 20:17:26 +02:00
Janneke Nieuwenhuizen
84f665f8d1
gnu: gcc: Update gcc, gcc-toolchain, libgccjit to 14.
* gnu/packages/gcc.scm (gcc): Define as gcc-14 for all.
(libgccjit): Define as libgccjit-14.
* gnu/packages/commencement.scm (gcc-toolchain): Define as gcc-toolchain-14
for all.
* gnu/packages/gcc.scm

Change-Id: Iaac983da8acbbb2fd1088a0469d6115b7d424dbb
2025-07-18 20:17:26 +02:00
Janneke Nieuwenhuizen
449e46088f
gnu: gcc-11: Update to 11.5.0; fixes build with gcc-14.
* gnu/packages/gcc.scm (gcc-11): Update to 11.5.0.

Change-Id: I57b0ab94e733ab9eb2ad226b5fcbc951860a48c3
2025-07-18 20:17:16 +02:00
Janneke Nieuwenhuizen
4c98f0d1f4
gnu: gcc-4.7: Add gcc-wrapper from gcc-final.
* gnu/packages/commencement.scm (gcc-boot0)[arguments]: Remove CC_FOR_BUILD strictness
relaxing from #:make-flags.
(gcc-final)[arguments]: Move stage "create-stage-wrapper" and related settings
in #:configure-flags and #:make-flags to...
* gnu/packages/gcc.scm (gcc-4.7)[arguments]: ...new "relax-gcc-14s-strictness
stage here.

Change-Id: I0c372a4f372281b54e44dd446b6e5ddac5841c5a
2025-07-18 20:17:15 +02:00
Janneke Nieuwenhuizen
1308ce47c9
gnu: libstdc++: Fix build for linux with gcc-14.
* gnu/packages/gcc.scm (make-libstdc++)[arguments]: Rename stage "patch-hurd64
to "patch-tzdb.cc and use for gcc >= 14 unrestrictedly.

Change-Id: Icaf0a31744dc6102d96444f531f3ba1878a61b6c
2025-07-18 20:17:12 +02:00
Janneke Nieuwenhuizen
994b24e875
gnu: gcc-14: Update to 14.3.0.
* gnu/packages/gcc.scm (gcc-14): Update to 14.3.0.

Change-Id: I50b3c47f1e1c80129e2aee7a37e0fa6c57a3f9fc
Signed-off-by: Zheng Junjie <z572@z572.online>
2025-06-24 09:28:11 +08:00
Danny Milosavljevic
57ea6d3d59
gnu: Add gm2-toolchain.
* gnu/packages/commencement.scm (gm2-toolchain): New variable.
* gnu/packages/gcc.scm (gm2): New variable.

Change-Id: I0f416b53497daeec60dcefc3916591ea8a152dae
2025-05-19 21:41:55 +02:00
Zheng Junjie
455805beda
gnu: Add gcc-15.
* gnu/packages/gcc.scm (gcc-15, gccgo-15, libgccjit-15): New variable.
* gnu/packages/commencement.scm (gcc-toolchain-15): New variable.

Change-Id: I55e49e61626e8419ac936d1c5d241a586eaca47f
Signed-off-by: Zheng Junjie <z572@z572.online>
2025-05-04 01:18:06 +08:00
Zheng Junjie
4664e4207a
gnu: isl: Fix build to loongarch64.
* gnu/packages/gcc.scm (isl)[arguments]: When target is loongarch64, Add
update-config-scripts phase.
[native-inputs]: When target is loongarch64, Add config.

Change-Id: If60b28f64dd3285f5b89000c42e714be07876400
2025-01-25 01:05:27 +08:00
Janneke Nieuwenhuizen
a82e75d807
gnu: Use gcc-14, gcc-toolchain-14 on the 64bit Hurd.
This enables building packages in a 64bit childhurd.  It will not enable
offloading to a childhurd.

* guix/utils.scm (host-hurd?, host-x86-64, host-hurd64?): New procedures.
* gnu/packages/commencement.scm (gcc-toolchain): Use them to determine if the
host is a 64bit Hurd, and use gcc-toolchain-14.
* gnu/packages/gcc.scm (gcc): Likewise, to use gcc-14.

Change-Id: I55e43fdc61e3ea5fc13065fc7ca854b951c94930
2024-12-03 08:39:01 +01:00
Janneke Nieuwenhuizen
4d077bba89
gnu: gcc-14: Force libdir /lib instead of /lib64 for the 64bit Hurd.
* gnu/packages/gcc.scm (gcc-14)[arguments]: In stage "pre-x86-configure", also
patch "gcc/config/i386/t-gnu64".

Change-Id: Ib2607c5f315c49696596fdcbcbbcc2895b6a9775
2024-12-03 08:33:13 +01:00
Janneke Nieuwenhuizen
cb765c4218
gnu: libstdc++: Support the 64bit Hurd.
* gnu/packages/gcc.scm (make-libstdc++)[arguments]: When building for the
64bit Hurd, add stage patch-hurd64.

Change-Id: I795a591ef8282ee5b760fec43bd4ad849007f602
2024-12-03 08:33:12 +01:00
Rutherther
ae626fc102
gnu: gcc@9: Add libsanitizer fsconfig command patch.
Since newer glibc version there is a conflict in names between kernel
module and glibc module.  This uses a patch that was used upstream in
llvm to bypass it.  Without this, the build fails with a redefinition
error.

* gnu/packages/gcc.scm (gcc-9)[source]: Add
‘gcc-7-libsanitizer-fsconfig-command.patch’.

Change-Id: Ibb8446b7bba52f72d82fcf69804cae09215daeed
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2024-10-15 18:40:09 +02:00
Efraim Flashner
1d4a44a29b
gnu: gcc-14: Add tuning target.
* gnu/packages/gcc.scm (%gcc-14-x86_64-micro-architectures): New
variable.
(gcc-14)[properties]: Use it.

Change-Id: I00f9e2a4c9d590f97977275b157002ac330b895b
2024-09-30 13:38:15 +03:00
Nguyễn Gia Phong
fee669e2c2
gnu: make-libiberty: Build with -fPIC.
Since iberty is a static library, linking a PIC-enabled target to it
requires it to also have been built with PIC.  (The target is Dyninst
in this case.)

This `-fPIC' flag is appended to the default CFLAGS of `-O2 -g'.

* gnu/packages/gcc.scm (make-libiberty)[arguments]:
  Adjust make-flags to add -fPIC to CFLAGS.

Change-Id: I155045d05f4434cb68be933a95b7bc9fdec98818
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2024-09-19 14:32:44 +02:00
Nguyễn Gia Phong
ad6deff8bb
gnu: make-libiberty: Install the header demangle.h.
This header is wanted by Dyninst.

* gnu/packages/gcc.scm (make-libiberty):
  Add include/demangle.h to install phase.

Change-Id: I01235071b75b412f55785d240cda248315b7a93e
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2024-09-19 14:32:40 +02:00
Ludovic Courtès
5ce53449b5
gnu: gcc@8: Add missing patch.
This fixes compilation with glibc 2.39.

* gnu/packages/gcc.scm (gcc-8)[source]: Add “gcc-7-libsanitizer-fsconfig-command.patch”.

Change-Id: If8f99972278b90f37e104da3b3ca414be6f34140
2024-09-17 17:34:58 +02:00
Ludovic Courtès
552a18c24a
gnu: libgccjit: Remove duplicate libgccjit@11 package.
Fixes a regression introduced in
bfeccd3db9 and caught by
‘tests/packages.scm’, whereby two equivalent but not ‘eq?’ libgccjit@11
packages would be exported.

* gnu/packages/gcc.scm (libgccjit): Make an alias for ‘libgccjit-11’.

Change-Id: I9aeacb7588af5f78af0941e80715665572567958
2024-09-17 17:34:58 +02:00
Josselin Poiret
7e30cd7a74
gnu: gcc-6: Fix libsanitizer build.
* gnu/packages/gcc.scm (gcc-6, gcc-5): Also apply gcc-7's libsanitizer patch.

Change-Id: I2f5699480574721dc32389b7c2c3c45043d28b51
2024-08-31 10:44:55 +02:00
Josselin Poiret
bc78aebc63
gnu: gcc: Patch crypt out of bundled libsanitizer.
* gnu/packages/patches/gcc-10-libsanitizer-no-crypt.patch:
* gnu/packages/patches/gcc-12-libsanitizer-no-crypt.patch:
* gnu/packages/patches/gcc-13-libsanitizer-no-crypt.patch: New patches.
* gnu/local.mk (dist_patch_DATA): Register them.
* gnu/packages/gcc.scm (gcc-10, gcc-11, gcc-12, gcc-13): Use them.

Change-Id: Idc450c5a468e07c4ea78c8ca7bb1c5ee379231bb
2024-08-31 10:44:51 +02:00
Josselin Poiret
3908672261
gnu: gcc: Simplify application of Hurd-specific pthread patch.
* gnu/packages/gcc.scm (gcc-11): Apply gcc-11-libstdc++-hurd-libpthread.patch
unconditionally.
(gcc-12): Also apply gcc-11-libstdc++-hurd-libpthread.patch.

Change-Id: I80e2b2adb5636e1bff4536c5a0a348955454e81d
2024-08-31 10:44:51 +02:00
Ludovic Courtès
745177cea5
gnu: gcc@7: Allow compilation with glibc 2.38.
* gnu/packages/patches/gcc-7-libsanitizer-fsconfig-command.patch: New
file.
* gnu/packages/gcc.scm (gcc-7)[source]: Use it.
* gnu/local.mk (dist_patch_DATA): Add it.

Change-Id: Ifa273b92573281c34d83e5fb8cd68734ef02c7fd
2024-08-31 10:44:22 +02:00
Efraim Flashner
0c9811497e
gnu: gcc: Support objc, objc++ by default.
* gnu/packages/gcc.scm (gcc-4.7)[configure-flags]: Adjust the
enable-languages flag to also enable objc, obj-c++.
(gcc-objc-4.8, gcc-objc-4.9, gcc-objc-5, gcc-objc-6, gcc-objc-7,
gcc-objc-8, gcc-objc-9, gcc-objc-10, gcc-objc-11, gcc-objc-12, gcc-objc,
gcc-objc++-4.8, gcc-objc++-4.9, gcc-objc++-5, gcc-objc++-6,
gcc-objc++-7, gcc-objc++-8, gcc-objc++-9, gcc-objc++-10, gcc-objc++-11,
gcc-objc++-12, gcc-objc++, %objc-search-paths, %objc++-search-paths):
Remove variables.
* guix/search-paths.scm ($OBJC_INCLUDE_PATH, $OBJCPLUS_INCLUDE_PATH):
New variables.
(%gcc-search-paths): Include $OBJC_INCLUDE_PATH, $OBJCPLUS_INCLUDE_PATH.

Change-Id: Ib4cd176eb88c733a82f2d31e8cc45b9c61720f8f
2024-08-31 10:42:48 +02:00
Greg Hogan
1487b3f53c
gnu: gcc@11: Update to 11.4.0.
* gnu/packages/gcc.scm (gcc-11): Update to 11.4.0.
Remove ‘gcc-10-tree-sra-union-handling.patch’.

Change-Id: Iff8c9151326c87cb13db9c5b1a00c44b8eef95e3
Co-authored-by: Janneke Nieuwenhuizen <janneke@gnu.org>
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2024-08-31 10:42:46 +02:00
Maxim Cournoyer
44407d60eb
gnu: custom-gcc: Import the correct set of modules.
* gnu/packages/gcc.scm (custom-gcc) [arguments]
<modules>: Replace %default-gnu-imported-modules with %default-gnu-modules.

Change-Id: I133daad4e05d5daa98fadd5acf2d0f4606b6e056
2024-08-31 10:42:18 +02:00
Maxim Cournoyer
a1df0993e7
gnu: make-libstdc++: Import the correct set of modules.
* gnu/packages/gcc.scm (make-libstdc++) [arguments]
<modules>: Replace %default-gnu-imported-modules with %default-gnu-modules.

Change-Id: I3fe29766f767765e966c189395f618b7779f1e0d
2024-08-31 10:42:18 +02:00
Maxim Cournoyer
cce76558a3
gnu: gcc-4.8: Import the correct set of modules.
* gnu/packages/gcc.scm (gcc-4.8) [arguments]
<modules>: Replace %default-gnu-imported-modules with %default-gnu-modules.

Change-Id: I8482661bd49a94adefc772fda0449023bdd5927e
2024-08-31 10:42:18 +02:00
Maxim Cournoyer
f59df1aa3c
build-systems: gnu: Export %default-gnu-imported-modules and %default-gnu-modules.
Until now users would have to cargo cult or inspect the private
%default-modules variable of (guix build-systems gnu) to discover which
modules to include when extending the used modules via the #:modules argument.

The renaming was automated via the command:

  $ git grep -l %gnu-build-system-modules
    | xargs sed 's/%gnu-build-system-modules/%default-gnu-imported-modules/' -i

* guix/build-system/gnu.scm (%gnu-build-system-modules): Rename to...
(%default-gnu-imported-modules): ... this.
(%default-modules): Rename to...
(%default-gnu-modules): ... this.  Export.
(dist-package, gnu-build, gnu-cross-build): Adjust accordingly.

Change-Id: Idef307fff13cb76f3182d782b26e1cd3a5c757ee
2024-08-31 10:42:16 +02:00