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 

进入文件夹
/home/shuhaoshen/Desktop/workspace/x18x0/buildroot/output/build/host-m4-1.4.17

输入命令:

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

问题解决,继续正常编译

Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