Bug 3711 - gcc4/amd64 compile fixes
Summary: gcc4/amd64 compile fixes
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: * Other (show other bugs)
Version: 6.8.2
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-05 13:49 UTC by Diego Elio Pettenò
Modified: 2006-04-17 13:25 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Diego Elio Pettenò 2005-07-05 13:49:08 UTC
Currently Xorg 6.8.99.x doesn't build on my system (AMD64, Gentoo Linux, GCC    
4.0.1) failing at fbmmx.c with problems of abort() called with wrong param   
count on stdlib.h and extra unsigned in sys/types.h.  
This is due to system headers included after Xorg local headers (which has a  
xf86libc or similar named header which adds a series of aliases which breaks  
everything). 
 
I'm going to attach a simple patch which fixes the compilation on my system  
(works fine with .13; applies and compiles clean on .14, but that doesn't  
start for now, so I haven't completely test it for now, but it should be ok). 
 
HTH, 
Diego
Comment 1 Diego Elio Pettenò 2005-07-05 13:50:40 UTC
Created attachment 3032 [details]
Xorg.0.log
Comment 2 cs00027 2005-09-02 18:06:21 UTC
I have i believe relevant problem and i can not solve it. I believe that the
problem is the sys/types.h file but i don't know which is the suitable file to
replace with. I don't know woh to solve it .  

fbmmx.c: In function 'negate':
fbmmx.c:107: error: incompatible type for argument 1 of '__builtin_ia32_pxor'
fbmmx.c:107: error: incompatible type for argument 2 of '__builtin_ia32_pxor'
fbmmx.c: In function 'expand_alpha':
fbmmx.c:166: error: incompatible type for argument 1 of '__builtin_ia32_por'
fbmmx.c:166: error: incompatible type for argument 2 of '__builtin_ia32_por'
fbmmx.c:166: error: incompatible types in assignment
fbmmx.c:168: error: incompatible type for argument 1 of '__builtin_ia32_por'
fbmmx.c:168: error: incompatible type for argument 2 of '__builtin_ia32_por'
fbmmx.c:168: error: incompatible types in assignment
fbmmx.c: In function 'expand_alpha_rev':
fbmmx.c:181: error: incompatible type for argument 1 of '__builtin_ia32_por'
fbmmx.c:181: error: incompatible type for argument 2 of '__builtin_ia32_por'
fbmmx.c:181: error: incompatible types in assignment
fbmmx.c:183: error: incompatible type for argument 1 of '__builtin_ia32_por'
fbmmx.c:183: error: incompatible type for argument 2 of '__builtin_ia32_por'
fbmmx.c:183: error: incompatible types in assignment
fbmmx.c: In function 'invert_colors':
fbmmx.c:195: error: incompatible type for argument 1 of '__builtin_ia32_pand'
fbmmx.c:195: error: incompatible type for argument 2 of '__builtin_ia32_pand'
fbmmx.c:195: error: incompatible types in assignment
fbmmx.c:196: error: incompatible type for argument 1 of '__builtin_ia32_pand'
fbmmx.c:196: error: incompatible type for argument 2 of '__builtin_ia32_pand'
fbmmx.c:196: error: incompatible types in assignment
fbmmx.c:197: error: incompatible type for argument 1 of '__builtin_ia32_pand'
fbmmx.c:197: error: incompatible type for argument 2 of '__builtin_ia32_pand'
fbmmx.c:197: error: incompatible types in assignment
fbmmx.c:202: error: incompatible type for argument 1 of '__builtin_ia32_por'
fbmmx.c:202: error: incompatible type for argument 2 of '__builtin_ia32_por'
fbmmx.c:202: error: incompatible types in assignment
fbmmx.c:203: error: incompatible type for argument 1 of '__builtin_ia32_por'
fbmmx.c:203: error: incompatible type for argument 2 of '__builtin_ia32_por'
fbmmx.c:203: error: incompatible types in assignment
fbmmx.c: In function 'over_rev_non_pre':
fbmmx.c:237: error: incompatible type for argument 1 of '__builtin_ia32_por'
fbmmx.c:237: error: incompatible type for argument 2 of '__builtin_ia32_por'
fbmmx.c: In function 'expand565':
fbmmx.c:300: warning: ISO C90 forbids mixed declarations and code
fbmmx.c:303: error: incompatible type for argument 1 of '__builtin_ia32_por'
fbmmx.c:303: error: incompatible type for argument 2 of '__builtin_ia32_por'
fbmmx.c:303: error: incompatible types in assignment
fbmmx.c:304: error: incompatible type for argument 1 of '__builtin_ia32_por'
fbmmx.c:304: error: incompatible type for argument 2 of '__builtin_ia32_por'
fbmmx.c:304: error: incompatible types in assignment
fbmmx.c:305: error: incompatible type for argument 1 of '__builtin_ia32_pand'
fbmmx.c:305: error: incompatible type for argument 2 of '__builtin_ia32_pand'
fbmmx.c:305: error: incompatible types in assignment
fbmmx.c: In function 'pack565':
fbmmx.c:327: error: incompatible type for argument 1 of '__builtin_ia32_pand'
fbmmx.c:327: error: incompatible type for argument 2 of '__builtin_ia32_pand'
fbmmx.c:327: error: incompatible types in assignment
fbmmx.c:328: error: incompatible type for argument 1 of '__builtin_ia32_pand'
fbmmx.c:328: error: incompatible type for argument 2 of '__builtin_ia32_pand'
fbmmx.c:328: error: incompatible types in assignment
fbmmx.c:329: error: incompatible type for argument 1 of '__builtin_ia32_pand'
fbmmx.c:329: error: incompatible type for argument 2 of '__builtin_ia32_pand'
fbmmx.c:329: error: incompatible types in assignment
fbmmx.c:336: error: incompatible type for argument 1 of '__builtin_ia32_pand'
fbmmx.c:336: error: incompatible type for argument 2 of '__builtin_ia32_pand'
fbmmx.c:336: error: incompatible types in assignment
fbmmx.c:338: error: incompatible type for argument 1 of '__builtin_ia32_pand'
fbmmx.c:338: error: incompatible type for argument 2 of '__builtin_ia32_pand'
fbmmx.c:338: error: incompatible types in assignment
fbmmx.c:340: error: incompatible type for argument 1 of '__builtin_ia32_pand'
fbmmx.c:340: error: incompatible type for argument 2 of '__builtin_ia32_pand'
fbmmx.c:340: error: incompatible types in assignment
fbmmx.c:342: error: incompatible type for argument 1 of '__builtin_ia32_pand'
fbmmx.c:342: error: incompatible type for argument 2 of '__builtin_ia32_pand'
fbmmx.c:342: error: incompatible types in assignment
fbmmx.c:344: error: incompatible type for argument 1 of '__builtin_ia32_por'
fbmmx.c:344: error: incompatible type for argument 2 of '__builtin_ia32_por'
fbmmx.c:344: error: incompatible types in assignment
fbmmx.c:345: error: incompatible type for argument 1 of '__builtin_ia32_por'
fbmmx.c:345: error: incompatible type for argument 2 of '__builtin_ia32_por'
fbmmx.c:345: error: incompatible types in assignment
fbmmx.c:347: error: incompatible type for argument 1 of '__builtin_ia32_por'
fbmmx.c:347: error: incompatible type for argument 2 of '__builtin_ia32_por'
fbmmx.c: In function 'fbCompositeSolidMask_nx8x8888mmx':
fbmmx.c:652: warning: ISO C90 does not support 'long long'
fbmmx.c:695: warning: ISO C90 does not support 'long long'
fbmmx.c: In function 'fbCompositeSolidMask_nx8x0565mmx':
fbmmx.c:758: warning: ISO C90 does not support 'long long'
fbmmx.c:818: warning: ISO C90 does not support 'long long'
make[5]: *** [fbmmx.o] Error 1
make[5]: Leaving directory `/xcbuild/programs/Xserver/fb'
make[4]: *** [fb] Error 2
make[4]: Leaving directory `/xcbuild/programs/Xserver'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/xcbuild/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/xcbuild'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/xcbuild'
Comment 3 Alan Coopersmith 2005-10-01 01:32:31 UTC
Attached patch was lost in bugzilla disk crash.   Please re-attach.
Comment 4 Erik Andren 2006-04-18 05:26:54 UTC
Ping to the bug poster!
Comment 5 Diego Elio Pettenò 2006-04-18 05:50:57 UTC
Hm I think this was fixed already, currently I don't have any problems in 
building Xorg 7 on amd64 with GCC4... this was fixed since quite a while now.
Comment 6 Erik Andren 2006-04-18 06:25:38 UTC
Closing, if problem persists with a modern version of xorg, please reopen.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.