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

qt5 qt@5.rb issue building qt@5 from source #169089

Closed
4 tasks done
ipatch opened this issue Apr 15, 2024 · 7 comments
Closed
4 tasks done

qt5 qt@5.rb issue building qt@5 from source #169089

ipatch opened this issue Apr 15, 2024 · 7 comments
Labels
outdated PR was locked due to age

Comments

@ipatch
Copy link
Contributor

ipatch commented Apr 15, 2024

brew gist-logs <formula> link OR brew config AND brew doctor output

HOMEBREW_VERSION: 4.2.9-63-g6a9c9c0
ORIGIN: https://github.com/Homebrew/brew
HEAD: 6a9c9c00a028cf0bcf7da5a9e5b28c861a981ebd
Last commit: 8 weeks ago
Core tap HEAD: 4e6002daeeb9db04628e17eaeb836e6794c5eac0
Core tap last commit: 17 hours ago
Core tap JSON: 15 Apr 00:33 UTC
Core cask tap HEAD: 6d249f6430780fa6cd5db061a6b32bcdc22b1328
Core cask tap last commit: 17 hours ago
Core cask tap JSON: 15 Apr 00:33 UTC
HOMEBREW_PREFIX: /Users/ipatch/homebrew
HOMEBREW_REPOSITORY: /Users/ipatch/homebrew
HOMEBREW_CELLAR: /Users/ipatch/homebrew/Cellar
HOMEBREW_CASK_OPTS: []
HOMEBREW_DEVELOPER: set
HOMEBREW_EDITOR: nvim
HOMEBREW_MAKE_JOBS: 8
HOMEBREW_NO_ANALYTICS: set
HOMEBREW_NO_AUTO_UPDATE: set
HOMEBREW_NO_GITHUB_API: set
HOMEBREW_NO_INSTALL_CLEANUP: set
HOMEBREW_NO_INSTALL_FROM_API: set
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: set
HOMEBREW_SORBET_RUNTIME: set
HOMEBREW_TEMP: /Users/ipatch/tmp
Homebrew Ruby: 3.1.4 => /Users/ipatch/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 14.0.0 build 1400
Git: 2.37.1 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 7.79.1 => /usr/bin/curl
macOS: 12.6-arm64
CLT: 14.2.0.0.1.1668646533
Xcode: N/A
Rosetta 2: false


Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: Some installed kegs have no formulae!
This means they were either deleted or installed manually.
You should find replacements for the following formulae:
  meson-python

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  hdf5-mpi

Warning: You have uncommitted modifications to Homebrew/homebrew-core.
If this is a surprise to you, then you should stash these modifications.
Stashing returns Homebrew to a pristine state but can be undone
should you later need to do so for some reason.
  cd /Users/ipatch/homebrew/Library/Taps/homebrew/homebrew-core && git stash -u && git clean -d -f

Uncommitted files:
  UU Formula/g/glib.rb
   M Formula/q/qt@5.rb

Warning: Your Homebrew's prefix is not /opt/homebrew.

Many of Homebrew's bottles (binary packages) can only be used with the default prefix.
Consider uninstalling Homebrew and reinstalling into the default prefix.
It is expected behaviour that some formulae will fail to build in this unsupported configuration.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.


Warning: Some taps are not on the default git origin branch and may not receive
updates. If this is a surprise to you, check out the default branch with:
  git -C $(brew --repo freecad/freecad) checkout master

Warning: Some installed formulae are missing dependencies.
You should `brew install` the missing dependencies:
  brew install qt@5

Run `brew missing` for more details.

Verification

  • My brew doctor output says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.
  • I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.

What were you trying to do (and why)?

attempting to install qt@5.rb ie. qt5 from source. and the install fails.

What happened (include all command output)?

i get the below error message during the install portion of qt5

make[2]: Nothing to be done for `install'.
Error: inreplace failed
`paths` (first) parameter:
  `paths` was empty

What did you expect to happen?

expected the install to complete

Step-by-step reproduction instructions (by running brew commands)

brew install qt5 -v -s
@ipatch ipatch added the bug Reproducible Homebrew/homebrew-core bug label Apr 15, 2024
@Bo98
Copy link
Member

Bo98 commented Apr 15, 2024

Did QtWebEngine fail to build (silently)? Do you have full logs (~/Library/Logs/Homebrew/qt@5 or brew gist-logs qt@5)?

@ipatch
Copy link
Contributor Author

ipatch commented Apr 15, 2024

thanks for the reply, i have brew gist-logs qt@5 link here in a few.

and not sure about the qtwebengine failing silently.

@ipatch
Copy link
Contributor Author

ipatch commented Apr 15, 2024

i set the below env var for my user on this system (the box where i can not install qt@5) using,

export HOMEBREW_GITHUB_API_TOKEN=ghp_XXXXXXXgeneratedgithubtoken

then ran the below cmd and got the below output,

brew gist-logs qt@5 -v -d
/Users/ipatch/homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /Users/ipatch/homebrew/Library/Taps/homebrew/homebrew-core/Formula/q/qt@5.rb
/usr/bin/env /Users/ipatch/homebrew/Library/Homebrew/shims/shared/git --version
/usr/bin/env /Users/ipatch/homebrew/Library/Homebrew/shims/shared/curl --version

never saw link for a generate gist log? 🤷‍♂️

i'll see if can attach the logs to this issue or i'll just copy paste them directly as a reply.

@ipatch
Copy link
Contributor Author

ipatch commented Apr 15, 2024

see attachments please.
qt5-config.log
qt5-01.configure.log

if you need the make log let me. i'll have to scp the file to my local machine as it's too large for my clipboard unfortunately.

@ipatch
Copy link
Contributor Author

ipatch commented Apr 15, 2024

is there a particular reason why qt@5 requires a full Xcode installation, and that having the CLT installed is not sufficient?

@cho-m
Copy link
Member

cho-m commented Apr 16, 2024

Closing issue as specifically outlined in brew doctor:

Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from Homebrew or its maintainers on social media.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

You've also modified the formula means you are not building the exact Homebrew/core formula, which is unsupported:

Uncommitted files:
  UU Formula/g/glib.rb
   M Formula/q/qt@5.rb

Based on your brew config and above comments,

Xcode: N/A

you've disabled Xcode requirement which means Qt WebEngine (built on top of Chromium) cannot compile.


If you want to discuss further, then please follow the output message and use Homebrew's discussions (https://github.com/orgs/Homebrew/discussions)

@cho-m cho-m closed this as not planned Won't fix, can't repro, duplicate, stale Apr 16, 2024
@cho-m cho-m removed the bug Reproducible Homebrew/homebrew-core bug label Apr 16, 2024
@Bo98
Copy link
Member

Bo98 commented Apr 16, 2024

is there a particular reason why qt@5 requires a full Xcode installation, and that having the CLT installed is not sufficient?

Because, as seen in your logs:

WARNING: QtWebEngine requires at least version 10.0.0, but using Xcode version .

WARNING: QtPdf requires at least version 10.0.0, but using Xcode version .

WARNING: QtWebEngine will not be built.

WARNING: QtPdf will not be built.

The error you get is a direct consequence of you removing that requirement as the formula has code that expects QtWebEngine to be built.

If you don't need QtWebEngine, a custom modified Qt5 with a different name in your own tap could be an option.

@github-actions github-actions bot added the outdated PR was locked due to age label May 17, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

No branches or pull requests

3 participants