Re: Libreoffice error during autogen

2022-08-04 Thread Stephan Bergmann
ATURE_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".)




Re: Libreoffice error during autogen

2022-08-04 Thread Stephan Bergmann

On 8/4/22 10:49, Stephan Bergmann wrote:

On 8/4/22 10:23, Julien Nabet wrote:

On pc Debian x86-64 with master sources updated today, I got:

configure: compiler plugins compile flags: -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

checking for clang/Basic/SourceLocation.h... yes
checking for clang libraries to use...
configure: error: Cannot find Clang libraries to build compiler plugins.
Error running configure at ./autogen.sh line 322.


I noticed 5078591de9a0e65ca560a4f1913e90dfe95f66bf CLANGTOOLLIBS needs 
to include -lclangSupport now


Seeing that that change passed Jenkins, I naively assumed that 
libclangSupport would generally be available with our compiler plugins 
Clang 12.0.1 baseline (even if I myself only checked that change with my 
local LLVM 16 trunk build).


So my naive assumption was apparently wrong, and 
 "-lclangSupport is only 
available since Clang 15" should hopefully fix that.  Sorry for the trouble.




Re: Libreoffice error during autogen

2022-08-04 Thread Stephan Bergmann
[I took the liberty to move this to libreoffice@lists.freedesktop.org, 
where it IMO fits better; please try to avoid private mails:]


On 8/4/22 10:23, Julien Nabet wrote:

Hello Stephan,

On pc Debian x86-64 with master sources updated today, I got:

configure: compiler plugins compile flags: -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

checking for clang/Basic/SourceLocation.h... yes
checking for clang libraries to use...
configure: error: Cannot find Clang libraries to build compiler plugins.
Error running configure at ./autogen.sh line 322.


I noticed 5078591de9a0e65ca560a4f1913e90dfe95f66bf CLANGTOOLLIBS needs 
to include -lclangSupport now


Seeing that that change passed Jenkins, I naively assumed that 
libclangSupport would generally be available with our compiler plugins 
Clang 12.0.1 baseline (even if I myself only checked that change with my 
local LLVM 16 trunk build).


Please look into your config.log, why exactly "checking for clang 
libraries to use" fails for you.



I use:

Debian clang version 14.0.6-2
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

autogen.input contains several entries including:

CC=clang
CXX=clang++

What should I install so autogen.sh doesn't complain?

Regards,

Julien