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

In source build failure not explained #3081

Closed
hippo91 opened this issue Jun 6, 2020 · 1 comment
Closed

In source build failure not explained #3081

hippo91 opened this issue Jun 6, 2020 · 1 comment
Labels
Enhancement Improve existing capability; will potentially require voting

Comments

@hippo91
Copy link
Contributor

hippo91 commented Jun 6, 2020

When trying to build Kokkos in its source tree, the procedure fails which is a good thing.
However there is no explanation about it:

cmake .
-- Setting default Kokkos CXX standard to 11
CMake Error at /usr/share/cmake-3.13/Modules/CMakeDetermineSystem.cmake:174 (file):
  file attempted to write a file:
  /home/anaxi/PROGRAMMATION/CPP/kokkos/CMakeFiles/CMakeOutput.log into a
  source directory.
Call Stack (most recent call first):
  CMakeLists.txt:89 (PROJECT)


CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!

Maybe it could be clearer to have an output which looks like:

cmake .
CMake Error at CMakeLists.txt:4 (message):
  FATAL: In-source builds are not allowed.

                         You should create a separate directory for build files.


-- Configuring incomplete, errors occurred!

@dalg24
Copy link
Member

dalg24 commented Jun 8, 2020

We disallow in-source builds here

set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)

Admittedly, this yield a rather cryptic error message.

@crtrott crtrott added the Enhancement Improve existing capability; will potentially require voting label Jun 22, 2020
@crtrott crtrott added this to To do in Milestone: Release 3.2 via automation Jun 22, 2020
@crtrott crtrott added this to the Tentative 3.2 Release milestone Jun 22, 2020
@crtrott crtrott moved this from To do to Done in Milestone: Release 3.2 Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improve existing capability; will potentially require voting
Projects
No open projects
Development

No branches or pull requests

4 participants