[Bug 263976] editors/libreoffice: Fails to build using llvm/clang14 on recent src main
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 14 May 2022 22:59:58 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263976 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+= llvm=13 .endif on /etc/make.conf allowed editors/libreoffice to build. Not tried, but forcibly setting LLVM_DEFAULT=13 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 would switch to newer llvm in the future. Fixing editors/libreoffice for llvm14 and newer would be required in the future anyway. Actual error log: [CXX] workdir/UnpackedTarball/pdfium/core/fpdfapi/page/cpdf_dib.cpp S=/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2 && I=$S/instdir && W=$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=1 /usr/local/bin/clang++90 -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DFREEBSD -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT -isystem /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 -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H='<freetype-custom-config/ftmodule.h>' -DFT_CONFIG_OPTIONS_H='<freetype-custom-config/ftoption.h>' -flto=thin -fvisibility=hidden -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunreachable-code -Wshadow -Wunused-macros -Wembedded-directive -finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe -fstack-protector-strong -fdiagnostics-color=always -Wimplicit-fallthrough -Wunused-exception-parameter -Wrange-loop-analysis -fvisibility-inlines-hidden -fPIC -Woverloaded-virtual -Wno-unused-parameter -Wno-unused-local-typedefs -std=c++17 -O2 -pipe -march=haswell -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 -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/include -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 /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/UnpackedTarball/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/UnpackedTarball/pdfium/third_party/base/numerics/safe_conversions.h:300:13: note: candidate template ignored: requirement 'IsNumericRangeContained<float, int, void>::value' was not satisfied [with Dst = float] constexpr operator Dst() const { ^ /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/UnpackedTarball/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/UnpackedTarball/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/UnpackedTarball/pdfium/third_party/base/numerics/safe_conversions.h:300:13: note: candidate template ignored: requirement 'IsNumericRangeContained<float, int, void>::value' was not satisfied [with Dst = float] constexpr operator Dst() const { ^ /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/UnpackedTarball/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/UnpackedTarball/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/UnpackedTarball/pdfium/third_party/base/numerics/safe_conversions.h:300:13: note: candidate template ignored: requirement 'IsNumericRangeContained<float, int, void>::value' was not satisfied [with Dst = float] constexpr operator Dst() const { ^ /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/UnpackedTarball/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/UnpackedTarball/pdfium/core/fpdfapi/page/cpdf_dib.cpp || (echo "Missing generated source file /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/UnpackedTarball/pdfium/core/fpdfapi/page/cpdf_dib.cpp" && false) [CXX] workdir/UnpackedTarball/pdfium/core/fpdfapi/parser/cpdf_object_stream.cpp S=/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2 && I=$S/instdir && W=$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=1 /usr/local/bin/clang++90 -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED -DCPPU_ENV=gcc3 -DFREEBSD -DNDEBUG -DOSL_DEBUG_LEVEL=0 -DUNIX -DUNX -DX86_64 -D_PTHREADS -D_REENTRANT -isystem /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 -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H='<freetype-custom-config/ftmodule.h>' -DFT_CONFIG_OPTIONS_H='<freetype-custom-config/ftoption.h>' -flto=thin -fvisibility=hidden -Wall -Wno-missing-braces -Wnon-virtual-dtor -Wendif-labels -Wextra -Wundef -Wunreachable-code -Wshadow -Wunused-macros -Wembedded-directive -finput-charset=UTF-8 -fmessage-length=0 -fno-common -pipe -fstack-protector-strong -fdiagnostics-color=always -Wimplicit-fallthrough -Wunused-exception-parameter -Wrange-loop-analysis -fvisibility-inlines-hidden -fPIC -Woverloaded-virtual -Wno-unused-parameter -Wno-unused-local-typedefs -std=c++17 -O2 -pipe -march=haswell -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 -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/include -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 3 errors generated. gmake[3]: *** [/usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/solenv/gbuild/LinkTarget.mk:400: /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/GenCxxObject/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/CustomTarget/i18npool/breakiterator/edit_word_he.txt /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_he.txt /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/i18npool/breakiterator/count_word.txt /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_hu.txt /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_he.brk /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.txt /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/i18npool/breakiterator/edit_word.brk /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_nodash.txt /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/i18npool/breakiterator/sent.brk /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/i18npool/breakiterator/edit_word_hu.txt /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/i18npool/breakiterator/line.brk /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/i18npool/breakiterator/edit_word_hu.brk /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/i18npool/breakiterator/edit_word.txt /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/i18npool/breakiterator/edit_word_he.brk /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/i18npool/breakiterator/dict_word.txt /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/i18npool/breakiterator/sent.txt /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_hu.brk /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/i18npool/breakiterator/dict_word_prepostdash.brk /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/i18npool/breakiterator/line.txt /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/i18npool/breakiterator/count_word.brk /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/i18npool/breakiterator/dict_word.brk /usr/ports/editors/libreoffice/work/libreoffice-7.3.3.2/workdir/CustomTarget/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' ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes 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=portupgrade UPGRADE_PORT=libreoffice-7.3.3.2 UPGRADE_PORT_VER=7.3.3.2 "LOCALIZED_LANG=ja CPUTYPE=haswell" make DISABLE_VULNERABILITIES=yes ** Fix the problem and try again. -- You are receiving this mail because: You are the assignee for the bug.