MisterTea / homebrew-et

Homebrew formula for Eternal Terminal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install/build fails on Mojave

cstork opened this issue · comments

With the very last Command Line Tools (11.3.1) reinstalled I did a brew upgrade et to get:

==> Upgrading 1 outdated package:
mistertea/et/et 6.0.13_1 -> 6.1.3_1
==> Upgrading mistertea/et/et 6.0.13_1 -> 6.1.3_1
==> Downloading https://github.com/MisterTea/EternalTerminal/archive/et-v6.1.3.tar.gz
Already downloaded: /Users/chs/Library/Caches/Homebrew/downloads/aa28dda8d9b337fc013441008fdc4a15f5d690cd6d2791809bf7a5f8a617ec48--EternalTerminal-et-v6.1.3.tar.gz
==> cmake .
Last 15 lines from /Users/chs/Library/Logs/Homebrew/et/01.cmake:
-DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk

-- Architecture: x86_64
-- Bootstrapping vcpkg before install
-- Bootstrapping vcpkg before install - failed
CMake Error at external_imported/vcpkg/scripts/buildsystems/vcpkg.cmake:691 (message):
vcpkg install failed. See logs for more information:
/tmp/et-20210317-46102-u4joox/EternalTerminal-et-v6.1.3/vcpkg-bootstrap.log
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.19.7/share/cmake/Modules/CMakeDetermineSystem.cmake:123 (include)
CMakeLists.txt:63 (project)

CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
-- Configuring incomplete, errors occurred!

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 #9

commented

Seeing the same issue. Any help would be appreciated!

What does the bootstrap log show? (It's referenced in your log)

commented

What does the bootstrap log show? (It's referenced in your log)

I am actually not able to get that. The referenced location in the log doesn't exist.

Same here. There's not work dir under /tmp anymore.

There's a flag you can pass to brew that will interrupt the build on failure and let you access those files. I think it's -i or -d

commented

It's '-d' for debug.

After entering the debug shell by selecting "5" for shell after the error occurred the file can be checked.

lt01858% cat vcpkg-bootstrap.log
Downloading cmake...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   634  100   634    0     0   3336      0 --:--:-- --:--:-- --:--:--  3336
100 40.9M  100 40.9M    0     0  6704k      0  0:00:06  0:00:06 --:--:-- 7101k
Downloading cmake... done.
Extracting cmake...
Extracting cmake... done.
Downloading ninja...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   619  100   619    0     0   3240      0 --:--:-- --:--:-- --:--:--  3240
100 99913  100 99913    0     0   267k      0 --:--:-- --:--:-- --:--:--  267k
Downloading ninja... done.
Extracting ninja...
Could not find unzip. Please install it (and other dependencies) with:
sudo apt-get install curl zip unzip tar

So the 'unzip' was missing.

After installing unzip and restarting the install the following error prevented the installation form finishing.


==> cmake .
Last 15 lines from /home/aaaa/.cache/Homebrew/Logs/et/01.cmake:
-- Looking for stddef.h - found
-- Check size of long
-- Check size of long - done
CMake Error at /home/linuxbrew/.linuxbrew/Cellar/cmake/3.20.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
Call Stack (most recent call first):
  /home/linuxbrew/.linuxbrew/Cellar/cmake/3.20.0/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /home/linuxbrew/.linuxbrew/Cellar/cmake/3.20.0/share/cmake/Modules/FindCURL.cmake:181 (find_package_handle_standard_args)
  external_imported/vcpkg/scripts/buildsystems/vcpkg.cmake:653 (_find_package)
  external_imported/sentry-native/CMakeLists.txt:248 (find_package)


-- Configuring incomplete, errors occurred!
See also "/tmp/et-20210326-31311-1g8uchb/EternalTerminal-et-v6.1.3/CMakeFiles/CMakeOutput.log".
See also "/tmp/et-20210326-31311-1g8uchb/EternalTerminal-et-v6.1.3/CMakeFiles/CMakeError.log".
/usr/bin/curl --version
/usr/bin/ruby -e puts\ RUBY_VERSION
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/debrew.rb:18:in `raise'

There seems to be no relevant info in the bootstrap log.


[88/88] Linking CXX executable vcpkg
Telemetry
---------
vcpkg collects usage data in order to help us improve your experience.
The data collected by Microsoft is anonymous.
You can opt-out of telemetry by re-running the bootstrap-vcpkg script with -disableMetrics,
passing --disable-metrics to vcpkg on the command line,
or by setting the VCPKG_DISABLE_METRICS environment variable.

Read more about vcpkg telemetry at docs/about/privacy.md


When I ignore this error I get:


/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/extend/os/linux/system_config.rb:31:in `formula_linked_version'
NoMethodError: undefined method `linked_version' for nil:NilClass

I updated the formula, please try again, thanks!

Thank for doing all this, MisterTea! I tried the new formula in debugging mode and got the following build error:

...
==> cmake .
Last 15 lines from /Users/chs/Library/Logs/Homebrew/et/01.cmake:
-DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk

-- Architecture: x86_64
-- Bootstrapping vcpkg before install
-- Bootstrapping vcpkg before install - failed
CMake Error at external_imported/vcpkg/scripts/buildsystems/vcpkg.cmake:691 (message):
  vcpkg install failed.  See logs for more information:
  /tmp/et-20210328-96901-mp3paf/EternalTerminal-et-v6.1.3/vcpkg-bootstrap.log
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.20.0/share/cmake/Modules/CMakeDetermineSystem.cmake:123 (include)
  CMakeLists.txt:63 (project)


CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
-- Configuring incomplete, errors occurred!
/usr/local/Homebrew/Library/Homebrew/shims/scm/git --version
/usr/local/opt/curl/bin/curl --version
/usr/local/Homebrew/Library/Homebrew/debrew.rb:18:in `raise'
BuildError: Failed executing: cmake . -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/et/6.1.3_2 -DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DCMAKE_OSX_SYSROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk

End of vcpkg-bootstrap.log:

CMake Error at cmake/utilities.cmake:30 (message):
  Building the vcpkg tool requires support for the C++ Filesystem TS.

  macOS versions below 10.15 do not have support for it with Apple Clang.

  Please install gcc6 or newer from homebrew (brew install gcc).

  If you would like to try anyway, pass --allowAppleClang to bootstrap.sh.

Call Stack (most recent call first):
  CMakeLists.txt:55 (vcpkg_detect_compiler)


-- Configuring incomplete, errors occurred!
See also "/tmp/et-20210328-96901-mp3paf/EternalTerminal-et-v6.1.3/external_imported/vcpkg/buildtrees/_vcpkg/build/CMakeFiles/CMakeOutput.log".

So this suggests that I have to install gcc, but it was installed (and reinstalled) already and cmake still didn't seem to pick it up. :-/ Maybe it's looking in /usr/bin instead of /usr/local/bin?

Quick edit: Running boostrap.sh hardcoded with --allowAppleClang didn't work either.

Looks like you have some old compiler that cmake is finding. Or your OS is old

Well, I'm running macOS 10.14.6 (Mojave) and it says

macOS versions below 10.15 do not have support for it with Apple Clang.
Please install gcc6 or newer from homebrew (brew install gcc).

which I did.

I suspect it's some cmake magic that's been introduced recently. Maybe it picks up /usr/bin/gcc (i.e. not a "real" gcc) instead of /usr/local/bin/gcc-10 ? (I don't know. I don't grok cmake.)

commented

I keep getting different errors.

CMake Error at CMakeLists.txt:437 (add_executable): Target "et-test" links to target "unwind::unwind" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?

@moxli Are you trying to build latest master? et shouldn't link unwind if it doesn't find it

commented

@MisterTea I am running "brew install -d MisterTea/et/et" on Ubuntu with Linuxbrew.

@MisterTea I am running "brew install -d MisterTea/et/et" on Ubuntu with Linuxbrew.

Never heard of linuxbrew! You will likely need to install libunwind then using your distro before installing et.

commented

@MisterTea I just tried to install it again and the install went through without any issues.
I am not sure why, I am not aware of any changes on my side in the last few days.
Regarding linuxbrew. It's an official version of Brew for Linux, this should not be the issue.