Skip to content

Conversation

@WhyNotHugo
Copy link

Motivation

Builds fail on musl due to usage of internal types and missing imports.

Technical Details

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

Test Plan

Run builds.

Test Result

Builds work.

Submission Checklist

Closes: ROCm/clr#258

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 WhyNotHugo requested a review from a team as a code owner August 28, 2025 09:05
@WhyNotHugo WhyNotHugo changed the title Musl Fix build error on musl Aug 28, 2025
@WhyNotHugo WhyNotHugo mentioned this pull request Aug 28, 2025
12 tasks
marifamd pushed a commit that referenced this pull request Aug 28, 2025
marifamd pushed a commit that referenced this pull request Aug 28, 2025
* Revert "Fix undefined symbol at runtime with newer versions of LLVM (#791)"

This reverts commit 2da4928.

* Revert "SWDEV-502579 - Remove duplicated symbols (#21)"

This reverts commit b15c165.

Revert them because ELF symbols will be added into comgr header.
marifamd pushed a commit that referenced this pull request Aug 28, 2025
* Revert "Fix undefined symbol at runtime with newer versions of LLVM (#791)"

This reverts commit b617e8f.

* Revert "SWDEV-502579 - Remove duplicated symbols (#21)"

This reverts commit 2296162.

Revert them because ELF symbols will be added into comgr header.

[ROCm/clr commit: 35c192f]
@WhyNotHugo
Copy link
Author

Ref: #699

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant