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

0.5.0: test suiters is failing #709

Closed
kloczek opened this issue Sep 19, 2021 · 3 comments
Closed

0.5.0: test suiters is failing #709

kloczek opened this issue Sep 19, 2021 · 3 comments

Comments

@kloczek
Copy link

kloczek commented Sep 19, 2021

Source code configuration:

[tkloczko@barrel x86_64-redhat-linux-gnu]$ cmake -L
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.


CMake Error: The source directory "/home/tkloczko/rpmbuild/BUILD/glog-0.5.0/x86_64-redhat-linux-gnu" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
-- Cache values
BUILD_SHARED_LIBS:BOOL=ON
BUILD_TESTING:BOOL=ON
CMAKE_BUILD_TYPE:STRING=RelWithDebInfo
CMAKE_INSTALL_PREFIX:PATH=/usr
GTest_DIR:PATH=/usr/lib64/cmake/GTest
PRINT_UNSYMBOLIZED_STACK_TRACES:BOOL=OFF
WITH_CUSTOM_PREFIX:BOOL=OFF
WITH_GFLAGS:BOOL=ON
WITH_GTEST:BOOL=ON
WITH_PKGCONFIG:BOOL=ON
WITH_SYMBOLIZE:BOOL=ON
WITH_THREADS:BOOL=ON
WITH_TLS:BOOL=ON
WITH_UNWIND:BOOL=ON
gflags_DIR:PATH=/usr/lib64/cmake/gflags

And test suite outpiut:

+ cd glog-0.5.0
+ /usr/bin/make -O -j48 V=1 VERBOSE=1 -C x86_64-redhat-linux-gnu test ARGS=--output-on-failure
make: Entering directory '/home/tkloczko/rpmbuild/BUILD/glog-0.5.0/x86_64-redhat-linux-gnu'
Running tests...
/usr/bin/ctest --force-new-ctest-process --output-on-failure
Test project /home/tkloczko/rpmbuild/BUILD/glog-0.5.0/x86_64-redhat-linux-gnu
      Start  1: demangle
 1/10 Test  #1: demangle .........................   Passed    0.01 sec
      Start  2: logging
 2/10 Test  #2: logging ..........................***Failed    0.01 sec
[==========] Running 8 tests from 8 test suites.
[----------] Global test environment set-up.
[----------] 1 test from DeathNoAllocNewHook
[ RUN      ] DeathNoAllocNewHook.logging
Function didn't die (unexpected new): { new int; }

      Start  3: signalhandler
 3/10 Test  #3: signalhandler ....................   Passed    0.01 sec
      Start  4: stacktrace
 4/10 Test  #4: stacktrace .......................   Passed    0.01 sec
      Start  5: stl_logging
 5/10 Test  #5: stl_logging ......................   Passed    0.01 sec
      Start  6: symbolize
 6/10 Test  #6: symbolize ........................   Passed    0.01 sec
      Start  7: cmake_package_config_init
 7/10 Test  #7: cmake_package_config_init ........   Passed    0.05 sec
      Start  8: cmake_package_config_generate
 8/10 Test  #8: cmake_package_config_generate ....   Passed    0.82 sec
      Start  9: cmake_package_config_build
 9/10 Test  #9: cmake_package_config_build .......   Passed    0.99 sec
      Start 10: cmake_package_config_cleanup
10/10 Test #10: cmake_package_config_cleanup .....   Passed    0.03 sec

90% tests passed, 1 tests failed out of 10

Total Test time (real) =   1.94 sec

The following tests FAILED:
          2 - logging (Failed)
Errors while running CTest

Please let me know if you need more details or want me to perform some diagnostic.

@sergiud
Copy link
Collaborator

sergiud commented Sep 19, 2021

Please test latest master commit and report back.

@sergiud
Copy link
Collaborator

sergiud commented Sep 30, 2021

Feel free to reopen once you have tested using latest master.

@sergiud sergiud closed this as completed Sep 30, 2021
@r-burns
Copy link

