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 in packageOverrides #2817

Closed
vcunat opened this issue Jun 3, 2014 · 2 comments
Closed

GCC in packageOverrides #2817

vcunat opened this issue Jun 3, 2014 · 2 comments
Labels
0.kind: bug Something is broken 6.topic: cross-compilation Building packages on a different platform than they will be used on

Comments

@vcunat
Copy link
Member

vcunat commented Jun 3, 2014

Unresolved discussion on ML: https://www.mail-archive.com/[email protected]/msg11889.html

  packageOverrides = pkgs_: with pkgs_; {
    testgcc2 = pkgs_.gcc;
  };
% nix-instantiate '<nixpkgs>' -A gcc
warning: you did not specify `--add-root'; the result might be removed by the garbage collector
/nix/store/993glmz6hxbld0ry81jwv7c3z7cgaz68-gcc-wrapper-4.8.2.drv

% nix-instantiate '<nixpkgs>' -A testgcc2
warning: you did not specify `--add-root'; the result might be removed by the garbage collector
/nix/store/41nacbfpr8jzsk3k03jjlqb2r2xis5gf-gcc-wrapper-4.8.2.drv

Note that regular packages in packageOverrides do NOT cause such problems.

@bennofs
Copy link
Contributor

bennofs commented Aug 20, 2015

I'll try to track this down. Always wanted to learn about how stdenv and cross building works, so this looks like a good opportunity to dig into the code and understand how it works.

@zimbatm
Copy link
Member

zimbatm commented Feb 26, 2016

Fixed by #9400

@zimbatm zimbatm closed this as completed Feb 26, 2016
@Ericson2314 Ericson2314 added the 6.topic: cross-compilation Building packages on a different platform than they will be used on label Jun 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: cross-compilation Building packages on a different platform than they will be used on
Projects
None yet
Development

No branches or pull requests

4 participants