hyrise: jemalloc linking problem on macOS?

After getting the latest master, hyriseTest and hyriseConsole report:

dyld: Library not loaded: /usr/local/lib/libjemalloc.2.dylib
  Referenced from: /Users/jan/Coding/hyrise_alter/./cmake-build-debug/hyriseTest
  Reason: image not found
[1]    89422 abort      ./cmake-build-debug/hyriseTest

when executed on macOS. This does also happen on a freshly checkout version.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 18 (15 by maintainers)

Most upvoted comments

Argh. Could you open a PR and change that to false?

You need it to build jemalloc. When it’s not there, the configure step of the jemalloc target doesn’t produce a Makefile, and the build step complains about that. For some reason though, it still then reports that the target libjemalloc-build has been built.

But you should see something like this in your output:

...
[ 11%] Performing configure step for 'libjemalloc'
bash: autoconf: command not found

[ 11%] Built target tpch_dbgen
[ 11%] Performing build step for 'libjemalloc'
make[4]: *** No targets specified and no makefile found.  Stop.
[ 11%] Built target libjemalloc-build
...

The same happens on a Linux system when autoconf is not present, building everything but the jemalloc lib, and in the end failing with:

make[3]: *** No rule to make target 'third_party/jemalloc/lib/libjemalloc.so', needed by 'hyriseConsole'.  Stop.