Source: opm-common Version: 2023.04+ds-2 Tags: patch Forwarded: https://github.com/OPM/opm-common/issues/3620
Hello, as per upstream ticket, there is a build failure (test failure) on ppc64 and ppc64el (confirmed on perotto and platti porter machines) A simple fix is to make sure that O3 is not used on ppc64el (I don't care about ppc64 because it has ~12 test failures regardless of the optimization level used). This is the patch I used in Ubuntu diff -Nru opm-common-2023.04+ds/debian/changelog opm-common-2023.04+ds/debian/changelog --- opm-common-2023.04+ds/debian/changelog 2023-07-17 13:05:05.000000000 +0000 +++ opm-common-2023.04+ds/debian/changelog 2023-08-04 06:33:40.000000000 +0000 @@ -1,3 +1,9 @@ +opm-common (2023.04+ds-2.1) unstable; urgency=medium + + * Reduce optimization on ppc64el to -O2 (Closes: #-1) + + -- Gianfranco Costamagna <locutusofb...@debian.org> Fri, 04 Aug 2023 08:33:40 +0200 + opm-common (2023.04+ds-2) unstable; urgency=medium* d/control: Correctly reflect the merge of opm-material into opm-common
diff -Nru opm-common-2023.04+ds/debian/rules opm-common-2023.04+ds/debian/rules --- opm-common-2023.04+ds/debian/rules 2023-07-17 13:05:05.000000000 +0000 +++ opm-common-2023.04+ds/debian/rules 2023-08-04 06:33:40.000000000 +0000 @@ -7,6 +7,13 @@OPM_DEBIAN_CMAKE_FLAGS = -DOPM_ENABLE_PYTHON=1 -DOPM_INSTALL_PYTHON=1 -DPYTHON_EXECUTABLE=/usr/bin/python3 -DOPM_INSTALL_COMPILED_PYTHON=OFF -DOPM_ENABLE_EMBEDDED_PYTHON=1 +ifneq (,$(filter $(DEB_HOST_ARCH), ppc64el))
+ export DEB_CFLAGS_MAINT_STRIP = -O3 + export DEB_CXXFLAGS_MAINT_STRIP = -O3 + export DEB_CFLAGS_MAINT_APPEND = -O2 + export DEB_CXXFLAGS_MAINT_APPEND = -O2 +endif + need_gb_ram_per_process=3 free_ram=$(shell free -g | sed -n 2p| sed "s/ \+/ /g"| cut -d " " -f 2) max_procs=$(shell echo "$(free_ram)/$(need_gb_ram_per_process)" | bc)
OpenPGP_signature
Description: OpenPGP digital signature