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

Bug 98443

Summary: linux-headers-2.6.11-r2 - error in /usr/include/asm-x86_64/bitops.h
Product: Gentoo Linux Reporter: Shawn Teague <gentoo>
Component: [OLD] UnspecifiedAssignee: Tim Yamin (RETIRED) <plasmaroo>
Status: RESOLVED FIXED    
Severity: normal CC: x86-kernel
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Shawn Teague 2005-07-09 03:46:30 UTC
Found the error while trying to emerge util-vserver-0.30.205-r1
using linux-headers-2.6.11-r2

ERROR: from compile:
/usr/include/asm-x86_64/bitops.h: In function `__scanbit':
/usr/include/asm-x86_64/bitops.h:265: error: parse error before ':' token

FIX: IN /usr/include/asm-x86_64/bitops.h:265  CHANGE
<        asm("bsfq %1,%0 ; cmovz %2,%0" : "=&r" (val) : "r" (val), "r" (max))
>        __asm__("bsfq %1,%0 ; cmovz %2,%0" : "=&r" (val) : "r" (val), "r" (max))



Reproducible: Always
Steps to Reproduce:
1.emerge /util-vserver
2.
3.

Actual Results:  
emerge no workie

Expected Results:  
Emerge workie

Every other assemblier call is done with a __asm__() function;  this particular
line trys with a asm() function;

Looks like your basic typo
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2005-07-09 13:49:02 UTC
Fixed in CVS, emerge sync and remerge your headers; please reopen if issue still
persists. Thanks!
Comment 2 Shawn Teague 2005-07-11 14:51:54 UTC
Wahoo!  Thanks for the fast response.