Open yurneroma opened 2 years ago
@yurneroma hi, I did the whole experiments using WSL2 on windows. and I never came across this error before.
I just rebuild the project successfully on a new enviroment (on windows WSL2) following the official instructions. So I am guessing this is related to the platforms and the corresponding library?
add __attribute__((noreturn))
at user/sh.c:58
`diff --git a/user/sh.c b/user/sh.c index 83dd513..c96dab0 100644 --- a/user/sh.c +++ b/user/sh.c @@ -54,6 +54,7 @@ void panic(char); struct cmd parsecmd(char*);
// Execute cmd. Never returns. attribute((noreturn)) void runcmd(struct cmd *cmd) { `
~have you ever met this error before ? and how are u fix it ?