make[6]: *** [CMakeFiles/codecheck] Error 1

Issue #50 closed
Former user created an issue
[  4%] Performing codecheck step for 'core_no_deps_Release'
cd ....../ign-cmake/build/examples && /usr/local/bin/cmake --build ....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build --target codecheck
make[3]: Entering directory '....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build'
make[4]: Entering directory '....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build'
make[5]: Entering directory '....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build'
make[6]: Entering directory '....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build'
make[6]: Leaving directory '....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build'
make[6]: Entering directory '....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build'
CMakeFiles/codecheck.dir/build.make:57: recipe for target 'CMakeFiles/codecheck' failed
make[6]: *** [CMakeFiles/codecheck] Error 1
make[6]: Leaving directory '....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build'
CMakeFiles/Makefile2:776: recipe for target 'CMakeFiles/codecheck.dir/all' failed
make[5]: *** [CMakeFiles/codecheck.dir/all] Error 2
make[5]: Leaving directory '....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build'
CMakeFiles/Makefile2:783: recipe for target 'CMakeFiles/codecheck.dir/rule' failed
make[4]: *** [CMakeFiles/codecheck.dir/rule] Error 2
make[4]: Leaving directory '....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build'
Makefile:483: recipe for target 'codecheck' failed
make[3]: *** [codecheck] Error 2
make[3]: Leaving directory '....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build'
examples/CMakeFiles/core_no_deps_Release.dir/build.make:128: recipe for target 'examples/core_no_deps_Release-prefix/src/core_no_deps_Release-stamp/core_no_deps_Release-codecheck' failed
make[2]: *** [examples/core_no_deps_Release-prefix/src/core_no_deps_Release-stamp/core_no_deps_Release-codecheck] Error 2
make[2]: Leaving directory '....../ign-cmake/build'
CMakeFiles/Makefile2:1880: recipe for target 'examples/CMakeFiles/core_no_deps_Release.dir/all' failed
make[1]: *** [examples/CMakeFiles/core_no_deps_Release.dir/all] Error 2
make[1]: Leaving directory '....../ign-cmake/build'
Makefile:165: recipe for target 'all' failed
make: *** [all] Error 2

