-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
[Tracking] AMD GPUs and NixOS - 'Cannot find target for triple amdgcn-- Unable to find target for this triple (no targets are registered)'. #343806
Comments
My guess this is a problem with a mismatch of the Mesa version between the one used by the system and for building the package rather than a bug in Mesa itself. This seems to fit the pattern so far as all of the issues you linked mention using an unstable package. I experience the same bug with launch unstable Currently To confirm the mismatch is the problem it'd be interesting if someone tried running the affected package unmodified, but on an unstable NixOS. My guess stems from the fact that when I had problems with Vivaldi (which is based on Chromium) not starting in the past that I was able to fix by overriding the mesa input: (pkgs.unstable.vivaldi.override { mesa = pkgs.mesa; }) If this is the problem, I guess it isn't actually be a bug or something nixpkgs could fix. Although noting somewhere that using unstable chromium/electron on a stable NixOS is problematic and providing an easy override for the mesa input would be helpful. |
Hm, that's an interesting hypothesis. For my use with EDIT: I was too naive. I can't just 'override' Mesa on |
OK, so I did try and override We should likely document this behaviour with Mesa, though. |
I stumbled upon this issue when searching for the error message. For what it's worth, this is also happening on Debian Sid/unstable at the moment, with Mesa 24.2.3. Downgrading to Mesa 24.2.2 fixes the issue there. |
Yeah, it may well be an upstream issue then. Do you have a link to a Debian Sid bug report? We might need to work together across distros/packagers to fix this. Perhaps there's a breaking change with Mesa. |
I don't see a report yet for Debian, though I may just be looking in the wrong place since Mesa has lots of packages. I'll see if I can make one once I find the package that's causing the issue |
Hey @Eisfunke - just wanted to get your thoughts on my fix for |
No rush, if you're able to get anywhere, let us know! Thanks. |
I updated my Debian machine to Mesa 24.2.3 again, and rather annoyingly everything just works now. There was no Mesa nor LLVM version change in Debian, so I can't really blame any package for causing this. I wonder if it's something cache related? There were issues before with Chromium/Electron applications having broken rendering after a Mesa update, and wiping the application's shader cache resolved those. |
Yeah, that could be why. However, I can't see a |
I don't know where |
I could not reproduce this with |
I got this error while trying to package an app with electron_31, while my system is on 24.05 |
Are you using |
I've just made the repo public again. @AgentElement I meant to tag you in my previous message - the repo is here. Thanks. |
+1, unable to use |
I run into the same error trying to run the |
I think, ultimately, the issue comes down to mixing packages from unstable (with a newer version of Mesa), with stable. One solution would be to override the unstable package's |
Same for |
The fix suggested in signalapp/Signal-Desktop#6855 worked for me on Framework16, which has an integrated AMD Phoenix1 GPU.
downgrading or uninstalling |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/cannot-run-chrome-nor-chromium/54373/5 |
I don't think this is related to If people are experiencing the same issue, even when overriding the |
Yeah setting |
As mentioned in the thread on discourse I'm experiencing the same error on the stable channel that I always used. |
Brave would not start NixOS/nixpkgs#343806
Hi! I use NixOS with a mix from stable + unstable pkgs. I have this video card from AMD:
My main 'desktop' works ok and is based on swayfx (0.4) but I'm also experimenting this problem when trying to launch sway-1.10 or hyprland from unstable. Is there a fix for this or if we update to 24.11 when it is available will experiment the same problem, I mean if I want to use sway-1.10 by then 'stable'? |
I'm experiencing this bug now as well, the
|
I'm using this workaround:
|
This has been fixed for me, as far as I can tell, when I updated to 24.11 |
Same for me :) |
Also for me |
I think the lesson to be learned here is that mixing unstable packages that - in this case, rely on Mesa - with stable systems, cause this particular manifestation. As 24.11 has resolved this issue, for me included, are people alright if I go ahead and close this issue as resolved? |
Yes, just updated to 24.11 and it works now. |
Will close now. I'll open an issue to see if we should document this behaviour. |
Issue description
I've been experiencing a bug with my AMD iGPU (780M), but it appears this is a bug affecting more than a few NixOS users.
For me, it affects 1Password, and
dwl
. I'm also having issues with Steam crashing when the web component loads. I am curious if this is related, but I am certain 1Password anddwl
are affected by theamdgcn
triple error.This issue, therefore, will act as a tracking issue.
Below is a list of issues I've found with the characteristic signature error:
#343580
#340196
#339520
There has been talk of a possible Mesa bug causing this.
The text was updated successfully, but these errors were encountered: