-
Notifications
You must be signed in to change notification settings - Fork 2
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
"MESA-LOADER: failed to open radeonsi" when using LLVM & polly USE flag. #477
Comments
To be completely honest I personally don't even use it anymore in favour of just passing This has some minor drawbacks (e.g. no Polly in rustc, extra flag to manage, occasional build issues if Like I already said in #345 (comment) I mainly just keep it around because people use it but seeing it might cause actual harm like here... it might be time to pull the trigger and finally drop this huge hack from the repo... |
This has always been a hack and there's no proper way to build a polly enabled llvm and clang seperately. Recently this hack also started causing runtime issues like #477 Please just move to using the plugin directly in CFLAGS Signed-off-by: Xarblu <xarblu@protonmail.com>
If anyone wants to use POLLY without build issues here's a patch I made for sys-devel/clang in order to force diff --git a/clang/lib/Driver/ToolChains/Clang.cpp b/clang/lib/Driver/ToolChains/Clang.cpp
--- a/clang/lib/Driver/ToolChains/Clang.cpp (revision HEAD)
+++ b/clang/lib/Driver/ToolChains/Clang.cpp (revision Staged)
@@ -64,6 +64,7 @@
#include "llvm/TargetParser/RISCVISAInfo.h"
#include "llvm/TargetParser/RISCVTargetParser.h"
#include <cctype>
+#include <filesystem>
using namespace clang::driver;
using namespace clang::driver::tools;
@@ -7549,6 +7550,11 @@
// Forward -fparse-all-comments to -cc1.
Args.AddAllArgs(CmdArgs, options::OPT_fparse_all_comments);
+ if (std::filesystem::exists(std::string("/usr/lib/llvm/") + CLANG_VERSION_MAJOR_STRING + "/lib64/LLVMPolly.so")) {
+ CmdArgs.push_back("-load");
+ CmdArgs.push_back("LLVMPolly.so");
+ }
+
// Turn -fplugin=name.so into -load name.so
for (const Arg *A : Args.filtered(options::OPT_fplugin_EQ)) {
CmdArgs.push_back("-load");
|
When opening the game "Milk Outside a Bag of Milk" using Wine and LLVM 18 compiled with the
-polly
USE flag, the program will fail, outputting the following error:(full logs)
The program will then freeze indefinitely until I force stop it.
Switching to LLVM 18 without polly, from the official Gentoo repo, solves the issue.
I guessed LLVMPolly.so had something to do with the crash, but I lack the skill to diagnose this further.
I'm running Gentoo on an AMD CPU & GPU. I use mesa for my graphic drivers, and my VIDEO_CARDS setting is as following:
VIDEO_CARDS="amdgpu radeonsi radeon"
.If I'm missing any key info, or you would want a copy of the game to test it, LMK.
I couldn't find this error anywhere. Sorry if it's a mistake by my part, or if I'm missing anything. TY!
The text was updated successfully, but these errors were encountered: