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

qt5base: apple silicon: fails to build #130240

Closed
hexagonal-sun opened this issue Jul 14, 2021 · 2 comments · Fixed by #184560
Closed

qt5base: apple silicon: fails to build #130240

hexagonal-sun opened this issue Jul 14, 2021 · 2 comments · Fixed by #184560
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin 6.topic: qt/kde

Comments

@hexagonal-sun
Copy link
Contributor

Describe the bug
Bulding qt5.qtbase fails on apple silicon. See the hydra log. It looks as though the x86_64 linker is being invoked, see the bottom of the log. Specifically clang is being passed -triple x86_64-apple-macosx11.0.0.

To Reproduce
Steps to reproduce the behavior:
Build qt5.qtbase on apple silicon.

Expected behavior
it builds.

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute: qt5.qtbase
# a list of nixos modules affected by the problem
module:
@stale
Copy link

stale bot commented May 1, 2022

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label May 1, 2022
@gsornsen
Copy link

gsornsen commented May 1, 2022

I'm also running into this on apple silicon

Info: creating cache file /private/tmp/nix-build-qtbase-5.15.3.drv-0/qtbase-d16bf02/.qmake.cache
Command line: -prefix /nix/store/82dsf3ac7m6vpcwkrw7vd8v8gn2bc6va-qtbase-5.15.3 -plugindir '/nix/store/>
/private/tmp/nix-build-qtbase-5.15.3.drv-0/qtbase-d16bf02/mkspecs/features/mac/toolchain.prf:3: Cannot >
Info: creating stash file /private/tmp/nix-build-qtbase-5.15.3.drv-0/qtbase-d16bf02/.qmake.stash
Project ERROR: Cannot run compiler 'clang++'. Output:
===================
clang version 11.1.0
Target: aarch64-apple-darwin
Thread model: posix
InstalledDir: /nix/store/rb559z09mrinv0w8mm1clss8s6p8k2if-clang-11.1.0/bin
clang-11: warning: no such sysroot directory: '-g0' [-Wmissing-sysroot]
clang-11: warning: no such sysroot directory: '-g0' [-Wmissing-sysroot]
 "/nix/store/rb559z09mrinv0w8mm1clss8s6p8k2if-clang-11.1.0/bin/clang-11" -cc1 -triple x86_64-apple-maco>
error: unknown target CPU 'armv8.3-a+crypto+sha2+aes+crc+fp16+lse+simd+ras+rdm+rcpc'
note: valid target CPU values are: nocona, core2, penryn, bonnell, atom, silvermont, slm, goldmont, gol>
===================
Maybe you forgot to setup the environment?

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label May 1, 2022
@veprbl veprbl linked a pull request Aug 15, 2022 that will close this issue
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: darwin Running or building packages on Darwin 6.topic: qt/kde
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants