使用Ubuntu20.04编译buildroot出现m4的包编译不过,查阅很久没合适的解决办法,遂决定用debian试试,尝试debian9-live-i386编译通过,但是xfce的系统太大,图形界面完全用不上,遂决定尝试命令行,选择了debian-10.8.0-amd64-netinst.iso来安装

安装时不选择外部包,默认安装

启动后开始安装开发工具:

apt-get install patch python unzip rsync bc make g++ openssh-server

在make的时候提示perl安装不完整:

root@hec:/opt/f1c100s/whycan/buildroot-2017.08# make
Your Perl installation is not complete enough; at least the following
modules are missing:

         Data::Dumper
         ExtUtils::MakeMaker
         Thread::Queue

make: *** [support/dependencies/dependencies.mk:22:core-dependencies] 错误 1

安装perl来解决:apt-get install perl

make menuconfig提示错误:

 *** Unable to find the ncurses libraries or the
 *** required header files.
 *** 'make menuconfig' requires the ncurses libraries.
 *** 
 *** Install ncurses (ncurses-devel) and try again.
 *** 

安装:apt-get install libncurses5-dev

继续make,居然还是在编译m4的时候出错:

  CC       fcntl.o
  CC       fflush.o
  CC       fpurge.o
  CC       freadahead.o
  CC       fseek.o
  CC       fseeko.o
freadahead.c: In function 'freadahead':
freadahead.c:92: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."
  #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:1915: freadahead.o] Error 1
make[4]: *** Waiting for unfinished jobs....
fseeko.c: In function 'rpl_fseeko':
fseeko.c:110:4: error: #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
   #error "Please port gnulib fseeko.c to your platform! Look at the code in fseeko.c, then report this to bug-gnulib."
    ^~~~~
make[4]: *** [Makefile:1915: fseeko.o] Error 1
make[4]: Leaving directory '/opt/f1c100s/whycan/buildroot-2017.08/output/build/host-m4-1.4.18/lib'
make[3]: *** [Makefile:1674: all] Error 2
make[3]: Leaving directory '/opt/f1c100s/whycan/buildroot-2017.08/output/build/host-m4-1.4.18/lib'
make[2]: *** [Makefile:1572: all-recursive] Error 1
make[2]: Leaving directory '/opt/f1c100s/whycan/buildroot-2017.08/output/build/host-m4-1.4.18'
make[1]: *** [Makefile:1528:all] 错误 2
make[1]: 离开目录“/opt/f1c100s/whycan/buildroot-2017.08/output/build/host-m4-1.4.18”
make: *** [package/pkg-generic.mk:230:/opt/f1c100s/whycan/buildroot-2017.08/output/build/host-m4-1.4.18/.stamp_built] 错误 2

看来还是m4编译问题,放弃此版本,选择debian9.13

发表评论

电子邮件地址不会被公开。 必填项已用*标注