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

nonclangable.conf: Add new exceptions #702

Closed
wants to merge 1 commit into from

Conversation

pyih
Copy link

@pyih pyih commented Dec 8, 2022

Add "pciutils" for riscv64 architecture
Add "erlang" for all architectures (found on riscv64 and x86-64) Add "grub" for x86-64 architecture
Use proper OBJCOPY for "linux-yocto" for all architectures

Signed-off-by: Aleksey Smirnov aleksey.smirnov@yadro.com


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)

Add "pciutils" for riscv64 architecture
Add "erlang" for all architectures (found on riscv64 and x86-64)
Add "grub" for x86-64 architecture
Use proper OBJCOPY for "linux-yocto" for all architectures

Signed-off-by: Aleksey Smirnov <aleksey.smirnov@yadro.com>
@pyih pyih requested a review from kraj as a code owner December 8, 2022 13:51
@@ -1,3 +1,20 @@
#| clang-15: error: unable to execute command: Segmentation fault (core dumped)
#| clang-15: error: linker command failed due to signal (use -v to see invocation)
TOOLCHAIN:pn-pciutils:riscv64 = "gcc"
Copy link
Owner

Choose a reason for hiding this comment

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

I can build pciutils fine with clang-15 from master branch. So I wonder whats different on your system. I use yoe distribution (https://github.com/yoedistro/yoe-distro)

# run.do_uboot_mkimage.1228: 185: riscv64-yadro-linux-llvm-objcopy: not found
# FileNotFoundError: [Errno 2] No such file or directory: 'x86_64-yadro-linux-llvm-objcopy'
# both riscv64 and x86-64
OBJCOPY:pn-linux-yocto:toolchain-clang = "${HOST_PREFIX}objcopy"
Copy link
Owner

Choose a reason for hiding this comment

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

There already is similar setting for mips perhaps we need to remove that also if we set it globally like this.

# both riscv64 and x86-64
TOOLCHAIN:pn-erlang = "gcc"

# run.do_uboot_mkimage.1228: 185: riscv64-yadro-linux-llvm-objcopy: not found
Copy link
Owner

Choose a reason for hiding this comment

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

this comment does not match the code, its not uboot but kernel.

Copy link
Owner

@kraj kraj left a comment

Choose a reason for hiding this comment

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

Please take a look at the comments

@kraj
Copy link
Owner

kraj commented Dec 12, 2022

I have reworked this a bit and dropped pciutils change since it works ok with clang15 on master
fixed via #704

@kraj kraj closed this Dec 12, 2022
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.

None yet

2 participants