Build OpenWRT18.06 Error

Hi~ I want to compile openwrt on my computer to compile my own program, but when I clone openwrt 18.06 from https://github.com/gl-inet/openwrt.git and compile, I got the error:

lib/fseterr.c:77:3: error: #error “Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib.”
#error “Please port gnulib fseterr.c to your platform! Look at the definitions of ferror and clearerr on your system, then report this to bug-gnulib.”

Could there some solution for this error? Thanks for your help

What is your build environment? Ubuntu? What is the version?

my build environment is:

NAME=“Debian GNU/Linux”
VERSION=“10 (buster)”

Make sure you have all the host dependencies covered for OpenWRT…

https://openwrt.org/docs/guide-developer/build-system/install-buildsystem