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

fatal error: jemalloc/jemalloc.h: No such file or directory #7874

Open
zk-kiger opened this issue Aug 13, 2022 · 2 comments
Open

fatal error: jemalloc/jemalloc.h: No such file or directory #7874

zk-kiger opened this issue Aug 13, 2022 · 2 comments
Assignees

Comments

@zk-kiger
Copy link

[21/1190] Building CXX object flow/CMakeFiles/flow.dir/FastAlloc.cpp.o
FAILED: flow/CMakeFiles/flow.dir/FastAlloc.cpp.o
/data/zk/toolchain/bin/c++ -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DNO_INTELLISENSE -I/data/zk/foundationdb -I/data/zk/foundationdb/build -I/data/zk/foundationdb/contrib/fmt-8.1.1/include -isystem /data/zk/foundationdb/build/boost_install/include -O3 -DNDEBUG -DCMAKE_BUILD -ggdb -fno-omit-frame-pointer -mavx -Wno-pragmas -Wno-attributes -Wno-error=format -Wunused-variable -Wno-deprecated -fvisibility=hidden -Wreturn-type -fPIC -Wclass-memaccess -DHAVE_OPENSSL -pthread -std=gnu++17 -MD -MT flow/CMakeFiles/flow.dir/FastAlloc.cpp.o -MF flow/CMakeFiles/flow.dir/FastAlloc.cpp.o.d -o flow/CMakeFiles/flow.dir/FastAlloc.cpp.o -c /data/zk/foundationdb/flow/FastAlloc.cpp
/data/zk/foundationdb/flow/FastAlloc.cpp:594:10: fatal error: jemalloc/jemalloc.h: No such file or directory
594 | #include <jemalloc/jemalloc.h>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.

@sfc-gh-anoyes sfc-gh-anoyes self-assigned this Aug 15, 2022
@sfc-gh-anoyes
Copy link
Collaborator

This is probably a consequence of the fact that the flow target does not actually link in/depend on jemalloc in cmake. What platform/environment are you compiling on? That will help me make sure I actually fix it

mavenraven pushed a commit to mavenraven/foundationdb that referenced this issue Feb 19, 2023
mavenraven added a commit to mavenraven/foundationdb that referenced this issue Feb 19, 2023
@xis19
Copy link
Collaborator

xis19 commented Feb 24, 2023

@zk-kiger -- Sorry for jumping in so late, as this is the first time I see this issue, but can you provide some more details about your build environment? I would be interested in the following things:

  1. How did you trigger the cmake? Did you add any flags?
  2. Can you do a find -name "jemalloc.h" at /? I would like to know if you have it or not.
  3. Can you please share the git hash you are using?
    @mavenraven -- may I ask why this change would fix the issue? I would guess adding such dependency would trigger some INCLUDE_DIRECTORY(xxx) command which updates the default include paths but can you show me, e..g the command line that compiles FastAlloc.cpp with/without this patch?

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

3 participants