Problem building gettext and clang? Anyone else experiencing this or not?

I’m using the latest and updated version of Ubuntu 20.04 with a fresh install and trying to build the relase version 3.3.0 ( a0a2e5c )

I had a problem with gettext, that it failed…

Currently this is the files

https://github.com/brocaar/chirpstack-gateway-os/tree/master/layers/openembedded 
openembedded-core @ 6fa967f 

If I change the version to ea886d5 it seems to work.


I also have build problems with clang, but there it seems to be the latest version…

ERROR: Task (virtual:native:/chirpstack-gateway-os/layers/meta-clang/recipes-devtools/clang/clang_git.bb:do_compile) failed with exit code '1'

and it seems to be this a bit higher up in the output


FAILED: lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/LLJIT.cpp.o
| /build/tmp/raspberrypi/raspberrypi3-glibc/hosttools/g++  -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/ExecutionEngine/Orc -I/build/tmp/raspberrypi/raspberrypi3-glibc/work-shared/llvm-project-source-10.0.1-r0/git/llvm/lib/ExecutionEngine/Orc -Iinclude -I/build/tmp/raspberrypi/raspberrypi3-glibc/work-shared/llvm-project-source-10.0.1-r0/git/llvm/include -isystem/build/tmp/raspberrypi/raspberrypi3-glibc/work/x86_64-linux/clang-native/10.0.1-r0/recipe-sysroot-native/usr/include -O2 -pipe   -fPIC -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-class-memaccess -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wno-comment -fdiagnostics-color -ffunction-sections -fdata-sections -DNDEBUG     -std=c++14 -MD -MT lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/LLJIT.cpp.o -MF lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/LLJIT.cpp.o.d -o lib/ExecutionEngine/Orc/CMakeFiles/LLVMOrcJIT.dir/LLJIT.cpp.o -c /build/tmp/raspberrypi/raspberrypi3-glibc/work-shared/llvm-project-source-10.0.1-r0/git/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
| {standard input}: Assembler messages:
| {standard input}:2990: Warning: end of file not at end of a line; newline inserted
| {standard input}:4476: Error: number of operands mismatch for `test'
| {standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
| g++: fatal error: Killed signal terminated program cc1plus
| compilation terminated.

Setting up the exact same environment on a fresh install of Ubuntu 18.04.05 LTS with updates and 32Gb of RAM and it passed!

Gettext passed all stages…
gettext-native-0.20.1-r0 do_configure - 6m14s (pid 18956)
gettext-native-0.20.1-r0 do_compile - 1m8s (pid 30168)
gettext-native-0.20.1-r0 do_install - 15s (pid 20074)

clang-native-10.0.1-r0 do_compile (pid 5844) 2% |#####
Failed with 16Gb memory on virtual server.

clang-native-10.0.1-r0 do_compile (pid 130) 48% |##########################################################################################################
Passed with 32Gb memory on virtal server. Max was 32.212.252 bytes according to not so accurate graphs.

There are some warnings

WARNING: libloragw-sx1301-5.0.1-r8 do_patch: Fuzz detected:

Applying patch loragw_spi.native.c.patch
patching file libloragw/src/loragw_spi.native.c
Hunk #1 succeeded at 53 with fuzz 1.

The context lines in the patches can be updated with devtool:

    devtool modify libloragw-sx1301
    devtool finish --force-patch-refresh libloragw-sx1301 <layer_path>

Don't forget to review changes done by devtool!

WARNING: libloragw-sx1301-5.0.1-r8 do_patch: QA Issue: Patch log indicates that patches do not apply cleanly. [patch-fuzz]
WARNING: chirpstack-gateway-bridge-3.9.1-r2 do_package: QA Issue: File '/usr/bin/chirpstack-gateway-bridge' from chirpstack-gateway-bridge was already stripped, this will prevent future debugging! [already-stripped]
WARNING: dbus-1.12.16-r0 do_package_qa: QA Issue: dbus: /usr/libexec/dbus-daemon-launch-helper is owned by gid 999, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]
WARNING: linux-raspberrypi-1_4.19.126+gitAUTOINC+f6b3ac28f0-r0 do_package: Manifest /build/tmp/raspberrypi/raspberrypi3-glibc/sstate-control/manifest-x86_64_x86_64-nativesdk-rootfs-overlay-initramfs.packagedata not found in raspberrypi3 cortexa7t2hf-neon-vfpv4 cortexa7t2hf-neon cortexa7t2hf-vfp cortexa7hf-neon-vfpv4 cortexa7hf-neon cortexa7hf-vfp armv7vet2hf-neon-vfpv4 armv7vehf-neon-vfpv4 armv7vet2hf-neon armv7vehf-neon armv7vet2hf-vfp armv7vehf-vfp armv7at2hf-vfp armv7ahf-vfp armv6thf-vfp armv6hf-vfp armv5tehf-vfp armv5ehf-vfp armv5thf-vfp armv5hf-vfp allarch x86_64_x86_64-nativesdk (variant '')?
WARNING: wireguard-module-1.0.20200401-r0 do_package: Manifest /build/tmp/raspberrypi/raspberrypi3-glibc/sstate-control/manifest-x86_64_x86_64-nativesdk-rootfs-overlay-initramfs.packagedata not found in raspberrypi3 cortexa7t2hf-neon-vfpv4 cortexa7t2hf-neon cortexa7t2hf-vfp cortexa7hf-neon-vfpv4 cortexa7hf-neon cortexa7hf-vfp armv7vet2hf-neon-vfpv4 armv7vehf-neon-vfpv4 armv7vet2hf-neon armv7vehf-neon armv7vet2hf-vfp armv7vehf-vfp armv7at2hf-vfp armv7ahf-vfp armv6thf-vfp armv6hf-vfp armv5tehf-vfp armv5ehf-vfp armv5thf-vfp armv5hf-vfp allarch x86_64_x86_64-nativesdk (variant '')?
WARNING: wireguard-tools-1.0.20200319-r0 do_package: Manifest /build/tmp/raspberrypi/raspberrypi3-glibc/sstate-control/manifest-x86_64_x86_64-nativesdk-rootfs-overlay-initramfs.packagedata not found in raspberrypi3 cortexa7t2hf-neon-vfpv4 cortexa7t2hf-neon cortexa7t2hf-vfp cortexa7hf-neon-vfpv4 cortexa7hf-neon cortexa7hf-vfp armv7vet2hf-neon-vfpv4 armv7vehf-neon-vfpv4 armv7vet2hf-neon armv7vehf-neon armv7vet2hf-vfp armv7vehf-vfp armv7at2hf-vfp armv7ahf-vfp armv6thf-vfp armv6hf-vfp armv5tehf-vfp armv5ehf-vfp armv5thf-vfp armv5hf-vfp allarch x86_64_x86_64-nativesdk (variant '')?

Now I’ll try the full install!

The build environment Brocaar use has been documented in https://github.com/brocaar/chirpstack-gateway-os/commit/cf8471962f5a061f082869e1e728f7fe4a58661e