Commit Graph

339 Commits

Author SHA1 Message Date
Efraim Flashner
c31eed7107
gnu: gcc: Add compiler-cpu-architectures for aarch64.
* gnu/packages/gcc.scm (%gcc-7.5-aarch64-micro-architectures,
%gcc-10-aarch64-micro-architectures): New variables.
(gcc-7, gcc-10)[properties]: Add aarch64 compiler-cpu-architectures.
2022-02-13 14:47:01 +02:00
Ludovic Courtès
2576e2019d
gnu: gcc: Add 'compiler-cpu-architectures' property.
* gnu/packages/gcc.scm (%gcc-7.5-x86_64-micro-architectures)
(%gcc-10-x86_64-micro-architectures): New variables.
(gcc-7, gcc-10): Add 'properties' field.
* gnu/packages/commencement.scm (make-gcc-toolchain): Likewise.
2022-01-01 15:23:24 +01:00
Ludovic Courtès
8394619bac
gnu: Simplify package inputs.
This commit was obtained by running:

  ./pre-inst-env guix style

without any additional argument.
2021-12-13 17:48:25 +01:00
Mathieu Othacehe
32750e8c3e
Merge remote-tracking branch 'signed/master' into core-updates 2021-12-10 21:49:25 +01:00
Ricardo Wurmus
b69156ef30
gnu: Add gfortran-7.
* gnu/packages/gcc.scm (gfortran-7): New variable.
2021-12-09 11:17:45 +01:00
Sarah Morgensen
68d15fcf20
gnu: make-gccgo: Override empty GOROOT/GCCGOTOOLDIR
gnu/packages/gcc.scm (make-gccgo)[arguments]: Set tool paths
(GOROOT and GCCGOTOOLDIR) even if they are already set to "".

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2021-12-07 15:25:54 +02:00
Thiago Jung Bauermann
b04a20f77f
gnu: gcc-5: Fix powerpc64le-linux build
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>
2021-11-11 10:31:31 -05:00
Marius Bakke
c4133c43c7
Merge branch 'master' into core-updates-frozen
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
2021-08-12 00:30:27 +02:00
Efraim Flashner
a75cc5f463
gnu: gcc-11: Update to 11.2.0.
* gnu/packages/gcc.scm (gcc-11): Update to 11.2.0.
2021-08-08 16:48:27 +03:00
Ludovic Courtès
0e47fcced4
Merge branch 'master' into core-updates 2021-07-18 19:50:01 +02:00
Ludovic Courtès
eeedb328da
gnu: gcc: Fix cross-compilation.
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.
2021-07-06 08:50:31 +02:00
Sarah Morgensen
5318bade32
gnu: custom-gcc: Update regex for removing executables.
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>
2021-07-05 13:12:03 +02:00
Sarah Morgensen
ef590de692
gnu: Add gccgo-10.
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>
2021-06-28 22:19:48 +03:00
Chris Marusich
45dd2b4505
gnu: Simplify the use of --with-long-double-128.
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.
2021-06-24 20:45:48 -07:00
Marius Bakke
6f9a80b331
Merge branch 'master' into core-updates
Note: this merge actually changes the 'curl' and 'python-attrs' derivations,
as part of solving caf4a7a277 and
12964df69a 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
2021-06-19 17:38:47 +02:00
Carl Dong
83d9e2ee56
gnu: gcc-8: Make static libs reproducible
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.
2021-06-14 12:29:11 -04:00
Marius Bakke
4796b5d6d1
gnu: GCC: Switch to GCC 10.
* 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.
2021-06-13 01:00:46 +02:00
Marius Bakke
8d59c262ad
Merge branch 'master' into core-updates
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
2021-06-06 21:16:32 +02:00
Efraim Flashner
9ea6e3f4d8
gnu: gcc-9: Update to 9.4.0.
* gnu/packages/gcc.scm (gcc-9): Update to 9.4.0.
2021-06-01 20:54:06 +03:00
Marius Bakke
4ea6852c5f
Merge branch 'master' into core-updates 2021-05-22 17:21:57 +02:00
Marius Bakke
11284cb321
gnu: gfortran: Remove obsolete workaround.
* gnu/packages/gcc.scm (gfortran): Use GCC directly.
2021-05-22 17:08:13 +02:00
Efraim Flashner
f7e5ecf71f
gnu: gcc-8: Update to 8.5.0.
* gnu/packages/gcc.scm (gcc-8): Update to 8.5.0.
2021-05-15 22:43:15 +03:00
Marius Bakke
f034264204
Merge branch 'master' into core-updates
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
2021-05-09 21:29:46 +02:00
Efraim Flashner
1f5543e7ff
gnu: Add gdc-11.
* gnu/packages/gcc.scm (gdc-11): New variable.
2021-04-27 17:10:22 +03:00
Efraim Flashner
007ec66206
gnu: Add gcc-toolchain-11.
* gnu/packages/gcc.scm (gcc-11): New variable.
* gnu/packages/commencement.scm (gcc-toolchain-11): New variable.
2021-04-27 17:10:22 +03:00
Efraim Flashner
fcc39864db
Merge remote-tracking branch 'origin/master' into core-updates
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
2021-04-16 14:39:48 +03:00
Efraim Flashner
76fc36d0a7
gnu: gcc: Update gcc to 8.
* 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.
2021-04-12 17:05:10 +03:00
Efraim Flashner
a365777ebd
gnu: gcc-10: Update to 10.3.0.
* gnu/packages/gcc.scm (gcc-10): Update to 10.3.0.
2021-04-09 15:06:35 +03:00
Vincent Legoll
a172def55a
gnu: gcc: Fix comment about gfortran.
Added by: cb4805e34c
Fixes: 0681f05486

* gnu/packages/gcc.scm (gcc): Fix comment about gfortran.

Signed-off-by: Christopher Baines <mail@cbaines.net>
2021-03-25 16:59:01 +00:00
Efraim Flashner
6dd338ee1b
gnu: make-libstdc++: Unconditionally apply powerpc substitution.
* gnu/packages/gcc.scm (make-libstdc++)[arguments]: Use modify-phases.
Apply powerpc directory substitution on all architectures.
2021-03-24 20:57:29 +02:00
Efraim Flashner
8f0cd6575d
gnu: gcc-4.7: Unconditionally apply powerpc substitution.
* gnu/packages/gcc.scm (gcc-4.7)[arguments]: Adjust 'pre-configure phase
to always apply powerpc substitution.
2021-03-24 20:57:28 +02:00
Efraim Flashner
2aab587f84
Merge remote-tracking branch 'origin/master' into core-updates 2021-03-24 20:50:44 +02:00
Chris Marusich
cac88b28b8
gnu: gcc-4.7: On powerpc64le, fix /lib64 references.
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.
2021-03-23 23:19:55 -07:00
Marius Bakke
f0c20da7d9
gnu: isl: Update to 0.23.
* gnu/packages/gcc.scm (isl): Update to 0.23.
2020-12-17 00:15:48 +01:00
Ludovic Courtès
16111ad11c
gnu: gcc: Phases no longer return a Boolean.
* 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.
2020-11-25 00:05:55 +01:00
Ludovic Courtès
3504e39a5d
gnu: base, gcc: Removing trailing #t from snippets.
* 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.
2020-11-25 00:02:30 +01:00
zimoun
542c4707de
gnu: gccgo: Reword synopsis and description.
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>
2020-09-13 23:34:22 +02:00
zimoun
a4fe16ee41
gnu: libgccjit: Reword synopsis and description.
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>
2020-09-13 23:34:22 +02:00
Ludovic Courtès
12dc9f58c4
gnu: gcc: Fix libstdc++ misconfiguration.
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.
2020-07-24 14:21:30 +02:00
Ludovic Courtès
b1d3c122e1
gnu: gcc@10: Update to 10.2.0.
* gnu/packages/gcc.scm (gcc-10): Update to 10.2.0.
2020-07-24 14:21:30 +02:00
guy fleury iteriteka
163686d82e
gnu: Add gdc-10.
* gnu/packages/gcc.scm (gdc-10): New variable.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
2020-07-19 20:23:00 +03:00
Jakub Kądziołka
14cce84ca7
gnu: Add gcc-{objc,objc++}-{9,10}.
* 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.
2020-06-30 13:18:13 +02:00
Jakub Kądziołka
0681f05486
gnu: gfortran: Remove unusable versions.
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.
2020-06-30 12:57:28 +02:00
Marius Bakke
4bdf4182fe
Merge branch 'core-updates' 2020-05-08 21:40:51 +02:00
Ludovic Courtès
2bb5b1d400
gnu: gcc: Add 10.1.0.
* gnu/packages/gcc.scm (gcc-10): New variable.
2020-05-08 16:30:50 +02:00
Marius Bakke
587398d2a8
gnu: custom-gcc: Ensure #:modules are not overridden by the inherited GCC.
This fixes a regression introduced in 56c833ea28
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.
2020-04-28 15:11:19 +02:00
Marius Bakke
621caeb73b
gnu: GCC@8: Remove obsolete patch.
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.
2020-04-23 19:32:24 +02:00
Jan Nieuwenhuizen
25bc0f34c6
gnu: bootstrap: gcc-static: Use gcc-5.
* 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.
2020-03-24 23:31:34 +01:00
Marius Bakke
d19b14c834
Merge branch 'master' into core-updates 2020-03-21 22:16:02 +01:00
guy fleury iteriteka
0f7e6964c7
gnu: make-libiberty: Use install-file.
* gnu/packages/gcc.scm(make-libiberty): In phase install use
install-file helper function to install file.
2020-03-20 19:15:52 +01:00
Marius Bakke
0f6651344f
gnu: libiberty: Do not inherit properties from GCC.
* gnu/packages/gcc.scm (make-libiberty)[properties]: New field.
2020-03-20 19:15:51 +01:00
Marius Bakke
dd4e4b0376
gnu: GCC@9: Remove obsolete patch.
This patch became obsolete when the update to 9.3.0 was merged (commit 3dade1d59e).

* 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.
2020-03-18 19:45:16 +01:00
Marius Bakke
c4d769d359
Merge branch 'master' into core-updates 2020-03-18 19:41:08 +01:00
Marius Bakke
56c833ea28
gnu: gcc@4.9, gcc@5: Adjust for CPLUS_INCLUDE_PATH changes.
* 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.
2020-03-15 16:03:16 +01:00
Joseph LaFreniere
76d2b9a2e8
gnu: Add libgccjit.
* gnu/packages/gcc.scm (libgccjit): New variable.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2020-03-16 14:05:53 +01:00
Efraim Flashner
3dade1d59e
gnu: gcc-9: Update to 9.3.0.
* gnu/packages/gcc.scm (gcc-9): Update to 9.3.0.
2020-03-14 18:52:41 +02:00
Marius Bakke
ebb7cf9e21
Merge branch 'master' into core-updates 2020-03-04 23:16:17 +01:00
Efraim Flashner
60ce496ad8
gnu: gcc-8: Update to 8.4.0.
* gnu/packages/gcc.scm (gcc-8): Update to 8.4.0.
2020-03-04 23:05:22 +02:00
Marius Bakke
5d8a4354ac
gnu: isl: Move the static library to a separate output.
* gnu/packages/gcc.scm (isl)[outputs, arguments]: New fields.
* gnu/packages/make-bootstrap.scm (%gcc-static)[inputs]: Add ISL:STATIC.
2020-02-15 22:02:56 +01:00
Marius Bakke
a33eac038a
gnu: glibc: Update to 2.31.
* 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.
2020-02-15 22:02:55 +01:00
Ludovic Courtès
2073b55e6b
gnu: gcc: Switch back to using 'C_INCLUDE_PATH' instead of 'CPATH'.
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.
2020-02-06 18:47:15 +01:00
Marius Bakke
4a0c71f9f7
gnu: isl: Update to 0.22.1.
* gnu/packages/gcc.scm (isl): Update to 0.22.1.
2020-02-06 18:37:59 +01:00
Mathieu Othacehe
ce9383c090
Merge remote-tracking branch 'master' into core-updates. 2019-12-31 11:04:51 +01:00
Konrad Hinsen
a7c75b8dbf
gnu: gfortran: change to a hidden package
* gnu/packages/gcc.scm (gfortran-4.8, gfortran-4.9)
(gfortran-5, gfortran-6, gfortran-7, gfortran-8)
(gfortran-9): Wrap in 'hidden-package'.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2019-12-17 17:41:28 +01:00
Efraim Flashner
8456f9fcd9
gnu: gcc-7: Update to 7.5.0.
* gnu/packages/gcc.scm (gcc-7): Update to 7.5.0.
2019-11-27 19:58:52 +02:00
Ludovic Courtès
a00a946ac5
gnu: gfortran: Add version 9.x.
* gnu/packages/gcc.scm (gfortran-9): New variable.
2019-10-14 18:25:31 +02:00
Ludovic Courtès
03d28531fd
gnu: gcc@9: Update to 9.2.0.
* gnu/packages/gcc.scm (gcc-9): Update to 9.2.0.
2019-10-10 11:21:37 +02:00
Marius Bakke
8449cc133a
gnu: isl: Update to 0.21.
* gnu/packages/gcc.scm (isl): Update to 0.21.
2019-06-20 23:56:58 +02:00
Marius Bakke
9f1da6ced3
gnu: isl: Fix fallback URL.
* gnu/packages/gcc.scm (isl, isl-0.18, isl-0.11)[source](uri): Use '.bz2' tarball.
2019-06-20 23:56:58 +02:00
Marius Bakke
57df83e07d
Merge branch 'staging' into core-updates 2019-05-25 00:25:15 +02:00
Ludovic Courtès
e7313ae293
gnu: libstdc++-doc: Add version 9.x.
* gnu/packages/gcc.scm (libstdc++-doc-4.9): Remove.
(libstdc++-doc-9): New variable.
2019-05-22 00:09:42 +02:00
Ludovic Courtès
798591b6ee
gnu: libstdc++-doc: Unhide.
This is a followup to d78010b81e.

* gnu/packages/gcc.scm (make-libstdc++-doc): Add 'properties' field.
2019-05-22 00:09:41 +02:00
Ricardo Wurmus
fbeb92d760
gnu: custom-gcc: Unhide resulting package.
This is a follow-up to commit d78010b81e.  While
the plain "gcc" packages should be hidden by default, gcc-derived packages
like "gfortran" should not.

* gnu/packages/gcc.scm (custom-gcc)[properties]: Remove the 'hidden? property.
2019-05-16 13:45:23 +02:00
Ricardo Wurmus
d78010b81e
gnu: gcc-4.7: Hide package.
* gnu/packages/gcc.scm (gcc-4.7): Wrap in "hidden-package" expression.
2019-05-09 23:18:39 +02:00
Carl Dong
0e293f75f1
gnu: gcc@9: Fix limits.h include for cross builds.
This allows us to supply gcc-9 as an optional argument to cross-gcc,
successfully constructing gcc-9-based cross-compilers.

* gnu/packages/gcc.scm (gcc-9)[source](patches): Add
  "gcc-9-asan-fix-limits-include.patch".
* gnu/packages/patches/gcc-9-asan-fix-limits-include.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add the patch.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2019-05-06 10:22:00 +02:00
Carl Dong
bdfc327639
gnu: gcc: Add 9.1.0.
* gnu/packages/gcc.scm (gcc-9): New variable.
* gnu/packages/commencement.scm (gcc-toolchain-9): New variable.
* gnu/packages/patches/gcc-9-strmov-store-file-names.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add the patch.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2019-05-06 10:18:15 +02:00
Marius Bakke
f5e563e50a
Merge branch 'staging' into core-updates 2019-03-01 17:40:51 +01:00
Marius Bakke
14c272d5ce
gnu: GCC: Update to 8.3.0.
* gnu/packages/gcc.scm (gcc-8): Update to 8.3.0.
2019-02-28 19:08:48 +01:00
Marius Bakke
01e8263feb
gnu: Use GCC 7 as the default compiler.
* gnu/packages/cross-base.scm (%gcc-cross-include-paths): Remove
CROSS_C_INCLUDE_PATH & co in favor of CROSS_CPATH.
* gnu/build/cross-toolchain.scm (%gcc-cross-include-paths): Likewise.
(cross-gcc-build-phases): Set CROSS_C_INCLUDE_PATH and
CROSS_CPLUS_INCLUDE_PATH when building the cross GCC.
* gnu/packages/commencement.scm (libstdc++): Add
"--disable-libstdcxx-dual-abi" to #:configure-flags.
(gcc-boot0)[arguments]: Add "--disable-libmpx"
to #:configure-flags.
(gcc-final): Add phase to set C_INCLUDE_PATH and CPLUS_INCLUDE_PATH before
building GCC.
(gcc-toolchain-5): Use MAKE-GCC-TOOLCHAIN.
(gcc-toolchain-7): Change to GCC-TOOLCHAIN.
* gnu/packages/gcc.scm (gcc): Change from GCC-5 to GCC-7.
(gfortran): Change to GFORTRAN-7.
(gcc-objc): Change to GCC-OBJC-7.
(gcc-objc++): Change to GCC-OBJC++-7.
* gnu/packages/rust.scm (rust-1.19.0)[native-search-paths]: Change from
C_INCLUDE_PATH & co to CPATH.
2019-02-09 21:53:41 +01:00
Marius Bakke
7570ec5aa9
gnu: GCC@7: Update to 7.4.0.
* gnu/packages/gcc.scm (gcc-7): Update to 7.4.0.
[source](patches): Drop 'gcc-libsanitizer-ustat.patch'.
* gnu/packages/storage.scm (ceph)[inputs]: Change from BOOST to BOOST-CXX14,
as GCC 7.4.0 triggers <https://bugs.gnu.org/33605>.
2018-12-08 19:37:47 +01:00
Marius Bakke
8d65ae44ac
gnu: GCC@6: Update to 6.5.0.
* gnu/packages/patches/gcc-libsanitizer-fix.patch: Delete file.
* gnu/local.mk (dist_patch_DATA): Remove it.
* gnu/packages/gcc.scm (gcc-6): Update to 6.5.0.
[source](patches): Drop obsolete patches.
[source](snippet): Remove.
2018-12-08 19:37:47 +01:00
Marius Bakke
0aeb134850
Merge branch 'master' into core-updates 2018-09-09 17:40:35 +02:00
Eric Brown
f66be84d08
gnu: gfortran, gcc-objc, gcc-objc++: Add version 8.
* gnu/packages/gcc.scm (gfortran-8, gcc-objc-8, gcc-objc++-8): New
variables.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2018-09-06 11:12:40 +02:00
Marius Bakke
3469a5ea47
gnu: gcc@4.9: Fix FTBFS with Glibc >= 2.28.
* gnu/packages/commencement.scm (gcc-for-libstdc++): New variable.
(libstdc++-boot0): Inherit from GCC-FOR-LIBSTDC++ instead of GCC-4.9.
* gnu/packages/gcc.scm (gcc-4.9)[source](patches): Add
"gcc-4.9-libsanitizer-ustat.patch".
* gnu/packages/patches/gcc-4.9-libsanitizer-ustat.patch: New file.
* gnu/local.mk (dist_patch_DATA): Add it.
2018-09-01 12:58:47 +02:00
Marius Bakke
45c78bf924
gnu: gcc: Include libsanitizer patch for versions 6 and 7.
* gnu/packages/gcc.scm (gcc-6, gcc-7)[source](patches): Add
"gcc-libsanitizer-ustat.patch".
2018-08-26 16:50:39 +02:00
Marius Bakke
839167ff9d
Merge branch 'staging' into core-updates 2018-08-25 16:44:07 +02:00
Marius Bakke
1aef659e86
gnu: gcc: Fix build with glibc >= 2.28.
* gnu/packages/patches/gcc-libsanitizer-ustat.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/gcc.scm (gcc-5)[source](patches): Add it.
2018-08-25 16:23:36 +02:00
Ludovic Courtès
0b93d04ac5
gnu: gcc@4.8: Fix libsanitizer build issue.
Fixes <https://bugs.gnu.org/32397>.
Reported by fis trivial <ybbs.daans@hotmail.com>.

* gnu/packages/patches/gcc-4.8-libsanitizer-fix.patch: New file.
* gnu/packages/gcc.scm (gcc-4.8)[source]: Use it.
* gnu/local.mk (dist_patch_DATA): Add it.
2018-08-19 18:21:24 +02:00
Marius Bakke
25bd72678a
gnu: gcc@5: Build with isl@0.18.
* gnu/packages/gcc.scm (gcc-5)[inputs]: Change ISL to ISL-0.18.
(isl-0.18): New public variable.
2018-08-12 14:09:28 +02:00
Marius Bakke
4214066d45
Merge branch 'master' into core-updates 2018-08-01 15:53:17 +02:00
Ludovic Courtès
74a4fa5040
gnu: gcc@8: Update to 8.2.0.
* gnu/packages/gcc.scm (gcc-8): Update to 8.2.0.
2018-07-27 18:52:58 +02:00
Marius Bakke
706ae8e15c
Merge branch 'master' into core-updates 2018-07-24 19:56:35 +02:00
Marius Bakke
92af3ce417
Merge branch 'master' into staging 2018-07-02 12:18:58 +02:00
Ricardo Wurmus
f1728d4346
Merge branch 'master' into core-updates 2018-06-29 22:51:23 +02:00
Marius Bakke
a1fa2691cd
gnu: Add gcc@8.
* gnu/packages/patches/gcc-8-strmov-store-file-names.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/gcc.scm (gcc-8): New public variable.
2018-06-26 17:27:40 +02:00
Alex Vong
a1a3b25dfe
gnu: custom-gcc: Fix regex used for matching executables.
Fixes <https://bugs.gnu.org/31561>.

* gnu/packages/gcc.scm (custom-gcc)[arguments]: Fix regex used for matching
broken or conflicting executables.

Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
2018-06-14 01:30:44 +02:00
Tobias Geerinckx-Rice
5b5a8d6b21
gnu: isl: Update to 0.19.
* gnu/packages/gcc.scm (isl): Update to 0.19.
2018-06-12 15:06:20 +02:00
Mark H Weaver
aedc6e9fc9
Merge branch 'master' into core-updates 2018-05-08 18:45:39 -04:00
Ludovic Courtès
91a56b4ab5
gnu: gcc > 5: Use 'CPATH' instead of 'C_INCLUDE_PATH' & co.
Partly addresses <https://bugs.gnu.org/30756>.
Reported by julien lepiller <julien@lepiller.eu>,
Marius Bakke <mbakke@fastmail.com>,
and Giel van Schijndel <giel@mortis.eu>

* gnu/packages/gcc.scm (gcc-6)[native-search-paths]: New field.
2018-05-07 12:02:23 +02:00
Mark H Weaver
921f8e63dd
gnu: gcc@4.7: Combine duplicate 'patches' fields into one.
* gnu/packages/gcc.scm (gcc-4.7)[source]: Combine duplicate 'patches' fields
into one.  Previously, the first 'patches' field was being ignored.
2018-04-21 05:08:53 -04:00