-
-
Notifications
You must be signed in to change notification settings - Fork 14k
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
Some builds fail with invalid gcc flag "-Xarch_x86_64" (Linux+CMake+PCH) #94905
Comments
Failing Hydra build: https://hydra.nixos.org/build/124793339 This is most likely due to the same problem as in #93761 (comment) and should affect multiple packages. From the investigation of @orivej it seems to be caused by a recent CMake update (#93886). |
Yes, I expect that all CMake packages that use |
@orivej I had a quick look at the Git history of CMake and https://gitlab.kitware.com/cmake/cmake/-/commit/f593b354da2e9637e9b869688934f0ba2544ebed?expanded=1#6c9f77aa6e8d69a3b0b3ddcff14fb5312faa7b5a_2457_2469 seems like a good candidate. Anyway, thanks a lot for investigating this ❤️ :) |
Indeed, this is caused by https://gitlab.kitware.com/cmake/cmake/-/merge_requests/4561 |
So I guess a quick workaround might be to only add the And according to https://cmake.org/cmake/help/latest/variable/CMAKE_OSX_ARCHITECTURES.html it should also be a CMake bug as it states:
|
Yes. I have reported it at https://gitlab.kitware.com/cmake/cmake/-/issues/21072 |
I've pushed e798793 as a temporary quick-fix for the |
The real issue is NixOS#94952 or NixOS#94905.
The fix for this issue was just merged into CMake master: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/5118 |
Let's keep this open for anyone else stumbling such issues, until staging is merged to channels. |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: |
Describe the bug
Building of
tdesktop-2.2.0
(Telegram Desktop) on my NixOS unstable system fails with the message:Notify maintainers
@primeos @abbradar
Metadata
"x86_64-linux"
Linux 5.7.12, NixOS, 20.09.git.4254de4a41f (Nightingale)
yes
yes
nix-env (Nix) 2.3.7
"nixos-20.09pre237279.8e2b14aceb1"
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
The text was updated successfully, but these errors were encountered: