Skip to content

Enabling Build Inside Docker Image prevents use of symlinks in project #239

Open
@Thundercleez

Description

@Thundercleez

Describe the bug
In a normal project, you can create a symlink to a file or folder through the Eclipse UI or command line. Then when building the project, the auto-generated makefile will build the linked source files. If you then enable Build Inside Docker Image, when trying to rebuild the project, the error "No rule to make target " will be thrown.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new, c++ managed build project. Give the project any name and keep hitting next leaving the default options selected then hit finish.
  2. Create a helloworld.cpp source file. Confirm it builds.
  3. Move the file to a location outside the project directory.
  4. Create a symlink to the file within the project directory.
  5. Refresh Eclipse to confirm the files is there.
  6. Rebuild and confirm build is successful.
  7. Go to project properties->C/C++ Build->Settings->Container Settings and check Build inside Docker Image and select a docker image then hit apply and close.
  8. Try building again. It will fail with no rule to make target helloworld.o

Expected behavior
It should compile the source file.

Desktop (please complete the following information):

  • OS: RHEL 7.9
  • Version: 2022 12 R

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurerequestA new feature or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions