[Bug 262008] editors/libreoffice failed to build

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 18 Feb 2022 15:14:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262008

--- Comment #20 from Tomoaki AOKI <junchoon@dec.sakura.ne.jp> ---
(In reply to jakub_lach from comment #17)

Yes, it's OK for me, too, on stable/13.

But main still failed with "MAKE_JOBS_UNSAFE=yes" build.
Same options applied and graphics/openjpeg15 deleted.

As changes in UMA, elf tools is done on main after my current state,
I'll try after updating base to latest state.

Error log and backtrace (from gengal.bin.core) is like below.

  ===== Error Log =====

[LNK] Executable/gengal.bin
S=/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3 && I=$S/instdir &&
W=$S/workdir &&  c++     -Wl,-z,origin '-Wl,-rpath,$ORIGIN'
-Wl,-rpath-link,$I/program  -fstack-protector-strong
-Wl,-rpath-link,/lib:/usr/lib -Wl,-z,combreloc  -Wl,--hash-style=gnu 
-Wl,-Bsymbolic-functions -L$W/LinkTarget/StaticLibrary -L$I/sdk/lib 
-L$I/program  -L$I/program -fstack-protector-strong -L/usr/local/lib   
-L/usr/local/lib  $W/CxxObject/svx/source/gengal/gengal.o      
-Wl,--start-group $W/LinkTarget/StaticLibrary/libglxtest.a
$W/LinkTarget/StaticLibrary/libvclmain.a -pthread -L/usr/local/lib -lorcus-0.17
-lorcus-parser-0.17 -lX11   -Wl,--end-group -Wl,--no-as-needed -lbasegfxlo
-luno_sal -ltllo -lsfxlo -lsvllo -lsvtlo -lcomphelper -luno_cppu
-luno_cppuhelpergcc3 -lutllo -lsvxcorelo -lvcllo  -o $I/program/gengal.bin 
TEMPFILE=/usr/ports/editors/libreoffice/work/gbuild.XXXXXX.c0VocQXBqZ && mv
${TEMPFILE}
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/LinkTarget/Executable/gengal.bin.objectlist
touch
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/Executable/gengal.run
mkdir -p
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/Gallery/
mkdir -p
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/Gallery/backgrounds/
mkdir -p
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/Package/prepared/Gallery/Files/
&& touch
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/Package/prepared/Gallery/Files/backgrounds
[GAL] backgrounds
S=/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3 && I=$S/instdir &&
W=$S/workdir &&  rm -f $W/Gallery/backgrounds/* &&
RESPONSEFILE=/usr/ports/editors/libreoffice/work/gbuild.XXXXXX.sBaBWtQojY &&  (
 LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}"$I/program:$I/program"  
$I/program/gengal.bin --build-tree --destdir file://$S/extras/source/gallery
--name "backgrounds" --path $W/Gallery/backgrounds --filenames
file://$RESPONSEFILE -env:UserInstallation=file://$W/Gallery/backgrounds/user )
&& rm $RESPONSEFILE && touch $W/Gallery/backgrounds.done 
Work on gallery
'file:///usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/Gallery/backgrounds'
Existing themes: 0
Segmentation fault (core dumped)
gmake[3]: ***
[/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/solenv/gbuild/Gallery.mk:57:
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/Gallery/backgrounds.done]
Error 139
rm
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_hu.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/edit_word_hu.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/count_word.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/edit_word_he.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/sent.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/edit_word.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/count_word.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/line.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/edit_word.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_he.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/edit_word_he.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_nodash.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/line.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_nodash.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_hu.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/edit_word_hu.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/sent.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/workdir/CustomTarget/i18npool/breakiterator/dict_word_he.txt
gmake[3]: Leaving directory
'/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3'
gmake[2]: *** [Makefile:288: build] Error 2
gmake[2]: Leaving directory
'/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3'
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/editors/libreoffice
*** Error code 1

Stop.
make: stopped in /usr/ports/editors/libreoffice
** Command failed (exit code 1): env LOCALIZED_LANG=ja CPUTYPE=haswell
MAKE_JOBS_NUMBER_LIMIT=12 make DISABLE_VULNERABILITIES=yes MAKE_JOBS_UNSAFE=yes
UPGRADE_TOOL=pkg_replace UPGRADE_PORT=libreoffice-7.2.5.2
UPGRADE_PORT_VER=7.2.5.2
** Fix the problem and try again.



  ===== Looking for core =====

% bfs /usr/ports/editors/libreoffice/work/ -name "*.core" -type f
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/gengal.bin.core


  ===== Backtrace =====

Reading symbols from
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/instdir/program/gengal.bin...
(No debugging symbols found in
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/instdir/program/gengal.bin)
[New LWP 101298]

warning: Could not load shared library symbols for [vdso].
Do you need "set solib-search-path" or "set sysroot"?
Core was generated by
`/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/instdir/program/gengal.b'.
Program terminated with signal SIGSEGV, Segmentation fault.
Address not mapped to object.
#0  0x000000087718531a in gcc3::deleteException(void*) () from
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/instdir/program/libgcc3_uno.so
warning: File
"/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/instdir/program/libbasegfxlo.so-gdb.py"
auto-loading has been declined by your `auto-load safe-path' set to
"$debugdir:$datadir/auto-load".
To enable execution of this file add
        add-auto-load-safe-path
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/instdir/program/libbasegfxlo.so-gdb.py
line to your configuration file "/root/.config/gdb/gdbinit".
To completely disable this security protection add
        set auto-load safe-path /
line to your configuration file "/root/.config/gdb/gdbinit".
For more information about this security protection see the
"Auto-loading safe path" section in the GDB manual.  E.g., run from the shell:
        info "(gdb)Auto-loading safe path"
warning: File
"/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/instdir/program/libuno_sal.so.3-gdb.py"
auto-loading has been declined by your `auto-load safe-path' set to
"$debugdir:$datadir/auto-load".
warning: File
"/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/instdir/program/libtllo.so-gdb.py"
auto-loading has been declined by your `auto-load safe-path' set to
"$debugdir:$datadir/auto-load".
warning: File
"/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/instdir/program/libsvllo.so-gdb.py"
auto-loading has been declined by your `auto-load safe-path' set to
"$debugdir:$datadir/auto-load".
warning: File
"/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/instdir/program/libuno_cppu.so.3-gdb.py"
auto-loading has been declined by your `auto-load safe-path' set to
"$debugdir:$datadir/auto-load".
warning: File
"/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/instdir/program/libutllo.so-gdb.py"
auto-loading has been declined by your `auto-load safe-path' set to
"$debugdir:$datadir/auto-load".
warning: File
"/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/instdir/program/libvcllo.so-gdb.py"
auto-loading has been declined by your `auto-load safe-path' set to
"$debugdir:$datadir/auto-load".
(gdb) bt
#0  0x000000087718531a in gcc3::deleteException(void*) () from
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/instdir/program/libgcc3_uno.so
#1  0x000000082c90c02a in __cxa_free_exception () from /lib/libcxxrt.so.1
#2  0x000000082bee9205 in FileExists(INetURLObject const&) () from
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/instdir/program/libsvxcorelo.so
#3  0x000000082bef81a4 in
GalleryBinaryStorageLocations::ImplGetURLIgnoreCase(INetURLObject const&) ()
   from
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/instdir/program/libsvxcorelo.so
#4  0x000000082bef7557 in
GalleryBinaryEngineEntry::CreateUniqueURL(INetURLObject const&, INetURLObject&)
()
   from
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/instdir/program/libsvxcorelo.so
#5  0x000000082bee4aec in GalleryThemeEntry::GalleryThemeEntry(bool,
INetURLObject const&, rtl::OUString const&, bool, bool, unsigned int, bool) ()
   from
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/instdir/program/libsvxcorelo.so
#6  0x000000082bee71ba in Gallery::CreateTheme(rtl::OUString const&) ()
   from
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/instdir/program/libsvxcorelo.so
#7  0x0000000000207086 in (anonymous namespace)::GalApp::Main() ()
#8  0x000000082fbb0fae in ImplSVMain() () from
/usr/ports/editors/libreoffice/work/libreoffice-7.3.0.3/instdir/program/libvcllo.so
#9  0x000000000020a52f in main ()
(gdb) q

-- 
You are receiving this mail because:
You are the assignee for the bug.