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
No debug info when building Kubernetes source code with make all GOGCFLAGS="-N -l"
#77527
Comments
/sig release |
It is the problem of "-ldflags -s -w" and I will provide a PR ASAP. /cc @YoubingLi |
@YoubingLi @qianzhangxa please set |
@dims |
@dims @YoubingLi I tried |
|
@qianzhangxa @YoubingLi yes, please update comments in the Makefile to |
in my case for kubernetes1.13.5, removing '-s -w' from goldflags is enough. |
What happened:
I ran
make all GOGCFLAGS="-N -l"
to build latest Kubernetes source code, and then I see the binaries are still stripped:And I can not use dlv to debug the binary:
In Makefile, I see the following comments:
But that seems not correct in my build.
What you expected to happen:
I expected Kubernetes binaries with debug info.
How to reproduce it (as minimally and precisely as possible):
make all GOGCFLAGS="-N -l"
Anything else we need to know?:
Environment:
kubectl version
): Latest Kubernetes source code.cat /etc/os-release
): 18.04 LTS (Bionic Beaver)uname -a
): Linux workstation 4.15.0-23-generic Change 'this' varable to more sensible abbreviation #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018 x86_64 x86_64 x86_64 GNU/LinuxThe text was updated successfully, but these errors were encountered: