binutils: strip only works in a nix shell?
DavidEGrayson opened this issue · comments
We use i686-w64-mingw32-strip
in the build process for the hello
package, but why can't I use it like this?
$ /nix/store/l7f963mjahznnfjpib65wh58wgrkhwf9-binutils-2.27-i686-w64-mingw32/bin/i686-w64-mingw32-strip libusbp-1.dll
/nix/store/l7f963mjahznnfjpib65wh58wgrkhwf9-binutils-2.27-i686-w64-mingw32/bin/i686-w64-mingw32-strip: unable to copy file 'libusbp-1.dll'; reason: Permission denied
Using strace
on the problematic command shows:
open("libusbp-1.dll", O_WRONLY|O_CREAT|O_TRUNC, 0777) = -1 EACCES (Permission denied)