[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cmake error on Ubuntu 13.10
From: |
Fred Kiefer |
Subject: |
Re: cmake error on Ubuntu 13.10 |
Date: |
Fri, 27 Dec 2013 12:49:31 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
I don't know anything about building clang/llvm and you seem to be stuck
in that stage. From comparing the wiki page and your command lines I see
a little difference. You try to build the llvm tools separately on the
Wiki this happens as part of building llvm:
cd ~/llvm
mkdir build
cd build
cmake ..
make -j8 # 8=your number of build CPUs
What is the result of doing it the documented way?
Fred
On 25.12.2013 06:45, Patryk Laurent wrote:
> Hello,
>
> When I try to use cmake on Ubuntu 13.10, as per
> http://wiki.gnustep.org/index.php/GNUstep_under_Ubuntu_Linux, I get the
> following error:
>
> CMake Error at CMakeLists.txt:5 (add_llvm_tool_subdirectory):
> Unknown CMake command "add_llvm_tool_subdirectory”.
>
> I’ve included the full output of the cmake command below. The version of
> cmake installed with apt-get in Ubuntu 13.10 is 2.8.11.2. Adding
> cmake_minimum_required(VERSION 2.8.8) to the top of CMakeLists.txt did not
> seem to help.
>
> Any suggestions on how to get this working would be most welcome.
>
> Thank you,
> Patryk
>
>
>
>
>
> The full output of the cmake command is:
>
> patryk@paklbox:~/llvm/tools/build$ cmake --version
> cmake version 2.8.11.2
> patryk@paklbox:~/llvm/tools/build$ cmake ..
> -- The C compiler identification is GNU 4.8.1
> -- The CXX compiler identification is GNU 4.8.1
> -- Check for working C compiler: /usr/bin/cc
> -- Check for working C compiler: /usr/bin/cc -- 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
> CMake Error at CMakeLists.txt:5 (add_llvm_tool_subdirectory):
> Unknown CMake command "add_llvm_tool_subdirectory".
>
>
> CMake Warning (dev) in CMakeLists.txt:
> No cmake_minimum_required command is present. A line of code such as
>
> cmake_minimum_required(VERSION 2.8)
>
> should be added at the top of the file. The version specified may be lower
> if you wish to support older CMake versions for this project. For more
> information run "cmake --help-policy CMP0000".
> This warning is for project developers. Use -Wno-dev to suppress it.
>
> -- Configuring incomplete, errors occurred!
> patryk@paklbox:~/llvm/tools/build$
Re: cmake error on Ubuntu 13.10, David Chisnall, 2013/12/27