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

build fail #255

Open
shyisme opened this issue Aug 20, 2024 · 4 comments
Open

build fail #255

shyisme opened this issue Aug 20, 2024 · 4 comments

Comments

@shyisme
Copy link

shyisme commented Aug 20, 2024

kernel/riscv.h:197: Error: unknown CSR menvcfg' kernel/riscv.h:204: Error: unknown CSR menvcfg'
kernel/riscv.h:189: Error: unknown CSR `stimecmp'

@Donglin-SHI
Copy link

I met the same issue here.

OS: Windows 11/WSL/Ubuntu 22.04.4 LTS

A quick workaround would be to revert below commit.
92e60dd

I'm waiting for Ubuntu 24.04 for WSL, maybe then this issue will be fixed.

@awasay905
Copy link

awasay905 commented Aug 27, 2024

I faced the same issue using same Win 11 with Ubuntu 22.04.4 WSL , althought i did not install the riscv-gnu-toolchain for xv6. (i only ran this command 'sudo apt-get install git build-essential gdb-multiarch qemu-system-misc gcc-riscv64-linux-gnu binutils-riscv64-linux-gnu')

But using @Donglin-SHI solution made the qemu work.

@Donglin-SHI
Copy link

WSL/Ubuntu 24.04.1 LTS was published at 2024-08-30.
After I upgraded Ubuntu to Win11/WSL/Ubuntu 24.04.1 LTS, this issue was solved.

@TroyMitchell911
Copy link

Sometimes, WSL will encounter inexplicable errors

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

4 participants