Failure to build gateway os on win 10

Hello,

I’m trying to build gateway-os-base using the docker method on windows 10. I’m following the exact steps described here: GitHub - chirpstack/chirpstack-gateway-os: Yocto based gateway images including ChirpStack components..

Everything is going well, except for a reccurent issue at the last stage “bitbake -k chirpstack-gateway-os-base”: 2 packages seem to fail to compile. Do you have a clue what I might be doing wrong?

It would be great if you could help as I really need to add some features to the base image (which will be yet another challenge for me) but if I can’t even manage compiling the vanilla version I guess my chances are very limited to improve on it :wink:

What seems like the relevant logs:

**** Summary
NOTE: Tasks Summary: Attempted 2357 tasks of which 426 didn’t need to be rerun and 2 failed.

Summary: 2 tasks failed:
/chirpstack-gateway-os/layers/bsp/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_5.15.bb:do_fetch
/chirpstack-gateway-os/layers/openembedded/openembedded-core/meta/recipes-devtools/binutils/binutils-cross_2.38.bb:do_compile
Summary: There were 15 WARNING messages.
Summary: There were 4 ERROR messages, returning a non-zero exit code.
yocto@5fe7d51e2e45:/build$

**** 1
WARNING: linux-raspberrypi-1_5.15.34+gitAUTOINC+e1b976ee4f_0086da6acd-r0 do_fetch: Failed to fetch URL git://github.com/raspberrypi/linux.git;name=machine;branch=rpi-5.15.y;protocol=https, attempting MIRRORS if available
ERROR: linux-raspberrypi-1_5.15.34+gitAUTOINC+e1b976ee4f_0086da6acd-r0 do_fetch: Fetcher failure: Fetch command export PSEUDO_DISABLED=1; export PATH=“/chirpstack-gateway-os/layers/openembedded/openembedded-core/scripts:/build/tmp/raspberrypi3-glibc/work/raspberrypi3-oe-linux-gnueabi/linux-raspberrypi/1_5.15.34+gitAUTOINC+e1b976ee4f_0086da6acd-r0/recipe-sysroot-native/usr/bin/arm-oe-linux-gnueabi:/build/tmp/raspberrypi3-glibc/work/raspberrypi3-oe-linux-gnueabi/linux-raspberrypi/1_5.15.34+gitAUTOINC+e1b976ee4f_0086da6acd-r0/recipe-sysroot/usr/bin/crossscripts:/build/tmp/raspberrypi3-glibc/work/raspberrypi3-oe-linux-gnueabi/linux-raspberrypi/1_5.15.34+gitAUTOINC+e1b976ee4f_0086da6acd-r0/recipe-sysroot-native/usr/sbin:/build/tmp/raspberrypi3-glibc/work/raspberrypi3-oe-linux-gnueabi/linux-raspberrypi/1_5.15.34+gitAUTOINC+e1b976ee4f_0086da6acd-r0/recipe-sysroot-native/usr/bin:/build/tmp/raspberrypi3-glibc/work/raspberrypi3-oe-linux-gnueabi/linux-raspberrypi/1_5.15.34+gitAUTOINC+e1b976ee4f_0086da6acd-r0/recipe-sysroot-native/sbin:/build/tmp/raspberrypi3-glibc/work/raspberrypi3-oe-linux-gnueabi/linux-raspberrypi/1_5.15.34+gitAUTOINC+e1b976ee4f_0086da6acd-r0/recipe-sysroot-native/bin:/chirpstack-gateway-os/bitbake/bin:/build/tmp/raspberrypi3-glibc/hosttools”; export HOME=“/home/yocto”; LANG=C git -c core.fsyncobjectfiles=0 -c gc.autoDetach=false -c core.pager=cat clone --bare --mirror GitHub - raspberrypi/linux: Kernel source tree for Raspberry Pi-provided kernel builds. Issues unrelated to the linux kernel should be posted on the community forum at https://forums.raspberrypi.com/ /build/downloads/git2/github.com.raspberrypi.linux.git --progress failed with exit code 128, no output
ERROR: linux-raspberrypi-1_5.15.34+gitAUTOINC+e1b976ee4f_0086da6acd-r0 do_fetch: Bitbake Fetcher Error: FetchError(‘Unable to fetch URL from any source.’, ‘git://github.com/raspberrypi/linux.git;name=machine;branch=rpi-5.15.y;protocol=https’)
ERROR: Logfile of failure stored in: /build/tmp/raspberrypi3-glibc/work/raspberrypi3-oe-linux-gnueabi/linux-raspberrypi/1_5.15.34+gitAUTOINC+e1b976ee4f_0086da6acd-r0/temp/log.do_fetch.3103
ERROR: Task (/chirpstack-gateway-os/layers/bsp/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_5.15.bb:do_fetch) failed with exit code ‘1’

**** 2 [NB: I can’t put the log to the end due to the message limitation in the forum]
ERROR: binutils-cross-arm-2.38-r0 do_compile: oe_runmake failed
ERROR: binutils-cross-arm-2.38-r0 do_compile: ExecutionError(‘/build/tmp/raspberrypi3-glibc/work/x86_64-linux/binutils-cross-arm/2.38-r0/temp/run.do_compile.31101’, 1, None, None)
ERROR: Logfile of failure stored in: /build/tmp/raspberrypi3-glibc/work/x86_64-linux/binutils-cross-arm/2.38-r0/temp/log.do_compile.31101
Log data follows:
| DEBUG: Executing python function autotools_aclocals
| DEBUG: SITE files [‘endian-little’, ‘common-linux’, ‘common-glibc’, ‘bit-64’, ‘x86_64-linux’, ‘common’]
| DEBUG: Python function autotools_aclocals finished
| DEBUG: Executing shell function do_compile
| NOTE: make -j 8
| make[1]: Entering directory ‘/build/tmp/raspberrypi3-glibc/work/x86_64-linux/binutils-cross-arm/2.38-r0/git/build.x86_64-linux.arm-oe-linux-gnueabi’
| make[1]: Nothing to be done for ‘all-target’.
| mkdir -p – ./zlib
| mkdir -p – ./libiberty
| mkdir -p – ./intl
| mkdir -p – ./etc
| mkdir -p – ./libbacktrace
| Configuring in ./intl
| Configuring in ./zlib
| Configuring in ./etc
| Configuring in ./libiberty
| Configuring in ./libbacktrace
| configure: creating cache ./config.cache
| checking for x86_64-linux-gcc… gcc
| configure: creating cache ./config.cache
| checking whether to enable maintainer-specific portions of Makefiles… no
| checking for makeinfo… makeinfo --split-size=5000000
| configure: creating cache ./config.cache
| configure: creating cache ./config.cache
| checking whether to enable maintainer-specific portions of Makefiles… no
| checking for a BSD-compatible install… /build/tmp/raspberrypi3-glibc/hosttools/install -c
| checking whether build environment is sane… checking build system type… yes
| checking for perl… perl
| configure: creating cache ./config.cache
| x86_64-pc-linux-gnu
| checking host system type… checking for a thread-safe mkdir -p… checking build system type… /build/tmp/raspberrypi3-glibc/hosttools/mkdir -p
| checking for gawk… gawk
| checking whether make sets $(MAKE)… checking build system type… x86_64-pc-linux-gnu
| checking target system type… x86_64-pc-linux-gnu
| checking host system type… x86_64-pc-linux-gnu
| checking host system type… arm-oe-linux-gnueabi
| yes
| checking for x86_64-linux-gcc… gcc
| checking whether make supports nested variables… checking whether the C compiler works… x86_64-pc-linux-gnu
| checking target system type… x86_64-pc-linux-gnu
| checking for x86_64-linux-ar… ar
| checking for x86_64-linux-ranlib… ranlib -D
| checking for -plugin option… yes
| arm-oe-linux-gnueabi
| checking for a BSD-compatible install… /build/tmp/raspberrypi3-glibc/hosttools/install -c
| checking whether build environment is sane… checking for x86_64-linux-ar… (cached) ar
| checking whether make supports nested variables… (cached) yes
| yes
| /chirpstack-gateway-os/layers/openembedded/openembedded-core/scripts/cross-intercept/ar: line 1: …/native-intercept/ar: No such file or directory
| configure: WARNING: Failed: ar --plugin /usr/lib/gcc/x86_64-linux-gnu/8/liblto_plugin.so rc
| no
| checking whether to install libiberty headers and static library… no
| configure: target_header_dir =
| checking for x86_64-linux-gcc… gcc
| checking for a thread-safe mkdir -p… configure: updating cache ./config.cache
| yes
| checking for C compiler default output file name… a.out
| /build/tmp/raspberrypi3-glibc/hosttools/mkdir -p
| checking for gawk… gawk
| checking whether make sets $(MAKE)… checking for suffix of executables… checking that generated files are newer than configure… checking whether the C compiler works… yes
| checking whether make supports nested variables… done
| configure: creating ./config.status
| yes
| yes
| checking for C compiler default output file name… a.out
| checking for suffix of executables… checking whether make supports nested variables… (cached) yes
| checking whether to enable maintainer-specific portions of Makefiles… no
| checking for x86_64-linux-gcc… gcc
|
| checking whether we are cross compiling…
| checking whether we are cross compiling… checking whether the C compiler works… no
| checking for suffix of object files… o
| checking whether we are using the GNU C compiler… no
| checking for suffix of object files… yes
| checking for C compiler default output file name… a.out
| checking for suffix of executables… checking whether the C compiler works… yes
| checking whether gcc accepts -g… o
| checking whether we are using the GNU C compiler…
| checking whether we are cross compiling… yes
| checking whether gcc accepts -g… yes
| checking for gcc option to accept ISO C89… yes
| checking for C compiler default output file name… a.out
| checking for suffix of executables… config.status: creating Makefile
| none needed
| checking how to run the C preprocessor… gcc -E
| no
| yes
| checking for gcc option to accept ISO C89… checking for suffix of object files…
| o
| checking whether we are using the GNU C compiler… checking whether we are cross compiling… none needed
| checking whether gcc understands -c and -o together… checking for grep that handles long lines and -e… /build/tmp/raspberrypi3-glibc/hosttools/grep
| checking for egrep… /build/tmp/raspberrypi3-glibc/hosttools/grep -E
| checking for ANSI C header files… yes
| checking whether gcc accepts -g… yes
| checking how to run the C preprocessor… gcc -E
| no
| yes
| checking for gcc option to accept ISO C89… make[2]: Entering directory ‘/build/tmp/raspberrypi3-glibc/work/x86_64-linux/binutils-cross-arm/2.38-r0/git/build.x86_64-linux.arm-oe-linux-gnueabi/etc’
| make[2]: Nothing to be done for ‘all’.
| make[2]: Leaving directory ‘/build/tmp/raspberrypi3-glibc/work/x86_64-linux/binutils-cross-arm/2.38-r0/git/build.x86_64-linux.arm-oe-linux-gnueabi/etc’
| checking for suffix of object files… checking for grep that handles long lines and -e… o
| checking whether we are using the GNU C compiler… /build/tmp/raspberrypi3-glibc/hosttools/grep
| checking for egrep… none needed
| checking how to run the C preprocessor… gcc -E
| /build/tmp/raspberrypi3-glibc/hosttools/grep -E
| checking for ANSI C header files… yes
| checking whether gcc accepts -g… yes
| checking for gcc option to accept ISO C89… yes
| checking for sys/types.h… checking for grep that handles long lines and -e… /build/tmp/raspberrypi3-glibc/hosttools/grep
| checking for egrep… /build/tmp/raspberrypi3-glibc/hosttools/grep -E
| checking for ANSI C header files… none needed
| checking whether gcc understands -c and -o together… yes
| checking for sys/stat.h… yes
| yes
| checking for sys/types.h… checking for stdlib.h… yes
| checking for style of include used by make… GNU
| checking dependency style of gcc … none
| checking how to print strings… yes
| printf
| checking for a sed that does not truncate output… /build/tmp/raspberrypi3-glibc/hosttools/sed
| checking for grep that handles long lines and -e… yes
| checking for sys/stat.h… /build/tmp/raspberrypi3-glibc/hosttools/grep
| checking for egrep… /build/tmp/raspberrypi3-glibc/hosttools/grep -E
| checking for fgrep… /build/tmp/raspberrypi3-glibc/hosttools/grep -F
| checking for ld used by gcc … ld
| checking if the linker (ld ) is GNU ld… checking for string.h… yes
| checking for BSD- or MS-compatible name lister (nm)… /build/tmp/raspberrypi3-glibc/hosttools/nm -B
| checking the name lister (/build/tmp/raspberrypi3-glibc/hosttools/nm -B) interface… yes
| yes
| checking for stdlib.h… checking for sys/types.h… BSD nm
| checking whether ln -s works… yes
| checking the maximum length of command line arguments… yes
| 1572864
| checking whether the shell understands some XSI constructs… checking for memory.h… yes
| yes
| checking whether the shell understands “+=”… yes
| checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format… func_convert_file_noop
| checking how to convert x86_64-pc-linux-gnu file names to toolchain format… func_convert_file_noop
| checking for ld option to reload object files… -r
| checking for x86_64-linux-objdump… objdump
| checking how to recognize dependent libraries… pass_all
| checking for x86_64-linux-dlltool… dlltool
| checking how to associate runtime and link libraries… printf %s\n
| yes
| checking for string.h… checking for sys/stat.h… checking for x86_64-linux-ar… ar
| yes
| checking for strings.h… /chirpstack-gateway-os/layers/openembedded/openembedded-core/scripts/cross-intercept/ar: line 1: …/native-intercept/ar: No such file or directory
| configure: WARNING: Failed: ar --plugin /usr/lib/gcc/x86_64-linux-gnu/8/liblto_plugin.so rc
| checking for archiver @FILE support… yes
| yes
| checking for stdlib.h… checking for memory.h… yes
| checking for inttypes.h… no
| checking for x86_64-linux-strip… strip
| checking for x86_64-linux-ranlib… ranlib -D
| yes
| checking command to parse /build/tmp/raspberrypi3-glibc/hosttools/nm -B output from gcc object… yes
| checking for string.h… checking for strings.h… yes
| yes
| checking for stdint.h… checking for memory.h… yes
| checking for inttypes.h… yes
| checking for unistd.h… yes
| yes
| ok
| checking for sysroot… checking for strings.h… /build/tmp/raspberrypi3-glibc/work/x86_64-linux/binutils-cross-arm/2.38-r0/recipe-sysroot-native
| yes
| checking minix/config.h usability… checking for stdint.h… checking for x86_64-linux-mt… no
| checking for mt… no
| checking if : is a manifest tool… no
| checking how to run the C preprocessor… gcc -E
| yes
| yes
| no
| checking minix/config.h presence… checking for inttypes.h… checking for unistd.h… no
| checking for minix/config.h… no
| checking whether it is safe to define EXTENSIONS… checking for ANSI C header files… yes
| checking minix/config.h usability… yes
| checking for stdint.h… yes
| checking whether make sets $(MAKE)… yes
| no
| checking minix/config.h presence… yes
| checking for a BSD-compatible install… /build/tmp/raspberrypi3-glibc/hosttools/install -c
| checking whether NLS is requested… no
| checking for msgfmt… no
| checking for gmsgfmt… :
| checking for unistd.h… checking for xgettext… no
| no
| checking for minix/config.h… no
| checking whether it is safe to define EXTENSIONS… checking for msgmerge… no
| checking build system type… yes
| yes
| checking for a BSD-compatible install… /build/tmp/raspberrypi3-glibc/hosttools/install -c
| checking whether build environment is sane… checking minix/config.h usability… x86_64-pc-linux-gnu
| checking host system type… yes
| x86_64-pc-linux-gnu
| checking for x86_64-linux-ranlib… ranlib -D
| checking for library containing strerror… checking for a thread-safe mkdir -p… no
| checking minix/config.h presence… /build/tmp/raspberrypi3-glibc/hosttools/mkdir -p
| checking for gawk… gawk
| checking whether make sets $(MAKE)… yes
| checking for sys/types.h… yes
| checking whether make supports nested variables… yes
| no
| checking for minix/config.h… no
| checking whether it is safe to define EXTENSIONS… yes
| checking whether to enable maintainer-specific portions of Makefiles… no
| checking for x86_64-linux-gcc… (cached) gcc
| none required
| checking for an ANSI C-conforming const… checking for sys/stat.h… yes
| checking for special C compiler options needed for large files… no
| checking for _FILE_OFFSET_BITS value needed for large files… yes
| checking for inline… yes
| no
| inline
| checking for off_t… checking whether gcc supports -W… checking for stdlib.h… yes
| yes
| checking whether gcc supports -Wall… checking whether we are using the GNU C compiler… (cached) yes
| checking whether gcc accepts -g… (cached) yes
| checking for gcc option to accept ISO C89… (cached) none needed
| checking whether gcc understands -c and -o together… (cached) yes
| checking for x86_64-linux-ranlib… ranlib -D
| checking for gawk… (cached) gawk
| checking for dwz… no
| checking how to print strings… checking for string.h… printf
| checking for a sed that does not truncate output… /build/tmp/raspberrypi3-glibc/hosttools/sed
| checking for fgrep… /build/tmp/raspberrypi3-glibc/hosttools/grep -F
| checking for ld used by gcc … yes
| ld
| checking if the linker (ld ) is GNU ld… yes
| checking whether gcc supports -Wwrite-strings… yes
| checking for BSD- or MS-compatible name lister (nm)… /build/tmp/raspberrypi3-glibc/hosttools/nm -B
| checking the name lister (/build/tmp/raspberrypi3-glibc/hosttools/nm -B) interface… yes
| checking for size_t… checking for memory.h… yes
| BSD nm
| checking whether ln -s works… yes
| checking the maximum length of command line arguments… checking whether gcc supports -Wc+±compat… yes
| 1572864
| checking whether the shell understands some XSI constructs… yes
| checking whether the shell understands “+=”… yes
| checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format… func_convert_file_noop
| checking how to convert x86_64-pc-linux-gnu file names to toolchain format… func_convert_file_noop
| checking for ld option to reload object files… -r
| checking for x86_64-linux-objdump… objdump
| checking how to recognize dependent libraries… pass_all
| checking for x86_64-linux-dlltool… dlltool
| checking how to associate runtime and link libraries… printf %s\n
| checking for strings.h… checking for x86_64-linux-ar… ar
| yes
| checking whether gcc supports -Wstrict-prototypes… yes
| yes
| /chirpstack-gateway-os/layers/openembedded/openembedded-core/scripts/cross-intercept/ar: line 1: …/native-intercept/ar: No such file or directory
| checking for working alloca.h… configure: WARNING: Failed: ar --plugin /usr/lib/gcc/x86_64-linux-gnu/8/liblto_plugin.so rc
| checking for archiver @FILE support… checking for inttypes.h… yes
| yes
| checking whether gcc supports -Wshadow=local… no
| checking for x86_64-linux-strip… strip
| checking for x86_64-linux-ranlib… (cached) ranlib -D
| checking for stdint.h… checking command to parse /build/tmp/raspberrypi3-glibc/hosttools/nm -B output from gcc object… yes
| checking for alloca… yes
| yes
| checking whether gcc supports -pedantic … checking for unistd.h… yes
| checking for stdlib.h… (cached) yes
| yes
| checking whether gcc and cc understand -c and -o together… yes
| checking for dlfcn.h… checking for unistd.h… (cached) yes
| checking for sys/param.h… yes
| ok
| checking for objdir… checking for sysroot… /build/tmp/raspberrypi3-glibc/work/x86_64-linux/binutils-cross-arm/2.38-r0/recipe-sysroot-native
| .libs
| yes
| checking for an ANSI C-conforming const… yes
| checking for x86_64-linux-mt… no
| checking for mt… no
| checking if : is a manifest tool… checking for getpagesize… no
| checking for dlfcn.h… yes
| checking for inline… inline
| checking whether byte ordering is bigendian… checking if gcc supports -fno-rtti -fno-exceptions… yes
| checking for objdir… .libs
| yes
| checking for working mmap… no
| checking for gcc option to produce PIC… -fPIC -DPIC
| checking if gcc PIC flag -fPIC -DPIC works… yes
| checking if gcc static flag -static works… no
| checking for a BSD-compatible install… /build/tmp/raspberrypi3-glibc/hosttools/install -c
| checking for CET support… checking if gcc supports -fno-rtti -fno-exceptions… yes
| checking whether we are using the GNU C Library 2.1 or newer… no
| checking for gcc option to produce PIC… -fPIC -DPIC
| checking if gcc PIC flag -fPIC -DPIC works… yes
| checking whether integer division by zero raises SIGFPE… yes
| checking if gcc supports -c -o file.o… yes
| checking if gcc static flag -static works… yes
| checking for inttypes.h… yes
| checking if gcc supports -c -o file.o… yes
| checking for stdint.h… yes
| checking if gcc supports -c -o file.o… (cached) yes
| checking whether the gcc linker (ld -m elf_x86_64) supports shared libraries… yes
| checking for unsigned long long… yes
| yes
| checking whether -lc should be explicitly linked in… yes
| checking if gcc supports -c -o file.o… (cached) yes
| checking whether the gcc linker (ld -m elf_x86_64) supports shared libraries… checking for sys/file.h… yes
| yes
| checking whether -lc should be explicitly linked in… checking for sys/param.h… no
| checking dynamic linker characteristics… yes
| checking for inttypes.h… yes
| no
| checking dynamic linker characteristics… checking for limits.h… yes
| checking whether the inttypes.h PRIxNN macros are broken… yes
| no
| checking for ld used by GCC… ld
| checking if the linker (ld ) is GNU ld… checking for stdlib.h… (cached) yes
| yes
| checking for shared library run path origin… checking for malloc.h… yes
| GNU/Linux ld.so
| checking how to hardcode library paths into programs… immediate
| checking whether stripping libraries is possible… checking for string.h… (cached) yes
| yes
| checking if libtool supports shared libraries… yes
| checking whether to build shared libraries… yes
| checking whether to build static libraries… yes
| checking how to run the C preprocessor… gcc -E
| checking for unistd.h… (cached) yes
| GNU/Linux ld.so
| checking how to hardcode library paths into programs… immediate
| checking whether stripping libraries is possible… yes
| checking if libtool supports shared libraries… yes
| checking whether to build shared libraries… yes
| checking whether to build static libraries… yes
| checking for special C compiler options needed for large files… no
| checking for _FILE_OFFSET_BITS value needed for large files… checking for strings.h… (cached) yes
| done
| checking for sys/time.h… no
| checking unwind.h usability… yes
| checking argz.h usability… checking for stdlib.h… (cached) yes
| checking for time.h… checking for unistd.h… (cached) yes
| yes
| checking argz.h presence… yes
| checking for sys/param.h… yes
| checking unwind.h presence… yes
| checking for argz.h… yes
| checking for sys/resource.h… checking limits.h usability… yes
| checking for unwind.h… yes
| checking for _Unwind_Backtrace… yes
| checking for sys/stat.h… yes
| (cached) yes
| checking for getpagesize… yes
| checking limits.h presence… checking for sys/mman.h… yes
| checking for limits.h… yes
| yes
| checking for -funwind-tables option… yes
| checking locale.h usability… checking for fcntl.h… yes
| checking for -frandom-seed=string option… yes
| yes
| checking for working mmap… yes
| yes
| checking locale.h presence… checking for alloca.h… checking whether gcc supports -W… yes
| yes
| checking for locale.h… yes
| checking nl_types.h usability… checking for sys/pstat.h… yes
| checking whether gcc supports -Wall… no
| checking for sys/sysmp.h… yes
| yes
| checking nl_types.h presence… checking whether gcc supports -Wwrite-strings… no
| yes
| checking for sys/sysinfo.h… checking for memcpy… yes
| checking for nl_types.h… yes
| yes
| yes
| checking malloc.h usability… checking for machine/hal_sysinfo.h… checking whether gcc supports -Wstrict-prototypes… yes
| no
| yes
| checking malloc.h presence… checking for sys/table.h… checking for strerror… yes
| yes
| checking for malloc.h… yes
| checking whether gcc supports -Wmissing-prototypes… checking stddef.h usability… no
| checking for sys/sysctl.h… yes
| yes
| yes
| checking whether gcc supports -Wold-style-definition… checking for unistd.h… (cached) yes
| yes
| checking stddef.h presence… checking for sys/systemcfg.h… yes
| checking for stddef.h… yes
| no
| checking for stdlib.h… (cached) yes
| checking for stdint.h… (cached) yes
| yes
| configure: updating cache ./config.cache
| checking whether gcc supports -Wmissing-format-attribute… checking for string.h… (cached) yes
| checking that generated files are newer than configure… done
| configure: creating ./config.status
| checking for stdio_ext.h… yes
| checking for unistd.h… (cached) yes
| checking whether gcc supports -Wcast-qual… yes
| checking for sys/param.h… (cached) yes
| checking for process.h… yes
| checking for _Unwind_GetIPInfo… checking for feof_unlocked… no
| checking for sys/prctl.h… yes
| yes
| checking for CET support… yes
| checking for sys/wait.h that is POSIX.1 compatible… checking for fgets_unlocked… yes
| checking whether time.h and sys/time.h may both be included… yes
| checking whether errno must be declared… yes
| checking for getc_unlocked… no
| checking size of int… yes
| checking for getcwd… 4
| checking size of long… yes
| checking __sync extensions… yes
| 8
| checking size of size_t… checking for getegid… yes
| checking __atomic extensions… 8
| checking for long long… yes
| yes
| checking output filetype… checking for geteuid… elf64
| looking for a compliant stdint.h in stdint.h, checking for uintmax_t… yes
| yes
| checking size of long long… checking for getgid… yes
| checking for uintptr_t… yes
| 8
| checking for a 64-bit type… checking for getuid… yes
| checking for int_least32_t… uint64_t
| checking for intptr_t… yes
| checking for mempcpy… yes
| checking for int_fast32_t… yes
| checking for uintptr_t… yes
| checking for munmap… yes
| checking for uint64_t… yes
| checking for putenv… yes
| checking for ssize_t… yes
| checking what to include in gstdint.h… stdint.h (already complete)
| checking sys/mman.h usability… yes
| yes
| checking sys/mman.h presence… checking for setenv… yes
| checking for pid_t… yes
| checking for sys/mman.h… yes
| checking for mmap… yes
| checking for setlocale… yes
| yes
| checking for library containing strerror… checking link.h usability… yes
| checking for stpcpy… yes
| checking link.h presence… none required
| checking for asprintf… yes
| checking for link.h… yes
| checking for dl_iterate_phdr… yes
| yes
| checking for strcasecmp… checking for atexit… yes
| checking mach-o/dyld.h usability… yes
| no
| checking mach-o/dyld.h presence… yes
| checking for strdup… checking for basename… no
| checking for mach-o/dyld.h… no
| checking sys/ldr.h usability… yes
| yes
| no
| checking sys/ldr.h presence… checking for strtoul… checking for bcmp… no
| checking for sys/ldr.h… no
| checking for fcntl… yes
| config.status: creating Makefile
| yes
| yes
| checking for tsearch… checking whether strnlen is declared… checking for bcopy… config.status: executing depfiles commands
| config.status: executing libtool commands
| yes
| yes
| checking whether getpagesize is declared… checking for __argz_count… yes
| yes
| checking for lstat… checking for bsearch… yes
| yes
| checking for __argz_stringify… yes
| checking for bzero… checking for readlink… yes
| checking for __argz_next… yes
| make[2]: Entering directory ‘/build/tmp/raspberrypi3-glibc/work/x86_64-linux/binutils-cross-arm/2.38-r0/git/build.x86_64-linux.arm-oe-linux-gnueabi/zlib’

I’ve tried building it on a Linux VM and face the same issue. Am I the only person in the world not able to build gateway OS using the defined docker method step by step?

That is (one) of the errors that I can see in your logs. That looks like a network issue.

Thanks for taking the time to answer.
Well, it looks like it’s a network issue but it probably really isn’t. Or let’s say it would be very strange that just one package out of them all can’t download (also I’ve looked at the details it looks like it is starting to donwload for minutes and stopping on the way). Does also not explain why the other one is not compiling.

So, at the end, here are my findings:

  • this was compiled (or actually not…)n on win 10 (directly with docker) and it didn’t work
  • I then tried on an Unbuntu VM in virtualbox on the same win10 machine: exactly the same 2 errors
  • I then tried on an unbuntu barebone machine connected to the exact same network: then it finally worked without the errors

Docker is a nightmare to make work on Ubuntu.

Now, there is an issue I detected on the sandbox LoRaGo PORT configuration but I will open another topic to not confuse everything.