Skip to content
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

uROS-arduino failingto build after update to 2.0.3 #791

Closed
carmiac opened this issue Mar 2, 2022 · 5 comments
Closed

uROS-arduino failingto build after update to 2.0.3 #791

carmiac opened this issue Mar 2, 2022 · 5 comments
Assignees

Comments

@carmiac
Copy link
Contributor

carmiac commented Mar 2, 2022

I've just tried to update to the 2.0.3 package and it's not building.
Full build log:

milner@canterbury:~/Arduino/libraries/micro_ros_arduino-2.0.3-foxy$ docker run -it --rm -v $(pwd):/project --env MICROROS_LIBRARY_FOLDER=extras microros/micro_ros_static_library_builder:foxy -p teensy4
Get:1 http://packages.ros.org/ros2/ubuntu focal InRelease [4673 B]
Get:2 http://archive.ubuntu.com/ubuntu focal InRelease [265 kB]                
Get:3 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Get:4 http://packages.ros.org/ros2/ubuntu focal/main amd64 Packages [997 kB]             
Get:5 http://security.ubuntu.com/ubuntu focal-security/restricted amd64 Packages [994 kB]         
Get:6 http://archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]                        
Get:7 http://archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]                      
Get:8 http://security.ubuntu.com/ubuntu focal-security/universe amd64 Packages [844 kB]             
Get:9 http://archive.ubuntu.com/ubuntu focal/restricted amd64 Packages [33.4 kB]      
Get:10 http://archive.ubuntu.com/ubuntu focal/universe amd64 Packages [11.3 MB]                  
Get:11 http://security.ubuntu.com/ubuntu focal-security/multiverse amd64 Packages [25.8 kB]                              
Get:12 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages [1592 kB]                                     
Get:13 http://archive.ubuntu.com/ubuntu focal/multiverse amd64 Packages [177 kB]                                                                          
Get:14 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages [1275 kB]                                                                               
Get:15 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages [2017 kB]                                                                       
Get:16 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 Packages [1136 kB]                                                                   
Get:17 http://archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 Packages [29.4 kB]                                                                 
Get:18 http://archive.ubuntu.com/ubuntu focal-updates/restricted amd64 Packages [1063 kB]                                                                 
Get:19 http://archive.ubuntu.com/ubuntu focal-backports/main amd64 Packages [51.2 kB]                                                                     
Get:20 http://archive.ubuntu.com/ubuntu focal-backports/universe amd64 Packages [26.0 kB]                                                                 
Fetched 22.2 MB in 40s (557 kB/s)                                                                                                                         
Reading package lists... Done
Building dependency tree       
Reading state information... Done
163 packages can be upgraded. Run 'apt list --upgradable' to see them.
Creating firmware for generate_lib platform generic
.......
=== ./ament/ament_cmake (git) ===
Cloning into '.'...
=== ./ament/ament_index (git) ===
Cloning into '.'...
=== ./ament/ament_lint (git) ===
Cloning into '.'...
=== ./ament/ament_package (git) ===
Cloning into '.'...
=== ./ament/googletest (git) ===
Cloning into '.'...
=== ./ament/uncrustify_vendor (git) ===
Cloning into '.'...
=== ./ros2/ament_cmake_ros (git) ===
Cloning into '.'...
List of repositories is empty
#All required rosdeps installed successfully
..............
=== ./ros2/common_interfaces (git) ===
Cloning into '.'...
=== ./ros2/example_interfaces (git) ===
Cloning into '.'...
=== ./ros2/libyaml_vendor (git) ===
Cloning into '.'...
=== ./ros2/rcl (git) ===
Cloning into '.'...
=== ./ros2/rcl_interfaces (git) ===
Cloning into '.'...
=== ./ros2/rcl_logging (git) ===
Cloning into '.'...
=== ./ros2/rcpputils (git) ===
Cloning into '.'...
=== ./ros2/rmw (git) ===
Cloning into '.'...
=== ./ros2/rmw_implementation (git) ===
Cloning into '.'...
=== ./ros2/rosidl (git) ===
Cloning into '.'...
=== ./ros2/rosidl_dds (git) ===
Cloning into '.'...
=== ./ros2/rosidl_defaults (git) ===
Cloning into '.'...
=== ./ros2/test_interface_files (git) ===
Cloning into '.'...
=== ./ros2/unique_identifier_msgs (git) ===
Cloning into '.'...
...........
=== ./eProsima/Micro-CDR (git) ===
Cloning into '.'...
=== ./eProsima/Micro-XRCE-DDS-Client (git) ===
Cloning into '.'...
=== ./ros2/tinydir_vendor (git) ===
Cloning into '.'...
=== ./uros/micro_ros_msgs (git) ===
Cloning into '.'...
=== ./uros/rcl (git) ===
Cloning into '.'...
=== ./uros/rclc (git) ===
Cloning into '.'...
=== ./uros/rcutils (git) ===
Cloning into '.'...
=== ./uros/rmw_microxrcedds (git) ===
Cloning into '.'...
=== ./uros/rosidl_typesupport (git) ===
Cloning into '.'...
=== ./uros/rosidl_typesupport_microxrcedds (git) ===
Cloning into '.'...
=== ./uros/tracetools (git) ===
Cloning into '.'...
warning: redirecting to https://gitlab.com/micro-ROS/ros_tracing/ros2_tracing.git/
Crosscompiled environment: cleaning path
Starting >>> ament_package
Starting >>> ament_lint
Starting >>> gtest_vendor
Starting >>> ament_cppcheck
Starting >>> ament_pycodestyle
Finished <<< gtest_vendor [0.63s]                                                                                                                     
Starting >>> gmock_vendor
Finished <<< gmock_vendor [0.13s]                                                                                                   
Finished <<< ament_package [0.78s]
Finished <<< ament_lint [0.78s]
Starting >>> ament_cmake_core
Starting >>> ament_flake8
Finished <<< ament_pycodestyle [0.78s]                                                                                               
Starting >>> ament_pyflakes
Finished <<< ament_cppcheck [0.80s]
Finished <<< ament_cmake_core [0.40s]                                                                           
Starting >>> ament_cmake_libraries
Starting >>> ament_cmake_export_libraries
Starting >>> ament_cmake_python
Starting >>> ament_cmake_include_directories                                                                                                             
Starting >>> ament_cmake_export_definitions
Starting >>> ament_cmake_export_include_directories
Starting >>> ament_cmake_export_link_flags
Starting >>> ament_cmake_version
Finished <<< ament_flake8 [0.56s]                                                                                         
Starting >>> ament_pep257
Starting >>> ament_mypy
Finished <<< ament_pyflakes [0.57s]
Finished <<< ament_cmake_libraries [0.68s]                                                                                                                
Finished <<< ament_cmake_include_directories [0.68s]
Starting >>> ament_cmake_export_dependencies
Starting >>> ament_cmake_target_dependencies
Finished <<< ament_cmake_export_link_flags [0.69s]                                                                        
Finished <<< ament_cmake_export_include_directories [0.70s]
Finished <<< ament_cmake_export_libraries [0.72s]
Finished <<< ament_cmake_python [0.72s]
Finished <<< ament_cmake_export_definitions [0.72s]
Finished <<< ament_cmake_version [0.71s]
Starting >>> ament_cmake_test
Starting >>> ament_cmake_export_interfaces
Starting >>> ament_cmake_export_targets
Finished <<< ament_mypy [0.61s]
Finished <<< ament_pep257 [0.62s]
Starting >>> ament_copyright
Finished <<< ament_cmake_export_dependencies [0.38s]                                                                                   
Finished <<< ament_cmake_target_dependencies [0.39s]
Finished <<< ament_cmake_export_interfaces [0.37s]                                                                      
Finished <<< ament_cmake_export_targets [0.37s]
Finished <<< ament_cmake_test [0.43s]
Starting >>> ament_cmake
Starting >>> ament_cmake_gtest
Starting >>> ament_lint_auto
Starting >>> ament_cmake_pytest
Starting >>> ament_cmake_google_benchmark
Starting >>> ament_cmake_nose
Finished <<< ament_copyright [0.42s]
Starting >>> ament_lint_cmake                                                                                                     
Starting >>> ament_cpplint
Starting >>> ament_xmllint
Starting >>> ament_clang_format
Starting >>> ament_clang_tidy
Starting >>> ament_pclint
Starting >>> domain_coordinator
Starting >>> ament_index_python
Finished <<< ament_cmake_gtest [1.46s]                                                                                                   
Finished <<< ament_cmake_pytest [1.52s]
Starting >>> ament_cmake_gmock
Finished <<< ament_lint_auto [1.56s]                                                                                                                
Finished <<< ament_cmake [1.57s]
Finished <<< ament_cmake_nose [1.57s]
Starting >>> uncrustify_vendor
Starting >>> ament_cmake_auto
Finished <<< ament_cmake_google_benchmark [1.58s]
Finished <<< ament_clang_format [1.54s]
Finished <<< ament_pclint [1.54s]
Finished <<< ament_index_python [1.53s]
Finished <<< ament_cpplint [1.58s]
Finished <<< ament_clang_tidy [1.57s]
Finished <<< domain_coordinator [1.56s]                                                                                                              
Finished <<< ament_lint_cmake [1.62s]
Finished <<< ament_xmllint [1.61s]
Starting >>> ament_cmake_lint_cmake
Finished <<< ament_cmake_gmock [0.36s]                                                                                                     
Finished <<< ament_cmake_auto [0.35s]
Finished <<< ament_cmake_lint_cmake [0.30s]                                                                 
Starting >>> ament_cmake_copyright
Finished <<< ament_cmake_copyright [0.27s]                                                               
Starting >>> ament_cmake_cppcheck                         
Starting >>> ament_cmake_cpplint
Starting >>> ament_cmake_flake8
Starting >>> ament_cmake_pep257
Starting >>> ament_cmake_xmllint
Starting >>> ament_cmake_clang_format
Starting >>> ament_cmake_clang_tidy
Starting >>> ament_cmake_mypy
Starting >>> ament_cmake_pclint
Starting >>> ament_cmake_pycodestyle
Starting >>> ament_cmake_pyflakes
Finished <<< uncrustify_vendor [0.72s]
Starting >>> ament_uncrustify
Finished <<< ament_cmake_clang_format [0.49s]                                                                                                    
Finished <<< ament_cmake_mypy [0.57s]                                                                                                                  
Finished <<< ament_cmake_pclint [0.57s]
Finished <<< ament_uncrustify [0.55s]
Starting >>> ament_cmake_uncrustify
Finished <<< ament_cmake_flake8 [0.63s]
Finished <<< ament_cmake_pep257 [0.63s]
Finished <<< ament_cmake_cpplint [0.67s]
Finished <<< ament_cmake_cppcheck [0.68s]
Finished <<< ament_cmake_clang_tidy [0.67s]
Finished <<< ament_cmake_xmllint [0.69s]                                                                             
Finished <<< ament_cmake_pycodestyle [0.67s]
Finished <<< ament_cmake_pyflakes [0.67s]
Finished <<< ament_cmake_uncrustify [0.33s]                  
Starting >>> ament_lint_common
Finished <<< ament_lint_common [0.32s]                  
Starting >>> ament_cmake_ros
Starting >>> ament_index_cpp
Finished <<< ament_cmake_ros [0.37s]                                                               
Finished <<< ament_index_cpp [4.55s]                        

