Comments - JEMALLOC not found when building on Raspbian Wheezy

7 years ago Napoleon-BlownApart

I tried using just cmake ., as suggested by a StackOverflow user, and the build has made it past the configuration stage and is now compiling.

It appears there is something wrong with either CMakeLists.txt or jemalloc.cmake. Without the build switch, the output for the CHECK_JEMALLOC macro is:

-- 1: libname is jemalloc;c
-- 1: WITH_JEMALLOC is auto
-- 1: LIBJEMALLOC is
-- Looking for malloc_stats_print in jemalloc
-- Looking for malloc_stats_print in jemalloc - found
-- 2: WITH_JEMALLOC is auto
-- 2: LIBJEMALLOC is jemalloc

and with the switch:

-- 1: libname is jemalloc_pic
-- 1: WITH_JEMALLOC is static
-- 1: LIBJEMALLOC is
-- Looking for malloc_stats_print in jemalloc_pic
-- Looking for malloc_stats_print in jemalloc_pic - not found
-- 2: WITH_JEMALLOC is static
-- 2: LIBJEMALLOC is

Where -- 1: is before the foreach loop, and -- 2: is after the loop but before the next IF statement in jemalloc.cmake. (These are status messages I added.)

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.