kokkos / kokkos/kokkos-tutorials

build error after ninja clean

Open
#97 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
388
Forks
129
PR merge metrics
No merged PRs in 30d

Description

possibly a kokkos build issue rather than tutorial related, but it's reproducible from here

cd Exercises/04/Begin # arbitrary
mkdir build
cd build
cmake .. -G Ninja
ninja
ninja clean
ninja #fail

error message

ninja  
[4/30] Building CXX object Kokkos/CMakeFiles/impl_git_version.dir/__/generated/Kokkos_Version_Info.cpp.o
FAILED: Kokkos/CMakeFiles/impl_git_version.dir/__/generated/Kokkos_Version_Info.cpp.o 
/usr/bin/c++  -I/io/koks/Exercises/04/Begin/build/generated -O2 -g -DNDEBUG -MD -MT Kokkos/CMakeFiles/impl_git_version.dir/__/generated/Kokkos_Version_Info.cpp.o -MF Kokkos/CMakeFiles/impl_git_version.dir/__/generated/Kokkos_Version_Info.cpp.o.d -o Kokkos/CMakeFiles/impl_git_version.dir/__/generated/Kokkos_Version_Info.cpp.o -c /io/koks/Exercises/04/Begin/build/generated/Kokkos_Version_Info.cpp
cc1plus: fatal error: /io/koks/Exercises/04/Begin/build/generated/Kokkos_Version_Info.cpp: No such file or directory
compilation terminated.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure from Exercises/04/Begin by configuring with CMake and Ninja, then running ninja, ninja clean, and ninja again. Inspect the generated/Kokkos_Version_Info.cpp target and the reported missing-file path; done means the rebuild succeeds after ninja clean.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, cpp
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.