-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
clang does not support -rpath-link #19137
clang does not support -rpath-link #19137
Conversation
🤖 Beep Boop! This pull request is making changes to 'recipes/qt//'. 👋 @ericLemanissier @jwillikers @MartinDelille you might be interested. 😉 |
This comment has been minimized.
This comment has been minimized.
@@ -737,7 +740,7 @@ def build(self): | |||
|
|||
libdirs = [l for dependency in self.dependencies.host.values() for l in dependency.cpp_info.aggregated_components().libdirs] | |||
args.append("QMAKE_LIBDIR+=\"%s\"" % " ".join(libdirs)) | |||
if not is_msvc(self): | |||
if not is_msvc(self) and not self._is_clang(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a problem on newer versions of Clang or only on version 13? If it's only an issue for 13, I think we should only do this for that version of Clang. I think we want to keep RPATH enabled otherwise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, I cannot really tell, I can confirm that the issue exist for clang 13 and 14 on Macos m1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I beleive this is an issue with the linker and not the compiler. The linker in Apple platforms doesn't have -rpath-link
, but on Linux (even with Clang), this should work.
Perhaps this conditional can be changed to if not is_msvc(self) and not is_apple_os(self):
- or something along those lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably if not is_msvc(self) and not (is_apple_os(self) and self._is_clang()) :
is more accurate, assuming -rpath-link
is available for gcc on macos
Conan v1 pipeline ✔️All green in build 2 (
Conan v2 pipeline ❌
The v2 pipeline failed. Please, review the errors and note this will be required for pull requests to be merged in the near future. See details:Failure in build 2 (
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability. |
Hooks produced the following warnings for commit 8ffe516qt/5.15.10
qt/5.15.8
qt/5.15.9
qt/5.15.7
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm investigating this issue and I'm a bit puzzled as to why it happens in the first place.
From the above, the
The mkspec for macos is The looking at the I'm building this locally (takes a while), but will double check. Perhaps since this is qtwebengine we're talking about, there's additional logic somewhere. Update: indeed this the case, this line: is causing the issue. I'll issue a patch. This was confusing because technically - if |
Fixed in #24826 |
Specify library name and version: qt/5.15
Compaling qt with qtwebengine enabled on m1 mac with clang 13 I got an error
it seems like Clang does not support
-rpath-link
This is the same issue as #16639