MisterTea / homebrew-et

Homebrew formula for Eternal Terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install/build fails with homebrew on Catalina

jsoltren opened this issue · comments

$ brew install MisterTea/et/et
==> Installing et from mistertea/et
==> Downloading https://github.com/MisterTea/EternalTerminal/archive/et-v6.0.13.tar.gz
Already downloaded: /Users/jsoltren/Library/Caches/Homebrew/downloads/810a6d6268914843d18016fcedd22b8e253fe2959ede388545a638f2d992969d--EternalTerminal-et-v6.0.13.tar.gz
==> cmake .
==> make -j4 install
Last 15 lines from /Users/jsoltren/Library/Logs/Homebrew/et/02.make:
  "et::UserJumphostHandler::run()", referenced from:
      void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, et::readWriteTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<et::PipeSocketHandler>, std::__1::shared_ptr<et::FakeUserTerminal>, et::SocketEndpoint, std::__1::shared_ptr<et::SocketHandler>, std::__1::shared_ptr<et::SocketHandler>, std::__1::shared_ptr<et::FakeConsole>, et::SocketEndpoint const&, std::__1::shared_ptr<et::PipeSocketHandler>, std::__1::shared_ptr<et::PipeSocketHandler>, et::SocketEndpoint const&, et::SocketEndpoint const&)::$_0> >(void*) in JumphostTest.cpp.o
  "et::UserJumphostHandler::UserJumphostHandler(std::__1::shared_ptr<et::SocketHandler>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, et::SocketEndpoint const&, std::__1::shared_ptr<et::SocketHandler>, et::SocketEndpoint const&)", referenced from:
      et::readWriteTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<et::PipeSocketHandler>, std::__1::shared_ptr<et::FakeUserTerminal>, et::SocketEndpoint, std::__1::shared_ptr<et::SocketHandler>, std::__1::shared_ptr<et::SocketHandler>, std::__1::shared_ptr<et::FakeConsole>, et::SocketEndpoint const&, std::__1::shared_ptr<et::PipeSocketHandler>, std::__1::shared_ptr<et::PipeSocketHandler>, et::SocketEndpoint const&, et::SocketEndpoint const&) in JumphostTest.cpp.o
  "et::UserTerminalHandler::run()", referenced from:
      void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, et::readWriteTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<et::PipeSocketHandler>, std::__1::shared_ptr<et::FakeUserTerminal>, et::SocketEndpoint, std::__1::shared_ptr<et::SocketHandler>, std::__1::shared_ptr<et::SocketHandler>, std::__1::shared_ptr<et::FakeConsole>, et::SocketEndpoint const&, std::__1::shared_ptr<et::PipeSocketHandler>, std::__1::shared_ptr<et::PipeSocketHandler>, et::SocketEndpoint const&, et::SocketEndpoint const&)::$_1> >(void*) in JumphostTest.cpp.o
      void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, et::readWriteTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<et::PipeSocketHandler>, std::__1::shared_ptr<et::FakeUserTerminal>, et::SocketEndpoint, std::__1::shared_ptr<et::SocketHandler>, std::__1::shared_ptr<et::SocketHandler>, std::__1::shared_ptr<et::FakeConsole>, et::SocketEndpoint const&)::$_0> >(void*) in TerminalTest.cpp.o
  "et::UserTerminalHandler::UserTerminalHandler(std::__1::shared_ptr<et::SocketHandler>, std::__1::shared_ptr<et::UserTerminal>, bool, et::SocketEndpoint const&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)", referenced from:
      et::readWriteTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<et::PipeSocketHandler>, std::__1::shared_ptr<et::FakeUserTerminal>, et::SocketEndpoint, std::__1::shared_ptr<et::SocketHandler>, std::__1::shared_ptr<et::SocketHandler>, std::__1::shared_ptr<et::FakeConsole>, et::SocketEndpoint const&, std::__1::shared_ptr<et::PipeSocketHandler>, std::__1::shared_ptr<et::PipeSocketHandler>, et::SocketEndpoint const&, et::SocketEndpoint const&) in JumphostTest.cpp.o
      et::readWriteTest(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, std::__1::shared_ptr<et::PipeSocketHandler>, std::__1::shared_ptr<et::FakeUserTerminal>, et::SocketEndpoint, std::__1::shared_ptr<et::SocketHandler>, std::__1::shared_ptr<et::SocketHandler>, std::__1::shared_ptr<et::FakeConsole>, et::SocketEndpoint const&) in TerminalTest.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [et-test] Error 1
make[1]: *** [CMakeFiles/et-test.dir/all] Error 2
make: *** [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/mistertea/homebrew-et/issues

These open issues may also help:
Taking root:admin ownership of some et paths https://github.com/MisterTea/homebrew-et/issues/9

I've seen this issue before and it came down to having an old version of xcode and/or the command line tools. Can you verify your compiler version?

This is on an Intel Mac running macOS Catalina 10.15.7 (19H524). I do not have any Software Updates available.

$ xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" to install updates

$ xcode-select --version
xcode-select version 2373.

$ pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 12.4.0.0.1.1610135815
volume: /
location: /
install-time: 1615566639
groups: com.apple.FindSystemFiles.pkg-group

$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

$ uname -a
Darwin swallow.local 19.6.0 Darwin Kernel Version 19.6.0: Tue Jan 12 22:13:05 PST 2021; root:xnu-6153.141.16~1/RELEASE_X86_64 x86_64

Can you try this again with 6.1 and see if it's still an issue?

Still an issue with 6.1.3_3 on Catalina. And like jsoltren, despite the error message I am running the latest Command Line Tools for XCode/Catalina.

$ xcode-select --version
xcode-select version 2373.
$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/c++/4.2.1
Apple clang version 12.0.0 (clang-1200.0.32.29)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$ uname -a
Darwin helm.local 19.6.0 Darwin Kernel Version 19.6.0: Tue Jan 12 22:13:05 PST 2021; root:xnu-6153.141.16~1/RELEASE_X86_64 x86_64
Already downloaded: /Users/ian/Library/Caches/Homebrew/downloads/aa28dda8d9b337fc013441008fdc4a15f5d690cd6d2791809bf7a5f8a617ec48--EternalTerminal-et-v6.1.3.tar.gz
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.

==> cmake . -DDISABLE_VCPKG:BOOL=ON
==> make -j4 install
Last 15 lines from /Users/ian/Library/Logs/Homebrew/et/02.make:
cd /tmp/et-20210331-65410-672o0q/EternalTerminal-et-v6.1.3 && /usr/local/Cellar/cmake/3.20.0/bin/cmake -E cmake_depends "Unix Makefiles" /tmp/et-20210331-65410-672o0q/EternalTerminal-et-v6.1.3 /tmp/et-20210331-65410-672o0q/EternalTerminal-et-v6.1.3/external_imported/sentry-native/external/crashpad/tools /tmp/et-20210331-65410-672o0q/EternalTerminal-et-v6.1.3 /tmp/et-20210331-65410-672o0q/EternalTerminal-et-v6.1.3/external_imported/sentry-native/crashpad_build/tools /tmp/et-20210331-65410-672o0q/EternalTerminal-et-v6.1.3/external_imported/sentry-native/crashpad_build/tools/CMakeFiles/crashpad_tools.dir/DependInfo.cmake --color=
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f external_imported/PlatformFolders/CMakeFiles/platform_folders.dir/build.make external_imported/PlatformFolders/CMakeFiles/platform_folders.dir/build
make[1]: /Applications/Xcode.app/Contents/Developer/usr/bin/make: Permission denied
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f CMakeFiles/generated-code.dir/build.make CMakeFiles/generated-code.dir/build
make[1]: /Applications/Xcode.app/Contents/Developer/usr/bin/make: Permission denied
make[1]: *** [external_imported/PlatformFolders/CMakeFiles/platform_folders.dir/all] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/generated-code.dir/all] Error 1
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f external_imported/sentry-native/crashpad_build/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/build.make external_imported/sentry-native/crashpad_build/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/build
make[1]: /Applications/Xcode.app/Contents/Developer/usr/bin/make: Permission denied
/Applications/Xcode.app/Contents/Developer/usr/bin/make  -f external_imported/sentry-native/crashpad_build/tools/CMakeFiles/crashpad_tools.dir/build.make external_imported/sentry-native/crashpad_build/tools/CMakeFiles/crashpad_tools.dir/build
make[1]: /Applications/Xcode.app/Contents/Developer/usr/bin/make: Permission denied
make[1]: *** [external_imported/sentry-native/crashpad_build/third_party/mini_chromium/CMakeFiles/mini_chromium.dir/all] Error 1
make[1]: *** [external_imported/sentry-native/crashpad_build/tools/CMakeFiles/crashpad_tools.dir/all] Error 1
make: *** [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/mistertea/homebrew-et/issues


Error: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
  softwareupdate --all --install --force

If that doesn't show you any updates, run:
  sudo rm -rf /Library/Developer/CommandLineTools
  sudo xcode-select --install

Alternatively, manually download them from:
  https://developer.apple.com/download/more/.

I "upgraded" to Big Sur, so I'm not certain I am able to reproduce this any longer. Apologies. But I can give it a shot on Big Sur. I already have the most recent version of the command like tools installed with xcode-select --install. The most recent directions from https://eternalterminal.dev/download/ recommend to run: $ brew install MisterTea/et/et I get an error. I've attached /Users/jsoltren/Library/Logs/Homebrew/et/02.make. Right around line 191 things get interesting. What are these "sago" namespaced symbols that are being referenced? I manually built and installed https://github.com/sago007/PlatformFolders and see the same error. So some sort of link time error that I don't have the time to run down further at the moment? ¯_(ツ)

On Tue, Mar 30, 2021 at 8:32 AM Jason Gauci @.***> wrote: Can you try this again with 6.1 and see if it's still an issue? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#12 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJHBHLMQ5IO22JK4JUDNTDTGHHGNANCNFSM4ZEEUPVA .
-- __o `<, (
)/ (_) José Hiram Soltren +1 (347) 503-9558

Where did you attach the log?

/Applications/Xcode.app/Contents/Developer/usr/bin/make: Permission denied

"/Applications/Xcode.app/Contents/Developer/usr/bin/make: Permission denied"

That's your problem

I think it got cut off.

Can you tell me what the error is?

sago issues fixed in 6.1.7