Summary: 60 packages finished [10.8s]
#All required rosdeps installed successfully
#All required rosdeps installed successfully
Cloning into 'geometry2'...
remote: Enumerating objects: 14412, done.
remote: Counting objects: 100% (1730/1730), done.
remote: Compressing objects: 100% (648/648), done.
remote: Total 14412 (delta 1257), reused 1369 (delta 997), pack-reused 12682
Receiving objects: 100% (14412/14412), 3.40 MiB | 3.68 MiB/s, done.
Resolving deltas: 100% (9836/9836), done.
=== ./control_msgs (git) ===
Cloning into '.'...
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
No changes detected
milner@canterbury:~/Arduino/libraries/micro_ros_arduino-2.0.3-foxy$ 
@Acuadros95 Acuadros95 self-assigned this Mar 3, 2022
@sejego
Copy link

sejego commented Mar 3, 2022

I am facing an exactly similar issue.

@Acuadros95
Copy link
Contributor

This should be fixed with this PR: #794
Please update the library with the lastest commit, will release the fix if the feedback is positive.

@sejego
Copy link

sejego commented Mar 4, 2022

@Acuadros95 Hey, not sure if I am doing it correctly, but I still have an issue, albeit a different one.

I have pulled the latest foxy version from github and added it as a library to Arduino IDE. Next, I tried running the same docker command but now it gives me a different error. Full log below:

sejego@pop-os:~/Arduino/libraries/micro_ros_arduino$ sudo docker run -it --rm -v $(pwd):/project --env MICROROS_LIBRARY_FOLDER=extras microros/micro_ros_static_library_builder:foxy
/entrypoint.sh: line 9: /project/extras/library_generation/library_generation.sh: Permission denied

@Acuadros95
Copy link
Contributor

@sejego you need to modify the permissions of the library_generation.sh file, use:
sudo chmod a+x <Your path>/library_generation.sh

@sejego
Copy link

sejego commented Mar 4, 2022

@carmiac @Acuadros95 The issue is fixed, was able to compile everything! Thanks a ton <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants