Compiz plugins fail to build with CMake 2.8.7/8 (include could not find load file: Compiz*)

Bug #987805 reported by triplesqaurednine
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cmake (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

I'm not entirely sure what is going on here, but since yesterday i can't get the plugins (main / extra) to compile. Nor can i get any other compiz component except for compiz-core to build. All other partsw are throwing errors, like the one below;

[ninez@ninez compiz-plugins-main]$ build-compiz
-- The C compiler identification is GNU 4.7.0
-- The CXX compiler identification is GNU 4.7.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
CMake Error at CMakeLists.txt:7 (include):
  include could not find load file:

    CompizCommon

CMake Error at CMakeLists.txt:8 (include):
  include could not find load file:

    CompizPackage

CMake Error at CMakeLists.txt:20 (compiz_add_plugins_in_folder):
  Unknown CMake command "compiz_add_plugins_in_folder".

-- Configuring incomplete, errors occurred!

Revision history for this message
Sam Spilsbury (smspillaz) wrote : Re: [Bug 987805] [NEW] plugins fail to build: "include could not load file: CompizCommon...."
Download full text (3.2 KiB)

On Tue, 24 Apr 2012, triplesqaurednine wrote:

> Public bug reported:
>
> I'm not entirely sure what is going on here, but since yesterday i can't
> get the plugins (main / extra) to compile. Nor can i get any other
> compiz component except for compiz-core to build. All other partsw are
> throwing errors, like the one below;
>

This seems to indicate to me that you don't have compiz-dev installed.

Also what does your $CMAKE_MODULE_PATH and ls /usr/share/cmake-2.8/Modules
| grep FindCompiz say ?

> [ninez@ninez compiz-plugins-main]$ build-compiz
> -- The C compiler identification is GNU 4.7.0
> -- The CXX compiler identification is GNU 4.7.0
> -- Check for working C compiler: /usr/bin/gcc
> -- Check for working C compiler: /usr/bin/gcc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
> CMake Error at CMakeLists.txt:7 (include):
> include could not find load file:
>
> CompizCommon
>
>
> CMake Error at CMakeLists.txt:8 (include):
> include could not find load file:
>
> CompizPackage
>
>
> CMake Error at CMakeLists.txt:20 (compiz_add_plugins_in_folder):
> Unknown CMake command "compiz_add_plugins_in_folder".
>
>
> -- Configuring incomplete, errors occurred!
>
> ** Affects: compiz-plugins-main
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of Compiz
> Maintainers, which is the registrant for Compiz Main Plugins.
> https://bugs.launchpad.net/bugs/987805
>
> Title:
> plugins fail to build: "include could not load file: CompizCommon...."
>
> Status in Compiz Main Plugins:
> New
>
> Bug description:
> I'm not entirely sure what is going on here, but since yesterday i
> can't get the plugins (main / extra) to compile. Nor can i get any
> other compiz component except for compiz-core to build. All other
> partsw are throwing errors, like the one below;
>
> [ninez@ninez compiz-plugins-main]$ build-compiz
> -- The C compiler identification is GNU 4.7.0
> -- The CXX compiler identification is GNU 4.7.0
> -- Check for working C compiler: /usr/bin/gcc
> -- Check for working C compiler: /usr/bin/gcc -- works
> -- Detecting C compiler ABI info
> -- Detecting C compiler ABI info - done
> -- Check for working CXX compiler: /usr/bin/c++
> -- Check for working CXX compiler: /usr/bin/c++ -- works
> -- Detecting CXX compiler ABI info
> -- Detecting CXX compiler ABI info - done
> -- Found PkgConfig: /usr/bin/pkg-config (found version "0.26")
> CMake Error at CMakeLists.txt:7 (include):
> include could not find load file:
>
> CompizCommon
>
>
> CMake Error at CMakeLists.txt:8 (include):
> include could not find load file:
>
> CompizPackage
>
>
> CMake Error at CMakeLists.txt:20 (compiz_add_plugins_in_folder):
> Unknown CMake command "compiz_add_plugins_in_folder".
>
>
> -- Configuring incomplete, errors occurred!
>
> To manage notifications about this bug go...

Read more...

Revision history for this message
triplesqaurednine (triplesquarednine) wrote : Re: plugins fail to build: "include could not load file: CompizCommon...."

I wouldn't have compiz-dev installed (i run ARchlinux, not Ubuntu). That being said - /usr/include/compiz exists, and contains all of the header files (so that shouldn't be a problem).

