Open keshavwxyz opened 8 months ago
Thank you for filing this issue.
I think this is related to Python 3.11 and 3.12 installed simultaneously by brew on you machine?
Please try
brew uninstall python@3.12
And see if it helps?
Bro I am such an idiot. IT'S WORKING THE BUILD IS WORKING *by the way how did you sort out the problem?
Now it failed again with rosidl_generator_dds_idl
Starting >>> rosidl_generator_dds_idl
--- stderr: mimick_vendor
/opt/ros/ros2_rolling/build/mimick_vendor/mimick_vendor-prefix/src/mimick_vendor/src/asm/trampoline-aarch64.S:80:19: error: unexpected token in '.section' directive
.section .note.GNU-stack, "", @progbits
^
make[5]: *** [CMakeFiles/mimick.dir/src/asm/trampoline-aarch64.S.o] Error 1
make[4]: *** [CMakeFiles/mimick.dir/all] Error 2
make[3]: *** [all] Error 2
make[2]: *** [mimick_vendor-prefix/src/mimick_vendor-stamp/mimick_vendor-build] Error 2
make[1]: *** [CMakeFiles/mimick_vendor.dir/all] Error 2
make: *** [all] Error 2
make: INTERNAL: Exiting with 10 jobserver tokens available; should be 8!
---
Failed <<< mimick_vendor [10.0s, exited with code 2]
A friend had the same problem so were already looking into it.
Please try ./clean.sh and in a new terminal try ./install.sh again.
Let me know if the problem persists!
The problem is caused by brew install opencv, which the latest version relies on python@3.12.
A workaraound is to uninstall python3.12 while building ROS2.
I would like a patch to fix the build so that it works regardless. Maybe I can do it later myself when I have time for it.
Workaround:
To temporarily uninstall python3.12 without affecting other packages do:
brew uninstall --ignore-dependencies python@3.12
Then do ./clean.sh; ./install.sh
I've added a check for python@3.12 to the install script. It is not a good solution but works for now.
everything from the install.sh work except the build command. this is the error I am getting
and this error is from the commented colcon build command
and the error
during some search I found out this is related to some catkin_pkg. So, I install catkin using this command
and this was the notification
and colcon command still didn't work with the same error then I tried installing catkin using conda
conda install -c conda-forge catkin_pkg empy lark
this is conda's resultafter updating conda to 23.9.0 using
conda install conda=23.9.0
conda catkin install command results werethe colon build command error is