Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package armnn for openSUSE:Factory checked in at 2021-10-21 23:55:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/armnn (Old) and /work/SRC/openSUSE:Factory/.armnn.new.1890 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "armnn" Thu Oct 21 23:55:44 2021 rev:20 rq:926807 version:21.08 Changes: -------- --- /work/SRC/openSUSE:Factory/armnn/armnn.changes 2021-10-20 20:24:57.317402927 +0200 +++ /work/SRC/openSUSE:Factory/.armnn.new.1890/armnn.changes 2021-10-21 23:56:15.520048090 +0200 @@ -1,0 +2,7 @@ +Thu Oct 21 15:24:42 UTC 2021 - Guillaume GARDET <guillaume.gar...@opensuse.org> + +- Add upstream patch to fix uninitialized var error: + * febc20f.diff +- Remove most -Wno-error* flags which are not needed anymore + +------------------------------------------------------------------- New: ---- febc20f.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ armnn.spec ++++++ --- /var/tmp/diff_new_pack.rYpMI9/_old 2021-10-21 23:56:15.992048332 +0200 +++ /var/tmp/diff_new_pack.rYpMI9/_new 2021-10-21 23:56:15.996048334 +0200 @@ -79,6 +79,10 @@ Source1: armnn-rpmlintrc # PATCH-FIX-UPSTREAM - https://github.com/ARM-software/armnn/issues/499 Patch1: 96beb97.diff +# PATCH-FIX-UPSTREAM - https://github.com/ARM-software/armnn/issues/548 +Patch2: febc20f.diff +# PATCH-FIX-UPSTREAM - https://github.com/ARM-software/armnn/issues/581 +Patch3: 0011-update-doctest-for-glibc2.34.patch # PATCHES to add downstream ArmnnExamples binary - https://layers.openembedded.org/layerindex/recipe/87610/ Patch200: 0003-add-more-test-command-line-arguments.patch Patch201: 0005-add-armnn-mobilenet-test-example.patch @@ -86,7 +90,6 @@ Patch203: 0009-command-line-options-for-video-port-selection.patch Patch204: 0010-armnnexamples-update-for-19.08-modifications.patch Patch205: armnn-fix_find_opencv.patch -Patch206: 0011-update-doctest-for-glibc2.34.patch BuildRequires: ComputeLibrary-devel >= %{version_major}.%{version_minor} BuildRequires: cmake >= 3.0.2 BuildRequires: gcc-c++ @@ -353,6 +356,8 @@ %if %{pkg_vcmp tensorflow2-lite-devel >= 2.4} # This patch breaks build on TF < 2.4 %patch1 -p1 +%patch2 -p1 +%patch3 -p1 %endif %endif %if %{with armnn_extra_tests} @@ -365,7 +370,6 @@ # Add Boost log as downstream extra test requires it sed -i 's/ find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework)/find_package(Boost 1.59 REQUIRED COMPONENTS unit_test_framework filesystem system log program_options)/' ./cmake/GlobalConfig.cmake %endif -%patch206 -p1 %build %if %{with armnn_onnx} @@ -373,13 +377,10 @@ PROTO=$(find %{_libdir} -name onnx.proto) protoc $PROTO --proto_path=. --proto_path=%{_includedir} --proto_path=$(dirname $(find %{_libdir} -name onnx)) --cpp_out=./onnx_deps %endif -%if 0%{?suse_version} > 1500 -export CXX_ADDITIONAL_FLAGS="$CXX_ADDITIONAL_FLAGS -Wno-error=stringop-overread -Wno-error=uninitialized -Wno-error=array-bounds -Wno-error=deprecated-copy -Wno-error=deprecated-declarations" -%endif %cmake \ -DCMAKE_SKIP_RPATH=True \ -DSHARED_BOOST=1 \ - -DCMAKE_CXX_FLAGS:STRING="%{optflags} -pthread $CXX_ADDITIONAL_FLAGS -Wno-error=implicit-fallthrough -Wno-error=unused-parameter" \ + -DCMAKE_CXX_FLAGS:STRING="%{optflags} -pthread -Wno-error=stringop-overread -Wno-error=deprecated-declarations" \ -DBOOST_LIBRARYDIR=%{_libdir} \ %if %{with armnn_onnx} -DBUILD_ONNX_PARSER=ON \ ++++++ febc20f.diff ++++++ >From febc20fef1490a4ca9f7b0264a32b271760e370e Mon Sep 17 00:00:00 2001 From: Diego Lopez Recas <diego.lopezre...@arm.com> Date: Thu, 16 Sep 2021 17:25:04 +0100 Subject: [PATCH] Fix undefined reinterpret_cast in BFloat16.hpp This fixes gcc builds with version 8 or above. Signed-off-by: Diego Lopez Recas <diego.lopezre...@arm.com> Change-Id: I4b886854f4f3391f766e95c3478d3a5f9661507a --- diff --git a/src/armnnUtils/BFloat16.hpp b/src/armnnUtils/BFloat16.hpp index 52344db..a293cd4 100644 --- a/src/armnnUtils/BFloat16.hpp +++ b/src/armnnUtils/BFloat16.hpp @@ -7,6 +7,7 @@ #include <ostream> #include <cmath> +#include <cstring> #include <stdint.h> namespace armnn @@ -85,8 +86,10 @@ float ToFloat32() const { const uint32_t u32 = static_cast<uint32_t>(m_Value << 16u); - const float* f32 = reinterpret_cast<const float*>(&u32); - return *f32; + float f32; + static_assert(sizeof u32 == sizeof f32, ""); + std::memcpy(&f32, &u32, sizeof u32); + return f32; } uint16_t Val() const