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

Zephyr build fail with LLVM on Ubuntu for target ARC #32511

Closed
yanzhouy opened this issue Feb 20, 2021 · 2 comments
Closed

Zephyr build fail with LLVM on Ubuntu for target ARC #32511

yanzhouy opened this issue Feb 20, 2021 · 2 comments
Assignees
Labels
Enhancement Changes/Updates/Additions to existing features priority: low Low impact/importance bug

Comments

@yanzhouy
Copy link

Is your enhancement proposal related to a problem? Please describe.
I am trying to build zephyr sample project 'hello_world' with ZEPHYR_TOOLCHAIN_VARIANT=llvm for board qemu_arc_em, qemu_arc_hs. But build failed with log <clang: error: unknown argument: '-mno-sdata'>.

Describe the solution you'd like
Suppose zephyr can support build with llvm toolchain for target ARC related board.

Additional context
If I change target board to qemu_x86, it can build successfully.
Could you please help confirm if ARC is supported for LLVM/clang compiler or oneApi ICX compiler currently?

@yanzhouy yanzhouy added the Enhancement Changes/Updates/Additions to existing features label Feb 20, 2021
@nashif
Copy link
Member

nashif commented Feb 20, 2021

this is not supported yet, you can build using gcc or metaware.

@ruuddw ruuddw added the priority: low Low impact/importance bug label Feb 22, 2021
@ruuddw
Copy link
Member

ruuddw commented Feb 22, 2021

Hi @yanzhou, as Anas mentioned, we do not support native ARC LLVM for Zephyr. Though there is initial, experimental ARC support for LLVM, the recommended and supported toolchains are GCC and MetaWare (which internally uses LLVM).
If this changes in the future, we can re-open this enhancement request - for now I close it.

@ruuddw ruuddw closed this as completed Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Changes/Updates/Additions to existing features priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

5 participants