-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Brew install sunshine but "CMake Generate step failed." #2369
Comments
I need more information to help understand the issue.
|
Thank you for your replying. The logs are as below:
2024-04-05 05:29:29 +0000
cmake
-S
.
-B
build
-DCMAKE_INSTALL_PREFIX=/opt/homebrew/Cellar/sunshine/0.22.2
-DCMAKE_INSTALL_LIBDIR=lib
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_FIND_FRAMEWORK=LAST
-DCMAKE_VERBOSE_MAKEFILE=ON
-Wno-dev
-DBUILD_TESTING=OFF
-DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
-DBUIld_WERROR=ON
-DCMAKE_INSTALL_PREFIX=/opt/homebrew/Cellar/sunshine/0.22.2
***@***.***
-DSUNSHINE_ASSETS_DIR=sunshine/assets
-DSUNSHINE_BUILD_HOMEBREW=ON
-- The C compiler identification is AppleClang 15.0.0.15000309
-- The CXX compiler identification is AppleClang 15.0.0.15000309
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/homebrew/Library/Homebrew/shims/mac/super/clang - 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: /opt/homebrew/Library/Homebrew/shims/mac/super/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /opt/homebrew/Library/Homebrew/shims/mac/super/git (found version "2.39.3 (Apple Git-146)")
/tmp/sunshine-20240405-2886-fquvoj
Sunshine Branch: master
Git tree is dirty!
-- Looking for fcntl
-- Looking for fcntl - found
-- Looking for ioctl
-- Looking for ioctl - found
-- Looking for poll
-- Looking for poll - found
-- Looking for getaddrinfo
-- Looking for getaddrinfo - found
-- Looking for getnameinfo
-- Looking for getnameinfo - found
-- Looking for gethostbyname_r
-- Looking for gethostbyname_r - not found
-- Looking for gethostbyaddr_r
-- Looking for gethostbyaddr_r - not found
-- Looking for inet_pton
-- Looking for inet_pton - found
-- Looking for inet_ntop
-- Looking for inet_ntop - found
-- Performing Test HAS_MSGHDR_FLAGS
-- Performing Test HAS_MSGHDR_FLAGS - Success
-- Check size of socklen_t
-- Check size of socklen_t - done
-- Check size of QOS_FLOWID
-- Check size of QOS_FLOWID - failed
-- Check size of PQOS_FLOWID
-- Check size of PQOS_FLOWID - failed
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found Boost: /opt/homebrew/lib/cmake/Boost-1.84.0/BoostConfig.cmake (found suitable version "1.84.0", minimum required is "1.53.0") found components: system
-- Found OpenSSL: /opt/homebrew/opt/openssl/lib/libcrypto.dylib (found version "3.2.1")
-- Found PkgConfig: /opt/homebrew/bin/pkg-config (found version "0.29.2")
-- Checking for module 'libcurl'
-- Found libcurl, version 8.7.1
-- Checking for module 'miniupnpc'
-- Found miniupnpc, version 2.2.6
-- Found Boost: /opt/homebrew/lib/cmake/Boost-1.84.0/BoostConfig.cmake (found version "1.84.0") found components: locale log filesystem program_options
-- Configuring done (2.9s)
CMake Error at cmake/targets/common.cmake:4 (add_executable):
Cannot find source file:
/tmp/sunshine-20240405-2886-fquvoj/third-party/nanors/rs.c
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
.ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
.f95 .f03 .hip .ispc
Call Stack (most recent call first):
CMakeLists.txt:52 (include)
CMake Error at cmake/targets/common.cmake:4 (add_executable):
No SOURCES given to target: sunshine
Call Stack (most recent call first):
CMakeLists.txt:52 (include)
CMake Generate step failed. Build files cannot be regenerated correctly.
HOMEBREW_VERSION: 4.2.16
ORIGIN: https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git
HEAD: bd1155be8f50998429a795c15a69c8fe75250510
Last commit: 4 days ago
Core tap JSON: 05 Apr 05:29 UTC
Core cask tap JSON: 05 Apr 05:29 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_API_DOMAIN: https://mirrors.ustc.edu.cn/homebrew-bottles/api
HOMEBREW_BOTTLE_DOMAIN: https://mirrors.ustc.edu.cn/homebrew-bottles/bottles
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: :0.0
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_NO_BOOTSNAP: set
Homebrew Ruby: 3.1.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 15.0.0 build 1500
Git: 2.39.3 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.7.1 => /opt/homebrew/opt/curl/bin/curl
macOS: 14.4.1-arm64
CLT: 15.3.0.0.1.1708646388
Xcode: N/A
Rosetta 2: false
HOMEBREW_CC: clang
HOMEBREW_CXX: clang++
MAKEFLAGS: -j8
CMAKE_PREFIX_PATH: /opt/homebrew/opt/openldap:/opt/homebrew/opt/curl:/opt/homebrew/opt/icu4c:/opt/homebrew
CMAKE_INCLUDE_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Headers
CMAKE_LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/System/Library/Frameworks/OpenGL.framework/Versions/Current/Libraries
PKG_CONFIG_PATH: ***@***.***/lib/pkgconfig:/opt/homebrew/opt/libssh2/lib/pkgconfig:/opt/homebrew/opt/openldap/lib/pkgconfig:/opt/homebrew/opt/rtmpdump/lib/pkgconfig:/opt/homebrew/opt/lz4/lib/pkgconfig:/opt/homebrew/opt/xz/lib/pkgconfig:/opt/homebrew/opt/zstd/lib/pkgconfig:/opt/homebrew/opt/curl/lib/pkgconfig:/opt/homebrew/opt/miniupnpc/lib/pkgconfig:/opt/homebrew/opt/c-ares/lib/pkgconfig:/opt/homebrew/opt/icu4c/lib/pkgconfig:/opt/homebrew/opt/libuv/lib/pkgconfig:/opt/homebrew/opt/opus/lib/pkgconfig
PKG_CONFIG_LIBDIR: /usr/lib/pkgconfig:/opt/homebrew/Library/Homebrew/os/mac/pkgconfig/14
HOMEBREW_GIT: git
HOMEBREW_SDKROOT: /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
ACLOCAL_PATH: /opt/homebrew/opt/curl/share/aclocal:/opt/homebrew/share/aclocal
PATH: ***@***.***/bin:/opt/homebrew/opt/openldap/bin:/opt/homebrew/opt/rtmpdump/bin:/opt/homebrew/opt/lz4/bin:/opt/homebrew/opt/xz/bin:/opt/homebrew/opt/zstd/bin:/opt/homebrew/opt/curl/bin:/opt/homebrew/opt/miniupnpc/bin:/opt/homebrew/opt/c-ares/bin:/opt/homebrew/opt/icu4c/bin:/opt/homebrew/opt/node/bin:/usr/bin:/bin:/usr/sbin:/sbin
Original:
From:ReenigneArcher ***@***.***>Date:2024-04-05 20:36:54(中国 (GMT+08:00))To:LizardByte/Sunshine ***@***.***>Cc:wangsq001 ***@***.***> , Author ***@***.***>Subject:Re: [LizardByte/Sunshine] Brew install sunshine but "CMake Generate step failed." (Issue #2369)
I need more information to help understand the issue.
OS and version Logs -> /Users/wangshuoqing/Library/Logs/Homebrew/sunshine/01.cmake etc.—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
For some reason it doesn't have the submodules. I'm not that familiar with Homebrew but I think it's something specific to your environment. |
thanks. i'll try again on an other macos to see if there is something wrong with my environment.
Original:
From:ReenigneArcher < ***@***.***> Date:2024-04-05 21:59:05 To:LizardByte/Sunshine < ***@***.***> Cc:wangsq001 < ***@***.***>、Author < ***@***.***> Subject:Re: [LizardByte/Sunshine] Brew install sunshine but "CMake Generate step failed." (Issue #2369)
For some reason it doesn't have the submodules. I'm not that familiar with Homebrew but I think it's something specific to your environment.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I have the same problem and hope to solve it soon |
I've solved it this afternoon. It did have something wrong with my environment but i don't know where. i install a new macos sonoma and the problem disappeared. thanks for all the reply.
王硕情
***@***.***
Original:
From:hongzhizhou < ***@***.***> Date:2024-04-07 22:49:45 ***@***.*** < ***@***.***> ***@***.*** < ***@***.***>***@***.*** < ***@***.***> Subject:Re: [LizardByte/Sunshine] Brew install sunshine but "CMake Generate step failed." (Issue #2369)
I have the same problem and hope to solve it soon
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
What macOS version did you have previously? |
Also sonoma. There was often something wrong during some other works previously. Maybe i set something wrong before.
Original:
From:ReenigneArcher < ***@***.***> Date:2024-04-08 02:22:55 ***@***.*** < ***@***.***> ***@***.*** < ***@***.***>***@***.*** < ***@***.***> Subject:Re: [LizardByte/Sunshine] Brew install sunshine but "CMake Generate step failed." (Issue #2369)
What macOS version did you have previously?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
I have compiled and installed it successfully on my mac pro, but I still have the same error on my m1 macbook. I am going to delete the git repository for sunshine and try again. |
I have the same issue with Mac M1 Sonoma. Previous 0.21.0 and 0.22.0 versions were successfully installed without any problems. Upgrade from 0.22.0 to 0.23.0 though fails. Not sure where tests/test_sunshine should be located, and why it wasn't created automatically. And I see the flag
|
No, it skips some tests. Your cmake log looks fine. |
same issue here. |
Provide some info to replicate the issue if you want it re-opened. |
|
Still not enough info, since we run our CI on an arm based mac |
This is how installation with Homebrew look like on M1 Sonoma:
|
I understand that you're unable to reproduce the issue, but the problem seems doesn't go away. @ReenigneArcher Can you provide info how to debug the issue, maybe some other log files? I don't know what context is needed to identify the problem. If it requires some |
All I can tell is that it's failing on the cd "build" do
system "make", "-j"
system "make", "install"
bin.install "tests/test_sunshine"
end
One thing suspicious that I see is: Already on 'master'
HEAD is now at 00fbbc9 Merge pull request #2216 from LizardByte/nightly This indicates it is not getting the latest version, and instead is using this older version. 00fbbc9 You probably need to clean homebrew somehow? I'm not a mac or homebrew user but the following came up in a google search. https://stackoverflow.com/a/45116705 |
I was having the same issue. What fixed it for me was untapping the repo from brew, then deleting the folder It took a bit longer after deleting those folders, so maybe there were some things being reused from previous versions no longer compatible with the main sunshine build? |
In that case, I think you could run this before installing. sudo rm -rf "$(brew --cache --build-from-source sunshine)" Please double check any commands before running, I don't have a macOS system to verify this does what is expected. https://docs.brew.sh/Tips-N'-Tricks#pre-download-a-file-for-a-formula |
@ReenigneArcher it does. |
same issue. on an almost new m2 mac-mini (not install anything), firstly failed on "make" step, then try "sudo rm -rf "$(brew --cache --build-from-source sunshine)", "brew uninstall sunshine", "brew autoremove", and reinstall it. the output error log become exactly the same as above. I tried @the-mush 's method, and issue become back to the make step at first, here is the final log:
hope someone give a solution about it (install old version with dmg, or from macports?) |
Describe the Bug
I am installing sunshine but an error occured :
==> Installing sunshine from lizardbyte/homebrew
==> cmake -S . -B build -DBUIld_WERROR=ON -DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl@3 -DSUNSHINE_ASSETS_DIR=sunshine/assets -DSUNSHINE_BUILD_HOMEB
Last 15 lines from /Users/wangshuoqing/Library/Logs/Homebrew/sunshine/01.cmake:
Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
.ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
.f95 .f03 .hip .ispc
Call Stack (most recent call first):
CMakeLists.txt:52 (include)
CMake Error at cmake/targets/common.cmake:4 (add_executable):
No SOURCES given to target: sunshine
Call Stack (most recent call first):
CMakeLists.txt:52 (include)
CMake Generate step failed. Build files cannot be regenerated correctly.
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/lizardbyte/homebrew-homebrew/issues
How to solve it?
Expected Behavior
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: