Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[英雄帖] fix LibreOffice build crash #62

Open
xen0n opened this issue Jul 22, 2024 · 0 comments
Open

[英雄帖] fix LibreOffice build crash #62

xen0n opened this issue Jul 22, 2024 · 0 comments
Labels
AREA: Arch optimization Architecture-specific enablement or optimization (e.g. addition of LoongArch SIMD codepaths) 英雄帖 Volunteers welcome!

Comments

@xen0n
Copy link
Member

xen0n commented Jul 22, 2024

<snip>
S=/home/xenon/hog/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2 && I=$S/instdir && W=$S/workdir &&  rm -f $W/Gallery/sounds/* && RESPON
SEFILE=/home/xenon/hog/portage/app-office/libreoffice-24.2.4.2-r1/temp/gbuild.sqGuZu &&   ( (  LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/progra
m:$I/program"   $I/program/gengal.bin --build-tree --destdir file://$S/extras/source/gallery --name "sounds" --path $W/Gallery/sounds --filenames file://$RESP
ONSEFILE -env:UserInstallation=file://$W/Gallery/sounds/user ) >  $W/Gallery/sounds.done.log  2>&1 || ( cat  $W/Gallery/sounds.done.log  && false ) ) && rm $R
ESPONSEFILE && touch $W/Gallery/sounds.done 
Work on gallery 'file:///home/xenon/hog/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2/workdir/Gallery/sounds'
Existing themes: 0


Fatal exception: Signal 7
Stack:
/home/xenon/hog/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2/instdir/program/libuno_sal.so.3(+0x491cc) [0x7ffff23391cc]
/home/xenon/hog/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2/instdir/program/libuno_sal.so.3(+0x493a8) [0x7ffff23393a8]
linux-vdso.so.1(__vdso_rt_sigreturn+0x0) [0x7ffffd7f0910]
/home/xenon/hog/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2/instdir/program/libgcc3_uno.so(+0x3a4c) [0x7fffe6a1ba4c]
/usr/lib/gcc/loongarch64-unknown-linux-gnu/14/libstdc++.so.6(+0xaa15c) [0x7ffff1fb615c]
/home/xenon/hog/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2/instdir/program/libmergedlo.so(+0x2b18760) [0x7fffeeb18760]
/home/xenon/hog/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2/instdir/program/libmergedlo.so(_ZN23GalleryStorageLocations20ImplGetURLIgnoreCaseERK13INetURLObject+0x98) [0x7fffeeb27c38]
/home/xenon/hog/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2/instdir/program/libmergedlo.so(+0x2b27060) [0x7fffeeb27060]
/home/xenon/hog/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2/instdir/program/libmergedlo.so(_ZN17GalleryThemeEntryC2EbRK13INetURLObjectRKN3rtl8OUStringEbbjb+0xf8) [0x7fffeeb134c0]
/home/xenon/hog/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2/instdir/program/libmergedlo.so(_ZN7Gallery11CreateThemeERKN3rtl8OUStringE+0x170) [0x7fffeeb15830]
/home/xenon/hog/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2/instdir/program/gengal.bin(+0x58cc) [0x5555563918cc]
/home/xenon/hog/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2/instdir/program/libmergedlo.so(_Z10ImplSVMainv+0x50) [0x7fffef8e4558]
/home/xenon/hog/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2/instdir/program/gengal.bin(+0x337c) [0x55555638f37c]
/usr/lib64/libc.so.6(+0x22f68) [0x7ffff1cbaf68]
/usr/lib64/libc.so.6(__libc_start_main+0xa8) [0x7ffff1cbb068]
/home/xenon/hog/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2/instdir/program/gengal.bin(+0x33e0) [0x55555638f3e0]
make[1]: *** [/home/xenon/hog/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2/solenv/gbuild/Gallery.mk:57: /home/xenon/hog/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2/workdir/Gallery/sounds.done] Error 1
make[1]: Leaving directory '/home/xenon/hog/portage/app-office/libreoffice-24.2.4.2-r1/work/libreoffice-24.2.4.2'
make: *** [Makefile:289: build] Error 2

This is likely related to the LoongArch64 UNO bridge implementation, and it may be that a similar ABI fix for riscv64 should be made for LoongArch64 too, but I haven't verified.

Note that the bug may not appear with your particular build environment; my box has:

  • binutils & glibc: trunk
  • gcc: 14.1.1 20240622 with Gentoo patches
  • CFLAGS reduced to effectively only -O2, same with CXXFLAGS

Anyone taking up this should:

  • raise a bug on TDF bugzilla linking to this
  • fix it and submit to LibreOffice Gerrit for code review
@xen0n xen0n added 英雄帖 Volunteers welcome! AREA: Arch optimization Architecture-specific enablement or optimization (e.g. addition of LoongArch SIMD codepaths) labels Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AREA: Arch optimization Architecture-specific enablement or optimization (e.g. addition of LoongArch SIMD codepaths) 英雄帖 Volunteers welcome!
Projects
None yet
Development

No branches or pull requests

1 participant