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 GitHub - gl-inet/openwrt: This repository is fork from openwrt official repo, we will update the latest tag and release GL.iNet firmware based on it. 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…

I found this info, which is pretty useful. I did follow it and solved issue you described here.

http://p1htmlkernalweb.mybluemix.net/articles/编译某基于openwrt的sdk_3687470_csdn.html