NUC980开源项目24-Please port gnulib freadahead.c to your platform!

上面是我的微信和QQ群,欢迎新朋友的加入。

项目码云地址(国内下载速度快):https://gitee.com/jun626/nuc980-open-source-project

项目github地址:https://github.com/Jun1172/nuc980-open-source-project

ubuntu镜像,文件太大,加群私聊。

问题来源于编译buildroot的时候

/usr/bin/gcc  -I.   -I/home/jun/nuc980/nuc980bsp/buildroot/output/host/usr/include  -O2 -I/home/jun/nuc980/nuc980bsp/buildroot/output/host/usr/include -c -o freadahead.o freadahead.c
freadahead.c: In function 'freadahead':
freadahead.c:91: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."
   91 |  #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[4]: *** [Makefile:1842: freadahead.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/home/jun/nuc980/nuc980bsp/buildroot/output/build/host-m4-1.4.17/lib'
make[3]: *** [Makefile:1602: all] Error 2
make[3]: Leaving directory '/home/jun/nuc980/nuc980bsp/buildroot/output/build/host-m4-1.4.17/lib'
make[2]: *** [Makefile:1506: all-recursive] Error 1
make[2]: Leaving directory '/home/jun/nuc980/nuc980bsp/buildroot/output/build/host-m4-1.4.17'
make[1]: *** [Makefile:1461:all] 错误 2
make[1]: 离开目录“/home/jun/nuc980/nuc980bsp/buildroot/output/build/host-m4-1.4.17”
make: *** [package/pkg-generic.mk:219:/home/jun/nuc980/nuc980bsp/buildroot/output/build/host-m4-1.4.17/.stamp_built] 错误 2

具体报错如上

解决:
NUC980开源项目24-Please port gnulib freadahead.c to your platform!_第1张图片

进入对应文件夹

sed -i 's/IO_ftrylockfile/IO_EOF_SEEN/' lib/*.c
echo "#define _IO_IN_BACKUP 0x100" >> lib/stdio-impl.h

问题解决,继续正常编译

NUC980开源项目24-Please port gnulib freadahead.c to your platform!_第2张图片

你可能感兴趣的:(NUC980开源项目)