r-burns commented Nov 4, 2021

I encountered the same issue when bumping Nixpkgs' glog package to 0.5.0 on x86_64-darwin. The issue reproduces on glog master as well.

 3/14 Test  #2: logging ..........................***Failed    0.03 sec
Function didn't die (unexpected new): { new int; }

My build environment uses mainline LLVM Clang 7.1.0.

Full build log:

building '/nix/store/jq23xzdwrj6mjlj6ra8p45064fvlinsr-glog-0.5.0.drv'...
unpacking sources
unpacking source archive /nix/store/7dgswq4q5ggs2g1nv2lwh8z6vhx2ffy5-source
source root is source
patching sources
applying patch /nix/store/bfhkcwz01nqzqbm3j9j2agh5zpkf5aix-glog-cmake-Fix-incorrect-relative-path-concatenation.patch
patching file CMakeLists.txt
Hunk #1 succeeded at 1027 (offset 159 lines).
configuring
fixing cmake files...
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DCMAKE_INSTALL_LOCALEDIR=/nix/store/lkxnmxkkd5y5bz4krdyhcccsmbw1wg0m-glog-0.5.0/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/lkxnmxkkd5y5bz4krdyhcccsmbw1wg0m-glog-0.5.0/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/lkxnmxkkd5y5bz4krdyhcccsmbw1wg0m-glog-0.5.0/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/lkxnmxkkd5y5bz4krdyhcccsmbw1wg0m-glog-0.5.0/share/doc/glog -DCMAKE_INSTALL_INFODIR=/nix/store/lkxnmxkkd5y5bz4krdyhcccsmbw1wg0m-glog-0.5.0/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/lkxnmxkkd5y5bz4krdyhcccsmbw1wg0m-glog-0.5.0/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/lkxnmxkkd5y5bz4krdyhcccsmbw1wg0m-glog-0.5.0/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/lkxnmxkkd5y5bz4krdyhcccsmbw1wg0m-glog-0.5.0/include -DCMAKE_INSTALL_SBINDIR=/nix/store/lkxnmxkkd5y5bz4krdyhcccsmbw1wg0m-glog-0.5.0/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/lkxnmxkkd5y5bz4krdyhcccsmbw1wg0m-glog-0.5.0/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/lkxnmxkkd5y5bz4krdyhcccsmbw1wg0m-glog-0.5.0/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/5j78r51lhl6pwfjxd2cz25p40xcnnywn-cctools-binutils-darwin-949.0.1/bin/strip -DCMAKE_RANLIB=/nix/store/5j78r51lhl6pwfjxd2cz25p40xcnnywn-cctools-binutils-darwin-949.0.1/bin/ranlib -DCMAKE_AR=/nix/store/5j78r51lhl6pwfjxd2cz25p40xcnnywn-cctools-binutils-darwin-949.0.1/bin/ar -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX=/nix/store/lkxnmxkkd5y5bz4krdyhcccsmbw1wg0m-glog-0.5.0 -DBUILD_SHARED_LIBS=ON -DCMAKE_SKIP_BUILD_RPATH=OFF
-- The CXX compiler identification is Clang 7.1.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /nix/store/mc3wc45mhv836fs8dnjw4rfm7pj7gljl-clang-wrapper-7.1.0/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Error: Could not run sw_vers:
No such file or directory
Error: Could not run sw_vers:
No such file or directory
Error: Could not run sw_vers:
No such file or directory
-- Could NOT find GTest (missing: GTest_DIR)
-- Looking for gflags namespace
-- Looking for gflags namespace - gflags
-- Looking for C++ include pthread.h
-- Looking for C++ include pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Could NOT find Unwind (missing: Unwind_INCLUDE_DIR Unwind_LIBRARY Unwind_PLATFORM_LIBRARY)
-- Looking for C++ include unwind.h
-- Looking for C++ include unwind.h - found
-- Looking for C++ include dlfcn.h
-- Looking for C++ include dlfcn.h - found
-- Looking for C++ include execinfo.h
-- Looking for C++ include execinfo.h - found
-- Looking for C++ include glob.h
-- Looking for C++ include glob.h - found
-- Looking for C++ include inttypes.h
-- Looking for C++ include inttypes.h - found
-- Looking for C++ include memory.h
-- Looking for C++ include memory.h - found
-- Looking for C++ include pwd.h
-- Looking for C++ include pwd.h - found
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - found
-- Looking for C++ include strings.h
-- Looking for C++ include strings.h - found
-- Looking for C++ include sys/stat.h
-- Looking for C++ include sys/stat.h - found
-- Looking for C++ include sys/syscall.h
-- Looking for C++ include sys/syscall.h - found
-- Looking for C++ include sys/time.h
-- Looking for C++ include sys/time.h - found
-- Looking for C++ include sys/types.h
-- Looking for C++ include sys/types.h - found
-- Looking for C++ include sys/utsname.h
-- Looking for C++ include sys/utsname.h - found
-- Looking for C++ include sys/wait.h
-- Looking for C++ include sys/wait.h - found
-- Looking for C++ include syscall.h
-- Looking for C++ include syscall.h - not found
-- Looking for C++ include syslog.h
-- Looking for C++ include syslog.h - found
-- Looking for C++ include ucontext.h
-- Looking for C++ include ucontext.h - not found
-- Looking for C++ include unistd.h
-- Looking for C++ include unistd.h - found
-- Looking for C++ include ext/hash_map
-- Looking for C++ include ext/hash_map - found
-- Looking for C++ include ext/hash_set
-- Looking for C++ include ext/hash_set - found
-- Looking for C++ include ext/slist
-- Looking for C++ include ext/slist - not found
-- Looking for C++ include tr1/unordered_map
-- Looking for C++ include tr1/unordered_map - not found
-- Looking for C++ include tr1/unordered_set
-- Looking for C++ include tr1/unordered_set - not found
-- Looking for C++ include unordered_map
-- Looking for C++ include unordered_map - found
-- Looking for C++ include unordered_set
-- Looking for C++ include unordered_set - found
-- Looking for C++ include stddef.h
-- Looking for C++ include stddef.h - found
-- Check size of unsigned __int16
-- Check size of unsigned __int16 - failed
-- Check size of u_int16_t
-- Check size of u_int16_t - done
-- Check size of uint16_t
-- Check size of uint16_t - done
-- Looking for dladdr
-- Looking for dladdr - found
-- Looking for fcntl
-- Looking for fcntl - found
-- Looking for pread
-- Looking for pread - found
-- Looking for pwrite
-- Looking for pwrite - found
-- Looking for sigaction
-- Looking for sigaction - found
-- Looking for sigaltstack
-- Looking for sigaltstack - found
-- Performing Test HAVE_NO_DEPRECATED
-- Performing Test HAVE_NO_DEPRECATED - Success
-- Performing Test HAVE_NO_UNNAMED_TYPE_TEMPLATE_ARGS
-- Performing Test HAVE_NO_UNNAMED_TYPE_TEMPLATE_ARGS - Success
-- Looking for pthread_threadid_np
-- Looking for pthread_threadid_np - found
-- Looking for snprintf
-- Looking for snprintf - found
-- Looking for UnDecorateSymbolName in dbghelp
-- Looking for UnDecorateSymbolName in dbghelp - not found
-- Performing Test HAVE___ATTRIBUTE__
-- Performing Test HAVE___ATTRIBUTE__ - Success
-- Performing Test HAVE___ATTRIBUTE__VISIBILITY_DEFAULT
-- Performing Test HAVE___ATTRIBUTE__VISIBILITY_DEFAULT - Success
-- Performing Test HAVE___ATTRIBUTE__VISIBILITY_HIDDEN
-- Performing Test HAVE___ATTRIBUTE__VISIBILITY_HIDDEN - Success
-- Performing Test HAVE___BUILTIN_EXPECT
-- Performing Test HAVE___BUILTIN_EXPECT - Success
-- Performing Test HAVE___SYNC_VAL_COMPARE_AND_SWAP
-- Performing Test HAVE___SYNC_VAL_COMPARE_AND_SWAP - Success
-- Performing Test HAVE_RWLOCK
-- Performing Test HAVE_RWLOCK - Success
-- Performing Test HAVE___DECLSPEC
-- Performing Test HAVE___DECLSPEC - Failed
-- Performing Test STL_NO_NAMESPACE
-- Performing Test STL_NO_NAMESPACE - Failed
-- Performing Test STL_STD_NAMESPACE
-- Performing Test STL_STD_NAMESPACE - Success
-- Performing Test HAVE_USING_OPERATOR
-- Performing Test HAVE_USING_OPERATOR - Success
-- Performing Test HAVE_NAMESPACES
-- Performing Test HAVE_NAMESPACES - Success
-- Performing Test HAVE_GCC_TLS
-- Performing Test HAVE_GCC_TLS - Success
-- Performing Test HAVE_MSVC_TLS
-- Performing Test HAVE_MSVC_TLS - Failed
-- Performing Test HAVE_CXX11_TLS
-- Performing Test HAVE_CXX11_TLS - Success
-- Performing Test HAVE_ALIGNED_STORAGE
-- Performing Test HAVE_ALIGNED_STORAGE - Success
-- Performing Test HAVE_CXX11_ATOMIC
-- Performing Test HAVE_CXX11_ATOMIC - Success
-- Performing Test HAVE_CXX11_CONSTEXPR
-- Performing Test HAVE_CXX11_CONSTEXPR - Success
-- Performing Test HAVE_CXX11_CHRONO
-- Performing Test HAVE_CXX11_CHRONO - Success
-- Performing Test HAVE_CXX11_NULLPTR_T
-- Performing Test HAVE_CXX11_NULLPTR_T - Success
-- Performing Test HAVE_LOCALTIME_R
-- Performing Test HAVE_LOCALTIME_R - Success
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_C_COMPILER
    CMAKE_POLICY_DEFAULT_CMP0025


