Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 728058

Summary: 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'
Product: Gentoo Linux Reporter: Sandino Araico Sanchez <sandino>
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: UNCONFIRMED ---    
Severity: normal CC: steve
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 393673    
Attachments: build.log
emerge --info '=dev-libs/jemalloc-5.2.1::gentoo'
The ebuild environment
Fix 32/64 bit code selection for ILP32

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?