Install clang and then:
env CC=clang CXX=clang cmake ..
and then it can't build because of (at least):
In file included from /home/dan/bzr/compiz/clang/gtk/window-decorator/gwd-settings-storage-gsettings.c:28:
/home/dan/bzr/compiz/clang/gtk/window-decorator/gwd-settings-storage-gsettings.h:25:37: error:
redefinition of typedef 'GWDSettingsWritable' is invalid in C
[-Wtypedef-redefinition]
typedef struct _GWDSettingsWritable GWDSettingsWritable; ^
/home/dan/bzr/compiz/clang/gtk/window-decorator/gwd-settings-writable-interface.h:35:37: note:
previous definition is here
typedef struct _GWDSettingsWritable GWDSettingsWritable; ^
In file included from /home/dan/bzr/compiz/clang/gtk/window-decorator/gwd-settings-storage-gsettings.c:28:
/home/dan/bzr/compiz/clang/gtk/window-decorator/gwd-settings-storage-gsettings.h:26:37: error:
redefinition of typedef 'GWDSettingsStorage' is invalid in C
[-Wtypedef-redefinition]
typedef struct _GWDSettingsStorage GWDSettingsStorage; ^
/home/dan/bzr/compiz/clang/gtk/window-decorator/gwd-settings-storage-interface.h:35:36: note:
previous definition is here
typedef struct _GWDSettingsStorage GWDSettingsStorage; ^
In file included from /home/dan/bzr/compiz/clang/gtk/window-decorator/gwd-settings-storage-gsettings.c:28:
/home/dan/bzr/compiz/clang/gtk/window-decorator/gwd-settings-storage-gsettings.h:27:31: error:
redefinition of typedef 'GSettings' is invalid in C
[-Wtypedef-redefinition]
typedef struct _GSettings GSettings; ^
/usr/include/glib-2.0/gio/giotypes.h:60:47: note: previous definition is here
typedef struct _GSettings GSettings; ^
Install clang and then:
env CC=clang CXX=clang cmake ..
and then it can't build because of (at least):
In file included from /home/dan/ bzr/compiz/ clang/gtk/ window- decorator/ gwd-settings- storage- gsettings. c:28: bzr/compiz/ clang/gtk/ window- decorator/ gwd-settings- storage- gsettings. h:25:37: error: table' is invalid in C -Wtypedef- redefinition] table GWDSettingsWrit able;
^ bzr/compiz/ clang/gtk/ window- decorator/ gwd-settings- writable- interface. h:35:37: note: table GWDSettingsWrit able;
^ bzr/compiz/ clang/gtk/ window- decorator/ gwd-settings- storage- gsettings. c:28: bzr/compiz/ clang/gtk/ window- decorator/ gwd-settings- storage- gsettings. h:26:37: error: rage' is invalid in C -Wtypedef- redefinition]
^ bzr/compiz/ clang/gtk/ window- decorator/ gwd-settings- storage- interface. h:35:36: note:
^ bzr/compiz/ clang/gtk/ window- decorator/ gwd-settings- storage- gsettings. c:28: bzr/compiz/ clang/gtk/ window- decorator/ gwd-settings- storage- gsettings. h:27:31: error: -Wtypedef- redefinition]
^ glib-2. 0/gio/giotypes. h:60:47: note: previous definition is here
^
/home/dan/
redefinition of typedef 'GWDSettingsWri
[
typedef struct _GWDSettingsWri
/home/dan/
previous definition is here
typedef struct _GWDSettingsWri
In file included from /home/dan/
/home/dan/
redefinition of typedef 'GWDSettingsSto
[
typedef struct _GWDSettingsStorage GWDSettingsStorage;
/home/dan/
previous definition is here
typedef struct _GWDSettingsStorage GWDSettingsStorage;
In file included from /home/dan/
/home/dan/
redefinition of typedef 'GSettings' is invalid in C
[
typedef struct _GSettings GSettings;
/usr/include/
typedef struct _GSettings GSettings;
Clang also rejects lp:compiz-core/0.9.7 for different reasons.