Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcc5 fails to build on darwin #33722

Closed
cransom opened this issue Jan 10, 2018 · 3 comments
Closed

gcc5 fails to build on darwin #33722

cransom opened this issue Jan 10, 2018 · 3 comments

Comments

@cransom
Copy link
Contributor

cransom commented Jan 10, 2018

Issue description

gcc5 fails to compile from master which is breaking other things (my main goal is for a working v8_3_16_14)

Steps to reproduce

Fresh off of git pull -

0caseys-imac:~/git/nixpkgs% nix-build . -A gcc5 
these derivations will be built:
  /nix/store/9hrnydbj4smqf63cjgdrgrvhgpd21czr-gcc-5.5.0.drv
  /nix/store/cd143j2pffq3an1788s6aglin3hsxr1m-gcc-wrapper-5.5.0.drv
building path(s) ‘/nix/store/9cz2c7vsfmafhc2wgn3zdi3zq5z393hm-gcc-5.5.0-man’, ‘/nix/store/ialg9ykcdb8sg9kdwvrfsii5hpamxj3c-gcc-5.5.0’, ‘/nix/store/nwjfzhf5iah149cp0saffgzfkcvq8bap-gcc-5.5.0-info’, ‘/nix/store/pzx4q1v5bnjy9k2fhdmd5zn9q27bcdwf-gcc-5.5.0-lib’
$CPATH is `/nix/store/zhza28rq3gy93lacp1xvz3dmk3ybpvi6-zlib-1.2.11-dev/include'
$LIBRARY_PATH is `/nix/store/dmj0jc03kkhq1238y88gm5rvppgvi2ff-zlib-1.2.11/lib'
unpacking sources
unpacking source archive /nix/store/f01lylkyh9jwrb4cbn63v28yb3vggdrr-gcc-5.5.0.tar.xz
source root is gcc-5.5.0
setting SOURCE_DATE_EPOCH to timestamp 1507629672 of file gcc-5.5.0/MD5SUMS
patching sources
applying patch /nix/store/k4xxs05a0y02m36sv2hdl0vrmzpk77y8-use-source-date-epoch.patch
patching file libcpp/macro.c
applying patch /nix/store/pz03lhak99nzyyni72m14zsjzfjvqvr8-no-sys-dirs.patch
patching file gcc/cppdefault.c
patching file gcc/gcc.c
Hunk #1 succeeded at 1261 (offset 99 lines).
applying patch /nix/store/p8ibcsisisd22alnw9mwkcpv1dv4xnjb-libcxx38-and-above.patch
patching file gcc/auto-profile.c
Hunk #1 FAILED at 19.
1 out of 1 hunk FAILED -- saving rejects to file gcc/auto-profile.c.rej
patching file gcc/graphite-isl-ast-to-gimple.c
Hunk #1 FAILED at 38.
Hunk #2 FAILED at 75.
2 out of 2 hunks FAILED -- saving rejects to file gcc/graphite-isl-ast-to-gimple.c.rej
patching file gcc/system.h
Hunk #1 succeeded at 229 with fuzz 1 (offset 12 lines).
builder for ‘/nix/store/9hrnydbj4smqf63cjgdrgrvhgpd21czr-gcc-5.5.0.drv’ failed with exit code 1
cannot build derivation ‘/nix/store/cd143j2pffq3an1788s6aglin3hsxr1m-gcc-wrapper-5.5.0.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/cd143j2pffq3an1788s6aglin3hsxr1m-gcc-wrapper-5.5.0.drv’ failed

I tried previously removing the patch and recompiling GCC but my machine was unstable so it never finished the (lengthly) recompile. I'll let it run again and see where I get.

Technical details

  • system: "x86_64-darwin"
  • host os: Darwin 17.3.0, macOS 10.13.2
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 1.11.15
  • channels(cransom): "darwin, nixpkgs-18.03pre124071.310ad4345bb"
  • channels(root): "darwin"
  • nixpkgs: /Users/cransom/.nix-defexpr/channels/nixpkgs
@cransom
Copy link
Contributor Author

cransom commented Jan 11, 2018

After removing the patch and waiting many hours for a build, I'm at -

clang++   -O2 -I/nix/store/zk0kw320dn3dq56lpk7rgmf4pgk06g4f-Libsystem-osx-10.11.6/include -B/nix/store/zk0kw320dn3dq56lpk7rgmf4pgk06g4f-Libsystem-osx-10.11.6/lib/ -idirafter /nix/store/zk0kw320dn3dq56lpk7rgmf4pgk06g4f-Libsystem-osx-10.11.6/include -Wl,-rpath,/nix/store/rvrj5z5h3684p4jb20xkmpma3bb9gpqb-gcc-5.5.0-lib/lib -Wl,-L/nix/store/zk0kw320dn3dq56lpk7rgmf4pgk06g4f-Libsystem-osx-10.11.6/lib -Wl,-rpath -Wl,/nix/store/zk0kw320dn3dq56lpk7rgmf4pgk06g4f-Libsystem-osx-10.11.6/lib -Wl,-L/nix/store/zk0kw320dn3dq56lpk7rgmf4pgk06g4f-Libsystem-osx-10.11.6/lib -DIN_GCC    -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -DGENERATOR_FILE -static-libstdc++ -static-libgcc -Wl,-rpath,/nix/store/rvrj5z5h3684p4jb20xkmpma3bb9gpqb-gcc-5.5.0-lib/lib -Wl,-L/nix/store/zk0kw320dn3dq56lpk7rgmf4pgk06g4f-Libsystem-osx-10.11.6/lib -Wl,-rpath -Wl,/nix/store/zk0kw320dn3dq56lpk7rgmf4pgk06g4f-Libsystem-osx-10.11.6/lib -Wl,-L/nix/store/zk0kw320dn3dq56lpk7rgmf4pgk06g4f-Libsystem-osx-10.11.6/lib -o build/genchecksum \
    build/genchecksum.o .././libiberty/libiberty.a
clang-4.0: error: unsupported option '-static-libgcc'
make[2]: *** [Makefile:2615: build/genchecksum] Error 1
make[2]: Leaving directory '/private/tmp/nix-build-gcc-5.5.0.drv-0/build/gcc'
make[1]: *** [Makefile:4376: all-gcc] Error 2
make[1]: Leaving directory '/private/tmp/nix-build-gcc-5.5.0.drv-0/build'
make: *** [Makefile:18998: bootstrap] Error 2
builder for ‘/nix/store/jiphrbbhjwc71k3hrw231mdhmk484rfy-gcc-5.5.0.drv’ failed with exit code 2
cannot build derivation ‘/nix/store/6rilwx2xsp5d6phl6id7plpnd24np5km-gcc-wrapper-5.5.0.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/6rilwx2xsp5d6phl6id7plpnd24np5km-gcc-wrapper-5.5.0.drv’ failed

@clacke
Copy link
Contributor

clacke commented Feb 6, 2018

Have you tried a ridiculous thing?

Tried to build it with gccStdenv?

matthewbauer added a commit that referenced this issue May 18, 2018
The patch fails to apply & may not be necessary any more. Trying to remove it for now just to see.

Hydra log: https://hydra.nixos.org/build/72726891/nixlog/1

Also see #33722

/cc @copumpkin
@matthewbauer
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants