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

mingw-w64: kernel32.a retains a reference to stage 1 GCC #3

Open
DavidEGrayson opened this issue Jan 22, 2017 · 0 comments
Open

mingw-w64: kernel32.a retains a reference to stage 1 GCC #3

DavidEGrayson opened this issue Jan 22, 2017 · 0 comments

Comments

@DavidEGrayson
Copy link
Owner

DavidEGrayson commented Jan 22, 2017

This causes the closure of our mingw-w64 compiler to contain the stage 1 compiler, wasting some space. Not a big deal, but it would be interesting to figure out why this is happening and it's only happening for one of the many libraries in mingw-w64.

An example of the problem:

$ /nix/store/l7f963mjahznnfjpib65wh58wgrkhwf9-binutils-2.27-i686-w64-mingw32/bin/i686-w64-mingw32-strings /nix/store/5ppzn3pqy2d7rgcfim3f7j23561wdqg8-mingw-w64-4.0.6/lib/libkernel32.a | grep stage1
/nix/store/a1x3zwii2ycdiqi8s7yfr3nc82nagm6l-gcc-5.4.0-i686-w64-mingw32-stage1/lib/gcc/i686-w64-mingw32/5.4.0/include

In general use this command to test the run-time closure:

nix-store -q --tree $(nix-build -A pkgs.i686-w64-mingw32.gcc)

Be sure to upgrade to the latest mingw-w64 before putting much effort into this.

@DavidEGrayson DavidEGrayson changed the title mingw-w64: kernel32.a retains a reference to GCC mingw-w64: kernel32.a retains a reference to stage 1 GCC Jan 22, 2017
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

1 participant