See the upstream 0001-Pass-fno-lto-unconditionally.patch commit message for details. But even with that fix, aarch64 %check would still fail with > xmltesttools.cxx:170:Assertion > Test name: testEmbedImagesEnabled::Import_Export > equality assertion failed > - Expected: data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAA3ZAAAN2QHmodeGAAAFyUlEQVR4nO1Za2gcVRQ+szuzO9ndZtfEktY2tVorVdNKxRpQweqPmh/B1w8JhCL4R4RYiPhCfKFEfwX/2VYULJIqJFDqg4KC1EaoEoyGhFJClBgbN+a9z9ndeXnOzJ3szCbbQuY2i5ADh5udmXvP953z3cdMRNM04f9sYq0B+LVNArW2TQJXM0EQdmKTQL+Mi4V2PWJwJ4CgBUkKdImi9F48HpGikTptfj4l19fLX2cyxeeQyALPeNwJxOOx/r17djz6+afdsX233QBg5CCXWYS3es62n/js4mXkdyeSmOMVjysBURQ7djVvbRv87p2oLJUAtHmLQDSUg963W8MhMSscPzXWh48e4RaT10BkKJkXens6orKYRvBZC7zlut2+231r6MOTI4exCgmswjKPmFwJFIvFu+5pqbczr7vB22QkMwd7d8vK2Hj+AD5+gUdMrgRCUnD+yt9T8ZubGsrAHSKMTHK2SDGTvGJyJaBp2g/9Z4abH7j7YMjJupvA0Mgi5BVDxUcneMXkSiCTVV/75ItLTx1qCTR2PpbwEJiYTMHjXamcUjSfMTmeIH0TwAm5H5s96JPou3N57f3n3xh99URfuL79IVmOR1UYGlXUL89phqrCabuLcAjbRvQCcjlfMwII5PCWaPib1ntv0S4O/Skn4jHhjn27FMPQ4d/ZJePjgWzJNExBDCW0gwciWp0ceLpQLHaMjM3UNTeZhcU0CLGI8FE2b75SEwJhSWx/ueuR6JvdD8Kx18+Yl/4oCN8PHEP9KyibAoC50krO76Hf/4EjnUkYHYDY+F8A93XCszhUbQiQSUHcsPQFJINz00TX5hhodCJS2WpLIAbBDARAkMN+o/OYxEYeQS0y0Gz3rQTtJmQs+0ftMp8EDFsm+qLdmvhb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img' incorrect value. during CppunitTest_sw_htmlexport, apparently for another reason that still needs investigating.f41
parent
7e42d961fc
commit
178ad402f4
@ -0,0 +1,57 @@
|
||||
From 7b0ab85b4042cb38221ca5c9794b70c87443181f Mon Sep 17 00:00:00 2001
|
||||
From: Stephan Bergmann <sbergman@redhat.com>
|
||||
Date: Thu, 20 Aug 2020 14:54:31 +0200
|
||||
Subject: [PATCH] Pass -fno-lto unconditionally
|
||||
|
||||
At least when building the libreoffice rpm on Fedora 33, the relevant -flto...
|
||||
flags are passed in via the global CFLAGS/CXXFLAGS, and no --enable-lto
|
||||
configure option is given. That caused this library to be built with LTO there,
|
||||
which in turn caused at least aarch64 to fail the %check step with
|
||||
|
||||
> ### unexpected exception content! failed
|
||||
> ### unexpected exception content! failed
|
||||
> ### unexpected exception content! failed
|
||||
> exception test failed
|
||||
> oneway exception test failed
|
||||
> exception occurred: error: test failed! testtools/source/bridgetest/bridgetest.cxx:1176
|
||||
>
|
||||
> > error: error: test failed! testtools/source/bridgetest/bridgetest.cxx:1176
|
||||
> > dying...make[1]: *** [testtools/CustomTarget_uno_test.mk:25: workdir/CustomTarget/testtools/uno_test.done] Error 1
|
||||
> make: *** [Makefile:166: CustomTarget_testtools/uno_test] Error 2
|
||||
|
||||
The easiest fix appears to pass -fno-lto unconditionally: For one, both GCC and
|
||||
Clang appear to support it since before our baseline versions (GCC: baseline
|
||||
7.0.0, presumably supported since <https://gcc.gnu.org/git/?p=gcc.git;a=commit;
|
||||
h=d7f09764d7bc66b9997c811c22e11efc87b44792> "Merge lto branch into trunk" in
|
||||
releases/gcc-4.5; Clang: baseline 5.0.2 (at least on Linux), presumably
|
||||
supported since <https://github.com/llvm/llvm-project/commit/
|
||||
10d0868efb320fc33ced13b0abeea7070cd41635> "Driver: Support -fno-lto" in
|
||||
releases/3.0.x). For another, the other (few) places in the code that check
|
||||
ENABLE_LTO appear not to be relevant at least for that Fedora 33 rpm build, so
|
||||
there appears to be no incentive to make that build configure --enable-lto as an
|
||||
alternative to this fix.
|
||||
|
||||
Change-Id: I4735403660e57ef73b99d6a8cc5945c6d8e2af73
|
||||
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101129
|
||||
Tested-by: Jenkins
|
||||
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
|
||||
---
|
||||
bridges/Library_cpp_uno.mk | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/bridges/Library_cpp_uno.mk b/bridges/Library_cpp_uno.mk
|
||||
index 5e78bcb676a6..0c6b255f52ad 100644
|
||||
--- a/bridges/Library_cpp_uno.mk
|
||||
+++ b/bridges/Library_cpp_uno.mk
|
||||
@@ -212,7 +212,7 @@ $(eval $(call gb_Library_add_cxxflags,gcc3_uno,\
|
||||
$(if $(filter armeabi-v7a,$(ANDROID_APP_ABI)),-I$(ANDROID_BINUTILS_PREBUILT_ROOT)/lib/gcc/arm-linux-androideabi/4.9.x/include) \
|
||||
-fno-omit-frame-pointer \
|
||||
-fno-strict-aliasing \
|
||||
- $(if $(filter TRUE,$(ENABLE_LTO)),-fno-lto) \
|
||||
+ -fno-lto \
|
||||
$(if $(filter TRUE,$(HAVE_GCC_AVX)),-mno-avx) \
|
||||
))
|
||||
|
||||
--
|
||||
2.26.2
|
||||
|
Loading…
Reference in new issue