Skip to content

Conversation

WhyNotHugo
Copy link

Associated JIRA ticket number/Github issue number

None

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Continuous Integration

What were the changes?

Fixed build errors on musl. See commit messages for details.

Why are these changes needed?

Build fails on musl (e.g.: Alpine Linux) without these patches.

Updated CHANGELOG?

  • Yes
  • No, Does not apply to this PR.

Added/Updated documentation?

  • Yes
  • No, Does not apply to this PR.

Additional Checks

  • I have added tests relevant to the introduced functionality, and the unit tests are passing locally.
  • Any dependent changes have been merged.

On musl, this fails to build since basename(3) is undefined:

    /tmp/src/clr-rocm-6.4.3/rocclr/os/os_posix.cpp:736:27: error: 'basename' was not declared in this scope; did you mean 'rename'?
      736 |     appName = std::string(basename(buff.get()));
          |                           ^~~~~~~~
          |                           rename

Add the missing import.
@WhyNotHugo
Copy link
Author

I wrote these changes for v6.4.3, and have mostly tested there.

@jayhawk-commits
Copy link
Contributor

Please note active development for clr has moved to ROCm/rocm-systems, please re-open this PR there.

@WhyNotHugo
Copy link
Author

Keep in mind that https://github.com/ROCm/rocm-systems has no tags, so downstream consumers have nothing to track there— we'll continue tracking this repository.

@WhyNotHugo
Copy link
Author

See: ROCm/rocm-systems#791

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

Successfully merging this pull request may close these issues.

2 participants