Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 598368 - Mariadb + tokudb + jemalloc 4.2.1 fails to compile
Summary: Mariadb + tokudb + jemalloc 4.2.1 fails to compile
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-28 16:16 UTC by stedlev
Modified: 2016-11-01 15:29 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stedlev 2016-10-28 16:16:44 UTC
When trying to emerge mariadb after version 10.0 with the tokudb and the required jemalloc use flags, the compile just hangs at 91% after compiling the "user defined functions" module while using jemalloc 4.2.1.

I spent a lot of time debugging this, it turns out that jemalloc 4.2.1 is causing it. A successful downgrade to jemalloc 4.1.0 fixed the problem for me. 

emerge would fail with no error messages. No compiler executables would start up in the background, I left it on overnight and it made zero progress. 

It seems jemalloc 4.2.1, mariadb 10.x, and tokudb are incompatible with each other and you have to drop jemalloc down to 4.1.0. I don't know what's happening, there was never any reliable error messages. 

Tried with several GCC versions, 4.9.3, 5.2, 5.3, 5.4. Tried changing CFLAGs to something extremely generic, makeopts with -j1, etc. Only thing that got it to compile and install was downgrading jemalloc 4.2.1 to jemalloc 4.1.0.
Comment 1 Brian Evans (RETIRED) gentoo-dev 2016-10-28 20:26:57 UTC
Works for me with jemalloc 4.2.1 + mariadb-10.0.27[mariadb] compiled with gcc 5.4 on my test machine.

Please provide 'emerge --info dev-db/mariadb' and even a partial build.log.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2016-10-31 18:43:34 UTC
Probably bug 592420.
Comment 3 Thomas Deutschmann (RETIRED) gentoo-dev 2016-11-01 15:29:18 UTC
Should be fixed now, please test again with >=dev-libs/jemalloc-4.2.1-r1:

> commit 7565f43fc1c544625d153f510b950f9f9bf6e848
> Author: Thomas Deutschmann
> Date:   Tue Nov 1 16:22:38 2016 +0100
> 
>     dev-libs/jemalloc: Patch added to fix an issue with sys-apps/sandbox
> 
>     Cherry picked commit c443b67561 [Link 1] which fixes an issue which
>     prevented any jemalloc-enabled application from running through
>     sys-apps/sandbox (typical use case is emerge with FEATURES=sandbox and
>     FEATURES=test).
> 
>     Cherry picked commit 3c8c3e9e9b [Link 2] which fixes a leaked file
>     descriptor.
> 
>     Link 1: https://github.com/jemalloc/jemalloc/commit/c443b67561891ae68d688daf5f8ce37820cdba2b
>     Link 2: https://github.com/jemalloc/jemalloc/commit/3c8c3e9e9b59b6e34a222816a05f0a01a68919b3
>     Gentoo-Bug: https://bugs.gentoo.org/592420
> 
>     Package-Manager: portage-2.3.2