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

qt 6.4.1 #115926

Closed
wants to merge 7 commits into from
Closed

qt 6.4.1 #115926

wants to merge 7 commits into from

Conversation

paperchalice
Copy link
Contributor

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

  • Enable vulkan support.
  • Using licenses listed in LICENSES(except 3rd party libraries)

Currently qt use bundled harfbuzz on macOS, if use brewed harfbuzz, it may report On OS X, AAT is supported only with -qt-harfbuzz., but it is an obsolete warning and is resolved by upstream, should we use brewed version here?

@cho-m cho-m added CI-linux-self-hosted Build on Linux self-hosted runner CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. long build Set a long timeout for formula testing labels Nov 16, 2022
@chenrui333 chenrui333 added the license License PRs label Nov 16, 2022
@chenrui333 chenrui333 added CI-long-timeout [DEPRECATED] Use longer GitHub Actions CI timeout. and removed CI-long-timeout [DEPRECATED] Use longer GitHub Actions CI timeout. CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. labels Nov 26, 2022
@chenrui333
Copy link
Member

qt 6.4.1 test failure across board

@BrewTestBot BrewTestBot added the automerge-skip `brew pr-automerge` will skip this pull request label Nov 27, 2022
@paperchalice
Copy link
Contributor Author

  • Applied the upstream cmake fix
  • Fix Vulkan test

@p-linnane p-linnane added CI-long-timeout [DEPRECATED] Use longer GitHub Actions CI timeout. CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. labels Nov 28, 2022
@chenrui333
Copy link
Member

This commit should be separate out into two.

@BrewTestBot BrewTestBot removed the automerge-skip `brew pr-automerge` will skip this pull request label Nov 28, 2022
@chenrui333
Copy link
Member

chenrui333 commented Nov 28, 2022

The qt test still failed. We need to test and verify before next run (test run log)

  ==> ./test
  Failed to load vulkan: Cannot load library vulkan: (dlopen(vulkan, 5): image not found)
  initInstance: No Vulkan library available
  Failed to create platform Vulkan instance
  Failed to create Vulkan instance: 0
  Error: qt: failed
  An exception occurred within a child process:
    BuildError: Failed executing: ./test

@chenrui333 chenrui333 removed the CI-long-timeout [DEPRECATED] Use longer GitHub Actions CI timeout. label Nov 28, 2022
@paperchalice
Copy link
Contributor Author

Can't reproduce on my local machine, but got a similar error after brew unlink vulkan-loader 😓.

2022-12-06 16:04:49 +0800

./test

Failed to load vulkan: Cannot load library vulkan: (dlopen(vulkan, 0x0005): tried: 'vulkan' (no such file), '/System/Volumes/Preboot/Cryptexes/OSvulkan' (no such file), '/usr/local/Cellar/qt/6.4.1/lib/QtCore.framework/Versions/A/../../../vulkan' (no such file), '/usr/lib/vulkan' (no such file, not in dyld cache), 'vulkan' (no such file), '/usr/local/lib/vulkan' (no such file), '/usr/lib/vulkan' (no such file, not in dyld cache))
initInstance: No Vulkan library available
Failed to create platform Vulkan instance
Failed to create Vulkan instance: 0

@cho-m
Copy link
Member

cho-m commented Dec 6, 2022

Could be that your machine is using default dlopen lookup paths, which is more likely on Intel macOS due to standard /usr/local prefix.

Probably should check how Qt is searching for libvulkan. A workaround may be to set a DYLD_*/LD_* environment variable, but that would mean the feature is broken out-of-the-box.

@paperchalice
Copy link
Contributor Author

I think I can set QT_VULKAN_LIB to override the default path.

@cho-m cho-m added CI-long-timeout [DEPRECATED] Use longer GitHub Actions CI timeout. and removed CI-long-timeout [DEPRECATED] Use longer GitHub Actions CI timeout. labels Dec 7, 2022
@cho-m
Copy link
Member

cho-m commented Dec 8, 2022

[mvk-error] VK_ERROR_INCOMPATIBLE_DRIVER: Vulkan is not supported on this device. MoltenVK requires Metal, which is not available on this device.

@paperchalice
Copy link
Contributor Author

Not sure the relation between actions/runner-images#1779 and the failure here...

@cho-m cho-m added the test failure CI fails while running the test-do block label Dec 9, 2022
@cho-m cho-m mentioned this pull request Dec 9, 2022
@equal-l2 equal-l2 mentioned this pull request Dec 9, 2022
6 tasks
@paperchalice
Copy link
Contributor Author

Only check the availability ofQVulkanInstance.

@cho-m cho-m added the CI-long-timeout [DEPRECATED] Use longer GitHub Actions CI timeout. label Dec 12, 2022
@chenrui333 chenrui333 removed the test failure CI fails while running the test-do block label Dec 12, 2022
@fxcoudert fxcoudert removed the CI-long-timeout [DEPRECATED] Use longer GitHub Actions CI timeout. label Dec 12, 2022
@carlocab
Copy link
Member

Currently qt use bundled harfbuzz on macOS, if use brewed harfbuzz, it may report On OS X, AAT is supported only with -qt-harfbuzz., but it is an obsolete warning and is resolved by upstream, should we use brewed version here?

When does the warning appear? Does upstream plan to get rid of it? This is fine for now, but using Homebrew harfbuzz instead of the bundled one should be something we look into for future updates.

@BrewTestBot
Copy link
Member

🤖 A scheduled task has triggered a merge.

@paperchalice
Copy link
Contributor Author

paperchalice commented Dec 13, 2022

Currently qt use bundled harfbuzz on macOS, if use brewed harfbuzz, it may report On OS X, AAT is supported only with -qt-harfbuzz., but it is an obsolete warning and is resolved by upstream, should we use brewed version here?

When does the warning appear? Does upstream plan to get rid of it? This is fine for now, but using Homebrew harfbuzz instead of the bundled one should be something we look into for future updates.

This warning appears when using -system-harfbuzz on macOS which is not enabled by default but may disappear in qt 6.5.

@carlocab
Copy link
Member

Does that mean the warning appears only during the build? If so, we can probably use -system-harfbuzz. If it appears during runtime then we may want to wait until upstream get rid of it.

@paperchalice
Copy link
Contributor Author

Does that mean the warning appears only during the build? If so, we can probably use -system-harfbuzz. If it appears during runtime then we may want to wait until upstream get rid of it.

Yes, only during the build.

@paperchalice
Copy link
Contributor Author

Linux bottle is unavailable!

@fxcoudert
Copy link
Member

There was already no Linux bottle, since #114917 (comment)

Now the issue is in the test. We get:

==> ./test
  qt.qpa.xcb: could not connect to display 
  qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
  This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
  
  Available platform plugins are: offscreen, minimalegl, linuxfb, eglfs, vnc, wayland-egl, vkkhrdisplay, xcb, wayland, minimal.

If you know how to fix this, a pull request would be welcome.

@github-actions github-actions bot added the outdated PR was locked due to age label Jan 16, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CI-linux-self-hosted Build on Linux self-hosted runner CI-no-fail-fast Continue CI tests despite failing GitHub Actions matrix builds. license License PRs long build Set a long timeout for formula testing outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants