[Debian-med-packaging] Seeking CMake help for spades
Sascha Steinbiss
satta at tetrinetsucht.de
Sun Feb 21 12:58:03 UTC 2016
Hi all,
I’m trying to make spades use Debian’s jemalloc, but CMake looks fairly magic to me and I suspect that for someone experienced that’s just a one-liner…
I tried the attached patch but it didn’t help:
[ 73%] Building CXX object io/CMakeFiles/input.dir/logger_impl.cpp.o
/build/spades-3.6.2+dfsg/src/io/logger_impl.cpp: In member function 'void logging::logger::log(logging::level, const char*, size_t, const char*, const char*)':
/build/spades-3.6.2+dfsg/src/io/logger_impl.cpp:107:51: error: 'je_mallctl' was not declared in this scope
je_mallctl("stats.cactive", &cmem, &clen, NULL, 0);
^
io/CMakeFiles/input.dir/build.make:158: recipe for target 'io/CMakeFiles/input.dir/logger_impl.cpp.o' failed
make[4]: *** [io/CMakeFiles/input.dir/logger_impl.cpp.o] Error 1
Any advice is welcome…
Cheers
Sascha
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0114_use_debian_provided_jemalloc.patch
Type: application/octet-stream
Size: 834 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20160221/254319ce/attachment.obj>
-------------- next part --------------
> Begin forwarded message:
>
> From: "Aaron M. Ucko" <amu at alum.mit.edu>
> Subject: [Debian-med-packaging] Bug#815374: spades: FTBFS on kFreeBSD: 'JEMALLOC_MADV_PURGE' undeclared
> Date: 21 February 2016 at 01:53:42 GMT
> To: Debian Bug Tracking System <submit at bugs.debian.org>
> Resent-From: "Aaron M. Ucko" <amu at alum.mit.edu>
> Resent-To: debian-bugs-dist at lists.debian.org
> Resent-Cc: ucko at debian.org, Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
> Reply-To: "Aaron M. Ucko" <amu at alum.mit.edu>, 815374 at bugs.debian.org
>
> Source: spades
> Version: 3.6.2+dfsg-1
> Severity: serious
> Justification: fails to build from source
>
> The kfreebsd-amd64 build of spades failed:
>
> /«BUILDDIR»/spades-3.6.2+dfsg/ext/src/jemalloc/chunk_mmap.c: In function 'pages_purge':
> /«BUILDDIR»/spades-3.6.2+dfsg/ext/src/jemalloc/chunk_mmap.c:132:6: error: #error "No method defined for purging unused dirty pages."
> # error "No method defined for purging unused dirty pages."
> ^
> /«BUILDDIR»/spades-3.6.2+dfsg/ext/src/jemalloc/chunk_mmap.c:134:34: error: 'JEMALLOC_MADV_PURGE' undeclared (first use in this function)
> int err = madvise(addr, length, JEMALLOC_MADV_PURGE);
> ^
> /«BUILDDIR»/spades-3.6.2+dfsg/ext/src/jemalloc/chunk_mmap.c:134:34: note: each undeclared identifier is reported only once for each function it appears in
> /«BUILDDIR»/spades-3.6.2+dfsg/ext/src/jemalloc/chunk_mmap.c:135:14: error: 'JEMALLOC_MADV_ZEROS' undeclared (first use in this function)
> unzeroed = (JEMALLOC_MADV_ZEROS == false || err != 0);
> ^
>
> Per Policy 4.13, spades really ought to build against the unbundled
> libjemalloc-dev package, which already supports kFreeBSD. However, if
> that's somehow not an option, please patch the bundled copy to support
> kFreeBSD.
>
> Thanks!
>
> _______________________________________________
> Debian-med-packaging mailing list
> Debian-med-packaging at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-packaging
More information about the Debian-med-packaging
mailing list