-
Notifications
You must be signed in to change notification settings - Fork 298
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
LLVM17 references binaries in the wrong location #9562
Comments
Pokes @nielx :) |
The paths for the binaries declared in And in |
From CMakeLists.txt, so this probably could be set in BUILD()?
|
Is this a regression from llvm16? |
I feel like I am missing something here. Why wouldn't the tools be installed in bin/x86 on a 32 bit system? Isn't that the default? |
Will do a check with LLVM16 and report back here. |
It looks like the build for cmake doesn't respect CMAKE_INSTALL_BINDIR and uses $prefix/bin instead of $binDir here. For most of the time we try to install binaries for x86 (x86_gcc2) in $commandBinDir if they can't be build for gcc2 (this isn't an issue here because cmake is using some other form to install the "tools"). |
Did a check and indeed with LLVM16 it also fails, LLVM12 is still good (LLVM9 should be also). Still doesn't explain why LLVM_TOOLS_INSTALL_DIR doesn't respect CMAKE_INSTALL_BINDIR EDIT: LLVM9 also fails but with not finding LLVMDemangle |
It was staring us right in the face: if [ -n "$secondaryArchSuffix" ]; then
mv $binDir/* $prefix/bin/
binDir=$prefix/bin
fi I think we have three options:
I will look in the git history to see if there is a reason these tools were moved in the past, but it might just require us some experimenting to see what's right. |
well I guess that's my fault... I'd go with option (2) i.e. adjust CMAKE_INSTALL_BINDIR. We might need to use hand-crafted cmake args then, instead of |
I think @Begasus is going to try to see what happens if we leave things in bin/x86, and adjust the recipe accordingly. |
Yeah, got a build running (slow) on one of the laptops (32bit), will launch one here in virtual (32bit) for it in a bit, should be a lot faster at least. |
PR created, I ran a (quick) check to see if qt-creator could pick up LLVM17 fine now, this worked out OK. Could probably use some more checks. :) |
Had a quick glance, looks good to me! |
Fixed in: #9593 |
A build on buildmaster (32bit) for qt-creator revaeled this.
cmake is looking for the binary in $binDir where the binaries are installed in $prefix/bin
The text was updated successfully, but these errors were encountered: