Nixpkgs: GCC5 Build Failure [Darwin]

Created on 3 Aug 2017  路  4Comments  路  Source: NixOS/nixpkgs

Issue description

gcc5 and the dependant gfortran5 packages are failing as of 31 July
Failures: [ [gcc5](https://hydra.nixos.org/job/nixpkgs/trunk/gcc5.x86_64-darwin) [gfortran5](https://hydra.nixos.org/build/57627526#tabs-summary) ] [[hydra newly failing](https://hydra.nixos.org/eval/1380082?filter=gcc&compare=1379999&full=#tabs-now-fail)]

Steps to reproduce

Building either package using nix-build '<nixpkgs>' -A gcc5 or nix-build '<nixpkgs>' -A gfortran5 fails.

Technical details

../../gcc-5.4.0/libiberty/fibheap.c:151:7: warning: this function declaration is not a prototype [-Wstrict-prototypes]
../../gcc-5.4.0/libiberty/fibheap.c:220:30: error: use of undeclared identifier 'LONG_MIN'
  if (okey == key && okey != FIBHEAPKEY_MIN)
                             ^
../../gcc-5.4.0/libiberty/fibheap.c:38:24: note: expanded from macro 'FIBHEAPKEY_MIN'
#define FIBHEAPKEY_MIN  LONG_MIN
                        ^
../../gcc-5.4.0/libiberty/fibheap.c:261:36: error: use of undeclared identifier 'LONG_MIN'
  fibheap_replace_key (heap, node, FIBHEAPKEY_MIN);
                                   ^
  • System: (MacOS 10.11.6 and MacOS 10.12.6, both nix-multiuser install)
  • Nix version: (1.11.13)
  • Nixpkgs version: (17.09pre-git)
  • Sandboxing enabled: (relaxed)
bug darwin

Most helpful comment

093cc00cdd9d8cf31ecce5bc1dd3645c460a1b98 is the first bad commit
commit 093cc00cdd9d8cf31ecce5bc1dd3645c460a1b98
Author: John Ericson <[email protected]>
Date:   Mon Jun 26 01:17:09 2017 -0400

    cc-wrapper: Always export environment variables for binutils

    Before, this only happened when cross compiling.

:040000 040000 d52da81f6c99fab1d1dac403d021ba5f0e7292cd 7faa156a6bb81603f41ffcf27fc0cf44a3bc0eb9 M  pkgs

093cc00cdd9d8cf31ecce5bc1dd3645c460a1b98
git-bisect is pretty neat

All 4 comments

@LnL7 has been looking into this but it seems pretty mysterious so far

093cc00cdd9d8cf31ecce5bc1dd3645c460a1b98 is the first bad commit
commit 093cc00cdd9d8cf31ecce5bc1dd3645c460a1b98
Author: John Ericson <[email protected]>
Date:   Mon Jun 26 01:17:09 2017 -0400

    cc-wrapper: Always export environment variables for binutils

    Before, this only happened when cross compiling.

:040000 040000 d52da81f6c99fab1d1dac403d021ba5f0e7292cd 7faa156a6bb81603f41ffcf27fc0cf44a3bc0eb9 M  pkgs

093cc00cdd9d8cf31ecce5bc1dd3645c460a1b98
git-bisect is pretty neat

cc @Ericson2314

This is also needed to fix things that depend on gcc https://github.com/NixOS/nixpkgs/commit/bf8c1251708f013ecbcf3a1c6770a175e9161170.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

edolstra picture edolstra  路  3Comments

teto picture teto  路  3Comments

yawnt picture yawnt  路  3Comments

sid-kap picture sid-kap  路  3Comments

matthiasbeyer picture matthiasbeyer  路  3Comments