Bug 49716 - The lastest weston can't be successfully built
Summary: The lastest weston can't be successfully built
Status: VERIFIED FIXED
Alias: None
Product: Wayland
Classification: Unclassified
Component: weston (show other bugs)
Version: unspecified
Hardware: Other All
: highest blocker
Assignee: Wayland bug list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-09 23:47 UTC by ZhaoShengyan
Modified: 2012-05-16 22:25 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description ZhaoShengyan 2012-05-09 23:47:09 UTC
System Environment:
--------------------------
Arch:                 i386
Platform:             sugarbay
Libdrm: (master) 2.4.33-15-g754655c795fff1c6267d358e54ad5198aee0cdd6
Wayland: (master)5be33520b3416d2b0b138d5d30ddcf6776918007
Mesa: (master)a2f7ecfa74cdc73f3e0a7ea739ce962f7a029799
Xserver: (master)xorg-server-1.12.0-105-gd77eb7ee49ef19c2c4c7381d56e9d0f9c3fbc890
Xf86_video_intel: (master)2.18.0-225-g5967d76ca09a257ec9db66ea664158e1dfd083ba
Cairo: (master)fe428fc7f03316f2577b95f6a4f525bacca09948
Cairo_gl: (master)fe428fc7f03316f2577b95f6a4f525bacca09948
Xkbcommon: (master)3d672fcfea6b823db4793b9ad1c3aadc4b547a08 
Weston: (master)7890c4d36dbec14d44109ead6fb12adfece47a7b
Kernel_unstable: (drm-intel-next-queued)ff16d20bb71556ec110b4d51efdb4f678619b256

Bug detailed description:
-----------------------------
Weston can't be successfully built. The first bad commit is:"b230a7ee58ebe12f07b6ace4fcbb7a410038e35c"

It informs the following errors:

In file included from window.h:26:0,
                 from window.c:66:
/opt/X11R7/include/GLES2/gl2.h:38:26: error: conflicting types for 'GLintptr'
/opt/X11R7/include/GL/glext.h:5327:19: note: previous declaration of 'GLintptr' was here
/opt/X11R7/include/GLES2/gl2.h:39:25: error: conflicting types for 'GLsizeiptr'
/opt/X11R7/include/GL/glext.h:5328:19: note: previous declaration of 'GLsizeiptr' was here
make[3]: *** [window.o] Error 1
make[3]: Leaving directory `/GFX/build/component/Weston/weston/clients'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/GFX/build/component/Weston/weston/clients'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/GFX/build/component/Weston/weston'
make: *** [all] Error 2

Reproduce steps:
----------------------------
1. build weston
Comment 1 Darxus 2012-05-10 07:27:23 UTC
There was some discussion about this in IRC last night.  The problem is specific to 32 bit linux.

06:42 < min2_> I can't seem to be able to compile latest weston master  error: conflicting types for ‘GLintptr’
19:06 < min2> weston b230a7e  doesn't build :(
19:07 < min2> include/GLES2/gl2.h:38:26: error: conflicting types for ‘GLintptr’
19:10 < min2> since 3dcd7ae libxkbcommon  removed  XKB_COMMON_SHIFT_MASK  , we seem to use it in weston
19:12 < daniels_> is the previous definition in /usr/include/GL/glext.h?
19:16 < min2> daniels: /home/m/wayland-cint/install/include/GL/glext.h:5328:19
19:16 < min2> daniels: yes
19:18 < daniels> agh
19:21 < min2> since d039622 libxkbcommon renamed keymap allocation API
19:23 < Darxus> min2: My buildtest script doesn't seem to have any problem with the latest commits.
19:31 < daniels> min2: are you on 32-bit perchance?
19:32 < min2> daniels: yes...
19:32 < daniels> that explains why none of us saw it then, heh
19:37 < daniels> krh: ^ looks like we have to pick one or the other out of gles2 or full gl ...
19:37 < daniels> krh: which means porting gears and glmatrix at least
Comment 2 Darxus 2012-05-10 11:18:13 UTC
This should be fixed:  http://cgit.freedesktop.org/wayland/weston/commit/?id=80680c7b7545077681a595a084b35ddaec6b47cc

Somebody who could produce the build failure please verify it's fixed.
Comment 3 U. Artie Eoff 2012-05-10 12:12:25 UTC
(In reply to comment #2)
> This should be fixed: 
> http://cgit.freedesktop.org/wayland/weston/commit/?id=80680c7b7545077681a595a084b35ddaec6b47cc
> 
> Somebody who could produce the build failure please verify it's fixed.

First of all, our nightly 32 and 64 bit builds caught this issue on 32 bit, too.

Darxus, I can confirm that the aforementioned commit is now allowing our builds to pass.  Thanks.

Marking as fixed.
Comment 4 ZhaoShengyan 2012-05-16 22:25:42 UTC
I comfirm that this bug is fixed at version:
Weston: 	(master)199fbb8081bc51c71db0171d904dc551ad0e2c1a

Marked as VERIFIED and FIXED.


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.