meta-ros
meta-ros copied to clipboard
[Scarthgap] Build error for cartographer
Hi,
As reply https://github.com/ros/meta-ros/discussions/1221#discussioncomment-11215846 , I file it as a bug.
I found this issue in building cartographer and it would be caused by legacy version of python3-shinix inherited by ROS.
As mentioned in https://github.com/ros/meta-ros/discussions/1221#discussion-7233112 , meta-ros have used older version and as python version upgraded, it would not cover latest python version.
error message is following.
| FAILED: docs/CMakeFiles/build_doc /home/bchoi/nvidia-yocto-bsp/bchoi-build/tmp/work/armv8a-oe4t-linux/cartographer/2.0.9003-1/build/docs/CMakeFiles/build_doc
| cd /home/bchoi/nvidia-yocto-bsp/bchoi-build/tmp/work/armv8a-oe4t-linux/cartographer/2.0.9003-1/build/docs && /home/bchoi/nvidia-yocto-bsp/bchoi-build/tmp/work/armv8a-oe4t-linux/cartographer/2.0.9003-1/recipe-sysroot-native/usr/bin/sphinx-build -b html /home/bchoi/nvidia-yocto-bsp/bchoi-build/tmp/work/armv8a-oe4t-linux/cartographer/2.0.9003-1/git/docs/source /home/bchoi/nvidia-yocto-bsp/bchoi-build/tmp/work/armv8a-oe4t-linux/cartographer/2.0.9003-1/build/docs/html
| Running Sphinx v1.6.7
| making output directory...
|
| Exception occurred:
| File "/home/bchoi/nvidia-yocto-bsp/bchoi-build/tmp/work/armv8a-oe4t-linux/cartographer/2.0.9003-1/recipe-sysroot-native/usr/lib/python3.12/re/_parser.py", line 840, in _parse
| raise source.error('global flags not at the start '
| re.error: global flags not at the start of the expression at position 3
| The full traceback has been saved in /tmp/sphinx-err-twnsvuez.log, if you want to report the issue to the developers.
| Please also report this if it was a user error, so that a better error message can be provided next time.
| A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
For mitigation, I added BBMASK to remove legacy version to my distro file in advance, because I don't like touch meta-ros directly.
BBMASK += " meta-ros/meta-ros-common/recipes-devtools/python/python3-sphinx_1.6.7.bb "
BR, Mark
Thanks for reporting this, @mark-bchoi . I'll try to take a look at this.