Errors building source for cross development
- 
					
					
					
					
 @Lachlan-Peter Can you post the output of make -v also gcc -v 
 
- 
					
					
					
					
 lachlan@xps:~/omega/source$ make -v 
 GNU Make 4.2.1
 Built for x86_64-pc-linux-gnu
 Copyright (C) 1988-2016 Free Software Foundation, Inc.
 License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
 This is free software: you are free to change and redistribute it.
 There is NO WARRANTY, to the extent permitted by law.lachlan@xps:~/omega/source$ gcc -v 
 Using built-in specs.
 COLLECT_GCC=gcc
 COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/9/lto-wrapper
 OFFLOAD_TARGET_NAMES=nvptx-none:hsa
 OFFLOAD_TARGET_DEFAULT=1
 Target: x86_64-linux-gnu
 Configured with: ../src/configure -v --with-pkgversion='Ubuntu 9.3.0-17ubuntu1~20.04' --with-bugurl=file:///usr/share/doc/gcc-9/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,gm2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-9 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-9-HskZEa/gcc-9-9.3.0/debian/tmp-nvptx/usr,hsa --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
 Thread model: posix
 gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04)
 lachlan@xps:~/omega/source$
 
- 
					
					
					
					
 The above make and gcc details are from my work machine, not my main machine at home, but this has the same errors and is running 20.04.2 LTS the same as my home machine, and both are fully up-to-date and should be setup identical. Also, I notice in the output: 
 "checking whether we are cross compiling... no"
 I would have though that we are cross compiling to build libraries for the omega?
 
- 
					
					
					
					
 Also I notice these warning in the output that relate directly to findutils. The following modules are present but are not usable, resulting in the 'bug' warning for 'findutils'. checking sys/param.h usability... no 
 checking sys/socket.h usability... no
 checking dirent.h usability... no
 checking wctype.h usability... no
 checking stdio_ext.h usability... no
 checking sys/vfs.h usability... no
 checking netdb.h usability... no
 checking getopt.h usability... no
 checking sys/time.h usability... no
 checking wchar.h usability... no
 checking langinfo.h usability... no
 checking math.h usability... no
 checking sys/mman.h usability... no
 checking sys/statvfs.h usability... no
 checking malloc.h usability... no
 checking sys/uio.h usability... no
 checking sys/utsname.h usability... no
 checking sys/wait.h usability... no
 checking features.h usability... no
 checking arpa/inet.h usability... no
 checking netinet/in.h usability... no
 checking sys/select.h usability... no
 checking sys/ioctl.h usability... noconfigure: WARNING: xxxx: present but cannot be compiled 
 configure: WARNING: xxxx: check for missing prerequisite headers?
 configure: WARNING: xxxx: see the Autoconf documentation
 configure: WARNING: xxxx: section "Present But Cannot Be Compiled"
 configure: WARNING: xxxx: proceeding with the compiler's result
 configure: WARNING: ## ------------------------------------ ##
 configure: WARNING: ## Report this to bug-findutils@gnu.org ##
 configure: WARNING: ## ------------------------------------ ##Regards 
 
- 
					
					
					
					
 @Lachlan-Peter Try as I might I cannot recreate your issue, so maybe it is a good idea to go back to basics and see if this resolves your issue. Rename your existing source directory, or delete it if you have nothing there you want. To create a new build system use this list of commands and nothing else from your home directory: git clone https://github.com/OnionIoT/source.git 
 cd source
 git checkout openwrt-18.06
 ./scripts/feeds clean
 ./scripts/feeds update -a
 ./scripts/feeds install -ash scripts/onion-feed-setup.sh 
 python scripts/onion-setup-build.pysh scripts/onion-minimal-build.sh vi build_dir/host/u-boot-2018.03/include/compiler.h //comment out line 69 make -j9 
 
- 
					
					
					
					
 Thanks for the information but I failed to get the build working with Ubuntu 20.4 . 
 I started by updating the tools/findutils from 4.6.0 to 4.8.0 but soon decided to take another tack.I setup an Ubuntu 18.04 environment and the build worked fine using onion-minimal-build.sh. The standard build had lots of problems trying to find libraries related to stm32. I will keep a copy of the tool chain from 18.04 rather than trying to rebuild it with 20.4 Thanks for your time and help. 
 
- 
					
					
					
					
 @Lachlan-Peter what Ubuntu version are (were) you using? 20.??.?? 
 
- 
					
					
					
					
 I am building the source for cross development to Omega2/2+ from Ubuntu 20.4 but a number of errors occurs. Makefile:187: recipe for target 'alldig.o' failed 
 make: *** [alldig.o] Error 1
 make: Leaving directory '/root/source/build_dir/target-mipsel_24kc_musl/postfix-3.3.0/src/util'
 Makefile:92: recipe for target 'update' failed
 make[4]: *** [update] Error 1
 make[4]: Leaving directory '/root/source/build_dir/target-mipsel_24kc_musl/postfix-3.3.0'
 Makefile:265: recipe for target '/root/source/build_dir/target-mipsel_24kc_musl/postfix-3.3.0/.built' failed
 make[3]: *** [/root/source/build_dir/target-mipsel_24kc_musl/postfix-3.3.0/.built] Error 2
 make[3]: Leaving directory '/root/source/feeds/packages/mail/postfix'
 Command exited with non-zero status 2
 time: package/feeds/packages/postfix/compile#0.12#0.04#0.18
 package/Makefile:107: recipe for target 'package/feeds/packages/postfix/compile' failed
 make[2]: *** [package/feeds/packages/postfix/compile] Error 2
 make[2]: Leaving directory '/root/source'
 package/Makefile:103: recipe for target '/root/source/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile' failed
 make[1]: *** [/root/source/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
 make[1]: Leaving directory '/root/source'
 /root/source/include/toplevel.mk:216: recipe for target 'world' failed
 make: *** [world] Error 2Does anyone know how I can fix this problem: 
 I cannot find where in the make system this error comes from, so I cant determent the source of the problem.Any ideas would be well received 
 
- 
					
					
					
					
 @Ioannis please run make -j 1 V=s and post the log, Ubuntu 20 needs a few tweaks to work correctly but the log will show me what you need to do. 
 
- 
					
					
					
					
 @crispyoz I correct the issue with this commands : 
 ./scripts/feeds update onion
 ./scripts/feeds update -a
 from this repository https://github.com/OnionIoT/source