Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake fails with ccache on ubuntu precise LTS #1664

Closed
sonney2k opened this issue Sep 23, 2013 · 4 comments
Closed

cmake fails with ccache on ubuntu precise LTS #1664

sonney2k opened this issue Sep 23, 2013 · 4 comments
Assignees

Comments

@sonney2k
Copy link
Member

cmake -DBUNDLE_JSON=ON -DBUNDLE_EIGN3=ON -DPythonModular=ON -DENABLE_TESTING=ON -DCMAKE_INSTALL_PREFIX=/somewhere ..

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- 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 CCache: /usr/bin/ccache
-- Found SWIG: /usr/bin/swig2.0 (found suitable version "2.0.4", required is "2.0.4")
/usr/bin/ccache: invalid option -- 'd'
Usage:
ccache [options]
ccache compiler [compiler options]
compiler [compiler options](via symbolic link)

Options:
-c, --cleanup delete old files and recalculate size counters
(normally not needed as this is done automatically)
-C, --clear clear the cache completely
-F, --max-files=N set maximum number of files in cache to N (use 0 for
no limit)
-M, --max-size=SIZE set maximum size of cache to SIZE (use 0 for no
limit; available suffixes: G, M and K; default
suffix: G)
-s, --show-stats show statistics summary
-z, --zero-stats zero statistics counters

-h, --help            print this help text
-V, --version         print version and copyright information

See also http://ccache.samba.org.
CMake Error at cmake/CheckCompiler.cmake:46 (string):
string sub-command STRIP requires two arguments.
Call Stack (most recent call first):
CMakeLists.txt:88 (include)

CMake Error at cmake/CheckCompiler.cmake:47 (string):
string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
command.
Call Stack (most recent call first):
CMakeLists.txt:88 (include)

CMake Error at cmake/CheckCompiler.cmake:49 (string):
string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
command.
Call Stack (most recent call first):
CMakeLists.txt:88 (include)

CMake Error at cmake/CheckCompiler.cmake:51 (string):
string sub-command REGEX, mode REPLACE needs at least 6 arguments total to
command.
Call Stack (most recent call first):
CMakeLists.txt:88 (include)

CMake Error at CMakeLists.txt:91 (MESSAGE):
g++ version is too old

-- Configuring incomplete, errors occurred!

@vigsterkr
Copy link
Member

yes we know this (or at least I) and this has been known by ubuntu developers as well (there's even a bug about this on lunchpad). there's not too much we can do about this... in newer ubuntus this has been fixed.
i'd close this bug...

@iglesias
Copy link
Collaborator

Let's write something about it in the install instructions. Maybe something like known issues and that to fix it one has simply to do cmake -DENABLE_CCACHE=OFF

@sonney2k
Copy link
Member Author

or can we detect this version of ccache and then just disable it?

@ghost ghost assigned besser82 Oct 6, 2013
@lisitsyn
Copy link
Member

Workaround is here thus moving to next version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants