I have been trying to build Clang 3.9.0 in the Open Build Service (the source files I use to do this can be found here). Now this is failing at the moment giving the error (full log is here):
[ 187s] -- Found PythonInterp: /usr/bin/python2.7 (found version "1.4")
[ 187s] CMake Error at CMakeLists.txt:116 (message):
[ 187s] Python 2.7 or newer is required
[ 187s]
[ 187s]
[ 187s] -- Configuring incomplete, errors occurred!
[ 187s] See also "/home/abuild/rpmbuild/BUILD/cfe-3.9.0.src/_build/CMakeFiles/CMakeOutput.log".
[ 187s] error: Bad exit status from /var/tmp/rpm-tmp.VodmZx (%build)
this error is being generated by this cmake command in my clang.spec file:
%cmake .. \
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DLLVM_CONFIG:FILEPATH=/usr/bin/llvm-config-%{__isa_bits} \
\
-DCLANG_ENABLE_ARCMT:BOOL=ON \
-DCLANG_ENABLE_STATIC_ANALYZER:BOOL=ON \
-DCLANG_INCLUDE_DOCS:BOOL=ON \
-DCLANG_INCLUDE_TESTS:BOOL=ON \
-DCLANG_PLUGIN_SUPPORT:BOOL=ON \
\
-DCLANG_BUILD_EXAMPLES:BOOL=OFF \
-DPYTHON_EXECUTABLE=/usr/bin/python2.7 \
%if 0%{?__isa_bits} == 64
-DLLVM_LIBDIR_SUFFIX=64 \
%else
-DLLVM_LIBDIR_SUFFIX= \
%endif
-DLIB_SUFFIX=
It is obvious that this error message is bogus. It's asking for Python 2.7 or newer, and the name of the Python interpreter I gave it is /usr/bin/python2.7
(so it should be providing it with exactly what's it's asking for, Python 2.7!). So this question is essentially is there an option I can pass cmake that will silence this error and cause cmake to continue running despite the error?