Skip to content
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

Fix compilation errors with musl libc #83

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

AngryLoki
Copy link

  1. According to POSIX specification, basename(3) belongs to libgen.h[1]
  2. __cpu_mask is an internal type of glibc's cpu_set implementation, not part of the POSIX specification, so musl does not support it too.

[1] https://man7.org/linux/man-pages/man3/basename.3.html

AngryLoki added a commit to AngryLoki/gentoo that referenced this pull request May 22, 2024
Upstream pull-requests:
* ROCm/clr#83
* ROCm/hip-tests#463

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
littlewu2508 pushed a commit to littlewu2508/gentoo that referenced this pull request May 23, 2024
Upstream pull-requests:
* ROCm/clr#83
* ROCm/hip-tests#463

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
@chrispaquot chrispaquot requested a review from gargrahul as a code owner May 23, 2024 23:47
AngryLoki added a commit to AngryLoki/gentoo that referenced this pull request Jun 11, 2024
Upstream pull-requests:
* ROCm/clr#83
* ROCm/hip-tests#463

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
negril pushed a commit to negril/gentoo that referenced this pull request Jun 25, 2024
Upstream pull-requests:
* ROCm/clr#83
* ROCm/hip-tests#463

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
negril pushed a commit to negril/gentoo that referenced this pull request Jun 25, 2024
Upstream pull-requests:
* ROCm/clr#83
* ROCm/hip-tests#463

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
negril pushed a commit to negril/gentoo that referenced this pull request Jun 25, 2024
Upstream pull-requests:
* ROCm/clr#83
* ROCm/hip-tests#463

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
gentoo-bot pushed a commit to gentoo/gentoo that referenced this pull request Jun 26, 2024
Upstream pull-requests:
* ROCm/clr#83
* ROCm/hip-tests#463

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
1. According to POSIX specification, basename(3) belongs to libgen.h
2. __cpu_mask is an internal type of glibc's cpu_set implementation,
not part of the POSIX definition, so musl does not support it too.

Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
@AngryLoki
Copy link
Author

@gargrahul , could you check this, please?

@bbrzak-amd
Copy link
Contributor

Hi @AngryLoki,

Thank you for submitting this PR. This would address the issue, but I wouldn't want to reference this typename in the code at all.

Instead, in the few places it is referenced within os.hpp, you can use auto for the loops and sizeof(bits) for the one sizeof instance that references the aforementioned typename.

This would also address the musl compilation issue

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