Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 May 2022 22:59:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        office@FreeBSD.org
Subject:   [Bug 263976] editors/libreoffice: Fails to build using llvm/clang14 on recent src main
Message-ID:  <bug-263976-25061@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263976

            Bug ID: 263976
           Summary: editors/libreoffice: Fails to build using llvm/clang14
                    on recent src main
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: office@FreeBSD.org
          Reporter: junchoon@dec.sakura.ne.jp
          Assignee: office@FreeBSD.org
             Flags: maintainer-feedback?(office@FreeBSD.org)

editors/libreoffice: Fails to build using llvm/clang14 on src main at git
3a9a9c0ca44ec535dcf73fe8462bee458e54814b.

error: no viable conversion from 'StrictNumeric<int>' to 'float'

If it's not easy to fix, temporarily putting

if ${.CURDIR:M/usr/ports/editors/libreoffice}
DEFAULT_VERSIONS+=3D      llvm=3D13
.endif

on /etc/make.conf allowed editors/libreoffice to build.
Not tried, but forcibly setting LLVM_DEFAULT=3D13 in Makefile would be
sufficient.

Currently, graphics/mesa-dri, which is required by x11-servers/xorg-server,
requires devel/llvm13. So depending on it may be no pain for now. But it wo=
uld
switch to newer llvm in the future. Fixing editors/libreoffice for llvm14 a=
nd
newer would be required in the future anyway.


Actual error log:
[CXX] workdir/UnpackedTarball/pdfium/core/fpdfapi/page/cpdf_dib.cpp
S=3D/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2 && I=3D$S/instd=
ir &&
W=3D$S/workdir &&  mkdir -p
$W/GenCxxObject/UnpackedTarball/pdfium/core/fpdfapi/page/
$W/Dep/GenCxxObject/UnpackedTarball/pdfium/core/fpdfapi/page/ && cd
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2 && CCACHE_CPP2=3D1=
=20=20=20=20
/usr/local/bin/clang++90 -DBOOST_ERROR_CODE_HEADER_ONLY
-DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=3Dgcc3 -DFREEBSD -DNDEBUG
-DOSL_DEBUG_LEVEL=3D0 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT -isyst=
em
/usr/local/include -DFPDF_IMPLEMENTATION -DUSE_SYSTEM_LCMS2
-DUSE_SYSTEM_LIBJPEG -DUSE_SYSTEM_ZLIB -DUSE_SYSTEM_ICUUC
-DMEMORY_TOOL_REPLACES_ALLOCATOR -DUNICODE -DWIN32_LEAN_AND_MEAN
-DCOMPONENT_BUILD  -DUSE_SYSTEM_LIBOPENJPEG2  -DSYSTEM_ZLIB -DZLIB_CONST=20
-DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H=3D'<freetype-custom-config/ftmodu=
le.h>'
-DFT_CONFIG_OPTIONS_H=3D'<freetype-custom-config/ftoption.h>'  -flto=3Dthin
-fvisibility=3Dhidden    -Wall -Wno-missing-braces -Wnon-virtual-dtor
-Wendif-labels -Wextra -Wundef -Wunreachable-code -Wshadow -Wunused-macros
-Wembedded-directive -finput-charset=3DUTF-8 -fmessage-length=3D0 -fno-comm=
on -pipe
-fstack-protector-strong -fdiagnostics-color=3Dalways  -Wimplicit-fallthrou=
gh
-Wunused-exception-parameter -Wrange-loop-analysis -fvisibility-inlines-hid=
den
-fPIC -Woverloaded-virtual -Wno-unused-parameter -Wno-unused-local-typedefs
-std=3Dc++17   -O2 -pipe -march=3Dhaswell -fstack-protector-strong
-DLDAP_DEPRECATED -isystem /usr/local/include -fno-strict-aliasing  -isystem
/usr/local/include   -DEXCEPTIONS_ON -fexceptions  -w -DLIBO_INTERNAL_ONLY =
 -c
