Summary: | mesa from git fails to compile with <gcc-4.6 | ||
---|---|---|---|
Product: | Mesa | Reporter: | Michael Lange <linuxstuff> |
Component: | Other | Assignee: | mesa-dev |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | git | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
Possible fix
pipe_loader_anon_union.patch |
Description
Michael Lange
2012-05-16 05:42:30 UTC
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.