Re: Libreoffice error during autogen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/4/22 10:59, Julien Nabet wrote:
On 04/08/2022 10:49, Stephan Bergmann wrote:
Please look into your config.log, why exactly "checking for clang libraries to use" fails for you.

I attached config.log where I noticed these:

(For the record:  The relevant part of configure.ac is

            AC_MSG_CHECKING([for clang libraries to use])
            if test -z "$CLANGTOOLLIBS"; then
                LIBS="-lclangTooling -lclangFrontend -lclangDriver -lclangParse -lclangSema -lclangEdit \
 -lclangAnalysis -lclangAST -lclangLex -lclangSerialization -lclangBasic -lclangSupport $COMPILER_PLUGINS_LINKFLAGS"
                AC_LINK_IFELSE([
                    AC_LANG_PROGRAM([[#include "clang/Basic/SourceLocation.h"]],
                        [[ clang::FullSourceLoc().dump(); ]])
                ],[CLANGTOOLLIBS="$LIBS"],[])
            fi
            if test -z "$CLANGTOOLLIBS"; then
                LIBS="-lclang-cpp $COMPILER_PLUGINS_LINKFLAGS"
                AC_LINK_IFELSE([
                    AC_LANG_PROGRAM([[#include "clang/Basic/SourceLocation.h"]],
                        [[ clang::FullSourceLoc().dump(); ]])
                ],[CLANGTOOLLIBS="$LIBS"],[])
            fi
            AC_MSG_RESULT([$CLANGTOOLLIBS])

and the corresponding part of your config.log is

configure:22011: checking for clang libraries to use
configure:22029: clang++ -o conftest -I/usr/lib/llvm-14/include -std=c++14   -fno-exceptions -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm-14/include -std=c++14   -fno-exceptions -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS  conftest.cpp -lclangTooling -lclangFrontend -lclangDriver -lclangParse -lclangSema -lclangEdit  -lclangAnalysis -lclangAST -lclangLex -lclangSerialization -lclangBasic -lclangSupport -L/usr/lib/llvm-14/lib  -lLLVM-14   >&5
/usr/bin/ld: cannot find -lclangSupport: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:22029: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "LibreOffice"
| #define PACKAGE_TARNAME "libreoffice"
| #define PACKAGE_VERSION "7.5.0.0.alpha0+"
| #define PACKAGE_STRING "LibreOffice 7.5.0.0.alpha0+"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://documentfoundation.org/";
| #define LIBO_VERSION_MAJOR 7
| #define LIBO_VERSION_MINOR 5
| #define LIBO_VERSION_MICRO 0
| #define LIBO_VERSION_PATCH 0
| #define LIBO_THIS_YEAR 2022
| #define SRCDIR "/home/julien/lo/libreoffice"
| #define SRC_ROOT "/home/julien/lo/libreoffice"
| #define BUILDDIR "/home/julien/lo/libreoffice"
| #define ENABLE_HEADLESS 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_DLAPI 1
| #define HAVE_UNIX_DLAPI 1
| #define HAVE_FEATURE_BACKTRACE 1
| #define HAVE_FEATURE_COMMUNITY_FLAVOR 1
| #define HAVE_FEATURE_DESKTOP 1
| #define HAVE_FEATURE_MULTIUSER_ENVIRONMENT 1
| #define HAVE_FEATURE_AVMEDIA 1
| #define HAVE_FEATURE_DBCONNECTIVITY 1
| #define HAVE_FEATURE_SCRIPTING 1
| #define HAVE_FEATURE_EXTENSIONS 1
| #define HAVE_FEATURE_JAVA 1
| #define LIBO_BIN_FOLDER "program"
| #define LIBO_ETC_FOLDER "program"
| #define LIBO_LIBEXEC_FOLDER "program"
| #define LIBO_LIB_FOLDER "program"
| #define LIBO_LIB_PYUNO_FOLDER "program"
| #define LIBO_SHARE_FOLDER "share"
| #define LIBO_SHARE_HELP_FOLDER "help"
| #define LIBO_SHARE_JAVA_FOLDER "program/classes"
| #define LIBO_SHARE_PRESETS_FOLDER "presets"
| #define LIBO_SHARE_RESOURCE_FOLDER "program/resource"
| #define LIBO_SHARE_SHELL_FOLDER "program/shell"
| #define LIBO_URE_BIN_FOLDER "program"
| #define LIBO_URE_ETC_FOLDER "program"
| #define LIBO_URE_LIB_FOLDER "program"
| #define LIBO_URE_MISC_FOLDER "program"
| #define LIBO_URE_SHARE_JAVA_FOLDER "program/classes"
| #define CLANG_VERSION 140006
| #define CLANG_FULL_VERSION "14.0.6 "
| #define HAVE_FEATURE_UI 1
| #define USING_X11 1
| #define SDKDIR "/home/julien/lo/libreoffice/instdir/sdk"
| #define WORKDIR "/home/julien/lo/libreoffice/workdir"
| #define HAVE_FEATURE_XMLHELP 1
| #define HAVE_GETOPT_H 1
| #define HAVE_PATHS_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_UTIME 1
| #define HAVE_UTIMES 1
| #define HAVE_SYSLOG_H 1
| #define HAVE_FEATURE_PAGEIN 1
| #define HAVE_CUPS_H 1
| #define SIZEOF_LONG 8
| #define SIZEOF_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_DOUBLE 8
| #define SIZEOF_VOIDP 8
| #define SIZEOF_SIZE_T 8
| #define ALIGNOF_SHORT 2
| #define ALIGNOF_INT 4
| #define ALIGNOF_LONG 8
| #define ALIGNOF_DOUBLE 8
| #define SAL_TYPES_SIZEOFSHORT 2
| #define SAL_TYPES_SIZEOFINT 4
| #define SAL_TYPES_SIZEOFLONG 8
| #define SAL_TYPES_SIZEOFLONGLONG 8
| #define SAL_TYPES_SIZEOFPOINTER 8
| #define SAL_TYPES_ALIGNMENT2 2
| #define SAL_TYPES_ALIGNMENT4 4
| #define SAL_TYPES_ALIGNMENT8 8
| #define HAVE_FEATURE_JUMBO_SHEETS 1
| #define ENABLE_RUNTIME_OPTIMIZATIONS 1
| #define HAVE_GCC_BUILTIN_ATOMIC 1
| #define HAVE_CXXABI_H_BASE_CLASS_TYPE_INFO 1
| #define HAVE_CXXABI_H_CLASS_TYPE_INFO 1
| #define HAVE_CXXABI_H_CXA_ALLOCATE_EXCEPTION 1
| #define HAVE_CXXABI_H_CXA_GET_GLOBALS 1
| #define HAVE_CXXABI_H_CXA_CURRENT_EXCEPTION_TYPE 1
| #define HAVE_CXXABI_H_CXA_THROW 1
| #define HAVE_CXXABI_H_SI_CLASS_TYPE_INFO 1
| #define HAVE_CXXABI_H_VMI_CLASS_TYPE_INFO 1
| #define HAVE_P1155R3 1
| /* end confdefs.h.  */
| | #include "clang/Basic/SourceLocation.h"
| int
| main (void)
| {
|  clang::FullSourceLoc().dump();
|   ;
|   return 0;
| }
| configure:22051: clang++ -o conftest -I/usr/lib/llvm-14/include -std=c++14 -fno-exceptions -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/usr/lib/llvm-14/include -std=c++14 -fno-exceptions -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS conftest.cpp -lclang-cpp -L/usr/lib/llvm-14/lib -lLLVM-14 >&5
/usr/bin/ld: cannot find -lclang-cpp: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:22051: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "LibreOffice"
| #define PACKAGE_TARNAME "libreoffice"
| #define PACKAGE_VERSION "7.5.0.0.alpha0+"
| #define PACKAGE_STRING "LibreOffice 7.5.0.0.alpha0+"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://documentfoundation.org/";
| #define LIBO_VERSION_MAJOR 7
| #define LIBO_VERSION_MINOR 5
| #define LIBO_VERSION_MICRO 0
| #define LIBO_VERSION_PATCH 0
| #define LIBO_THIS_YEAR 2022
| #define SRCDIR "/home/julien/lo/libreoffice"
| #define SRC_ROOT "/home/julien/lo/libreoffice"
| #define BUILDDIR "/home/julien/lo/libreoffice"
| #define ENABLE_HEADLESS 1
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_DLAPI 1
| #define HAVE_UNIX_DLAPI 1
| #define HAVE_FEATURE_BACKTRACE 1
| #define HAVE_FEATURE_COMMUNITY_FLAVOR 1
| #define HAVE_FEATURE_DESKTOP 1
| #define HAVE_FEATURE_MULTIUSER_ENVIRONMENT 1
| #define HAVE_FEATURE_AVMEDIA 1
| #define HAVE_FEATURE_DBCONNECTIVITY 1
| #define HAVE_FEATURE_SCRIPTING 1
| #define HAVE_FEATURE_EXTENSIONS 1
| #define HAVE_FEATURE_JAVA 1
| #define LIBO_BIN_FOLDER "program"
| #define LIBO_ETC_FOLDER "program"
| #define LIBO_LIBEXEC_FOLDER "program"
| #define LIBO_LIB_FOLDER "program"
| #define LIBO_LIB_PYUNO_FOLDER "program"
| #define LIBO_SHARE_FOLDER "share"
| #define LIBO_SHARE_HELP_FOLDER "help"
| #define LIBO_SHARE_JAVA_FOLDER "program/classes"
| #define LIBO_SHARE_PRESETS_FOLDER "presets"
| #define LIBO_SHARE_RESOURCE_FOLDER "program/resource"
| #define LIBO_SHARE_SHELL_FOLDER "program/shell"
| #define LIBO_URE_BIN_FOLDER "program"
| #define LIBO_URE_ETC_FOLDER "program"
| #define LIBO_URE_LIB_FOLDER "program"
| #define LIBO_URE_MISC_FOLDER "program"
| #define LIBO_URE_SHARE_JAVA_FOLDER "program/classes"
| #define CLANG_VERSION 140006
| #define CLANG_FULL_VERSION "14.0.6 "
| #define HAVE_FEATURE_UI 1
| #define USING_X11 1
| #define SDKDIR "/home/julien/lo/libreoffice/instdir/sdk"
| #define WORKDIR "/home/julien/lo/libreoffice/workdir"
| #define HAVE_FEATURE_XMLHELP 1
| #define HAVE_GETOPT_H 1
| #define HAVE_PATHS_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_UTIME 1
| #define HAVE_UTIMES 1
| #define HAVE_SYSLOG_H 1
| #define HAVE_FEATURE_PAGEIN 1
| #define HAVE_CUPS_H 1
| #define SIZEOF_LONG 8
| #define SIZEOF_SHORT 2
| #define SIZEOF_INT 4
| #define SIZEOF_LONG_LONG 8
| #define SIZEOF_DOUBLE 8
| #define SIZEOF_VOIDP 8
| #define SIZEOF_SIZE_T 8
| #define ALIGNOF_SHORT 2
| #define ALIGNOF_INT 4
| #define ALIGNOF_LONG 8
| #define ALIGNOF_DOUBLE 8
| #define SAL_TYPES_SIZEOFSHORT 2
| #define SAL_TYPES_SIZEOFINT 4
| #define SAL_TYPES_SIZEOFLONG 8
| #define SAL_TYPES_SIZEOFLONGLONG 8
| #define SAL_TYPES_SIZEOFPOINTER 8
| #define SAL_TYPES_ALIGNMENT2 2
| #define SAL_TYPES_ALIGNMENT4 4
| #define SAL_TYPES_ALIGNMENT8 8
| #define HAVE_FEATURE_JUMBO_SHEETS 1
| #define ENABLE_RUNTIME_OPTIMIZATIONS 1
| #define HAVE_GCC_BUILTIN_ATOMIC 1
| #define HAVE_CXXABI_H_BASE_CLASS_TYPE_INFO 1
| #define HAVE_CXXABI_H_CLASS_TYPE_INFO 1
| #define HAVE_CXXABI_H_CXA_ALLOCATE_EXCEPTION 1
| #define HAVE_CXXABI_H_CXA_GET_GLOBALS 1
| #define HAVE_CXXABI_H_CXA_CURRENT_EXCEPTION_TYPE 1
| #define HAVE_CXXABI_H_CXA_THROW 1
| #define HAVE_CXXABI_H_SI_CLASS_TYPE_INFO 1
| #define HAVE_CXXABI_H_VMI_CLASS_TYPE_INFO 1
| #define HAVE_P1155R3 1
| /* end confdefs.h.  */
| | #include "clang/Basic/SourceLocation.h"
| int
| main (void)
| {
|  clang::FullSourceLoc().dump();
|   ;
|   return 0;
| }
| configure:22058: result:

I assume that for your setup the first part of the configure.ac check (using `LIBS="-lclangTooling -lclangFrontend -lclangDriver ..."`) used to succeed and only now started to fail due to that

/usr/bin/ld: cannot find -lclangSupport: No such file or directory

that should get addressed now as per <https://lists.freedesktop.org/archives/libreoffice/2022-August/089214.html> "Re: Libreoffice error during autogen".)




[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux