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

gcc fails to build on OS X #965

Closed
rprechelt opened this issue Jul 7, 2016 · 3 comments
Closed

gcc fails to build on OS X #965

rprechelt opened this issue Jul 7, 2016 · 3 comments

Comments

@rprechelt
Copy link

I know there has been a couple of gcc issues raised recently but I still can't get any of the following packages to build:

nixpkgs-gcc
nixpkgs-gcc6
gcc-wrapper-6.1.0
gcc-wrapper-5.3.0

Attempted with either nix-env -iA nixpkgs.gcc* or nix-env -i gcc-wrapper-*.

This is the error received when attempting to build nixpkgs-gcc.

make: *** [bootstrap] Error 2
builder for ‘/nix/store/4b1m5271ks3hzw9c7db2f195r93zsz6g-gcc-5.3.0.drv’ failed with exit code 2
cannot build derivation ‘/nix/store/im9lrvna49ryyvcv6kd9m1pja825qp10-gcc-wrapper-5.3.0.drv’: 1 dependencies couldn't be built
error: build of ‘/nix/store/im9lrvna49ryyvcv6kd9m1pja825qp10-gcc-wrapper-5.3.0.drv’ failed

This is a completely fresh install of OS X El Capitan (nixwas the first thing that I installed, closely followed by my gcc attempt), and with a fresh install of nix.

@rprechelt
Copy link
Author

rprechelt commented Jul 8, 2016

Attempting nix-env -iA nixpkgs.gcc6 results in the following error:

ld: library not found for -lc
collect2: error: ld returned 1 exit status
Makefile:945: recipe for target 'libgcc_s.dylib' failed
make[3]: *** [libgcc_s.dylib] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/private/var/folders/mt/c_dppb2s51bbvm3yy67mns080000gn/T/nix-build-gcc-6.1.0.drv-0/build/x86_64-apple-darwin15.5.0/libgcc'

yet locate libc.dylib returns

/nix/store/d6pmsgblamr0wfvpdzikv8xnlfs5sjym-Libsystem-osx-10.9.5/lib/libc.dylib
/nix/store/w090w1675pg26kcwj7ka9f42c0a87wg9-Libsystem-osx-10.9.5/lib/libc.dylib
/usr/lib/libc.dylib

@vcunat
Copy link
Member

vcunat commented Jul 9, 2016

This should be closed in favor of NixOS/nixpkgs#16806 (I can't do it)

@copumpkin
Copy link
Member

#1008

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