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

support openwrt riscv64 arch? #518

Closed
moetayuko opened this issue May 30, 2023 · 4 comments
Closed

support openwrt riscv64 arch? #518

moetayuko opened this issue May 30, 2023 · 4 comments

Comments

@moetayuko
Copy link

Recently, openwrt master branch introduced a new riscv64 architecture: https://github.com/openwrt/openwrt/blob/main/target/linux/sifiveu/Makefile, and the SDK is available at https://downloads.openwrt.org/snapshots/targets/sifiveu/generic/openwrt-sdk-sifiveu-generic_gcc-12.3.0_musl.Linux-x86_64.tar.xz

However, compiling naiveproxy against the SDK results in:

2023-05-29T21:59:35.4764501Z ERROR at //base/allocator/partition_allocator/partition_alloc.gni:22:3: Assertion failed.
2023-05-29T21:59:35.4764945Z   assert(false, "Unknown CPU: $current_cpu")
2023-05-29T21:59:35.4765418Z   ^-----
2023-05-29T21:59:35.4765629Z Unknown CPU: riscv64

Is it possible to enable compilation for riscv64?

@klzgrad
Copy link
Owner

klzgrad commented Jun 3, 2023

Not until OpenWrt makes a point release for it.

@moetayuko
Copy link
Author

Just to note, the error I reported above is fixed by chromium/chromium@a140a4b but there are a bunch of other errors, which means riscv64 support has not been fully merged into chromium yet.

@klzgrad
Copy link
Owner

klzgrad commented Jun 3, 2023

No rushing here. It will be supported when upstreams support it

sbwml pushed a commit to sbwml/openwrt_helloworld that referenced this issue Jun 10, 2023
@klzgrad
Copy link
Owner

klzgrad commented Aug 6, 2023

@klzgrad klzgrad closed this as completed Aug 6, 2023
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