asm regression on armhf

Bug #2074375 reported by Rico Tzschichholz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-14 (Ubuntu)
Invalid
Undecided
Unassigned
libreoffice (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

libreoffice started failing to build on armhf since gcc defaults to 14

This first appeared in autopkgtests runs.

Successfully build with 13.3.0-3ubuntu1
https://autopkgtest.ubuntu.com/results/autopkgtest-oracular/oracular/armhf/libr/libreoffice/20240724_153620_5548a@/log.gz

Failed to build with 14.1.0-5ubuntu1:
https://autopkgtest.ubuntu.com/results/autopkgtest-oracular/oracular/armhf/libr/libreoffice/20240724_235317_2e9a0@/log.gz

[build CXX] bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp.cxx
S=/<<PKGBUILDDIR>> && I=$S/instdir && W=$S/workdir && mkdir -p $W/CxxObject/bridges/source/cpp_uno/gcc3_linux_arm/ $W/Dep/CxxObject/bridges/source/cpp_uno/gcc3_linux_arm/ && cd /<<PKGBUILDDIR>> && arm-linux-gnueabihf-g++ -DARM -DARM32 -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DLINUX -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=0 -D_LARGEFILE_SOURCE -D_PTHREADS -D_REENTRANT -D_TIME_BITS=64 -Wdate-time -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=0 -DHAVE_POSIX_FALLOCATE -fvisibility=hidden -Wall -Wno-missing-braces -Wendif-labels -Wextra -Wundef -Wunreachable-code -Wshadow -Wunused-macros -finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe -Wdeprecated-copy-dtor -Wduplicated-cond -Wlogical-op -Wshift-overflow=2 -Wunused-const-variable=1 -Wno-cast-function-type -fvisibility-inlines-hidden -fPIC -Wshadow -Woverloaded-virtual -std=c++20 -pthread -g1 -O0 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -fno-stack-clash-protection -fdebug-prefix-map=/<<PKGBUILDDIR>>=/usr/src/libreoffice-4:24.8.0~rc2-0ubuntu0.24.10.1~lo1 -Wno-psabi -O0 -Wp,-U_FORTIFY_SOURCE -fstrict-aliasing -fstrict-overflow -fexceptions -fno-enforce-eh-specs -fno-omit-frame-pointer -fno-strict-aliasing -fno-lto -DLIBO_INTERNAL_ONLY -c $S/bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp.cxx -o $W/CxxObject/bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp.o -MMD -MT $W/CxxObject/bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp.o -MP -MF $W/Dep/CxxObject/bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp.d_ -I$S/bridges/inc -I$S/include -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -I$S/config_host -I$W/UnoApiHeadersTarget/udkapi/comprehensive && mv $W/Dep/CxxObject/bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp.d_ $W/Dep/CxxObject/bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp.d
/<<PKGBUILDDIR>>/bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp.cxx: In function ‘void {anonymous}::callVirtualMethod(void*, sal_Int32, void*, typelib_TypeDescriptionReference*, sal_uInt32*, sal_uInt32, sal_uInt32*, sal_uInt32, double*)’:
/<<PKGBUILDDIR>>/bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp.cxx:278:5: error: ‘asm’ operand has impossible constraints or there are not enough registers
  278 | __asm__ __volatile__ (
      | ^~~~~~~
make[2]: *** [/<<PKGBUILDDIR>>/solenv/gbuild/LinkTarget.mk:338: /<<PKGBUILDDIR>>/workdir/CxxObject/bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp.o] Error 1

https://github.com/LibreOffice/core/blob/libreoffice-24-2/bridges/source/cpp_uno/gcc3_linux_arm/uno2cpp.cxx#L278-L301

description: updated
Changed in gcc-14 (Debian):
status: Unknown → Confirmed
Revision history for this message
Matthias Klose (doko) wrote :

most likely an issue which has to be addressed in libreoffice. Please could you forward it?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libreoffice - 4:24.2.5-0ubuntu2

---------------
libreoffice (4:24.2.5-0ubuntu2) oracular; urgency=medium

  * Use gcc 13 on armhf (LP: #2074375)

 -- Rico Tzschichholz <email address hidden> Mon, 05 Aug 2024 19:18:21 +0200

Changed in libreoffice (Ubuntu):
status: New → Fix Released
Revision history for this message
Rico Tzschichholz (ricotz) wrote :
Changed in gcc-14 (Ubuntu):
status: New → Invalid
no longer affects: gcc-14 (Debian)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.