-- Build files have been written to: /tmp/nix-build-glog-0.5.0.drv-0/source/build
cmake: enabled parallel building
building
build flags: -j8 -l8 SHELL=/nix/store/vm564n0g8k6pkiwqb31x1dw1y02h2mak-bash-5.1-p8/bin/bash
[  3%] Building CXX object CMakeFiles/glogbase.dir/src/demangle.cc.o
[  7%] Building CXX object CMakeFiles/glogbase.dir/src/signalhandler.cc.o
[ 11%] Building CXX object CMakeFiles/glogbase.dir/src/utilities.cc.o
[ 14%] Building CXX object CMakeFiles/glogbase.dir/src/vlog_is_on.cc.o
[ 18%] Building CXX object CMakeFiles/glogbase.dir/src/symbolize.cc.o
[ 22%] Building CXX object CMakeFiles/glogbase.dir/src/raw_logging.cc.o
[ 25%] Building CXX object CMakeFiles/glogbase.dir/src/logging.cc.o
[ 25%] Built target glogbase
[ 29%] Linking CXX static library libglogtest.a
[ 29%] Built target glogtest
[ 33%] Linking CXX shared library libglog.dylib
[ 37%] Building CXX object CMakeFiles/utilities_unittest.dir/src/utilities_unittest.cc.o
[ 40%] Building CXX object CMakeFiles/demangle_unittest.dir/src/demangle_unittest.cc.o
[ 44%] Building CXX object CMakeFiles/signalhandler_unittest.dir/src/signalhandler_unittest.cc.o
[ 48%] Building CXX object CMakeFiles/stl_logging_unittest.dir/src/stl_logging_unittest.cc.o
[ 51%] Building CXX object CMakeFiles/symbolize_unittest.dir/src/symbolize_unittest.cc.o
[ 55%] Building CXX object CMakeFiles/stacktrace_unittest.dir/src/stacktrace_unittest.cc.o
[ 59%] Building CXX object CMakeFiles/cleanup_with_prefix_unittest.dir/src/cleanup_with_prefix_unittest.cc.o
[ 62%] Linking CXX executable utilities_unittest
[ 66%] Linking CXX executable signalhandler_unittest
[ 70%] Linking CXX executable demangle_unittest
[ 74%] Linking CXX executable symbolize_unittest
[ 77%] Linking CXX executable stacktrace_unittest
[ 81%] Linking CXX executable cleanup_with_prefix_unittest
[ 85%] Linking CXX executable stl_logging_unittest
[ 85%] Built target glog
[ 85%] Built target utilities_unittest
[ 85%] Built target signalhandler_unittest
[ 85%] Built target demangle_unittest
[ 85%] Built target symbolize_unittest
[ 85%] Built target stacktrace_unittest
[ 85%] Built target cleanup_with_prefix_unittest
[ 85%] Built target stl_logging_unittest
[ 88%] Building CXX object CMakeFiles/cleanup_immediately_unittest.dir/src/cleanup_immediately_unittest.cc.o
[ 92%] Linking CXX executable cleanup_immediately_unittest
[ 92%] Built target cleanup_immediately_unittest
[ 96%] Building CXX object CMakeFiles/logging_unittest.dir/src/logging_unittest.cc.o
[100%] Linking CXX executable logging_unittest
[100%] Built target logging_unittest
running tests
check flags: SHELL=/nix/store/vm564n0g8k6pkiwqb31x1dw1y02h2mak-bash-5.1-p8/bin/bash VERBOSE=ON test
Running tests...
/nix/store/bn00vnhjd5p1ry7j1ipfakfnnqs1bbhs-cmake-3.21.2/bin/ctest --force-new-ctest-process
Test project /tmp/nix-build-glog-0.5.0.drv-0/source/build
      Start  7: cmake_package_config_init
      Start 11: cleanup_init
      Start  1: demangle
      Start  2: logging
      Start  3: signalhandler
      Start  4: stacktrace
      Start  5: stl_logging
      Start  6: symbolize
 1/14 Test #11: cleanup_init .....................   Passed    0.02 sec
      Start 13: cleanup_immediately
 2/14 Test  #1: demangle .........................   Passed    0.03 sec
      Start 14: cleanup_with_prefix
 3/14 Test  #2: logging ..........................***Failed    0.03 sec
Function didn't die (unexpected new): { new int; }

 4/14 Test  #3: signalhandler ....................   Passed    0.03 sec
 5/14 Test  #5: stl_logging ......................   Passed    0.02 sec
 6/14 Test  #4: stacktrace .......................   Passed    0.03 sec
 7/14 Test  #7: cmake_package_config_init ........   Passed    0.04 sec
      Start  8: cmake_package_config_generate
 8/14 Test  #6: symbolize ........................   Passed    0.02 sec
 9/14 Test  #8: cmake_package_config_generate ....   Passed    0.73 sec
      Start  9: cmake_package_config_build
10/14 Test  #9: cmake_package_config_build .......   Passed    1.18 sec
      Start 10: cmake_package_config_cleanup
11/14 Test #10: cmake_package_config_cleanup .....   Passed    0.03 sec
12/14 Test #13: cleanup_immediately ..............   Passed    3.14 sec
13/14 Test #14: cleanup_with_prefix ..............   Passed    3.17 sec
      Start 12: cleanup_logdir
14/14 Test #12: cleanup_logdir ...................   Passed    0.02 sec

93% tests passed, 1 tests failed out of 14

Total Test time (real) =   3.23 sec

The following tests FAILED:
          2 - logging (Failed)
Errors while running CTest
make: *** [Makefile:95: test] Error 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants