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

Unknown target triple error #50

Open
zejiang0jason opened this issue Feb 12, 2018 · 4 comments
Open

Unknown target triple error #50

zejiang0jason opened this issue Feb 12, 2018 · 4 comments

Comments

@zejiang0jason
Copy link

Hi llvm maintainers,

I can build the llvm on 64-bit ubuntu, but I got error when I compile the *.c code using:
clang -target riscv64 -mriscv=RV64IAMFD -S hello.c -o hello.S

The error is:
error: unknown target triple 'riscv64', please use -triple or -arch

Did I miss something? I am on the commit 8aec2ae.

Thanks.

@sorear
Copy link

sorear commented Feb 12, 2018

If you are not a member of @ucb-bar, this is not the LLVM you should be using. The correct LLVM for external use is the RISCV target in the upstream llvm.org repositories.

@neuschaefer
Copy link
Contributor

In that case this repo should perhaps be moved to https://github.com/ucb-bar/llvm, and be replaced by a staging tree for upstream LLVM

@sorear
Copy link

sorear commented Feb 12, 2018

I sent @colinschmidt an email asking for it to be moved to https://github.com/ucb-bar/hwacha-llvm since that seems to be its main function. I don't think there is a staging repository in the sense you mean (https://github.com/lowRISC/riscv-llvm tracks the upstream port but serves a different purpose, @asb et al have been following an upstream first approach).

@zejiang0jason
Copy link
Author

OK, thanks, I will try the llvm.org repo.

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

No branches or pull requests

3 participants