Bug 259490 - editors/libreoffice: Fails to link: StaticLibrary/libcodemaker_cpp.a] Error 1
Summary: editors/libreoffice: Fails to link: StaticLibrary/libcodemaker_cpp.a] Error 1
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: FreeBSD Office Team
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2021-10-27 19:44 UTC by andy
Modified: 2021-10-31 22:02 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (office)


Attachments
kernel config (9.72 KB, text/plain)
2021-10-27 21:49 UTC, andy
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description andy 2021-10-27 19:44:45 UTC
FreeBSD Free_BSD_13 13.0-STABLE FreeBSD 13.0-STABLE #25 stable/13-n247809-010e3bc7727: Sun Oct 24 11:00:00 EDT 2021     root@Free_BSD_13:/usr/obj/usr/src/amd64.amd64/sys/MYKERNEL  amd64 1300519

S=/usr/ports/editors/libreoffice/work/libreoffice-7.2.2.2 && I=$S/instdir && W=$S/workdir &&  ( cd $W/UnpackedTarball/skia &&     for p in $S/external/skia/fix-pch.patch.1 $S/external/skia/fix-ddi.patch $S/external/skia/make-api-visible.patch.1 $S/external/skia/no-trace-resources-on-exit.patch.1 $S/external/skia/fix-alpha-difference-copy.patch.1 $S/external/skia/libvulkan-name.patch.1 $S/external/skia/share-grcontext.patch.1 $S/external/skia/fix-gcc-x86.patch.1 $S/external/skia/clang11-flax-vector-conversion.patch.0 $S/external/skia/clang-attributes-warning.patch.1 $S/external/skia/fontconfig-get-typeface.patch.0 $S/external/skia/windows-do-not-modify-logfont.patch.0 $S/external/skia/windows-text-gamma.patch.0 $S/external/skia/windows-force-unicode-api.patch.0 $S/external/skia/fix-without-gl.patch.0 $S/external/skia/windows-typeface-directwrite.patch.0 $S/external/skia/windows-raster-surface-no-copies.patch.1 $S/external/skia/fix-windows-dwrite.patch.1 $S/external/skia/c++20.patch.0 $S/external/skia/constexpr-debug-std-max.patch.1 $S/external/skia/swap-buffers-rect.patch.1 $S/external/skia/ubsan.patch.0 $S/external/skia/fast-png-write.patch.1 $S/external/skia/skia_sk_cpu_sse_level_0_by_default.patch.1 $S/external/skia/fix-warnings.patch.1 $S/external/skia/disable-freetype-colrv1.1 $S/external/skia/windows-libraries-system32.patch.1 $S/external/skia/gfx-skia-skia-src-core-SkCpu.cpp.patch.0; do pl=1; s=${p##*.}; case "$s" in [0-9]) pl="$s"; ;; esac ; /usr/bin/patch  -f -s "-p$pl" --fuzz=0 < "$p"; if test "$?" -ne 0; then echo "Patch FAILED: $p"; exit 1; fi; done &&     mv third_party/skcms/skcms.cc third_party/skcms/skcms.cpp &&   touch $W/UnpackedTarball/skia.done  ) || ( touch $W/UnpackedTarball/skia.prepare && exit 1 )
gmake[3]: *** [/usr/ports/editors/libreoffice/work/libreoffice-7.2.2.2/solenv/gbuild/LinkTarget.mk:667: /usr/ports/editors/libreoffice/work/libreoffice-7.2.2.2/workdir/LinkTarget/StaticLibrary/libcodemaker_cpp.a] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: *** [/usr/ports/editors/libreoffice/work/libreoffice-7.2.2.2/solenv/gbuild/LinkTarget.mk:667: /usr/ports/editors/libreoffice/work/libreoffice-7.2.2.2/workdir/LinkTarget/StaticLibrary/libfindsofficepath.a] Error 1
gmake[3]: *** [/usr/ports/editors/libreoffice/work/libreoffice-7.2.2.2/solenv/gbuild/LinkTarget.mk:667: /usr/ports/editors/libreoffice/work/libreoffice-7.2.2.2/workdir/LinkTarget/StaticLibrary/libcodemaker.a] Error 1
No such line 452 in input file, ignoring
rm /usr/ports/editors/libreoffice/work/libreoffice-7.2.2.2/workdir/CustomTarget/i18npool/breakiterator/edit_word_he.txt /usr/ports/editors/libreoffice/work/libreoffice-7.2.2.2/workdir/CustomTarget/i18npool/breakiterator/edit_word_hu.txt /usr/ports/editors/libreoffice/work/libreoffice-7.2.2.2/workdir/CustomTarget/i18npool/breakiterator/sent.txt /usr/ports/editors/libreoffice/work/libreoffice-7.2.2.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_he.txt /usr/ports/editors/libreoffice/work/libreoffice-7.2.2.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.txt /usr/ports/editors/libreoffice/work/libreoffice-7.2.2.2/workdir/CustomTarget/i18npool/breakiterator/dict_word.txt /usr/ports/editors/libreoffice/work/libreoffice-7.2.2.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_hu.txt /usr/ports/editors/libreoffice/work/libreoffice-7.2.2.2/workdir/CustomTarget/i18npool/breakiterator/line.txt /usr/ports/editors/libreoffice/work/libreoffice-7.2.2.2/workdir/CustomTarget/i18npool/breakiterator/count_word.txt /usr/ports/editors/libreoffice/work/libreoffice-7.2.2.2/workdir/CustomTarget/i18npool/breakiterator/edit_word.txt /usr/ports/editors/libreoffice/work/libreoffice-7.2.2.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_nodash.txt
gmake[3]: Leaving directory '/usr/ports/editors/libreoffice/work/libreoffice-7.2.2.2'
gmake[2]: *** [Makefile:287: build] Error 2
gmake[2]: Leaving directory '/usr/ports/editors/libreoffice/work/libreoffice-7.2.2.2'
===> Compilation failed unexpectedly.
Comment 1 Kubilay Kocak freebsd_committer freebsd_triage 2021-10-27 21:25:41 UTC
Andy, could you please include:

 - The full build log, as ann attachment, compressed if necessary
 - /etc/make.conf contents, if not empty
 - kernel configuration (as an attachment)
 - Port options used
Comment 2 andy 2021-10-27 21:49:19 UTC
Created attachment 229085 [details]
kernel config
Comment 3 andy 2021-10-27 22:01:09 UTC
- No port options

# cat /etc/make.conf 
MALLOC_PRODUCTION=yes

What is the location of the build log? I do not see it.

* Command failed [exit code 1]: /usr/bin/script -qa /tmp/portupgrade20211027-824-1j8t42f env UPGRADE_TOOL=portupgrade UPGRADE_PORT=libreoffice-7.2.0.4_2 UPGRADE_PORT_VER=7.2.0.4_2 make

# cat /tmp/portupgrade20211027-824-1j8t42f
cat: /tmp/portupgrade20211027-824-1j8t42f: No such file or directory

Also, why is upgrade by pkg failing?  It seems to download successfully and then fails to install the package?

Number of packages to be fetched: 1

The process will require 123 MiB more space.
123 MiB to be downloaded.
Fetching libreoffice-7.2.2.2.pkg: 100%  123 MiB  21.5MB/s    00:06    
** Failed to fetch libreoffice-7.2.2.2.txz
** Failed to fetch libreoffice-7.2.2.2
--->  Listing the results (+:done / -:ignored / *:skipped / !:failed)
	! libreoffice-7.2.2.2	(fetch error)
--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
** Could not find the latest version (7.2.2.2)
--->  Using the port instead of a package
Comment 4 Dima Panov freebsd_committer 2021-10-29 19:32:59 UTC
(In reply to andy from comment #3)
Moin!

You machine seems to be blowed up by mix pkg (binary fetch) and local ports building. This leads to library hell built by different environment/tools.

>Fetching libreoffice-7.2.2.2.pkg: 100%  123 MiB  21.5MB/s    00:06    
>** Failed to fetch libreoffice-7.2.2.2.txz
>** Failed to fetch libreoffice-7.2.2.2
>--->  Listing the results (+:done / -:ignored / *:skipped / !:failed)
>	! libreoffice-7.2.2.2	(fetch error)
>--->  Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed
>** Could not find the latest version (7.2.2.2)
>--->  Using the port instead of a package

This ^^^ situation caused by different options/dependencies lists between your environment and requested deps from fetched pkg's manifest.

Shortly, you've shot in the own leg. 

Just to be clear, LibreOffice builds are painful in dirty environment due to hidden dependencies and we kindly ask consumers to exclude hardly outdated portmaster/portupgrade from his builds roadmap by switch to poudriere/synth to produce a local packages repository and then use 'pkg upg' from it.
Comment 5 andy 2021-10-31 22:02:48 UTC
I was able to get it to build and install, but it crashes when I try to open a file.  I ran libreoffice with truss from command line and I pasted the output here:

https://sebsauvage.net/paste/?c625152cab5bcb80#1C/kI9U3WMO/9wCMVk3xk+lXvYNmDKwGkY+JkqhOLrk=


Any suggestions what to try now?