Skip to content

build fail on ubuntu with dashing #510

Closed

Description

@koonpeng

When generating javascript messages, I got the following error message

Start to generate the JavaScript messages...
Caught error: Error: EACCES: permission denied, mkdir '/opt/ros/dashing/share/tf2_msgs/action/msg'

It looks like the current method to support action creates the .msg files from the .action files and uses them to generate the messages. This fails in ubuntu as its trying to create .msg files in a directory owned by root.

The result is that some messages are not generated, particularly packages that include both .action and .msg files, e.g. example_interfaces. This also causes some tests to fail as they rely on example_interfaces.

Activity

  1. minggangw commented on Sep 11, 2019

    @minggangw
    Member

    I see, do you install dasing via Debian Packages? As the actionlib has been deprecated, I think we can remove these tests from the current test set.

  2. koonpeng commented on Sep 12, 2019

    @koonpeng
    ContributorAuthor

    Yes, they are installed using apt. For now I am working around it by commenting out some lines to disable actions too.

  3. minggangw commented on Sep 12, 2019

    @minggangw
    Member

    Thanks for trying to overcome it, and I am going to remove them (tests) for the long term.

  4. wayneparrott commented on Dec 5, 2019

    @wayneparrott
    Contributor

    Any thoughts on how to address the EACCESS issue on linux from the generate_messages script?

    In eloquent the dirs that the script is attempting to write into are:

    /opt/ros/eloquent/share/
      action_tutorials_interfaces/actions
      example_interfaces/actions
      tf2_msgs/actions
    

    Brainstorm how to proceed:

    1. A bad hack is to make the dirs above writable.
    2. Disable generating action messages until we have a proper solution.
    3. Generate msg files into the project and process them in the overlay.
      Thoughts?
  5. minggangw commented on Dec 5, 2019

    @minggangw
    Member

    The implementation of actionlib of rclnodejs is prior to that of rcl, so me have marked the actionlib as deprecated (we haven't achieved to wrap the actionlib related functions from rcl and exposed them). I prefer to remove the generation for .action because they become useless now, which will eliminate the current error you meet on Linux.

    I am going to submit a PR to remove it, thanks

  6. added a commit that references this issue on Dec 5, 2019
    4947aa5
  7. added a commit that references this issue on Dec 6, 2019
    ac497ef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions