Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 728058 - dev-libs/jemalloc-5.2.1 ABI_X86=x32 - .../work/jemalloc-5.2.1/include/jemalloc/internal/bit_util.h:91: Error: register type mismatch for `bsr'
Summary: dev-libs/jemalloc-5.2.1 ABI_X86=x32 - .../work/jemalloc-5.2.1/include/jemallo...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: x32
  Show dependency tree
 
Reported: 2020-06-12 10:47 UTC by Sandino Araico Sanchez
Modified: 2022-05-02 01:59 UTC (History)
1 user (show)

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


Attachments
build.log (dev-libs:jemalloc-5.2.1:20200612-104127.log.gz,8.14 KB, application/gzip)
2020-06-12 10:51 UTC, Sandino Araico Sanchez
Details
emerge --info '=dev-libs/jemalloc-5.2.1::gentoo' (file_728058.txt,6.30 KB, text/plain)
2020-06-12 10:53 UTC, Sandino Araico Sanchez
Details
The ebuild environment (environment,79.36 KB, text/plain)
2020-06-12 10:56 UTC, Sandino Araico Sanchez
Details
Fix 32/64 bit code selection for ILP32 (x32.patch,1.01 KB, patch)
2022-05-01 16:04 UTC, Steven Newbury
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sandino Araico Sanchez 2020-06-12 10:47:17 UTC
x86_64-pc-linux-gnux32-nm -a src/jemalloc.sym.o | gawk -f include/jemalloc/internal/private_symbols.awk > src/jemalloc.sym
x86_64-pc-linux-gnux32-gcc -std=gnu11 -Wall -Wextra -Wsign-compare -Wundef -Wno-format-zero-length -pipe -g3 -fvisibility=hidden -O2 -pipe -fPIC -DPIC -c -D_GNU_SOURCE 
-D_REENTRANT -Iinclude -I/usr/src/portage/dev-libs/jemalloc-5.2.1/work/jemalloc-5.2.1/include -DJEMALLOC_NO_PRIVATE_NAMESPACE -o src/arena.sym.o /usr/src/portage/dev-li
bs/jemalloc-5.2.1/work/jemalloc-5.2.1/src/arena.c
/usr/src/portage/dev-libs/jemalloc-5.2.1/work/jemalloc-5.2.1/include/jemalloc/internal/bit_util.h: Assembler messages:
/usr/src/portage/dev-libs/jemalloc-5.2.1/work/jemalloc-5.2.1/include/jemalloc/internal/bit_util.h:91: Error: register type mismatch for `bsr'
make: *** [Makefile:389: src/arena.sym.o] Error 1
 * ERROR: dev-libs/jemalloc-5.2.1::gentoo failed (compile phase):
 *   emake failed
 * 


Reproducible: Always
Comment 1 Sandino Araico Sanchez 2020-06-12 10:51:38 UTC
Created attachment 644502 [details]
build.log
Comment 2 Sandino Araico Sanchez 2020-06-12 10:52:50 UTC
 emerge -pqv '=dev-libs/jemalloc-5.2.1::gentoo'
 * WARNING: The FEATURES variable contains one or more values that
 * should be disabled under normal circumstances: keepwork
[ebuild  N    ] dev-libs/jemalloc-5.2.1  USE="hardened -debug -lazy-lock -prof -static-libs -stats -xmalloc" ABI_X86="(x32) -32 -64" 

 * IMPORTANT: 22 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.
Comment 3 Sandino Araico Sanchez 2020-06-12 10:53:49 UTC
Created attachment 644504 [details]
emerge --info '=dev-libs/jemalloc-5.2.1::gentoo'
Comment 4 Sandino Araico Sanchez 2020-06-12 10:56:38 UTC
Created attachment 644506 [details]
The ebuild environment
Comment 5 Sandino Araico Sanchez 2020-06-12 10:57:07 UTC
Upstream issue in https://github.com/jemalloc/jemalloc/issues/1858
Comment 6 Steven Newbury 2022-05-01 16:04:21 UTC
Created attachment 775787 [details, diff]
Fix 32/64 bit code selection for ILP32

Patch doesn't apply to upstream since the latest code in git is quite different.
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-02 01:59:28 UTC
(In reply to Steven Newbury from comment #6)
> Created attachment 775787 [details, diff] [details, diff]
> Fix 32/64 bit code selection for ILP32
> 
> Patch doesn't apply to upstream since the latest code in git is quite
> different.

Could you submit it upstream?