aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/gcc.scm
Commit message (Collapse)AuthorAge
* gnu: gcc-5: Fix powerpc64le-linux buildThiago Jung Bauermann2021-11-11
| | | | | | | | | | | | | GCC 5 has a misaligned access to a vector pointer which causes a build failure when using GCC 8 and later. Backport upstream fix that was applied on the GCC 6 branch. * gnu/packages/gcc.scm (gcc-5)[source]: Apply gcc-5-fix-powerpc64le-build.patch. * gnu/packages/patches/gcc-5-fix-powerpc64le-build.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
* Merge branch 'master' into core-updates-frozenMarius Bakke2021-08-12
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: gnu/packages/algebra.scm gnu/packages/games.scm gnu/packages/golang.scm gnu/packages/kerberos.scm gnu/packages/mail.scm gnu/packages/python.scm gnu/packages/ruby.scm gnu/packages/scheme.scm gnu/packages/tex.scm gnu/packages/tls.scm gnu/packages/version-control.scm
| * gnu: gcc-11: Update to 11.2.0.Efraim Flashner2021-08-08
| | | | | | | | * gnu/packages/gcc.scm (gcc-11): Update to 11.2.0.
* | Merge branch 'master' into core-updatesLudovic Courtès2021-07-18
|\|
| * gnu: Add gccgo-10.Sarah Morgensen2021-06-28
| | | | | | | | | | | | | | | | | | | | | | | | | | Generate gccgo with MAKE-GCCGO to factorize phases, and to fix the cyclic dependency between out and lib (caused by libgo embedding the gotools path) that was worked around in <https://issues.guix.gnu.org/18101>. * gnu/packages/gcc.scm (custom-gcc-gccgo): New procedure. (make-gccgo): New procedure. (gccgo-10): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
* | gnu: gcc: Fix cross-compilation.Ludovic Courtès2021-07-06
| | | | | | | | | | | | | | | | | | | | | | | | | | This fixes cross-compilation of GCC, as in: guix build --target=aarch64-linux-gnu -e '(@ (gnu packages gcc) gcc-10)' * gnu/packages/gcc.scm (gcc-canadian-cross-objdump-snippet): New variable. (gcc-5)[source]: Use it instead of inline 'snippet'. (gcc-8)[source]: Add 'modules' and 'snippet'. (gcc-9)[source]: Likewise. (gcc-10)[source]: Likewise. (gcc-11)[source]: Likewise.
* | gnu: custom-gcc: Update regex for removing executables.Sarah Morgensen2021-07-05
| | | | | | | | | | | | | | | | | | | | Do not match "gccgo". Match "gcov-dump" and "gcov-tool", as well as "lto-dump" (which was introduced in GCC 10). * gnu/packages/gcc.scm (custom-gcc)[arguments]: Update regex used for matching broken or conflicting executables. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* | gnu: Simplify the use of --with-long-double-128.Chris Marusich2021-06-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes <https://bugs.gnu.org/48825>. In short, this change adds the hard-coded "--with-long-double-128" configure option in one place and removes it from two other places. This changes and simplifies the use of this option for various architectures that start with the string "powerpc". * gnu/packages/gcc.scm (gcc-configure-flags-for-triplet): Add a clause for targets starting with "powerpc64le-" or "powerpc-" which adds the "--with-long-double-128" option. This causes any package using this procedure to be built using this new option on these architectures. In particular, this affects the gcc package and the gcc-final package, in addition to all the other versions of GCC defined in (gnu packages gcc). * gnu/packages/commencement.scm (gcc-boot0)[#:configure-flags]: Remove the code that adds the "--with-long-double-128" configure option for all architectures starting with "powerpc", since it is now redundant on the architectures where it is needed. The gcc-boot0 package uses (and adds to) the gcc package's configure options. This means that the above change in gcc.scm is sufficient to ensure that the gcc-boot0 package's configure options will include "--with-long-double-128" on powerpc64le and powerpc architectures. Additionally, since the option is apparently not required on the big-endian powerpc64 architecture, this change also has the nice effect of omitting the option in that case. * gnu/packages/cross-base.scm (cross-gcc-arguments)[#:configure-flags]: Remove the code that adds the "--with-long-double-128" configure option for powerpc64le, since it is now redundant. The cross-gcc-arguments procedure uses (and adds to) the configure options of its xgcc argument (a package). This means that regardless of which gcc from gcc.scm is used as the xgcc, the above change in gcc.scm is sufficient to ensure that the cross-gcc-arguments procedure's configure options will include "--with-long-double-128" on the powerpc64le and powerpc architectures.
* | Merge branch 'master' into core-updatesMarius Bakke2021-06-19
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note: this merge actually changes the 'curl' and 'python-attrs' derivations, as part of solving caf4a7a2770ef4d05a6e18f40d602e51da749ddc and 12964df69a99de6190422c752fef65ef813f3b6b respectively. 4604d43c0e (gnu: gnutls@3.6.16: Fix cross-compilation.) was ignored because it cannot currently be tested. Conflicts: gnu/local.mk gnu/packages/aidc.scm gnu/packages/boost.scm gnu/packages/curl.scm gnu/packages/nettle.scm gnu/packages/networking.scm gnu/packages/python-xyz.scm gnu/packages/tls.scm
| * gnu: gcc-8: Make static libs reproducibleCarl Dong2021-06-14
| | | | | | | | | | | | | | | | | | This fixes the nonreproducibility in gcc documented here: https://reproducible-builds.org/docs/archives/#gnu-libtool * gnu/packages/patches/gcc-8-sort-libtool-find-output.patch: New patch. * gnu/local.mk (dist_patch_DATA): Register it. * gnu/packages/gcc.scm (gcc-8)[source]: Apply it.
* | gnu: GCC: Switch to GCC 10.Marius Bakke2021-06-13
| | | | | | | | | | | | | | | | | | | | * gnu/packages/patches/gcc-cross-gxx-include-dir.patch: New file. * gnu/packages/patches/gcc-10-cross-environment-variables.patch: New file. * gnu/packages/gcc.scm (gcc): Point to GCC-10. (gcc-objc): Point to GCC-OBJC-10. (gcc-objc++): Point to GCC-OBJC++-10. * gnu/packages/cross-base.scm (cross-gcc)[source](patches): Apply the new patches.
* | Merge branch 'master' into core-updatesMarius Bakke2021-06-06
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: gnu/local.mk gnu/packages/algebra.scm gnu/packages/bioinformatics.scm gnu/packages/curl.scm gnu/packages/docbook.scm gnu/packages/emacs-xyz.scm gnu/packages/maths.scm gnu/packages/plotutils.scm gnu/packages/python-web.scm gnu/packages/python-xyz.scm gnu/packages/radio.scm gnu/packages/readline.scm gnu/packages/tls.scm gnu/packages/xml.scm gnu/packages/xorg.scm
| * gnu: gcc-9: Update to 9.4.0.Efraim Flashner2021-06-01
| | | | | | | | * gnu/packages/gcc.scm (gcc-9): Update to 9.4.0.
* | Merge branch 'master' into core-updatesMarius Bakke2021-05-22
|\|
| * gnu: gcc-8: Update to 8.5.0.Efraim Flashner2021-05-15
| | | | | | | | * gnu/packages/gcc.scm (gcc-8): Update to 8.5.0.
* | gnu: gfortran: Remove obsolete workaround.Marius Bakke2021-05-22
| | | | | | | | * gnu/packages/gcc.scm (gfortran): Use GCC directly.
* | Merge branch 'master' into core-updatesMarius Bakke2021-05-09
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: gnu/local.mk gnu/packages/bioinformatics.scm gnu/packages/django.scm gnu/packages/gtk.scm gnu/packages/llvm.scm gnu/packages/python-web.scm gnu/packages/python.scm gnu/packages/tex.scm guix/build-system/asdf.scm guix/build/emacs-build-system.scm guix/profiles.scm
| * gnu: Add gdc-11.Efraim Flashner2021-04-27
| | | | | | | | * gnu/packages/gcc.scm (gdc-11): New variable.
| * gnu: Add gcc-toolchain-11.Efraim Flashner2021-04-27
| | | | | | | | | | * gnu/packages/gcc.scm (gcc-11): New variable. * gnu/packages/commencement.scm (gcc-toolchain-11): New variable.
* | Merge remote-tracking branch 'origin/master' into core-updatesEfraim Flashner2021-04-16
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: gnu/local.mk gnu/packages/boost.scm gnu/packages/chez.scm gnu/packages/compression.scm gnu/packages/crates-io.scm gnu/packages/docbook.scm gnu/packages/engineering.scm gnu/packages/gcc.scm gnu/packages/gl.scm gnu/packages/gtk.scm gnu/packages/nettle.scm gnu/packages/python-check.scm gnu/packages/python-xyz.scm gnu/packages/radio.scm gnu/packages/rust.scm gnu/packages/sqlite.scm guix/build-system/node.scm
| * gnu: gcc-10: Update to 10.3.0.Efraim Flashner2021-04-09
| | | | | | | | * gnu/packages/gcc.scm (gcc-10): Update to 10.3.0.
| * gnu: gcc: Fix comment about gfortran.Vincent Legoll2021-03-25
| | | | | | | | | | | | | | | | | | Added by: cb4805e34c9997edca14743516b9a0fde6303d1c Fixes: 0681f05486d901c92637c098bb7afddef35068b0 * gnu/packages/gcc.scm (gcc): Fix comment about gfortran. Signed-off-by: Christopher Baines <mail@cbaines.net>
* | gnu: gcc: Update gcc to 8.Efraim Flashner2021-04-12
| | | | | | | | | | | | | | | | | | | | * gnu/packages/gcc.scm (gcc): Define as gcc-8. * gnu/packages/commencement.scm (gcc-toolchain-7): Use make-gcc-toolchain procedure. (gcc-toolchain-8): Define as gcc-toolchain. * gnu/packages/game-development (python2-renpy)[native-inputs], * gnu/packages/gnome.scm (gnome-commander)[native-inputs], * gnu/packages/wm.scm (waybar)[native-inputs]: Remove gcc-8.
* | gnu: make-libstdc++: Unconditionally apply powerpc substitution.Efraim Flashner2021-03-24
| | | | | | | | | | * gnu/packages/gcc.scm (make-libstdc++)[arguments]: Use modify-phases. Apply powerpc directory substitution on all architectures.
* | gnu: gcc-4.7: Unconditionally apply powerpc substitution.Efraim Flashner2021-03-24
| | | | | | | | | | * gnu/packages/gcc.scm (gcc-4.7)[arguments]: Adjust 'pre-configure phase to always apply powerpc substitution.
* | Merge remote-tracking branch 'origin/master' into core-updatesEfraim Flashner2021-03-24
|\|
| * gnu: gcc-4.7: On powerpc64le, fix /lib64 references.Chris Marusich2021-03-23
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: <https://bugs.gnu.org/46253>. * gnu/packages/gcc.scm (gcc-4.7)[#:phases][pre-configure]: When the gcc/config/rs6000 directory exists, replace "/lib64" with "/lib" in all files within it. Note that this fix will be picked up by any package that re-uses the pre-configure phase from gcc-4.7 (e.g., all the usual gcc packages). (make-libstdc++)[#:phases][fix-rs6000-libdir]: New phase, which does the same as above. It was necessary to duplicate the fix here because make-libstdc++ does not re-use the pre-configure phase from gcc-4.7.
* | gnu: isl: Update to 0.23.Marius Bakke2020-12-17
| | | | | | | | * gnu/packages/gcc.scm (isl): Update to 0.23.
* | gnu: gcc: Phases no longer return a Boolean.Ludovic Courtès2020-11-25
| | | | | | | | | | | | | | * gnu/packages/gcc.scm (gcc-4.7, gcc-4.9) (make-libiberty, custom-gcc, libgccjit) (make-libstdc++-doc, isl, gnu-c-manual): Remove trailing #t from phases.
* | gnu: base, gcc: Removing trailing #t from snippets.Ludovic Courtès2020-11-25
|/ | | | | | | | * gnu/packages/base.scm (libiconv)[source]: Remove trailing #t from 'snippet'. * gnu/packages/gcc.scm (gcc-4.8)[source]: Likewise. (gcc-4.9)[source]: Likewise. (gcc-5)[source]: Likewise.
* gnu: gccgo: Reword synopsis and description.zimoun2020-09-13
| | | | | | | | | Fixes <https://bugs.gnu.org/43303>. Reported by Jeffrey Walton <noloader@gmail.com>. * gnu/packages/gcc.scm: (gccgo-4.9): Add synopsis and description Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* gnu: libgccjit: Reword synopsis and description.zimoun2020-09-13
| | | | | | | | | Fixes <https://bugs.gnu.org/43303>. Reported by Jeffrey Walton <noloader@gmail.com>. * gnu/packages/gcc.scm: (libgccjit)[synopsis,description]: Reword. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
* gnu: gcc: Fix libstdc++ misconfiguration.Ludovic Courtès2020-07-24
| | | | | | | | | | | | | | Fixes <https://bugs.gnu.org/42392>. Reported by Maxim Cournoyer and Erik Garrison. Until now, the generated <bits/c++config.h> would be incorrect (many _GLIBCXX_HAVE macros would be undefined), which in turn would lead to build failures for most C++ programs. * gnu/packages/gcc.scm (gcc-6)[inputs]: Add LIBSTDC++-HEADERS. (libstdc++, libstdc++-headers): New variables. * gnu/packages/gcc.scm (gfortran): Change first argument to 'custom-gcc' to remove dependency on LIBSTDC++-HEADERS.
* gnu: gcc@10: Update to 10.2.0.Ludovic Courtès2020-07-24
| | | | * gnu/packages/gcc.scm (gcc-10): Update to 10.2.0.
* gnu: Add gdc-10.guy fleury iteriteka2020-07-19
| | | | | | * gnu/packages/gcc.scm (gdc-10): New variable. Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
* gnu: Add gcc-{objc,objc++}-{9,10}.Jakub Kądziołka2020-06-30
| | | | | | | | * gnu/packages/gcc.scm (%objc-search-paths, %objc++-search-paths): New variables. (gcc-objc-4.8, gcc-objc-4.9, gcc-objc-5, gcc-objc-6, gcc-objc-7, gcc-objc-8, gcc-objc++-4.8, gcc-objc++-4.9, gcc-objc++-5, gcc-objc++-6, gcc-objc++-7, gcc-objc++-8): Don't duplicate the search path list. (gcc-objc-9, gcc-objc-10, gcc-objc++-9, gcc-objc++-10): New variables.
* gnu: gfortran: Remove unusable versions.Jakub Kądziołka2020-06-30
| | | | | | | | | | | | The gfortran packages cannot be used without being wrapped with gfortran-toolchain. However, as the comment in (gnu packages commencement) explains, there cannot be more than one gfortran-toolchain package because of ABI issues. Thus, versions of gfortran other than the main one are useless. * gnu/packages/gcc.scm (gfortran-4.8, gfortran-4.9, gfortran-5, gfortran-6, gfortran-7, gfortran-8, gfortran-9): Remove variables. (gfortran): Define the gfortran package based on the gcc variable.
* Merge branch 'core-updates'Marius Bakke2020-05-08
|\
| * gnu: custom-gcc: Ensure #:modules are not overridden by the inherited GCC.Marius Bakke2020-04-28
| | | | | | | | | | | | | | | | | | This fixes a regression introduced in 56c833ea287f8f6d3c72f8bddc314960c0164d64 where the #:modules argument became ineffective. Reported by Efraim Flashner in <https://lists.gnu.org/archive/html/guix-devel/2020-04/msg00473.html> * gnu/packages/gcc.scm (custom-gcc)[arguments]: Add #:modules through SUBSTITUTE-KEYWORD-ARGUMENTS.
| * gnu: GCC@8: Remove obsolete patch.Marius Bakke2020-04-23
| | | | | | | | | | | | | | | | This is no longer required since the update to 8.4.0 in 60ce496ad8. * gnu/packages/patches/gcc-8-libsanitizer-mode-size.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/gcc.scm (gcc-8)[source](patches): Remove it.
| * gnu: bootstrap: gcc-static: Use gcc-5.Jan Nieuwenhuizen2020-03-24
| | | | | | | | | | | | | | | | | | | | * gnu/packages/make-bootstrap.scm (gcc-static): Use gcc-5. This fixes building libstdc++-boot0 with a newly built %bootstrap-gcc. (%gcc-stripped): Likewise. (gcc-for-bootstrap): Likewise. * gnu/packages/patches/gcc-5-hurd.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/gcc.scm (gcc-5): Use it.
| * Merge branch 'master' into core-updatesMarius Bakke2020-03-21
| |\
| * | gnu: GCC@9: Remove obsolete patch.Marius Bakke2020-03-18
| | | | | | | | | | | | | | | | | | | | | | | | This patch became obsolete when the update to 9.3.0 was merged (commit 3dade1d59e7b4caa641670a76c0c48b4c90f6b3c). * gnu/packages/patches/gcc-9-libsanitizer-mode-size.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/gcc.scm (gcc-9)[source](patches): Remove it.
| * | Merge branch 'master' into core-updatesMarius Bakke2020-03-18
| |\ \
| * | | gnu: gcc@4.9, gcc@5: Adjust for CPLUS_INCLUDE_PATH changes.Marius Bakke2020-03-15
| | | | | | | | | | | | | | | | | | | | | | | | * gnu/packages/gcc.scm (gcc-4.9): Unless cross-compiling, add ... [arguments]: with a phase to remove glibc and GCC from CPLUS_INCLUDE_PATH. (gcc-6)[arguments]: Inherit from GCC-4.8.
| * | | Merge branch 'master' into core-updatesMarius Bakke2020-03-04
| |\ \ \
| * | | | gnu: isl: Move the static library to a separate output.Marius Bakke2020-02-15
| | | | | | | | | | | | | | | | | | | | | | | | | * gnu/packages/gcc.scm (isl)[outputs, arguments]: New fields. * gnu/packages/make-bootstrap.scm (%gcc-static)[inputs]: Add ISL:STATIC.
| * | | | gnu: glibc: Update to 2.31.Marius Bakke2020-02-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gnu/packages/patches/glibc-supported-locales.patch: Adjust for upstream changes. * gnu/packages/patches/glibc-2.29-supported-locales.patch: New file, with previous contents. * gnu/packages/patches/gcc-4.9-libsanitizer-mode-size.patch, gnu/packages/patches/gcc-6-libsanitizer-mode-size.patch, gnu/packages/patches/gcc-7-libsanitizer-mode-size.patch, gnu/packages/patches/gcc-8-libsanitizer-mode-size.patch, gnu/packages/patches/gcc-9-libsanitizer-mode-size.patch: New files. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/gcc.scm (gcc-4.9, gcc-5, gcc-6, gcc-7, gcc-8, gcc-9)[source](patches): Add the respective patch files. * gnu/packages/base.scm (glibc): Update to 2.31. [source](patches): Remove obsolete. (glibc-2.30): New public variable. (glibc-2.29)[source](patches): Adjust for renamed patch file.
| * | | | gnu: gcc: Switch back to using 'C_INCLUDE_PATH' instead of 'CPATH'.Ludovic Courtès2020-02-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes <https://bugs.gnu.org/30756>. Initially reported by Julien Lepiller <julien@lepiller.eu>. * gnu/packages/base.scm (make-gcc-libc): Remove 'treat-glibc-as-system-header' phase from 'arguments'. * gnu/packages/commencement.scm (gcc-final): Likewise. * gnu/packages/gcc.scm (gcc-4.7)[arguments]: Add "include/c++" to 'CPLUS_INCLUDE_PATH'. (gcc-6)[native-search-paths]: Remove. * gnu/packages/make-bootstrap.scm (gcc-for-bootstrap): Remove 'native-search-paths' and 'arguments'. * gnu/packages/patches/python-2.7-search-paths.patch, gnu/packages/patches/python-3-search-paths.patch: Replace "CPATH" with "C_INCLUDE_PATH". * guix/build-system/cmake.scm (lower): When not cross-compiling, move INPUTS from the 'host-inputs' field to the 'build-inputs' field of the bag, right after NATIVE-INPUTS. * guix/build-system/glib-or-gtk.scm (lower): Likewise. * guix/build-system/gnu.scm (lower): Likewise. * guix/build-system/meson.scm (lower): Likewise.
| * | | | gnu: isl: Update to 0.22.1.Marius Bakke2020-02-06
| | | | | | | | | | | | | | | | | | | | * gnu/packages/gcc.scm (isl): Update to 0.22.1.