damien-lemoal / riscv64-nommu-buildroot

Other
43 stars 11 forks source link

fakeroot ‘_STAT_VER’ undeclared error - any fixes? #10

Open z3cko opened 3 years ago

z3cko commented 3 years ago

I am trying to compile Linux for the Kendryte 210

I am getting an error, which seems to be acommon error in current fakeroot. libfakeroot.c:99:40: error: ‘_STAT_VER’ undeclared (first use in this function)

Is there any fix for this?

Or there any other suggested way on how to build linux for the Sipeed Maixduino Kendryte K210 RISC-V? I also started a thread on reddit, which can be found here: https://www.reddit.com/r/embedded/comments/mx2rei/compiling_linux_for_sipeed_maixduino_kendryte/

damien-lemoal commented 3 years ago

I have never seen this error... My default config for the K210 completely disables busybox init process and forces the init process to be a simple shell script. This is to avoid boot failures due to no-memory error triggered by too many forks from the default init process. So not sure at all about a potential fix for this. But it does look like a uclibc problem. May be check uclibc tree upstream to see if a patch is queued ?

Note that I am currently finishing a new candidate buildroot patch series for riscv and the K210. The final kernel patches allowing running correctly riscv flatbin got queued. Need to send elf2flt patch and also sort out some issues I am seeing with the latest busybox 1.33: boot fails with it while the previous version 1.32 was fine.

I am not maintaining this riscv64-nommu-buildroot project anymore and working over using my buildroot fork (https://github.com/damien-lemoal/buildroot) and elf2flt fork (https://github.com/uclinux-dev/elf2flt). I have not yet pushed the latest fixes in these. Busy with other things on the kernel right now. Will come back to finishing this soon.