-
Notifications
You must be signed in to change notification settings - Fork 77
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
Build broken with Clang > 9 #212
Build broken with Clang > 9 #212
Comments
Same issue on Ubuntu focal/ROS2 foxy |
Please consider to provide a pull request to support newer |
@dirk-thomas I tried but got lost in the crazy shiboken build process. |
AFAICT, the build process should be calling the |
anyone solve this issue? I've been digging and I cant seem to figure out a solution |
I think it works after uninstalling Shiboken and installing through pip.
though I haven't tested whether it's functional - only that it builds. @dirk-thomas is the maintainer listed in the package manifest, so I'm sure he can comment more. |
@rotu, thanks for the tip. was able to compile it as well...but also not quite sure to test if it is functional or not. rviz2 works great so maybe it is working ok? |
@rotu It would be helpful to narrow down what exact change between the version of the Debian package and the used via |
@dirk-thomas Might be this: https://bugreports.qt.io/browse/PYSIDE-1259?jql=text%20~%20%22Unable%20to%20locate%20Clang%27s%20built-in%20include%20directory%22 I'm not planning on fixing this issue. If I were, I would switch the rosdep dependency to install via pip instead of apt. |
A Debian package can not depend on a package provided by |
Oof. That's a bummer. Good luck! |
This issue has been mentioned on ROS Discourse. There might be relevant details there: https://discourse.ros.org/t/is-anyone-using-ros2-gui-tools-like-rviz-on-macos/16353/9 |
Did you figure out the fix for the colcon step error? I’m running into the same, and I have no success debugging it. Any help will be much appreciated! Thank you. |
@lingxd Are you build ROS2 using the source code? |
I run a container ubuntu 20.04 with docker under macos. It should seems like I build in environment of ubuntu, why I will call clang ? |
no, I Installing ROS 2 via Debian Packages. |
building with clang 10 is passing in the nightly builds, e.g. https://ci.ros2.org/view/nightly/job/nightly_linux_clang_libcxx/989/consoleFull#console-section-324. did you set llvm-config correctly? (see comment here) (it might not be working for foxy as reported in this ticket, but it should be working when building rolling from src in Ubuntu 20) |
Smth got it working. I installed clang11: to check installation: I created symbol link: After that almost all packages have built (on a second run, it's even more correctly builded) continue above. will try later with: |
I'm facing the same issue while building |
Me too. qt_gui_cpp build fail |
i am seeing same issue building Humble from source on ubuntu20 |
Just commenting to say this still exists and I am also getting this same issue today. Could it be possible because I have ROS Noetic and ROS Galactic on my system? Even though I only source Galactic at build time. |
+1 with Humble and Ubuntu 20.04 built by sources:
|
In my Dockerfile, compiling Humble on Ubuntu Jammy (22.04), I got it working by installing clang-14 :
Thanks to the comment from @vilkun |
qt_gui_core seems to have problems with Clang.
Ubuntu Focal / ROS Master from source
It builds under GCC, though with the following warning about Clang (even though it shouldn't be using Clang at all and llvm-config for the active clang version is in my
$PATH
):Under Clang 9, I get warnings:
Under Clang 10 (and 11), I get build errors:
The text was updated successfully, but these errors were encountered: