Hello,
I'm trying to setup a cross-compiler toolchain on Ubuntu 18.10
I used these guides:
https://github.com/OnionIoT/source
https://docs.onion.io/omega2-docs/cross-compiling.html
I tried using docker (on a linux) or throught the linux but both failed.
I get that error below
make -r world: build failed. Please re-run make with -j1 V=s to see what's going on
make: *** [/home/george/source/include/toplevel.mk:200: world] Error 1
This is the output I get when I run "make -j1 V=s"
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."
#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[7]: *** [Makefile:1837: freadahead.o] Error 1
make[7]: Leaving directory '/home/george/source/build_dir/host/m4-1.4.17/lib'
make[6]: *** [Makefile:1602: all] Error 2
make[6]: Leaving directory '/home/george/source/build_dir/host/m4-1.4.17/lib'
make[5]: *** [Makefile:1506: all-recursive] Error 1
make[5]: Leaving directory '/home/george/source/build_dir/host/m4-1.4.17'
make[4]: *** [Makefile:1461: all] Error 2
make[4]: Leaving directory '/home/george/source/build_dir/host/m4-1.4.17'
make[3]: *** [Makefile:29: /home/george/source/build_dir/host/m4-1.4.17/.built] Error 2
make[3]: Leaving directory '/home/george/source/tools/m4'
make[2]: *** [tools/Makefile:148: tools/m4/compile] Error 2
make[2]: Leaving directory '/home/george/source'
make[1]: *** [tools/Makefile:145: /home/george/source/staging_dir/target-mipsel_24kc_musl-1.1.16/stamp/.tools_install_yynyyyyynyyyyynyynnyyyynyyyyyyyyyyyyyyynyynynnyyynnny] Error 2
make[1]: Leaving directory '/home/george/source'
make: *** [/home/george/source/include/toplevel.mk:200: world] Error 2