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

Error when building src/3.uart #4

Open
leanrdchen00918 opened this issue May 13, 2022 · 1 comment
Open

Error when building src/3.uart #4

leanrdchen00918 opened this issue May 13, 2022 · 1 comment

Comments

@leanrdchen00918
Copy link

leanrdchen00918 commented May 13, 2022

I've successfully built src/1.startup and run the Image on D1-nezha board. However, there is a problem when building 3.uart.

~/d1-nezha-baremeta/src/3.uart$ make all TOOLPREFIX=riscv64-unknown-elf-
riscv64-unknown-elf-gcc -Wall -O2 -fno-omit-frame-pointer -ggdb -march=rv64gcvxtheadc -mabi=lp64d -mtune=c906 -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -I printf -fno-stack-protector -fno-pie -no-pie   -c -o printf.o printf.c
cc1: error: unknown cpu 'c906' for '-mtune'
make: *** [<builtin>: printf.o] Error 1
@bigmagic123
Copy link
Owner

I've successfully built src/1.startup and run the Image on D1-nezha board. However, there is a problem when building 3.uart.

~/d1-nezha-baremeta/src/3.uart$ make all TOOLPREFIX=riscv64-unknown-elf-
riscv64-unknown-elf-gcc -Wall -O2 -fno-omit-frame-pointer -ggdb -march=rv64gcvxtheadc -mabi=lp64d -mtune=c906 -MD -mcmodel=medany -ffreestanding -fno-common -nostdlib -mno-relax -I. -I printf -fno-stack-protector -fno-pie -no-pie   -c -o printf.o printf.c
cc1: error: unknown cpu 'c906' for '-mtune'
make: *** [<builtin>: printf.o] Error 1

you can download Xuantie-900-gcc-elf-newlib from https://occ.t-head.cn/community/download

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

2 participants