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

Bug 527162

Summary: app-emulation/xen-tools-4.4.1-r1 - x86_32.h:42:23: error: expected ':', ',', ';', '}' or '__attribute__' before 'nr_pages'
Product: Gentoo Linux Reporter: Alex Xu (Hello71) <alex_y_xu>
Component: Current packagesAssignee: Gentoo Xen Devs <xen>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Alex Xu (Hello71) 2014-10-27 22:58:46 UTC
Created attachment 387602 [details]
build.log

probably has to do with gcc-4.8.

gcc -Wall -Werror -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -Wdeclaration-after-statement -o checker checker.c
In file included from checker.c:14:0:
x86_32.h:42:23: error: expected ':', ',', ';', '}' or '__attribute__' before 'nr_pages'
     unsigned uint32_t nr_pages;     
                       ^
x86_32.h:72:23: error: expected ':', ',', ';', '}' or '__attribute__' before 'address'
     unsigned uint32_t address; 
                       ^
x86_32.h:104:23: error: expected ':', ',', ';', '}' or '__attribute__' before 'flags'
     unsigned uint32_t flags;                    
                       ^
x86_32.h:142:23: error: expected ':', ',', ';', '}' or '__attribute__' before 'cr2'
     unsigned uint32_t cr2;
                       ^
x86_32.h:172:23: error: expected ':', ',', ';', '}' or '__attribute__' before 'max_pfn'
     unsigned uint32_t max_pfn;                  
                       ^
In file included from checker.c:15:0:
x86_64.h:51:34: error: expected ':', ',', ';', '}' or '__attribute__' before 'nr_pages'
     unsigned __align8__ uint64_t nr_pages;     
                                  ^
x86_64.h:81:34: error: expected ':', ',', ';', '}' or '__attribute__' before 'address'
     unsigned __align8__ uint64_t address; 
                                  ^
x86_64.h:121:34: error: expected ':', ',', ';', '}' or '__attribute__' before 'flags'
     unsigned __align8__ uint64_t flags;                    
                                  ^
x86_64.h:159:34: error: expected ':', ',', ';', '}' or '__attribute__' before 'cr2'
     unsigned __align8__ uint64_t cr2;
                                  ^
x86_64.h:189:34: error: expected ':', ',', ';', '}' or '__attribute__' before 'max_pfn'
     unsigned __align8__ uint64_t max_pfn;                  
                                  ^
Comment 1 Alex Xu (Hello71) 2014-10-28 00:00:01 UTC
poorly written epatch_user.