******************************************************************************** conan test conan-center-index/recipes/cunit/all/test_package/conanfile.py cunit/2.1-3@ --profile=/home/conan/w/BuildSingleReference/6818/9bbce4ef-e06d-4eaf-ba9a-b7cf883fdc38/profile.txt ******************************************************************************** Configuration: [settings] arch=x86_64 arch_build=x86_64 build_type=Release compiler=gcc compiler.libcxx=libstdc++11 compiler.version=9 os=Linux os_build=Linux [options] cunit:shared=False [build_requires] [env] cunit/2.1-3 (test package): Installing package Requirements cunit/2.1-3 from local cache - Cache Packages cunit/2.1-3:61ffa8b3f2bd70ee6bb1c458fa09615b0c3c1896 - Cache Installing (downloading, building) binaries... cunit/2.1-3: Already installed! [HOOK - conan-center.py] post_package_info(): [CMAKE FILE NOT IN BUILD FOLDERS (KB-H019)] OK [HOOK - conan-center.py] post_package_info(): [LIBRARY DOES NOT EXIST (KB-H054)] OK cunit/2.1-3 (test package): Generator cmake created conanbuildinfo.cmake cunit/2.1-3 (test package): Generator txt created conanbuildinfo.txt cunit/2.1-3 (test package): Generated conaninfo.txt cunit/2.1-3 (test package): Generated graphinfo Using lockfile: '/home/conan/w/BuildSingleReference/conan-center-index/recipes/cunit/all/test_package/build/60e458b822ced7ab419a216b001554780194b268/conan.lock' Using cached profile from lockfile [HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] 'fPIC' option not found [HOOK - conan-center.py] pre_build(): [FPIC MANAGEMENT (KB-H007)] OK cunit/2.1-3 (test package): Calling build() ----Running------ > cd '/home/conan/w/BuildSingleReference/conan-center-index/recipes/cunit/all/test_package/build/60e458b822ced7ab419a216b001554780194b268' && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE="Release" -DCONAN_IN_LOCAL_CACHE="OFF" -DCONAN_COMPILER="gcc" -DCONAN_COMPILER_VERSION="9" -DCONAN_CXX_FLAGS="-m64" -DCONAN_SHARED_LINKER_FLAGS="-m64" -DCONAN_C_FLAGS="-m64" -DCONAN_LIBCXX="libstdc++11" -DCMAKE_INSTALL_PREFIX="/home/conan/w/BuildSingleReference/conan-center-index/recipes/cunit/all/test_package/build/60e458b822ced7ab419a216b001554780194b268/package" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -Wno-dev '/home/conan/w/BuildSingleReference/conan-center-index/recipes/cunit/all/test_package' ----------------- -- The C compiler identification is GNU 9.2.1 -- The CXX compiler identification is GNU 9.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Conan: called by CMake conan helper -- Conan: Adjusting output directories -- Conan: Using cmake global configuration -- Conan: Adjusting default RPATHs Conan policies -- Conan: Adjusting language standard -- Conan: Compiler GCC>=5, checking major version 9 -- Conan: Checking correct version: 9 -- Conan: C++ stdlib: libstdc++11 -- Configuring done -- Generating done -- Build files have been written to: /home/conan/w/BuildSingleReference/conan-center-index/recipes/cunit/all/test_package/build/60e458b822ced7ab419a216b001554780194b268 ----Running------ > cmake --build '/home/conan/w/BuildSingleReference/conan-center-index/recipes/cunit/all/test_package/build/60e458b822ced7ab419a216b001554780194b268' '--' '-j3' ----------------- Scanning dependencies of target test_package [ 50%] Building C object CMakeFiles/test_package.dir/test_package.c.o [100%] Linking C executable bin/test_package CMake Warning: Manually-specified variables were not used by the project: CMAKE_EXPORT_NO_PACKAGE_REGISTRY CMAKE_INSTALL_BINDIR CMAKE_INSTALL_DATAROOTDIR CMAKE_INSTALL_INCLUDEDIR CMAKE_INSTALL_LIBDIR CMAKE_INSTALL_LIBEXECDIR CMAKE_INSTALL_OLDINCLUDEDIR CMAKE_INSTALL_SBINDIR In file included from /home/conan/w/BuildSingleReference/.conan/data/cunit/2.1-3/_/_/package/61ffa8b3f2bd70ee6bb1c458fa09615b0c3c1896/include/CUnit/Basic.h:36, from /home/conan/w/BuildSingleReference/conan-center-index/recipes/cunit/all/test_package/test_package.c:30: /home/conan/w/BuildSingleReference/conan-center-index/recipes/cunit/all/test_package/test_package.c: In function ‘testFPRINTF’: /home/conan/w/BuildSingleReference/conan-center-index/recipes/cunit/all/test_package/test_package.c:73:41: warning: zero-length gnu_printf format string [-Wformat-zero-length] 73 | CU_ASSERT(0 == fprintf(temp_file, "")); | ^~ /home/conan/w/BuildSingleReference/.conan/data/cunit/2.1-3/_/_/package/61ffa8b3f2bd70ee6bb1c458fa09615b0c3c1896/include/CUnit/CUnit.h:123:30: note: in definition of macro ‘CU_ASSERT’ 123 | { CU_assertImplementation((value), __LINE__, #value, __FILE__, "", CU_FALSE); } | ^~~~~ /usr/bin/ld: CMakeFiles/test_package.dir/test_package.c.o: in function `testFPRINTF': test_package.c:(.text+0xd1): undefined reference to `CU_assertImplementation' /usr/bin/ld: test_package.c:(.text+0x116): undefined reference to `CU_assertImplementation' /usr/bin/ld: CMakeFiles/test_package.dir/test_package.c.o: in function `testFREAD': test_package.c:(.text+0x1ee): undefined reference to `CU_assertImplementation' /usr/bin/ld: test_package.c:(.text+0x228): undefined reference to `CU_assertImplementation' /usr/bin/ld: CMakeFiles/test_package.dir/test_package.c.o: in function `testFPRINTF': test_package.c:(.text+0x164): undefined reference to `CU_assertImplementation' /usr/bin/ld: CMakeFiles/test_package.dir/test_package.c.o: in function `main': test_package.c:(.text.startup+0x6): undefined reference to `CU_initialize_registry' /usr/bin/ld: test_package.c:(.text.startup+0x24): undefined reference to `CU_add_suite' /usr/bin/ld: test_package.c:(.text.startup+0x42): undefined reference to `CU_add_test' /usr/bin/ld: test_package.c:(.text.startup+0x5d): undefined reference to `CU_add_test' /usr/bin/ld: test_package.c:(.text.startup+0x6c): undefined reference to `CU_basic_set_mode' /usr/bin/ld: test_package.c:(.text.startup+0x71): undefined reference to `CU_basic_run_tests' /usr/bin/ld: test_package.c:(.text.startup+0x76): undefined reference to `CU_cleanup_registry' /usr/bin/ld: test_package.c:(.text.startup+0x7c): undefined reference to `CU_get_error' collect2: error: ld returned 1 exit status make[2]: *** [CMakeFiles/test_package.dir/build.make:103: bin/test_package] Error 1 make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/test_package.dir/all] Error 2 make: *** [Makefile:103: all] Error 2 ERROR: cunit/2.1-3 (test package): Error in build() method, line 12 cmake.build() ConanException: Error 2 while executing cmake --build '/home/conan/w/BuildSingleReference/conan-center-index/recipes/cunit/all/test_package/build/60e458b822ced7ab419a216b001554780194b268' '--' '-j3'