Comments (12)

  1. Pei JIA

    Thank you Steven.

    The above output is already the verbose output. And cppcheck is already installed.

    ➜  build apt show cppcheck
    Package: cppcheck
    Version: 1.82-1
    Priority: optional
    Section: universe/devel
    Origin: Ubuntu
    Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
    Original-Maintainer: Joachim Reichel <reichel@debian.org>
    Bugs: https://bugs.launchpad.net/ubuntu/+filebug
    Installed-Size: 3,660 kB
    
  2. Pei JIA

    BTW, Steven, what I've done with ign-cmake is:

    1. hg clone
    hg clone https://bitbucket.org/ignitionrobotics/ign-cmake 
    
    1. change ALL cmake1 to cmake .

    Can you please explain: 1. Do I need both ign-cmake and ign-cmake1? 2. And, what is ign-cmake1 for?

  3. Steven Peters

    During installation, the cmake folder is installed to a sub-folder of share and renamed to cmakeN, where N is the major version of ign-cmake that is being installed (currently could be 0, 1 or 2). Is this what you're referring to?

  4. Pei JIA

    Seriously have NO idea why it's still buggy:

    [  4%] Performing codecheck step for 'core_no_deps_Release'
    cd ....../ign-cmake/build/examples && /usr/local/bin/cmake --build ....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build --target codecheck
    make[3]: Entering directory '....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build'
    /usr/local/bin/cmake -H....../ign-cmake/examples/core_no_deps -B....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build --check-build-system CMakeFiles/Makefile.cmake 0
    /usr/bin/make -f CMakeFiles/Makefile2 codecheck
    make[4]: Entering directory '....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build'
    /usr/local/bin/cmake -H....../ign-cmake/examples/core_no_deps -B....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build --check-build-system CMakeFiles/Makefile.cmake 0
    /usr/local/bin/cmake -E cmake_progress_start ....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build/CMakeFiles 0
    /usr/bin/make -f CMakeFiles/Makefile2 CMakeFiles/codecheck.dir/all
    make[5]: Entering directory '....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build'
    /usr/bin/make -f CMakeFiles/codecheck.dir/build.make CMakeFiles/codecheck.dir/depend
    make[6]: Entering directory '....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build'
    cd ....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build && /usr/local/bin/cmake -E cmake_depends "Unix Makefiles" ....../ign-cmake/examples/core_no_deps ....../ign-cmake/examples/core_no_deps ....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build ....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build ....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build/CMakeFiles/codecheck.dir/DependInfo.cmake --color=
    make[6]: Leaving directory '....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build'
    /usr/bin/make -f CMakeFiles/codecheck.dir/build.make CMakeFiles/codecheck.dir/build
    make[6]: Entering directory '....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build'
    /usr/bin/cppcheck -q --inline-suppr -j 4 --language=c++ --enable=style,performance,portability,information -I ....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build -UM_PI\ --rule-file=....../ign-cmake/build/fake/install/share/ignition/ignition-cmake1/codecheck/header_guard.rule\ --rule-file=....../ign-cmake/build/fake/install/share/ignition/ignition-cmake1/codecheck/namespace_AZ.rule `/usr/bin/find ....../ign-cmake/examples/core_no_deps/src ....../ign-cmake/examples/core_no_deps/include -name '*.cc' -o -name '*.hh' -o -name '*.c' -o -name '*.h'`
    /usr/bin/cppcheck -q --inline-suppr -j 4 --enable=missingInclude `/usr/bin/find ....../ign-cmake/examples/core_no_deps/src ....../ign-cmake/examples/core_no_deps/include -name '*.cc' -o -name '*.hh' -o -name '*.c' -o -name '*.h'`
    python ....../ign-cmake/build/fake/install/share/ignition/ignition-cmake1/codecheck/cpplint.py --extensions=cc,hh --quiet `/usr/bin/find ....../ign-cmake/examples/core_no_deps/src ....../ign-cmake/examples/core_no_deps/include -name '*.cc' -o -name '*.hh' -o -name '*.c' -o -name '*.h'`
    CMakeFiles/codecheck.dir/build.make:57: recipe for target 'CMakeFiles/codecheck' failed
    make[6]: *** [CMakeFiles/codecheck] Error 1
    make[6]: Leaving directory '....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build'
    CMakeFiles/Makefile2:776: recipe for target 'CMakeFiles/codecheck.dir/all' failed
    make[5]: *** [CMakeFiles/codecheck.dir/all] Error 2
    make[5]: Leaving directory '....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build'
    CMakeFiles/Makefile2:783: recipe for target 'CMakeFiles/codecheck.dir/rule' failed
    make[4]: *** [CMakeFiles/codecheck.dir/rule] Error 2
    make[4]: Leaving directory '....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build'
    Makefile:483: recipe for target 'codecheck' failed
    make[3]: *** [codecheck] Error 2
    make[3]: Leaving directory '....../ign-cmake/build/examples/core_no_deps_Release-prefix/src/core_no_deps_Release-build'
    examples/CMakeFiles/core_no_deps_Release.dir/build.make:128: recipe for target 'examples/core_no_deps_Release-prefix/src/core_no_deps_Release-stamp/core_no_deps_Release-codecheck' failed
    make[2]: *** [examples/core_no_deps_Release-prefix/src/core_no_deps_Release-stamp/core_no_deps_Release-codecheck] Error 2
    make[2]: Leaving directory '....../ign-cmake/build'
    CMakeFiles/Makefile2:1287: recipe for target 'examples/CMakeFiles/core_no_deps_Release.dir/all' failed
    make[1]: *** [examples/CMakeFiles/core_no_deps_Release.dir/all] Error 2
    make[1]: Leaving directory '....../ign-cmake/build'
    Makefile:165: recipe for target 'all' failed
    make: *** [all] Error 2
    
  5. Pei JIA

    By turn BUILD_TESTING OFF, I had ign-cmake successully built. However, I do NOT have cmake2, but ONLY cmake1 ??? How can I get cmake2 built out???

  6. Log in to comment