Summary: | mesa git fails to build | ||
---|---|---|---|
Product: | Mesa | Reporter: | Andrew Randrianasulu <randrik> |
Component: | Mesa core | Assignee: | Jose Fonseca <jfonseca> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | blocker | ||
Priority: | medium | CC: | vlee |
Version: | git | ||
Hardware: | x86 (IA32) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | config.log |
Description
Andrew Randrianasulu
2010-10-11 22:49:00 UTC
Created attachment 39357 [details]
config.log
git bisect good e1003336f0dcd9248c0127fbdc173522e35c5bdb git bisect bad 986cb9d5cf60bc11c7facc19017b5432b17240f7 The compiler doesn't like anonymous unions. Andrew, Vinson, which compiler are you using? gcc/msvc compile that fine here. Nevertheless, it might be better to make this code more portable. Jose The problem is the -std=c99 option. If you remove it it will compile successfuly. Anonymous unions are not part of C99, but are part of C++ and will reportedly be part of C1X. I think all major compilers support it. They are also sometimes used for hardware register headers. I don't feel strongly either way, so I'll ping mesa3d-dev about this. (In reply to comment #3) > The compiler doesn't like anonymous unions. > > Andrew, Vinson, which compiler are you using? gcc/msvc compile that fine here. > > Nevertheless, it might be better to make this code more portable. > > Jose guest@slax:~/source/mesa$ LANG=C gcc --version gcc (GCC) 4.4.4 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. (In reply to comment #3) > Andrew, Vinson, which compiler are you using? $ gcc --version gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3 Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Fixed with commit 6fbd4faf971a0091815211c4d1385c9a4fb0adc6 Author: José Fonseca <jfonseca@vmware.com> Date: Tue Oct 12 16:07:38 2010 +0100 gallivm: Name anonymous union. Thanks. There is another one .... I'll post new bug |
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.