$W/UnpackedTarball/pdfium/core/fpdfapi/page/cpdf_transparency.cpp -o
$W/GenCxxObject/UnpackedTarball/pdfium/core/fpdfapi/page/cpdf_transparency.=
o=20
-I$W/UnpackedTarball/pdfium/third_party/freetype/include/
-I$W/UnpackedTarball/pdfium/third_party/freetype/src/include/
-I$W/UnpackedTarball/pdfium -I$W/UnpackedTarball/pdfium/third_party
-I$W/UnpackedTarball/pdfium/third_party/agg23  -isystem
/usr/local/include/openjpeg-2.4  -I$S/include  -I/usr/local/openjdk11/inclu=
de
-I/usr/local/openjdk11/include/freebsd -I/usr/local/openjdk11/include/bsd
-I/usr/local/openjdk11/include/linux -I$S/config_host           -isystem
/usr/local/include  -Wno-long-long=20=20=20=20=20
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/UnpackedTar=
ball/pdfium/core/fpdfapi/page/cpdf_psengine.cpp:246:14:
error: no viable conversion from 'StrictNumeric<int>' to 'float'
        Push(result.ValueOrDefault(0));
             ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/UnpackedTar=
ball/pdfium/third_party/base/numerics/safe_conversions.h:300:13:
note: candidate template ignored: requirement 'IsNumericRangeContained<floa=
t,
int, void>::value' was not satisfied [with Dst =3D float]
  constexpr operator Dst() const {
            ^
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/UnpackedTar=
ball/pdfium/core/fpdfapi/page/cpdf_psengine.cpp:195:32:
note: passing argument to parameter 'v' here
void CPDF_PSEngine::Push(float v) {
                               ^
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/UnpackedTar=
ball/pdfium/core/fpdfapi/page/cpdf_psengine.cpp:257:14:
error: no viable conversion from 'StrictNumeric<int>' to 'float'
        Push(result.ValueOrDefault(0));
             ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/UnpackedTar=
ball/pdfium/third_party/base/numerics/safe_conversions.h:300:13:
note: candidate template ignored: requirement 'IsNumericRangeContained<floa=
t,
int, void>::value' was not satisfied [with Dst =3D float]
  constexpr operator Dst() const {
            ^
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/UnpackedTar=
ball/pdfium/core/fpdfapi/page/cpdf_psengine.cpp:195:32:
note: passing argument to parameter 'v' here
void CPDF_PSEngine::Push(float v) {
                               ^
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/UnpackedTar=
ball/pdfium/core/fpdfapi/page/cpdf_psengine.cpp:385:12:
error: no viable conversion from 'StrictNumeric<int>' to 'float'
      Push(result.ValueOrDefault(0));
           ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/UnpackedTar=
ball/pdfium/third_party/base/numerics/safe_conversions.h:300:13:
note: candidate template ignored: requirement 'IsNumericRangeContained<floa=
t,
int, void>::value' was not satisfied [with Dst =3D float]
  constexpr operator Dst() const {
            ^
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/UnpackedTar=
ball/pdfium/core/fpdfapi/page/cpdf_psengine.cpp:195:32:
note: passing argument to parameter 'v' here
void CPDF_PSEngine::Push(float v) {
                               ^
test -f
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/UnpackedTar=
ball/pdfium/core/fpdfapi/page/cpdf_dib.cpp
|| (echo "Missing generated source file
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/UnpackedTar=
ball/pdfium/core/fpdfapi/page/cpdf_dib.cpp"
&& false)
[CXX] workdir/UnpackedTarball/pdfium/core/fpdfapi/parser/cpdf_object_stream=
.cpp
S=3D/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2 && I=3D$S/instd=
ir &&
W=3D$S/workdir &&  mkdir -p
$W/GenCxxObject/UnpackedTarball/pdfium/core/fpdfapi/page/
$W/Dep/GenCxxObject/UnpackedTarball/pdfium/core/fpdfapi/page/ && cd
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2 && CCACHE_CPP2=3D1=
=20=20=20=20
/usr/local/bin/clang++90 -DBOOST_ERROR_CODE_HEADER_ONLY
-DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=3Dgcc3 -DFREEBSD -DNDEBUG
-DOSL_DEBUG_LEVEL=3D0 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT -isyst=
em
/usr/local/include -DFPDF_IMPLEMENTATION -DUSE_SYSTEM_LCMS2
-DUSE_SYSTEM_LIBJPEG -DUSE_SYSTEM_ZLIB -DUSE_SYSTEM_ICUUC
-DMEMORY_TOOL_REPLACES_ALLOCATOR -DUNICODE -DWIN32_LEAN_AND_MEAN
-DCOMPONENT_BUILD  -DUSE_SYSTEM_LIBOPENJPEG2  -DSYSTEM_ZLIB -DZLIB_CONST=20
-DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H=3D'<freetype-custom-config/ftmodu=
le.h>'
-DFT_CONFIG_OPTIONS_H=3D'<freetype-custom-config/ftoption.h>'  -flto=3Dthin
-fvisibility=3Dhidden    -Wall -Wno-missing-braces -Wnon-virtual-dtor
-Wendif-labels -Wextra -Wundef -Wunreachable-code -Wshadow -Wunused-macros
-Wembedded-directive -finput-charset=3DUTF-8 -fmessage-length=3D0 -fno-comm=
on -pipe
-fstack-protector-strong -fdiagnostics-color=3Dalways  -Wimplicit-fallthrou=
gh
-Wunused-exception-parameter -Wrange-loop-analysis -fvisibility-inlines-hid=
den
-fPIC -Woverloaded-virtual -Wno-unused-parameter -Wno-unused-local-typedefs
-std=3Dc++17   -O2 -pipe -march=3Dhaswell -fstack-protector-strong
-DLDAP_DEPRECATED -isystem /usr/local/include -fno-strict-aliasing  -isystem
/usr/local/include   -DEXCEPTIONS_ON -fexceptions  -w -DLIBO_INTERNAL_ONLY =
 -c
$W/UnpackedTarball/pdfium/core/fpdfapi/page/cpdf_dib.cpp -o
$W/GenCxxObject/UnpackedTarball/pdfium/core/fpdfapi/page/cpdf_dib.o=20
-I$W/UnpackedTarball/pdfium/third_party/freetype/include/
-I$W/UnpackedTarball/pdfium/third_party/freetype/src/include/
-I$W/UnpackedTarball/pdfium -I$W/UnpackedTarball/pdfium/third_party
-I$W/UnpackedTarball/pdfium/third_party/agg23  -isystem
/usr/local/include/openjpeg-2.4  -I$S/include  -I/usr/local/openjdk11/inclu=
de
-I/usr/local/openjdk11/include/freebsd -I/usr/local/openjdk11/include/bsd
-I/usr/local/openjdk11/include/linux -I$S/config_host           -isystem
/usr/local/include  -Wno-long-long=20=20=20=20=20
3 errors generated.
gmake[3]: ***
[/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/solenv/gbuild/Link=
Target.mk:400:
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/GenCxxObjec=
t/UnpackedTarball/pdfium/core/fpdfapi/page/cpdf_psengine.o]
Error 1
gmake[3]: *** Waiting for unfinished jobs....
rm
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/edit_word_he.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/dict_word_he.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/count_word.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/dict_word_hu.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/dict_word_he.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/dict_word_prepostdash.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/edit_word.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/dict_word_nodash.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/sent.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/edit_word_hu.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/line.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/edit_word_hu.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/edit_word.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/edit_word_he.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/dict_word.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/sent.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/dict_word_hu.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/dict_word_prepostdash.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/line.txt
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/count_word.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/dict_word.brk
/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarge=
t/i18npool/breakiterator/dict_word_nodash.brk
gmake[3]: Leaving directory
'/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2'
gmake[2]: *** [Makefile:288: build] Error 2
gmake[2]: Leaving directory
'/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2'
=3D=3D=3D> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure =
to
the maintainer.
*** Error code 1

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

Stop.
make: stopped in /usr/ports/editors/libreoffice
egrep: empty (sub)expression
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portupgrade20220515-6756-7x82de env UPGRADE_TOOL=3Dportupgrade
UPGRADE_PORT=3Dlibreoffice-7.3.3.2 UPGRADE_PORT_VER=3D7.3.3.2 "LOCALIZED_LA=
NG=3Dja
CPUTYPE=3Dhaswell" make DISABLE_VULNERABILITIES=3Dyes
** Fix the problem and try again.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263976-25061>