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

stderr: ament_lint, error: option --install-layout not recognized, ament_lint doesn't build #369

Closed
Kaju-Bubanja opened this issue Apr 27, 2022 · 3 comments
Assignees

Comments

@Kaju-Bubanja
Copy link

When trying to build ros by source following these instructions: https://docs.ros.org/en/rolling/Installation/Ubuntu-Development-Setup.html on Ubuntu 22.04.
I get following error:

~/ros2_rolling$ colcon build --symlink-install
Starting >>> ament_package
Starting >>> ament_lint
Starting >>> gtest_vendor
Starting >>> fastcdr
Finished <<< fastcdr [0.61s]                                                      
Starting >>> ament_cppcheck                                                       
Finished <<< gtest_vendor [0.65s]
Starting >>> gmock_vendor
Finished <<< gmock_vendor [0.50s]                                                 
Starting >>> iceoryx_hoofs
--- stderr: ament_lint                                                            
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: setup.py --help [cmd1 cmd2 ...]
   or: setup.py --help-commands
   or: setup.py cmd --help

error: option --install-layout not recognized
---
Failed   <<< ament_lint [1.56s, exited with code 1]
Aborted  <<< ament_package [1.58s]
Aborted  <<< ament_cppcheck [1.07s]                                                                    
Aborted  <<< iceoryx_hoofs [8.50s]                                   

Summary: 3 packages finished [11.2s]
  1 package failed: ament_lint
  3 packages aborted: ament_cppcheck ament_package iceoryx_hoofs
  2 packages had stderr output: ament_lint ament_package
  360 packages not processed

The ament_lint package is on master, also it's a clean workspace and a fresh install of the OS.

@aprotyas
Copy link
Contributor

Related: ament/ament_cmake#382 (comment)

I think this issue should be transferred to https://github.com/colcon/colcon-core.

@cottsay
Copy link
Contributor

cottsay commented May 13, 2022

Hi @Kaju-Bubanja, I strongly believe that colcon/colcon-core#506 solves this issue. Please give colcon-core 0.8.3 a try and let us know if it fixes your problem.

@Kaju-Bubanja
Copy link
Author

Yes after updating colcon with the ubuntu package manager ament_lint builds correctly

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