Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 165257 - dev-libs/glib-2.12.7 fails bit-test in 64bit
Summary: dev-libs/glib-2.12.7 fails bit-test in 64bit
Status: RESOLVED DUPLICATE of bug 162123
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2007-02-04 12:06 UTC by Carlo Marcelo Arenas Belon
Modified: 2007-02-04 12:49 UTC (History)
0 users

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

patch for glib 2.12.7 that fixes a check failure for bit testing (glib-2.12.7-bit-test.patch,789 bytes, patch)
2007-02-04 12:49 UTC, Carlo Marcelo Arenas Belon
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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; 
/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:, line 1546:   Called dyn_test, line 986:   Called src_test, 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