[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#983945: libreoffice: ftbfs with -march=x86-64-v3



Package: src:libreoffice
Version: 1:7.0.4-3
Severity: minor
User: debian-gcc@lists.debian.org
Usertags: ftbfs-x86-64-v3

Starting with LLVM 12 and GCC 11 (and backported to gcc-10 for Debian), 
GCC introduces optimizations for new micro-architecture levels from
the x86-64 psABI.  Filing these bug reports for packages building with
the current level (x86-64), but not with x86-64-v3.

To reproduce these issues, append -march=x86-64-v3 to the compiler
flags (CFLAGS, CXXFLAGS, ...).  You also need hardware supporting these.
The easiest way is to call the dynamic linker in glibc 2.33 like
  /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 --help
Otherwise look at the flags in /proc/cpuinfo and compare these with
those from table 3.1 in the System V Application Binary Interface doc:
https://gitlab.com/x86-psABIs/x86-64-ABI/-/wikis/x86-64-psABI

Please don't upload a package setting these flags by default.  The
x86-64 baseline is still unchanged.

The full build log can be found at:
http://people.debian.org/~doko/logs/20210228/filtered/gcc10-v3/libreoffice_7.0.4-3_unstable_gcc10-v3.log
The last lines of the build log are at the end of this report.

[...]
Tested load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/fods/gammaln.precise.fods: Pass (68ms)
Testing load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/fods/own_function.fods:
Tested load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/fods/own_function.fods: Pass (76ms)
Testing load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/fods/reference_operators.fods:
Tested load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/fods/reference_operators.fods: Pass (89ms)
FunctionsTestOld::testFormulasFODS finished in: 540ms
OK (1)
[build CUT] sc_database_functions_test
S=/<<PKGBUILDDIR>> && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/CppunitTest/ && rm -fr $W/CppunitTest/sc_database_functions_test.test.user && cp -r $W/unittest $W/CppunitTest/sc_database_functions_test.test.user &&    rm -fr $W/CppunitTest/sc_database_functions_test.test.core && mkdir $W/CppunitTest/sc_database_functions_test.test.core && cd $W/CppunitTest/sc_database_functions_test.test.core && (   MAX_CONCURRENCY=4 MOZILLA_CERTIFICATE_FOLDER= SAL_DISABLE_SYNCHRONOUS_PRINTER_DETECTION=1 SAL_USE_VCLPLUGIN=svp LIBO_LANG=C  LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/program:$I/program":$W/UnpackedTarball/cppunit/src/cppunit/.libs   MALLOC_CHECK_=2 MALLOC_PERTURB_=153      $W/LinkTarget/Executable/cppunittester $W/LinkTarget/CppunitTest/libtest_sc_database_functions_test.so --headless "-env:BRAND_BASE_DIR=file://$S/instdir" "-env:BRAND_SHARE_SUBDIR=share" "-env:BRAND_SHARE_RESOURCE_SUBDIR=program/resource" "-env:UserInstallation=file://$W/CppunitTest/sc_database_functio
 ns_test.test.user"   "-env:CONFIGURATION_LAYERS=xcsxcu:file://$I/share/registry xcsxcu:file://$W/unittest/registry"  "-env:UNO_TYPES=file://$I/program/types/offapi.rdb file://$I/program/types.rdb file://$I/program/types/oovbaapi.rdb"  "-env:UNO_SERVICES=file://$W/Rdb/ure/services.rdb file://$W/ComponentTarget/basic/util/sb.component file://$W/ComponentTarget/chart2/source/chartcore.component file://$W/ComponentTarget/chart2/source/controller/chartcontroller.component file://$W/ComponentTarget/comphelper/util/comphelp.component file://$W/ComponentTarget/configmgr/source/configmgr.component file://$W/ComponentTarget/connectivity/source/manager/sdbc2.component file://$W/ComponentTarget/dbaccess/util/dba.component file://$W/ComponentTarget/embeddedobj/util/embobj.component file://$W/ComponentTarget/eventattacher/source/evtatt.component file://$W/ComponentTarget/filter/source/config/cache/filterconfig1.component file://$W/ComponentTarget/filter/source/odfflatxml/odfflatxml.component file
 ://$W/ComponentTarget/filter/source/xmlfilteradaptor/xmlfa.component file://$W/ComponentTarget/forms/util/frm.component file://$W/ComponentTarget/framework/util/fwk.component file://$W/ComponentTarget/i18npool/util/i18npool.component file://$W/ComponentTarget/i18npool/source/search/i18nsearch.component file://$W/ComponentTarget/linguistic/source/lng.component file://$W/ComponentTarget/oox/util/oox.component file://$W/ComponentTarget/package/source/xstor/xstor.component file://$W/ComponentTarget/package/util/package2.component file://$W/ComponentTarget/sax/source/expatwrap/expwrap.component file://$W/ComponentTarget/scaddins/source/analysis/analysis.component file://$W/ComponentTarget/scaddins/source/datefunc/date.component file://$W/ComponentTarget/sc/util/sc.component file://$W/ComponentTarget/sc/util/scfilt.component file://$W/ComponentTarget/sfx2/util/sfx.component file://$W/ComponentTarget/sot/util/sot.component file://$W/ComponentTarget/svl/util/svl.component file://$W/Componen
 tTarget/svtools/util/svt.component file://$W/ComponentTarget/svx/util/svx.component file://$W/ComponentTarget/svx/util/svxcore.component file://$W/ComponentTarget/toolkit/util/tk.component file://$W/ComponentTarget/ucb/source/core/ucb1.component file://$W/ComponentTarget/ucb/source/ucp/file/ucpfile1.component file://$W/ComponentTarget/ucb/source/ucp/tdoc/ucptdoc1.component file://$W/ComponentTarget/unotools/util/utl.component file://$W/ComponentTarget/unoxml/source/rdf/unordf.component file://$W/ComponentTarget/unoxml/source/service/unoxml.component file://$W/ComponentTarget/uui/util/uui.component file://$W/ComponentTarget/vcl/vcl.common.component file://$W/ComponentTarget/xmloff/util/xo.component file://$W/ComponentTarget/xmlscript/util/xmlscript.component" -env:URE_INTERNAL_LIB_DIR=file://$I/program -env:LO_LIB_DIR=file://$I/program -env:LO_JAVA_DIR=file://$I/program/classes --protector $W/LinkTarget/Library/unoexceptionprotector.so unoexceptionprotector --protector $W/LinkTarget/
 Library/unobootstrapprotector.so unobootstrapprotector   --protector $W/LinkTarget/Library/libvclbootstrapprotector.so vclbootstrapprotector   "-env:CPPUNITTESTTARGET=$W/CppunitTest/sc_database_functions_test.test"   ) 2>&1
Testing load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/daverage.fods:
Tested load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/daverage.fods: Pass (64ms)
Testing load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dcount.fods:
Tested load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dcount.fods: Pass (49ms)
Testing load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dcounta.fods:
Tested load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dcounta.fods: Pass (32ms)
Testing load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dget.fods:
Tested load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dget.fods: Pass (33ms)
Testing load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dmax.fods:
Tested load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dmax.fods: Pass (32ms)
Testing load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dmin.fods:
Tested load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dmin.fods: Pass (33ms)
Testing load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dproduct.fods:
Tested load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dproduct.fods: Pass (32ms)
Testing load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dstdev.fods:
Tested load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dstdev.fods: Pass (32ms)
Testing load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dstdevp.fods:
Tested load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dstdevp.fods: Pass (31ms)
Testing load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dsum.fods:
Tested load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dsum.fods: Pass (87ms)
Testing load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dvar.fods:
Tested load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dvar.fods: Pass (35ms)
Testing load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dvarp.fods:
Tested load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/database/fods/dvarp.fods: Pass (34ms)
DatabaseFunctionsTest::testDatabaseFormulasFODS finished in: 517ms
OK (1)
[build CUT] sc_array_functions_test
S=/<<PKGBUILDDIR>> && I=$S/instdir && W=$S/workdir &&  mkdir -p $W/CppunitTest/ && rm -fr $W/CppunitTest/sc_array_functions_test.test.user && cp -r $W/unittest $W/CppunitTest/sc_array_functions_test.test.user &&    rm -fr $W/CppunitTest/sc_array_functions_test.test.core && mkdir $W/CppunitTest/sc_array_functions_test.test.core && cd $W/CppunitTest/sc_array_functions_test.test.core && (   MAX_CONCURRENCY=4 MOZILLA_CERTIFICATE_FOLDER= SAL_DISABLE_SYNCHRONOUS_PRINTER_DETECTION=1 SAL_USE_VCLPLUGIN=svp LIBO_LANG=C  LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/program:$I/program":$W/UnpackedTarball/cppunit/src/cppunit/.libs   MALLOC_CHECK_=2 MALLOC_PERTURB_=153      $W/LinkTarget/Executable/cppunittester $W/LinkTarget/CppunitTest/libtest_sc_array_functions_test.so --headless "-env:BRAND_BASE_DIR=file://$S/instdir" "-env:BRAND_SHARE_SUBDIR=share" "-env:BRAND_SHARE_RESOURCE_SUBDIR=program/resource" "-env:UserInstallation=file://$W/CppunitTest/sc_array_functions_test.test.user"   
 "-env:CONFIGURATION_LAYERS=xcsxcu:file://$I/share/registry xcsxcu:file://$W/unittest/registry"  "-env:UNO_TYPES=file://$I/program/types/offapi.rdb file://$I/program/types.rdb file://$I/program/types/oovbaapi.rdb"  "-env:UNO_SERVICES=file://$W/Rdb/ure/services.rdb file://$W/ComponentTarget/basic/util/sb.component file://$W/ComponentTarget/chart2/source/chartcore.component file://$W/ComponentTarget/chart2/source/controller/chartcontroller.component file://$W/ComponentTarget/comphelper/util/comphelp.component file://$W/ComponentTarget/configmgr/source/configmgr.component file://$W/ComponentTarget/connectivity/source/manager/sdbc2.component file://$W/ComponentTarget/dbaccess/util/dba.component file://$W/ComponentTarget/embeddedobj/util/embobj.component file://$W/ComponentTarget/eventattacher/source/evtatt.component file://$W/ComponentTarget/filter/source/config/cache/filterconfig1.component file://$W/ComponentTarget/filter/source/odfflatxml/odfflatxml.component file://$W/ComponentTarget
 /filter/source/xmlfilteradaptor/xmlfa.component file://$W/ComponentTarget/forms/util/frm.component file://$W/ComponentTarget/framework/util/fwk.component file://$W/ComponentTarget/i18npool/util/i18npool.component file://$W/ComponentTarget/i18npool/source/search/i18nsearch.component file://$W/ComponentTarget/linguistic/source/lng.component file://$W/ComponentTarget/oox/util/oox.component file://$W/ComponentTarget/package/source/xstor/xstor.component file://$W/ComponentTarget/package/util/package2.component file://$W/ComponentTarget/sax/source/expatwrap/expwrap.component file://$W/ComponentTarget/scaddins/source/analysis/analysis.component file://$W/ComponentTarget/scaddins/source/datefunc/date.component file://$W/ComponentTarget/sc/util/sc.component file://$W/ComponentTarget/sc/util/scfilt.component file://$W/ComponentTarget/sfx2/util/sfx.component file://$W/ComponentTarget/sot/util/sot.component file://$W/ComponentTarget/svl/util/svl.component file://$W/ComponentTarget/svtools/util/
 svt.component file://$W/ComponentTarget/svx/util/svx.component file://$W/ComponentTarget/svx/util/svxcore.component file://$W/ComponentTarget/toolkit/util/tk.component file://$W/ComponentTarget/ucb/source/core/ucb1.component file://$W/ComponentTarget/ucb/source/ucp/file/ucpfile1.component file://$W/ComponentTarget/ucb/source/ucp/tdoc/ucptdoc1.component file://$W/ComponentTarget/unotools/util/utl.component file://$W/ComponentTarget/unoxml/source/rdf/unordf.component file://$W/ComponentTarget/unoxml/source/service/unoxml.component file://$W/ComponentTarget/uui/util/uui.component file://$W/ComponentTarget/vcl/vcl.common.component file://$W/ComponentTarget/xmloff/util/xo.component file://$W/ComponentTarget/xmlscript/util/xmlscript.component" -env:URE_INTERNAL_LIB_DIR=file://$I/program -env:LO_LIB_DIR=file://$I/program -env:LO_JAVA_DIR=file://$I/program/classes --protector $W/LinkTarget/Library/unoexceptionprotector.so unoexceptionprotector --protector $W/LinkTarget/Library/unobootstrapp
 rotector.so unobootstrapprotector   --protector $W/LinkTarget/Library/libvclbootstrapprotector.so vclbootstrapprotector   "-env:CPPUNITTESTTARGET=$W/CppunitTest/sc_array_functions_test.test"   ) 2>&1
Testing load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/array/fods/fourier.fods:
Tested load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/array/fods/fourier.fods: Pass (115ms)
Testing load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/array/fods/frequency.fods:
Tested load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/array/fods/frequency.fods: Pass (72ms)
Testing load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/array/fods/growth.fods:
Tested load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/array/fods/growth.fods: Pass (69ms)
Testing load file:///<<PKGBUILDDIR>>//sc/qa/unit/data/functions/array/fods/linest.fods:
./sc/qa/unit/functions_test.cxx:43:ArrayFunctionsTest::testArrayFormulasFODS
double equality assertion failed
- Expected: 1
- Actual  : 0
- Delta   : 1e-14

ArrayFunctionsTest::testArrayFormulasFODS finished in: 359ms
functions_test.cxx:43:Assertion
Test name: ArrayFunctionsTest::testArrayFormulasFODS
double equality assertion failed
- Expected: 1
- Actual  : 0
- Delta   : 1e-14

Failures !!!
Run: 1   Failure total: 1   Failures: 1   Errors: 0
make[4]: *** [/<<PKGBUILDDIR>>/solenv/gbuild/CppunitTest.mk:113: /<<PKGBUILDDIR>>/workdir/CppunitTest/sc_array_functions_test.test] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>'
make[3]: *** [Makefile:274: build] Error 2
make[3]: Leaving directory '/<<PKGBUILDDIR>>'
make[2]: *** [/<<PKGBUILDDIR>>/debian/rules:2060: check] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>'
make[1]: *** [/<<PKGBUILDDIR>>/debian/rules:1942: debian/stampdir/build-arch] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:1916: build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2


Reply to: