[GH-ISSUE #1740] build 2.4 release #1285

Closed
opened 2026-05-05 07:41:56 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @qq1243196045 on GitHub (Aug 10, 2022).
Original GitHub issue: https://github.com/debauchee/barrier/issues/1740

What happened?

when I build barrier v2.4 release,report that:
Make Error at cmake/gtest.cmake:34 (add_library):
Cannot find source file:

../ext/gmock/src/gmock-all.cc

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
Call Stack (most recent call first):
src/CMakeLists.txt:23 (include)

CMake Error at cmake/gtest.cmake:33 (add_library):
Cannot find source file:

../ext/gtest/src/gtest-all.cc

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
.hpp .hxx .in .txx
Call Stack (most recent call first):
src/CMakeLists.txt:23 (include)

CMake Error at cmake/gtest.cmake:34 (add_library):
No SOURCES given to target: gmock
Call Stack (most recent call first):
src/CMakeLists.txt:23 (include)

CMake Error at cmake/gtest.cmake:33 (add_library):
No SOURCES given to target: gtest
Call Stack (most recent call first):
src/CMakeLists.txt:23 (include)

CMake Generate step failed. Build files cannot be regenerated correctly.

Version

v2.4.0

Git commit hash (if applicable)

No response

If applicable, where did you install Barrier from?

No response

What OSes are you seeing the problem on? (Check all that apply)

Linux

What OS versions are you using?

ubuntu 20.04

Relevant log output

-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Full Barrier version string is '2.4.0-release-release'
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Looking for C++ include istream
-- Looking for C++ include istream - found
-- Looking for C++ include ostream
-- Looking for C++ include ostream - found
-- Looking for C++ include sstream
-- Looking for C++ include sstream - found
-- Looking for include file inttypes.h
-- Looking for include file inttypes.h - found
-- Looking for include file locale.h
-- Looking for include file locale.h - found
-- Looking for include file memory.h
-- Looking for include file memory.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file sys/select.h
-- Looking for include file sys/select.h - found
-- Looking for include file sys/socket.h
-- Looking for include file sys/socket.h - found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for include file sys/utsname.h
-- Looking for include file sys/utsname.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file wchar.h
-- Looking for include file wchar.h - found
-- Looking for getpwuid_r
-- Looking for getpwuid_r - found
-- Looking for gmtime_r
-- Looking for gmtime_r - found
-- Looking for nanosleep
-- Looking for nanosleep - found
-- Looking for poll
-- Looking for poll - found
-- Looking for sigwait
-- Looking for sigwait - found
-- Looking for strftime
-- Looking for strftime - found
-- Looking for inet_aton
-- Looking for inet_aton - found
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of char
-- Check size of char - done
-- Check size of int
-- Check size of int - done
-- Check size of long
-- Check size of long - done
-- Check size of short
-- Check size of short - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.68.0")  
-- Checking for module 'avahi-compat-libdns_sd'
--   Found avahi-compat-libdns_sd, version 0.7
-- Check size of XRRNotifyEvent
-- Check size of XRRNotifyEvent - done
-- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/dpms.h
-- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/dpms.h - found
-- Looking for include file X11/extensions/Xinerama.h
-- Looking for include file X11/extensions/Xinerama.h - found
-- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/XKBstr.h
-- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/XKBstr.h - found
-- Looking for include file X11/extensions/XKB.h
-- Looking for include file X11/extensions/XKB.h - found
-- Looking for include file X11/extensions/XTest.h
-- Looking for include file X11/extensions/XTest.h - found
-- Looking for include files X11/Xlib.h, X11/XKBlib.h
-- Looking for include files X11/Xlib.h, X11/XKBlib.h - found
-- Looking for include file X11/extensions/XInput2.h
-- Looking for include file X11/extensions/XInput2.h - found
-- Looking for include file dns_sd.h
-- Looking for include file dns_sd.h - found
-- Looking for IceConnectionNumber in SM;ICE
-- Looking for IceConnectionNumber in SM;ICE - found
-- Looking for DPMSQueryExtension in Xext;X11
-- Looking for DPMSQueryExtension in Xext;X11 - found
-- Looking for XTestQueryExtension in Xtst;Xext;X11
-- Looking for XTestQueryExtension in Xtst;Xext;X11 - found
-- Looking for XineramaQueryExtension in Xinerama
-- Looking for XineramaQueryExtension in Xinerama - found
-- Looking for XISelectEvents in Xi
-- Looking for XISelectEvents in Xi - found
-- Looking for XRRQueryExtension in Xrandr
-- Looking for XRRQueryExtension in Xrandr - found
-- Configuring directory /home/white/projects/c++/barrier/build/rpm
-- Configuring file barrier.spec
-- Configuring done
CMake Error at cmake/gtest.cmake:34 (add_library):
  Cannot find source file:

    ../ext/gmock/src/gmock-all.cc

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx
Call Stack (most recent call first):
  src/CMakeLists.txt:23 (include)


CMake Error at cmake/gtest.cmake:33 (add_library):
  Cannot find source file:

    ../ext/gtest/src/gtest-all.cc

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx
Call Stack (most recent call first):
  src/CMakeLists.txt:23 (include)


CMake Error at cmake/gtest.cmake:34 (add_library):
  No SOURCES given to target: gmock
Call Stack (most recent call first):
  src/CMakeLists.txt:23 (include)


CMake Error at cmake/gtest.cmake:33 (add_library):
  No SOURCES given to target: gtest
Call Stack (most recent call first):
  src/CMakeLists.txt:23 (include)


CMake Generate step failed.  Build files cannot be regenerated correctly.

Any other information

NO

Originally created by @qq1243196045 on GitHub (Aug 10, 2022). Original GitHub issue: https://github.com/debauchee/barrier/issues/1740 ### What happened? when I build barrier v2.4 release,report that: Make Error at cmake/gtest.cmake:34 (add_library): Cannot find source file: ../ext/gmock/src/gmock-all.cc Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx Call Stack (most recent call first): src/CMakeLists.txt:23 (include) CMake Error at cmake/gtest.cmake:33 (add_library): Cannot find source file: ../ext/gtest/src/gtest-all.cc Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx Call Stack (most recent call first): src/CMakeLists.txt:23 (include) CMake Error at cmake/gtest.cmake:34 (add_library): No SOURCES given to target: gmock Call Stack (most recent call first): src/CMakeLists.txt:23 (include) CMake Error at cmake/gtest.cmake:33 (add_library): No SOURCES given to target: gtest Call Stack (most recent call first): src/CMakeLists.txt:23 (include) CMake Generate step failed. Build files cannot be regenerated correctly. ### Version v2.4.0 ### Git commit hash (if applicable) _No response_ ### If applicable, where did you install Barrier from? _No response_ ### What OSes are you seeing the problem on? (Check all that apply) Linux ### What OS versions are you using? ubuntu 20.04 ### Relevant log output ```shell -- The C compiler identification is GNU 9.4.0 -- The CXX compiler identification is GNU 9.4.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Full Barrier version string is '2.4.0-release-release' -- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") -- Looking for C++ include istream -- Looking for C++ include istream - found -- Looking for C++ include ostream -- Looking for C++ include ostream - found -- Looking for C++ include sstream -- Looking for C++ include sstream - found -- Looking for include file inttypes.h -- Looking for include file inttypes.h - found -- Looking for include file locale.h -- Looking for include file locale.h - found -- Looking for include file memory.h -- Looking for include file memory.h - found -- Looking for include file stdlib.h -- Looking for include file stdlib.h - found -- Looking for include file strings.h -- Looking for include file strings.h - found -- Looking for include file string.h -- Looking for include file string.h - found -- Looking for include file sys/select.h -- Looking for include file sys/select.h - found -- Looking for include file sys/socket.h -- Looking for include file sys/socket.h - found -- Looking for include file sys/stat.h -- Looking for include file sys/stat.h - found -- Looking for include file sys/time.h -- Looking for include file sys/time.h - found -- Looking for include file sys/utsname.h -- Looking for include file sys/utsname.h - found -- Looking for include file unistd.h -- Looking for include file unistd.h - found -- Looking for include file wchar.h -- Looking for include file wchar.h - found -- Looking for getpwuid_r -- Looking for getpwuid_r - found -- Looking for gmtime_r -- Looking for gmtime_r - found -- Looking for nanosleep -- Looking for nanosleep - found -- Looking for poll -- Looking for poll - found -- Looking for sigwait -- Looking for sigwait - found -- Looking for strftime -- Looking for strftime - found -- Looking for inet_aton -- Looking for inet_aton - found -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of char -- Check size of char - done -- Check size of int -- Check size of int - done -- Check size of long -- Check size of long - done -- Check size of short -- Check size of short - done -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Check if compiler accepts -pthread -- Check if compiler accepts -pthread - yes -- Found Threads: TRUE -- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (found version "7.68.0") -- Checking for module 'avahi-compat-libdns_sd' -- Found avahi-compat-libdns_sd, version 0.7 -- Check size of XRRNotifyEvent -- Check size of XRRNotifyEvent - done -- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/dpms.h -- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/dpms.h - found -- Looking for include file X11/extensions/Xinerama.h -- Looking for include file X11/extensions/Xinerama.h - found -- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/XKBstr.h -- Looking for 3 include files X11/Xlib.h, ..., X11/extensions/XKBstr.h - found -- Looking for include file X11/extensions/XKB.h -- Looking for include file X11/extensions/XKB.h - found -- Looking for include file X11/extensions/XTest.h -- Looking for include file X11/extensions/XTest.h - found -- Looking for include files X11/Xlib.h, X11/XKBlib.h -- Looking for include files X11/Xlib.h, X11/XKBlib.h - found -- Looking for include file X11/extensions/XInput2.h -- Looking for include file X11/extensions/XInput2.h - found -- Looking for include file dns_sd.h -- Looking for include file dns_sd.h - found -- Looking for IceConnectionNumber in SM;ICE -- Looking for IceConnectionNumber in SM;ICE - found -- Looking for DPMSQueryExtension in Xext;X11 -- Looking for DPMSQueryExtension in Xext;X11 - found -- Looking for XTestQueryExtension in Xtst;Xext;X11 -- Looking for XTestQueryExtension in Xtst;Xext;X11 - found -- Looking for XineramaQueryExtension in Xinerama -- Looking for XineramaQueryExtension in Xinerama - found -- Looking for XISelectEvents in Xi -- Looking for XISelectEvents in Xi - found -- Looking for XRRQueryExtension in Xrandr -- Looking for XRRQueryExtension in Xrandr - found -- Configuring directory /home/white/projects/c++/barrier/build/rpm -- Configuring file barrier.spec -- Configuring done CMake Error at cmake/gtest.cmake:34 (add_library): Cannot find source file: ../ext/gmock/src/gmock-all.cc Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx Call Stack (most recent call first): src/CMakeLists.txt:23 (include) CMake Error at cmake/gtest.cmake:33 (add_library): Cannot find source file: ../ext/gtest/src/gtest-all.cc Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx Call Stack (most recent call first): src/CMakeLists.txt:23 (include) CMake Error at cmake/gtest.cmake:34 (add_library): No SOURCES given to target: gmock Call Stack (most recent call first): src/CMakeLists.txt:23 (include) CMake Error at cmake/gtest.cmake:33 (add_library): No SOURCES given to target: gtest Call Stack (most recent call first): src/CMakeLists.txt:23 (include) CMake Generate step failed. Build files cannot be regenerated correctly. ``` ### Any other information NO
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/barrier#1285
No description provided.