-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
--set-interpreter gives "cannot find section" for go binary #138
Comments
Possible duplicate of #66 |
I'm hitting the same issue trying to patch browserpass v2.0.9. MWE: with import <nixpkgs> {};
stdenv.mkDerivation rec {
name = "browserpass";
version = "2.0.9";
src = fetchzip {
url = "https://github.com/dannyvankooten/browserpass/releases/download/${version}/${name}-linux64.zip";
sha256 = "1nygcfjhyrcvbdmz4hjphcnmr4lm9y24lpdkdcjix6vbsjs0hipw";
stripRoot = false;
};
buildPhase = '':'';
libPath = lib.makeLibraryPath [ ];
installPhase = ''
set -x
patchelf --set-interpreter ${stdenv.glibc}/lib/ld-linux-x86-64.so.2 browserpass-linux64
'';
} Fails with
|
Have you tried patchelf master? or #127 applied? |
@domenkozar I tried patching another go binary with both
But it of course still doesn't work. |
Building from #149 I was able to patch the go binary being downloaded as part of bazelbuild/rules_go#1376 where previously patchelf would return cannot find section '' |
I can't reproduce this anymore on master:
|
The text was updated successfully, but these errors were encountered: