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
Jemalloc : new recipe #1965
Jemalloc : new recipe #1965
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestions
# devel package | ||
packageEntries devel \ | ||
$developDir \ | ||
$prefix/bin/jemalloc-config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd use
- $prefix/bin/jemalloc-config
+ $binDir/jemalloc-config
|
||
PROVIDES_devel=" | ||
jemalloc${secondaryArchSuffix}_devel = $portVersion compat >= 5 | ||
cmd:jemalloc_config |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd write
- cmd:jemalloc_config
+ cmd:jemalloc_config$secondaryArchSuffix
|
||
PROVIDES=" | ||
jemalloc$secondaryArchSuffix = $portVersion compat >= 5 | ||
cmd:jemalloc.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I havent looked at anything other than your recipe, but I wonder if it would not be better to rename jemalloc.sh
to jemalloc
and write:
- cmd:jemalloc.sh
+ cmd:jemalloc$secondaryArchSuffix
- cmd:jeprof
+ cmd:jeprof$secondaryArchSuffix
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just don't want the executables with _x86 postfix.
|
||
TEST() | ||
{ | ||
make check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you will need to pass a LIBRARY_PATH here, probably something like:
TEST()
{
+ LIBRARY_PATH="$sourceDir/lib${LIBRARY_PATH:+:$LIBRARY_PATH}" \
make check
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works already great, no need for more patching here.
Issue of interest: jemalloc/jemalloc#1040 (comment) |
Can you please retest this after the runtime_loader fixes? |
Will do! |
Still the same errors. |
Currently untested on every platform as at least one test fails:
test_tsd_sub_thread:test/unit/tsd.c:83: Failed assertion: (data_cleanup_count) >= (3) --> 0x1 < 0x3: Cleanup function should have executed multiple times.
test_tsd_sub_thread (non-reentrant): fail
test_tsd_reincarnation (non-reentrant): pass
--- pass: 2/3, skip: 0/3, fail: 1/3 ---
<jemalloc>: test/unit/tsd.c:31: Unreachable code reached
Abort
test/test.sh: line 34: 70246 Abort $JEMALLOC_TEST_PREFIX ${t} /sources/jemalloc-5.0.1/ /sources/jemalloc-5.0.1/
Test harness error: test/unit/tsd w/ MALLOC_CONF=""
Use prefix to debug, e.g. JEMALLOC_TEST_PREFIX="gdb --args" sh test/test.sh test/unit/tsd