gallium/auxiliary/pipe-loader mesa fails to compile with gcc-4.5.3 In file included from pipe_loader_priv.h:31:0, from pipe_loader_drm.c:39: pipe_loader.h:61:5: warning: declaration does not declare anything pipe_loader_drm.c: In function 'find_drm_pci_id': pipe_loader_drm.c:81:43: error: 'struct pipe_loader_device' has no member named 'pci' pipe_loader_drm.c:82:26: error: 'struct pipe_loader_device' has no member named 'pci' pipe_loader_drm.c: In function 'find_drm_driver_name': pipe_loader_drm.c:104:14: error: 'struct pipe_loader_device' has no member named 'pci' pipe_loader_drm.c:113:17: error: 'struct pipe_loader_device' has no member named 'pci' pipe_loader_drm.c:123:50: error: 'struct pipe_loader_device' has no member named 'pci' pipe_loader_drm.c:124:20: error: 'struct pipe_loader_device' has no member named 'pci' gmake[4]: *** [pipe_loader_drm.lo] Error 1 with gcc-4.6.3 all is fine
Same here, but configure says so if I try --enable-opencl: configure: error: gcc >= 4.6 is required to build clover I'll see if Tom Stellard can comment on this...
Created attachment 61714 [details] [review] Possible fix I think this anonymous union is the problem. I'm not really sure why that's there, but I'm guess it's part of the latest C standard. Does this patch help?
Created attachment 61715 [details] [review] pipe_loader_anon_union.patch I'm attaching an alternative fix that doesn't get rid of the union, it's likely to be useful someday.
mesa compiles fine with gcc-4.5.3 and the patch vom Francisco Jerez (pipe_loader_anon_union.patch) thx
(In reply to comment #4) > mesa compiles fine with gcc-4.5.3 and the patch vom Francisco Jerez > (pipe_loader_anon_union.patch) > > thx OK, thanks, this should be fixed in master now.
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.