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

Bug 165257

Summary: dev-libs/glib-2.12.7 fails bit-test in 64bit
Product: Gentoo Linux Reporter: Carlo Marcelo Arenas Belon <carenas>
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: AMD64   
OS: Linux   
URL: http://www.nabble.com/Re:-GLib-2.12.7-released-t2934136.html
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch for glib 2.12.7 that fixes a check failure for bit testing

Description Carlo Marcelo Arenas Belon 2007-02-04 12:06:29 UTC
as shown by the following tracedump from emerge when FEATURE="test" is enabled:

** ERROR **: naive_bit_nth_lsf (18446744073709551615, 31) = 32; builtin_bit_nth_lsf1 (18446744073709551615, 31) = 0; 
aborting...
/bin/sh: line 4: 21310 Aborted                 srcdir=. LIBCHARSET_ALIAS_DIR=../glib/libcharset MALLOC_CHECK_=2 MALLOC_PERTURB_=$((${RANDOM:-256} % 256)) ${dir}$tst
FAIL: bit-test
...
make: *** [check] Error 2

!!! ERROR: dev-libs/glib-2.12.7 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_test
  ebuild.sh, line 986:   Called src_test
  ebuild.sh, line 616:   Called die

!!! Make check failed. See above for details.
!!! If you need support, post the topmost build error, and the call stack if relevant.


Reproducible: Always

Steps to Reproduce:
1. boot an amd64 gentoo system with FEATURES="test" in /etc/make.conf
2. emerge -Duvpt world
3. glib-2.12.7 will be pulled for compilation as it is "amd64" stable

Actual Results:  
emerge failed

Expected Results:  
emerge successful 

the problem is in the test code and is fixed in CVS and later versions of glib's tests/bit-test.c where the 1 constant is correctly identified as "Unsigned Long"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-02-04 12:25:30 UTC

*** This bug has been marked as a duplicate of bug 162123 ***
Comment 2 Carlo Marcelo Arenas Belon 2007-02-04 12:49:11 UTC
Created attachment 109115 [details, diff]
patch for glib 2.12.7 that fixes a check failure for bit testing

applied unconditionally in a glib-2.12.7 based ebuild and tested in amd64.

all 64bit architectures should be affected as well, while 32bit architectures should be safe to apply the patch as well