output from "ls /usr/share/cmake-2.8/Modules | grep FindCompiz";

[ninez@ninez compiz-plugins-main]$ ls /usr/share/cmake-2.8/Modules | grep FindCompiz
FindCompiz.cmake
FindCompizConfig.cmake

not sure what you mean / want from '$CMAKE_MODULE_PATH' ~ clarify?

This maybe be an update that has screwed this up, on my system. Yesterday there was a big update on Arch, including gnome 3.4 / gcc-multilib and a bunch of other stuff.

I'm going to post in the Arch forums as well.

Revision history for this message
triplesqaurednine (triplesquarednine) wrote :

Sorry for the noise, Sam. This does appear to be a problem on my system. cmake isn't working correctly - although i haven't gotten to the bottom of it, yet.

if i manually specifiy the complete path to CompizCommon, the check continues until it hits the next one (CompizPackage). but cmake isn't finding /usr/include.

not sure how to fix, but i did post in the Arch forums about it.

something obviously got chewed on the upgrade.

you could mark this bug invalid, if you want.

cheerz

Changed in compiz-plugins-main:
status: New → Invalid
Revision history for this message
David Cole (david-cole-2) wrote :

Hi there -

I'm one of the CMake developers, and we noticed this thread and ( https://bbs.archlinux.org/viewtopic.php?pid=1092231 ) and would like to track down the commit that introduced this issue. There's also a discussion about it on the CMake developer's mailing list right now.

Can anybody tell us how to try to reproduce the problem so we can use git bisect on the CMake source repo and track down the exact commit that introduced the problem?

Thanks,
David Cole
Kitware, Inc.

Revision history for this message
David Cole (david-cole-2) wrote :

We are suspecting one of the changes to FindPkgConfig that accidentally eliminated PKG_CONFIG_FOUND:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=55c3435d

There was another commit to correct that, but it did not get merged before the 2.8.8 release.

It is now merged into CMake's 'master' branch -- if somebody who can reproduce this could try the CMake 'master' branch and let us know if the problem is already resolved, we would appreciate the feedback very much.

Thanks,
David

Revision history for this message
triplesqaurednine (triplesquarednine) wrote :

I'm cloning from git right now, i will get back to you shortly on this, k?

jordan

Revision history for this message
triplesqaurednine (triplesquarednine) wrote :

@David Cole

It would appear you have fixed this in Cmake's master branch. I just pulled using;

git clone git://cmake.org/cmake.git

I compiled and installed it. Then I built compiz-plugins-main (which was affected, amongst other software), and the compile is working fine, now :)

cheerz

affects: compiz-plugins-main → cmake
Changed in compiz-core:
assignee: nobody → Daniel van Vugt (vanvugt)
Changed in cmake:
status: Invalid → Confirmed
summary: - plugins fail to build: "include could not load file: CompizCommon...."
+ CMake Error at FindCompiz.cmake:84 (include): include could not find
+ load file: Compiz*
summary: - CMake Error at FindCompiz.cmake:84 (include): include could not find
- load file: Compiz*
+ Compiz plugins fail to build with CMake 2.8.7/8 (include could not find
+ load file: Compiz*)
Changed in compiz-core:
importance: Undecided → Critical
status: New → Confirmed
status: Confirmed → In Progress
Changed in compiz-core:
milestone: none → 0.9.8.0
affects: cmake → cmake (Ubuntu)
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Argh. It seems my duplicate is not the same as this one. Unlinking again...

no longer affects: cmake (Debian)
no longer affects: compiz-core
Changed in cmake (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.