我编译buildroot,它给出了这个错误,如何修复它?
freadahead.c: In function 'freadahead':
freadahead.c:92:3: error: #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
92 | #error "Please port gnulib freadahead.c to your platform! Look at the definition of fflush, fread, ungetc on your system, then report this to bug-gnulib."
| ^~~~~
make[5]: *** [Makefile:1915: freadahead.o] Error 1
make[5]: *** Waiting for unfinished jobs....
CC printf-parse.o
fseeko.c: In function 'rpl_fseeko':
fseeko.c:110:4: error: #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
110 | #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
| ^~~~~
make[5]: *** [Makefile:1915: fseeko.o] Error 1
make[4]: *** [Makefile:1674: all] Error 2
make[3]: *** [Makefile:1572: all-recursive] Error 1
make[2]: *** [Makefile:1528: all] Error 2
make[1]: *** [package/pkg-generic.mk:230: /home/tevada/Downloads/licheepi_zero_2/buildroot-2017.08.1/output/build/host-m4-1.4.18/.stamp_built] Error 2
make: *** [Makefile:79: _all] Error 2
离线
Is this mainline buildroot or somebody's port? Which defconfig are you using?
Buildroot 2017.xx is probably unmaintained now so there may be build issues.
I follow this link
I don't know if there are any other links that can be used or not.
https://github.com/Squonk42/buildroot-licheepi-zero/tree/licheepi-zero/board/licheepi
离线
https://github.com/buildroot/buildroot/tree/master/board/licheepi
Mainline buildroot has support for the licheepi
Thank you.
离线