Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98443 - linux-headers-2.6.11-r2 - error in /usr/include/asm-x86_64/bitops.h
Summary: linux-headers-2.6.11-r2 - error in /usr/include/asm-x86_64/bitops.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-09 03:46 UTC by Shawn Teague
Modified: 2005-07-11 14:51 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.