nxp-archive / openil

OpenIL is an open source project based on Buildroot and designed for embedded industrial solution.
Other
136 stars 55 forks source link

build fails for olimex_a20_olinuxino_micro_defconfig #25

Closed benkinooby closed 5 years ago

benkinooby commented 5 years ago

Hi, when trying to build for Olimex Olinuxino A20 Micro I get the following error:

~/tmp/openil/openil $ make olimex_a20_olinuxino_micro_defconfig
#
# configuration written to /home/ben/tmp/openil/openil/.config
#
~/tmp/openil/openil $ make
host-m4 1.4.18 Building
PATH="/home/ben/tmp/openil/openil/output/host/bin:/home/ben/tmp/openil/openil/output/host/sbin:/home/ben/tmp/openil/openil/output/host/usr/bin:/home/ben/tmp/openil/openil/output/host/usr/sbin:/home/ben/bin/kupfer/bin:/usr/lib/llvm/7/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin" PKG_CONFIG="/home/ben/tmp/openil/openil/output/host/usr/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/ben/tmp/openil/openil/output/host/usr/lib/pkgconfig:/home/ben/tmp/openil/openil/output/host/usr/share/pkgconfig"  /usr/bin/make -j5  -C /home/ben/tmp/openil/openil/output/build/host-m4-1.4.18/
make[1]: Entering directory '/home/ben/tmp/openil/openil/output/build/host-m4-1.4.18'
/usr/bin/make  all-recursive
make[2]: Entering directory '/home/ben/tmp/openil/openil/output/build/host-m4-1.4.18'
Making all in .
make[3]: Entering directory '/home/ben/tmp/openil/openil/output/build/host-m4-1.4.18'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/ben/tmp/openil/openil/output/build/host-m4-1.4.18'
Making all in examples
make[3]: Entering directory '/home/ben/tmp/openil/openil/output/build/host-m4-1.4.18/examples'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/ben/tmp/openil/openil/output/build/host-m4-1.4.18/examples'
Making all in lib
make[3]: Entering directory '/home/ben/tmp/openil/openil/output/build/host-m4-1.4.18/lib'
/usr/bin/make  all-am
make[4]: Entering directory '/home/ben/tmp/openil/openil/output/build/host-m4-1.4.18/lib'
  CC       freadahead.o
  CC       fseeko.o
  CC       printf-parse.o
  CC       vasprintf.o
  CC       vasnprintf.o
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]: *** Waiting for unfinished jobs....
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]: Leaving directory '/home/ben/tmp/openil/openil/output/build/host-m4-1.4.18/lib'
make[3]: *** [Makefile:1674: all] Error 2
make[3]: Leaving directory '/home/ben/tmp/openil/openil/output/build/host-m4-1.4.18/lib'
make[2]: *** [Makefile:1572: all-recursive] Error 1
make[2]: Leaving directory '/home/ben/tmp/openil/openil/output/build/host-m4-1.4.18'
make[1]: *** [Makefile:1528: all] Error 2
make[1]: Leaving directory '/home/ben/tmp/openil/openil/output/build/host-m4-1.4.18'
make: *** [package/pkg-generic.mk:219: /home/ben/tmp/openil/openil/output/build/host-m4-1.4.18/.stamp_built] Error 2

Some quick research indicates that this is a known buildroot issue [1].

[1] https://github.com/sifive/freedom-u-sdk/issues/74

benkinooby commented 5 years ago

I compared your u-boot fork with mainline u-boot and it seems that you forked at v2018.03-rc4 (somewhere around 5e62f828256d66e2b28def4f9ef20a2a05c2d04f) from u-boot and from then on only worked on hardware related to NXP. Assuming that you're handling this repo in the same way, I guess olimex is out of scope here. Sorry for the noise -> closing

For other who may see this issue because they're interested in Xenomai @ Allwinner A20, look here: https://linux-sunxi.org/Xenomai https://gitlab.denx.de/Xenomai/xenomai/wikis/home