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

ASAN doesn't work in static builds #825

Open
javierhonduco opened this issue Sep 21, 2022 · 0 comments
Open

ASAN doesn't work in static builds #825

javierhonduco opened this issue Sep 21, 2022 · 0 comments
Labels
area/build-pipeline Something to do with CI and build pipeline

Comments

@javierhonduco
Copy link
Contributor

javierhonduco commented Sep 21, 2022

Was trying to use ASAN while working on #817 and had to comment out the static linking as it's not compatible with ASAN

 make ENABLE_ASAN=yes
github.com/parca-dev/parca-agent/pkg/metadata
github.com/parca-dev/parca-agent/cmd/parca-agent
# github.com/parca-dev/parca-agent/cmd/parca-agent
/usr/lib/golang/pkg/tool/linux_amd64/link: running clang failed: exit status 1
/usr/bin/ld: /usr/lib64/clang/14.0.0/lib/linux/libclang_rt.asan-x86_64.a(asan_linux.cpp.o): in function `__asan::AsanDoesNotSupportStaticLinkage()':
(.text+0x37): undefined reference to `_DYNAMIC'
clang-14: error: linker command failed with exit code 1 (use -v to see invocation)

make: *** [Makefile:110: dist/parca-agent] Error 2

While make build-dyn works, perhaps we should log when running make build with ASAN to inform that it can't be run in static builds?

@kakkoyun kakkoyun added this to the v0.11.0 milestone Oct 10, 2022
@javierhonduco javierhonduco changed the title ASAN doesn't build anymore ASAN doesn't work in static builds Oct 20, 2022
@kakkoyun kakkoyun added the area/build-pipeline Something to do with CI and build pipeline label Feb 14, 2023
@kakkoyun kakkoyun removed this from the v0.12.0 milestone Mar 15, 2023
@kakkoyun kakkoyun removed their assignment May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build-pipeline Something to do with CI and build pipeline
Projects
None yet
Development

No branches or pull requests

2 participants