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

Build fixes for ASAN #21902

Merged
merged 2 commits into from
May 17, 2017
Merged

Build fixes for ASAN #21902

merged 2 commits into from
May 17, 2017

Conversation

maleadt
Copy link
Member

@maleadt maleadt commented May 16, 2017

LDFLAGS got erroneously populated with -fsanitize=address, causing in my case openspecfun to get linked against an incompatible ASAN runtime (because of using gfortran instead of clang).

I also removed traces of DEPS_C*FLAGS, which was only used for the (defunct) building of deps+ASAN.

CI failure before (Your application is linked against incompatible ASan runtimes.), after (still fails, but due to different issues).

@maleadt maleadt added the building Build system, or building Julia or its dependencies label May 16, 2017
@maleadt
Copy link
Member Author

maleadt commented May 16, 2017

Trying to avoid another #21624 here -- DEPS_.*FLAGS really seem unused.
I guess this might apply for 0.6 if that window is still open (cc @tkelman)?

@tkelman
Copy link
Contributor

tkelman commented May 16, 2017

DEPS_CFLAGS was added by Keno in #10785. It's possible someone may have been setting it in Make.user or on the make command line, possibly for non sanitizer related purposes, in which case I don't think we need to remove them from a release branch but on master should be okay.

CMAKE_CC_ARG := $(CC_ARG) $(DEPS_CFLAGS)
CMAKE_CXX_ARG := $(CXX_ARG) $(DEPS_CXXFLAGS)
CMAKE_CC_ARG := $(CC_ARG)
CMAKE_CXX_ARG := $(CXX_ARG) $
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

leftover $

@maleadt maleadt force-pushed the tb/makefile_asan branch from 13c1806 to 1db6e10 Compare May 16, 2017 11:14
@maleadt
Copy link
Member Author

maleadt commented May 16, 2017

I don't think we need to remove them from a release branch but on master should be okay.

Sounds reasonable. Do I create a second PR for backporting the core fix, or just leave it as-is?
ASAN is part of the devdocs, so it might make sense to fix it for the release.

@tkelman
Copy link
Contributor

tkelman commented May 16, 2017

I can get that commit in a backport batch

@tkelman tkelman merged commit 83b5261 into master May 17, 2017
@tkelman tkelman deleted the tb/makefile_asan branch May 17, 2017 06:33
tkelman pushed a commit that referenced this pull request May 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
building Build system, or building Julia or its dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants