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

jemalloc can't build when CFLAGS/CXXFLAGS contain -I options pointing to a prefix with an existing install of jemalloc #2619

Open
adamnovak opened this issue Mar 21, 2024 · 0 comments

Comments

@adamnovak
Copy link

If you install one version of jemalloc into a prefix, and set your CFLAGS and CXXFLAGS environment variables to have -I /path/to/that/prefix/include in them, and then you try to build a different version of jemalloc, the build can fail.

jemalloc's build system adds -I flags pointing to the currently-being-built jemalloc's include directory to the command line after preexisting CFLAGS/CXXFLAGS flags. This means the prefix-installed jemalloc's include files will be selected over the ones actually included in the jemalloc you are trying to build, and the build will fail whenever an internal jemalloc header file differs sufficiently from the corresponding one used by the installed jemalloc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant