NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.07k stars 14.08k forks source link

qtwebengine (5.12.10) build failed on macOS #116358

Closed nasyxx closed 3 years ago

nasyxx commented 3 years ago

Describe the bug

I found a similar issue here: #76715, /.../-qtbase-5.12.10-dev/mkspecs/features/mac/default_post.prf:5: 'xcodeSDKInfo' is not a recognized replace function.

but not sure why mine is broken. Is it because I installed nix to a custom location?

Full log:

https://gist.github.com/nasyxx/b119b8962b34103404c878e1a3667514

Error message:

Done. Made 8971 targets from 1526 files in 3360ms
/Users/Nasy/.nix/store/s8hhd5ahcvff1qr6y6n9iz85kl3m7zqd-qtbase-5.12.10-dev/mkspecs/features/mac/default_post.prf:5: 'xcodeSDKInfo' is not a recognized replace function.
make[3]: Entering directory '/private/tmp/nix-build-qtwebengine-5.12.10.drv-0/qtwebengine-everywhere-src-5.12.10/src/core'
/private/tmp/nix-build-qtwebengine-5.12.10.drv-0/qtwebengine-everywhere-src-5.12.10/src/3rdparty/ninja/ninja -j16 -C /private/tmp/nix-build-qtwebengine-5.12.10.drv-0/qtwebengine-everywhere-src-5.12.10/src/core/release QtWebEngineCore
ninja: Entering directory `/private/tmp/nix-build-qtwebengine-5.12.10.drv-0/qtwebengine-everywhere-src-5.12.10/src/core/release'
ninja: error: '../../../../../../../usr/lib/libsandbox.1.dylib', needed by 'obj/components/cdm/renderer/librenderer.a', missing and no known rule to make it
make[3]: *** [Makefile.gn_run:360: run_ninja] Error 1
make[3]: Leaving directory '/private/tmp/nix-build-qtwebengine-5.12.10.drv-0/qtwebengine-everywhere-src-5.12.10/src/core'
make[2]: *** [Makefile:85: sub-gn_run-pro-make_first] Error 2
make[2]: Leaving directory '/private/tmp/nix-build-qtwebengine-5.12.10.drv-0/qtwebengine-everywhere-src-5.12.10/src/core'
make[1]: *** [Makefile:84: sub-core-make_first] Error 2
make[1]: Leaving directory '/private/tmp/nix-build-qtwebengine-5.12.10.drv-0/qtwebengine-everywhere-src-5.12.10/src'
make: *** [Makefile:52: sub-src-make_first] Error 2
error: builder for '/Users/Nasy/.nix/store/b1cjkiwi6vaxfr0a6nmhhkpai7zyiv3p-qtwebengine-5.12.10.drv' failed with exit code 2

To Reproduce Steps to reproduce the behavior:

nix-shell -p "qt5.qtwebengine"

Expected behavior

qtwebengine installed

Notify maintainers

Metadata Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-darwin"`
 - host os: `Darwin 20.3.0, macOS 10.16`
 - multi-user?: `no`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.4pre20210308_1c0e3e4`
find: ‘/nix/var/nix/profiles/per-user’: No such file or directory

My profiles is under ~/.nix/var/nix/profiles.

veprbl commented 3 years ago

I found a similar issue here: #76715, /.../-qtbase-5.12.10-dev/mkspecs/features/mac/default_post.prf:5: 'xcodeSDKInfo' is not a recognized replace function.

This is something we see in builds on Hydra as well (e.g. see https://hydra.nixos.org/build/138418066)

ninja: error: '../../../../../../../usr/lib/libsandbox.1.dylib', needed by 'obj/components/cdm/renderer/librenderer.a', missing and no known rule to make it

And /usr/lib/libsandbox.1.dylib is present on the filesystem and you are building without a sandbox?

nasyxx commented 3 years ago

And /usr/lib/libsandbox.1.dylib is present on the filesystem and you are building without a sandbox?

I cannot use a sandbox. Looks like macOS Big Bur cannot build with a sandbox.

Sorry, edited. When adding darwin.apple_sdk.frameworks.CoreMediaIO to the propagatedBuildInputs/buildInputs, the libsandbox.1.dylib issue still happends.