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

rcl not building #19

Closed
danzimmerman opened this issue Dec 7, 2024 · 8 comments
Closed

rcl not building #19

danzimmerman opened this issue Dec 7, 2024 · 8 comments

Comments

@danzimmerman
Copy link
Owner

danzimmerman commented Dec 7, 2024

<user>@<computer>~/.local/opt/ros/jazzy_ws $ colcon build --symlink-install --merge-install --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo --packages-select rcl                                                                                                                        [8/8][0.540s] ERROR:colcon.colcon_core.package_identification:Exception in package identification extension 'colcon_pkg' in 'src/eProsima/Fast-CDR': unacceptable character #x0000: special characters are not allowed                                                                         in "<unicode string>", position 37                                                                                                                                                                                                                                                    Traceback (most recent call last):                                                                                                                                                                                                                                                        File "/usr/lib/python3/dist-packages/colcon_core/package_identification/__init__.py", line 144, in _identify                                                                                                                                                                              retval = extension.identify(_reused_descriptor_instance)                                                                                                                                                                                                                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                                                                                                                                                                                              File "/usr/lib/python3/dist-packages/colcon_metadata/metadata/colcon_pkg.py", line 33, in identify                                                                                                                                                                                        data = self._get_colcon_pkg_data(desc.path)                                                                                                                                                                                                                                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/colcon_metadata/metadata/colcon_pkg.py", line 80, in _get_colcon_pkg_data
    return yaml.safe_load(content)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yaml/__init__.py", line 125, in safe_load
    return load(stream, SafeLoader)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yaml/__init__.py", line 79, in load
    loader = Loader(stream)
             ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yaml/loader.py", line 34, in __init__
    Reader.__init__(self, stream)
  File "/usr/lib/python3/dist-packages/yaml/reader.py", line 74, in __init__
    self.check_printable(stream)
  File "/usr/lib/python3/dist-packages/yaml/reader.py", line 143, in check_printable
    raise ReaderError(self.name, position, ord(character),
yaml.reader.ReaderError: unacceptable character #x0000: special characters are not allowed
  in "<unicode string>", position 37

[1.058s] ERROR:colcon.colcon_core.package_augmentation:Exception in package augmentation extension 'colcon_pkg': unacceptable character #x0000: special characters are not allowed
  in "<unicode string>", position 37
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/colcon_core/package_augmentation/__init__.py", line 99, in augment_packages
    retval = extension.augment_packages(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/colcon_core/package_augmentation/__init__.py", line 48, in augment_packages
    self.augment_package(
  File "/usr/lib/python3/dist-packages/colcon_metadata/metadata/colcon_pkg.py", line 64, in augment_package
    data = self._get_colcon_pkg_data(desc.path)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/colcon_metadata/metadata/colcon_pkg.py", line 80, in _get_colcon_pkg_data
    return yaml.safe_load(content)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yaml/__init__.py", line 125, in safe_load
    return load(stream, SafeLoader)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yaml/__init__.py", line 79, in load
    loader = Loader(stream)
             ^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yaml/loader.py", line 34, in __init__
    Reader.__init__(self, stream)
  File "/usr/lib/python3/dist-packages/yaml/reader.py", line 74, in __init__
    self.check_printable(stream)
  File "/usr/lib/python3/dist-packages/yaml/reader.py", line 143, in check_printable
    raise ReaderError(self.name, position, ord(character),
yaml.reader.ReaderError: unacceptable character #x0000: special characters are not allowed
  in "<unicode string>", position 37

Starting >>> rcl
--- stderr: rcl
CMake Error at ament_generate_version_header/rcl/generate_version_header.cmake:2:
  Parse error.  Expected a command name, got unquoted argument with text
  ".byte".


CMake Error: Error processing file: /home/<user>/.local/opt/ros/jazzy_ws/build/rcl/ament_generate_version_header/rcl/generate_version_header.cmake
gmake[2]: *** [CMakeFiles/ament_generate_version_header__rcl.dir/build.make:75: ament_generate_version_header/rcl/rcl/version.h] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:300: CMakeFiles/ament_generate_version_header__rcl.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
gmake: *** [Makefile:146: all] Error 2
@danzimmerman
Copy link
Owner Author

danzimmerman commented Dec 7, 2024

What's actually happening here is a ton of the repos aren't correctly cloned. From vcs status:

image

@danzimmerman
Copy link
Owner Author

danzimmerman commented Dec 7, 2024

Pulled all the sources again with vcs import --input https://raw.githubusercontent.com/ros2/ros2/jazzy/ros2.repos src. Building up to rcl now

@danzimmerman
Copy link
Owner Author

RCL build worked fine this time but now dying with

user@computer:~/.local/opt/ros/jazzy_ws $ colcon build --symlink-install --merge-install --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo --packages-up-to osrf_testing_tools_cpp
Starting >>> osrf_testing_tools_cpp
--- stderr: osrf_testing_tools_cpp
CMake Error at CMakeFiles/Makefile.cmake:1:
  Parse error.  Expected a command name, got unquoted argument with text
  "}".


gmake: *** [Makefile:730: cmake_check_build_system] Error 1
---
Failed   <<< osrf_testing_tools_cpp [0.10s, exited with code 2]

Summary: 0 packages finished [2.38s]
  1 package failed: osrf_testing_tools_cpp
  1 package had stderr output: osrf_testing_tools_cpp

@danzimmerman
Copy link
Owner Author

And for ament_package

'utf-8' codec can't decode byte 0xf5 in position 4: invalid start byte

@danzimmerman
Copy link
Owner Author

Oh this seems to be some kind of sourcing thing. If starting an incremental build like --packages-up-to rcl I should source the workspace before going forward (both of the above errors were cleared by deleting the build, install, and log folders).

Will wipe them out and do a full rebuild.

@danzimmerman
Copy link
Owner Author

Getting there [1h 31min 58.8s] [274/364 complete] [rclcpp:build 62% - 28min 52.7s]

@danzimmerman
Copy link
Owner Author

After full delete and rebuild everything went fine.

@danzimmerman
Copy link
Owner Author

I don't know what corrupted the repos in the first place, but will keep an eye on it.

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

1 participant