summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc
Commit message (Collapse)AuthorAge
* gcc: fix cross compilation to musl32Symphorien Gibol2021-02-12
|
* add stackprotector support on musl32Walter Franzini2021-02-12
| | | | | | | | In order to support stackprotector on musl32, this change import a couple of patches from alpinelinux: 1. libssp_nonshared.a is built alongside musl's libc 2. the above library is automatically linked when compiling with gcc6 or gcc7
* Merge pull request #111345 from r-burns/ppc64-big-endianJohn Ericson2021-01-30
|\ | | | | Enable PPC64 (big-endian)
| * gcc: fix powerpc64-linuxRyan Burns2021-01-30
| | | | | | | | Long-double-128 is a hardware feature independent of endianness
* | Merge master into staging-nextgithub-actions[bot]2021-01-27
|\ \
| * | treewide: remove inherited stdenv.libBen Siraphob2021-01-27
| |/
* | Merge branch 'master' into staging-nextJan Tojnar2021-01-24
|\|
| * Merge pull request #110544 from Ericson2314/no-platformJohn Ericson2021-01-23
| |\ | | | | | | top-level, lib: Remove platform attribute of platforms
| | * lib: Clean up how linux and gcc config is specifiedJohn Ericson2021-01-23
| | | | | | | | | | | | | | | | | | | | | Second attempt of 8929989614589ee3acd070a6409b2b9700c92d65; see that commit for details. This reverts commit 0bc275e63423456d6deb650e146120c39c1e0723.
| | * Revert "lib: Clean up how linux and gcc config is specified"Jonathan Ringer2021-01-22
| | | | | | | | | | | | | | | | | | | | | This is a stdenv-rebuild, and should not be merged into master This reverts commit 8929989614589ee3acd070a6409b2b9700c92d65.
| | * lib: Clean up how linux and gcc config is specifiedJohn Ericson2021-01-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `platform` field is pointless nesting: it's just stuff that happens to be defined together, and that should be an implementation detail. This instead makes `linux-kernel` and `gcc` top level fields in platform configs. They join `rustc` there [all are optional], which was put there and not in `platform` in anticipation of a change like this. `linux-kernel.arch` in particular also becomes `linuxArch`, to match the other `*Arch`es. The next step after is this to combine the *specific* machines from `lib.systems.platforms` with `lib.systems.examples`, keeping just the "multiplatform" ones for defaulting.
* | | Merge master into staging-nextgithub-actions[bot]2021-01-23
|\| |
| * | pkgs/development/compilers: stdenv.lib -> libBen Siraphob2021-01-23
| |/
* / gcc: allow stripping gcc librariesMatthew Bauer2021-01-21
|/ | | | | | | | | When cross compiling to the same kernel / arch combination, it is safe to use strip of libraries. This happens when cross-compiling musl programs. dontStrip is now set in each gcc compiler instead of in gcc/builder.sh. Fixes #75476
* treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nixJonathan Ringer2021-01-19
| | | | | | | | | | | | | continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
* Merge staging-next into staginggithub-actions[bot]2021-01-04
|\
| * gcc10: fix MinGW build & use local copy of mcfgthread patchesKira Bruneau2021-01-03
| |
* | Merge staging-next into staginggithub-actions[bot]2021-01-04
|\|
| * gcc: Always pass `--enable-shared` by defaultJohn Ericson2021-01-03
| | | | | | | | | | | | | | | | I am actually a bit skeptical about this, but @matthewbauer makes the case for this in https://github.com/NixOS/nixpkgs/pull/107238#discussion_r546454453 and I'm happy to go with it not being as in the loop on static linking stuff as he is.
| * treewide: Start to break up static overlayJohn Ericson2021-01-03
| | | | | | | | | | | | | | | | | | We can use use `stdenv.hostPlatform.isStatic` instead, and move the logic per package. The least opionated benefit of this is that it makes it much easier to replace packages with modified ones, as there is no longer any issue of overlay order. CC @FRidh @matthewbauer
| * gcc 8, 10: tabs -> spacesJohn Ericson2021-01-03
| |
* | Merge pull request #107596 from Mic92/fix-static-pie-take2Jörg Thalheim2020-12-30
|\ \ | |/ |/| bintools-wrapper: skip dynamic linker for static binaries
| * bintools-wrapper: skip dynamic linker for static binariesJörg Thalheim2020-12-27
| |
* | Remove trailing whitespaces and fix indentationluc65r2020-12-28
| |
* | gcc: make -fcommon default on gcc10luc65r2020-12-28
|/
* gcc9: apply gcc PR 96796 to avoid cycling on certain subreg reloadsDaniël de Kok2020-11-02
| | | | | | | | https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96796 This may have caused the AArch64 build failure of PyTorch in: https://github.com/NixOS/nixpkgs/pull/101917
* Re-Revert "Merge #101508: libraw: 0.20.0 -> 0.20.2"Vladimír Čunát2020-10-26
| | | | | | | | | This reverts commit c778945806b44d46ec16bc4302e7e7163e6bab97. I believe this is exactly what brings the staging branch into the right shape after the last merge from master (through staging-next); otherwise part of staging changes would be lost (due to being already reachable from master but reverted).
* Revert "Merge #101508: libraw: 0.20.0 -> 0.20.2"Vladimír Čunát2020-10-25
| | | | | | | I'm sorry; I didn't notice it contained staging commits. This reverts commit 17f5305b6c20df795c365368d2d868266519599e, reversing changes made to a8a018ddc0a8b5c3d4fa94c94b672c37356bc075.
* Merge #92704: gcc: Improve manpage symlinksVladimír Čunát2020-10-18
|\
| * gcc: fix manpage symlinks when arch tuple is in the file nameAlexandria Corkwell2020-07-08
| | | | | | | | | | | | | | | | | | | | | | | | In some cases, such as when building cross compilers, the binaries and manpages contain the target architecture tuple, such as `i686-w64-mingw32-g++.1`. Ensure the symlink created to save space with the duplicated manpage (`g++.1 -> gcc.1`) properly handles such cases and generates symlinks such as `i686-w64-mingw32-g++.1 -> i686-w64-mingw32-gcc.1`. Previously in such cases, a broken `gcc.1` link would be created instead.
* | gcc10: 10.1.0 -> 10.2.0Vladimír Čunát2020-09-12
| | | | | | | | | | | | It's supposed to be just bugfixes. I tested building some projects with gcc10. Also gfortran10 still builds. I don't expect issues. This causes basically no rebuilds, as we use 9 by default.
* | Merge pull request #94637 from antifuchs/gccemacs-on-darwinadisbladis2020-09-02
|\ \ | | | | | | emacs: Make gccemacs build on darwin
| * | gcc: Only use strip -x if building libgccjit on darwinAndreas Fuchs2020-08-29
| | | | | | | | | | | | | | | It's not necessary to use strip -x otherwise, so let's just use it for the JIT library.
| * | gcc: On darwin, adjust IDs of installed .so files alsoAndreas Fuchs2020-08-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Turns out that libgccjit gets installed as a .so file, which the gcc builder.sh didn't change: It only touched .dylib files; that means that anything linking in libgccjit.so would receive an "Image not found" error at load time. With this change, we invoke `install_name_tool` on .so files too, adjusting their dynamic linker ID, so that they too can be found.
| * | gcc: Fix building libgccjit on darwin, using strip -xAndreas Fuchs2020-08-25
| | | | | | | | | | | | | | | | | | The default `strip` invocation tries to strip global symbols from the library, and refuses because those are indirect symbol table references.
* | | gcc10: fix building darwin->linux cross compilerMatthew Bauer2020-08-26
| | | | | | | | | | | | same as 459c60dda2406d2207d2afd90f210ffc87efde54 but for gcc10
* | | Merge remote-tracking branch 'origin/master' into gcc-crossMatthew Bauer2020-08-26
|\| |
| * | treewide: add warning comment to “boot” packagesMatthew Bauer2020-07-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a warning to the top of each “boot” package that reads: Note: this package is used for bootstrapping fetchurl, and thus cannot use fetchpatch! All mutable patches (generated by GitHub or cgit) that are needed here should be included directly in Nixpkgs as files. This makes it clear to maintainer that they may need to treat this package a little differently than others. Importantly, we can’t use fetchpatch here due to using <nix/fetchurl.nix>. To avoid having stale hashes, we need to include patches that are subject to changing overtime (for instance, gitweb’s patches contain a version number at the bottom).
| * | Merge pull request #91974 from Mic92/nostdincJohn Ericson2020-07-28
| |\ \ | | | | | | | | stdenv: make -nostdinc work as intended
| | * | stdenv: make -nostdinc work as intendedJörg Thalheim2020-07-23
| | | | | | | | | | | | | | | | | | | | Right now we add glibc to search path also -nostdinc was provided, which breaks projects providing their own gcc.
| * | | Merge pull request #82921 from Calvin-L/fix-gcc-on-catalinaJörg Thalheim2020-07-23
| |\ \ \ | | | | | | | | | | Fix GCC compilation on MacOS 10.15
| | * | | GCC: fix compilation on MacOS 10.15Calvin Loncaric2020-03-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MacOS 10.15 now includes "aligned_alloc". Disagreement between the headers and the binaries about whether aligned_alloc exists leads to a compilation failure (see #73319 and the detailed comment in this commit).
| * | | | redox: add as targetAaron Janse2020-07-21
| | |/ / | |/| |
| * | | gcc49: fix build w/glibc-2.31Maximilian Bosch2020-06-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The same `libsanitizer` problem as in llvm<10 and newer GCCs. https://hydra.nixos.org/build/122902814 https://hydra.nixos.org/build/122903349
| * | | gcc6: fix build w/glibc-2.31Maximilian Bosch2020-06-29
| | | |
| * | | gcc7: fix build w/glibc-2.31Maximilian Bosch2020-06-29
| | | | | | | | | | | | | | | | | | | | Applied a patch from the `gcc9` branch for `gcc7` to fix `libsanitizer` for glibc-2.31.
| * | | C++ Compilers: Systematize handling of standard librariesJohn Ericson2020-06-22
| | |/ | |/|
| * | Merge master into staging-nextFrederik Rietdijk2020-06-08
| |\ \
| | * | Update configure-flags.nixMoritz Angermann2020-06-08
| | | |
| | * | Update configure-flags.nixMoritz Angermann2020-06-08
| | | |