掌機 - TRIMUI - 解決Please port gnulib fseterr.c to your platform問題



參考資訊:
https://github.com/ARM-software/arm-enterprise-acs/issues/73

問題如下:

lib/fseterr.c: In function 'fseterr':
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."
   ^~~~~
make[3]: *** [Makefile:3466: lib/fseterr.o] Error 1
make[3]: *** Waiting for unfinished jobs....
  CC       lib/isnanl.o
make[3]: Leaving directory 'output/build/host-bison-3.0.4'

解法如下:

$ vim output/build/host-bison-3.0.4/lib/stdio-impl.h +20
    #if !defined _IO_IN_BACKUP && defined _IO_EOF_SEEN
    # define _IO_IN_BACKUP 0x100
    #endif

$ vim output/build/host-bison-3.0.4/lib/fseterr.c +32
    #if defined _IO_EOF_SEEN || __GNU_LIBRARY__ == 1 /* GNU libc, BeOS, Haiku, Linux libc5 */