Skip to content

compiler-rt: fix do_install error #1071

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

Closed
wants to merge 1 commit into from
Closed

Conversation

kkang-wr
Copy link
Contributor

After commit

  • 6da0aba clang.bbclass,compiler-rt: Do not set -target for native clang

it installs files to ${nonarch_libdir}/linux rather than ${libdir}/linux when multilib enabled. Update to fix following do_install error:

mv: cannot stat '/path_to/tmp/work/core2-64-poky-linux/compiler-rt/20.1.1/image/usr/lib64/linux': No such file or directory


Contributor checklist

Reviewer Guidelines

  • When submitting a review, please pick:
    • 'Approve' if this change would be acceptable in the codebase (even if there are minor or cosmetic tweaks that could be improved).
    • 'Request Changes' if this change would not be acceptable in our codebase (e.g. bugs, changes that will make development harder in future, security/performance issues, etc).
    • 'Comment' if you don't feel you have enough information to decide either way (e.g. if you have major questions, or you don't understand the context of the change sufficiently to fully review yourself, but want to make a comment)

After commit

* 6da0aba clang.bbclass,compiler-rt: Do not set -target for native clang

it installs files to ${nonarch_libdir}/linux rather than
${libdir}/linux when multilib enabled. Update to fix following
do_install error:

mv: cannot stat '/path_to/tmp/work/core2-64-poky-linux/compiler-rt/20.1.1/image/usr/lib64/linux':
No such file or directory

Signed-off-by: Kai Kang <[email protected]>
@kkang-wr kkang-wr requested a review from kraj as a code owner March 31, 2025 15:12
@shr-project
Copy link
Contributor

What about removing the whole conditional? That's what I was using with #1072

mv ${D}${libdir}/linux ${D}${nonarch_libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}/lib
rmdir --ignore-fail-on-non-empty ${D}${libdir}
mv ${D}${nonarch_libdir}/linux ${D}${nonarch_libdir}/clang/${MAJOR_VER}.${MINOR_VER}.${PATCH_VER}/lib
rmdir --ignore-fail-on-non-empty ${D}${nonarch_libdir}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one be ever empty as you've used it in above line, right? It was useful only for cases where libdir and nonarch_libdir weren't the same to remove now empty libdir after everything was moved to nonarch_libdir.

I think this whole conditional isn't needed as LLVM_LIBDIR_SUFFIX isn't empty only when libdir and nonarch_libdir aren't the same directory.

And when they are the same than we can use nonarch_libdir in both cases.

@kraj
Copy link
Owner

kraj commented Apr 1, 2025

What about removing the whole conditional? That's what I was using with #1072

yeah thats perhaps better to do.

@kraj
Copy link
Owner

kraj commented Apr 1, 2025

fixed with #1072

@kraj kraj closed this Apr 1, 2025
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.

3 participants