-
Notifications
You must be signed in to change notification settings - Fork 146
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
catkin build fails for projects with the cmake build type #672
Comments
I can see a cmake folder actually does exist in the source. I am looking into why it doesn't end up in the install directory now. |
Ok, so installing through apt-get: If i instead install the master, directly through pip:
Then the cmake folder is there and the command works. Should i close this now? Or can it remain open to look into why this is happening with the |
I reproduced the same error on my environment (focal, noetic, catkin_tools==0.5.0 && 0.6.1). root@b9269cb9aa5d:~/project# ls install/
_setup_util.py env.sh include lib local_setup.bash local_setup.sh local_setup.zsh python setup.bash setup.sh setup.zsh share
root@b9269cb9aa5d:~/project# rm -rf install/ logs/
root@b9269cb9aa5d:~/project# source /opt/ros/noetic/setup.bash
root@b9269cb9aa5d:~/project# catkin b
==> Expanding alias 'b' from 'catkin b' to 'catkin build'
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Profile: default
Extending: [explicit] /opt/ros/noetic
Workspace: /root/project
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Build Space: [exists] /root/project/build
Devel Space: [exists] /root/project/devel
Install Space: [missing] /root/project/install
Log Space: [missing] /root/project/logs
Source Space: [exists] /root/project/src
DESTDIR: [unused] None
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: merged
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Additional CMake Args: -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_COMPILER_LAUNCHER=ccache -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
Workspace configuration appears valid.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------
[build] Found '1' packages in 0.0 seconds.
Starting >>> sample_pkg
Finished <<< sample_pkg [ 0.5 seconds ]
[build] Summary: All 1 packages succeeded!
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: None.
[build] Runtime: 0.5 seconds total.
root@b9269cb9aa5d:~/project# ls install/
env.sh include lib python setup.sh share |
Interesting, I cannot reproduce this issue locally with the current master. The issue looks similar to #621 which was closed in #650. Could you try installing catkin_tools with pip from master ( |
@timonegk In README.md of the repository above:
|
Thank you for the reproducible build! I could narrow the issue down and also reproduce it locally. The problem is that the helper files ( |
The fix is ready in #682. I already tested it in your Docker and added an automatic test, so I'm fairly certain that the issue is fixed. But it would still be helpful if you could verify that the issue no longer occurs with the patch, you can install it via |
@timonegk Thank you for the fix! I also confirmed that |
System Info
Build / Run Issue
[ ] Works with
catkin build
[ ] Works with
catkin build -p1
Expected Behavior
I have a project listed as <build_type>cmake</build_type> in the ros package.xml. I expect this to build with catkin build package name.
Actual Behavior
I get the following error from catkin_tools:
When i look into the code is see this subprocess command:
where the dirname is going to be resolved as:
/usr/lib/python3/dist-packages/catkin_tools/jobs/
. Then you will addcmake
on the end, and this path does not seem to exist. A work around at the moment is to remove the path join and have the working directory as the jobs folder. This makes everything work again.Steps to reproduce
catkin build
The text was updated successfully, but these errors were encountered: