Build fail on Debian x86-64 with master sources

Julien Nabet serval2412 at yahoo.fr
Fri Aug 23 07:32:28 UTC 2024


Hello,

I got this error during build (after make clean && ./autogen.sh && make) :

In file included from /home/julien/lo/libo_perf/include/rtl/ustring.h:29,
                  from 
/home/julien/lo/libo_perf/include/typelib/typedescription.h:29,
                  from 
/home/julien/lo/libo_perf/include/com/sun/star/uno/Type.h:26,
                  from 
/home/julien/lo/libo_perf/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/beans/Property.hdl:6,
                  from 
/home/julien/lo/libo_perf/workdir/UnoApiHeadersTarget/udkapi/normal/com/sun/star/beans/Property.hpp:6,
                  from 
/home/julien/lo/libo_perf/configmgr/source/access.cxx:28:
In member function ‘void configmgr::Access::releaseNondeleting()’,
     inlined from ‘rtl::Reference<configmgr::ChildAccess> 
configmgr::Access::getUnmodifiedChild(const rtl::OUString&)’ at 
/home/julien/lo/libo_perf/configmgr/source/access.cxx:2064:38:
/home/julien/lo/libo_perf/include/osl/interlck.h:91:57: error: ‘unsigned 
int __sync_sub_and_fetch_4(volatile void*, unsigned int)’ writing 4 
bytes into a region of size 0 overflows the destination 
[-Werror=stringop-overflow=]
    91 | #    define osl_atomic_decrement(p) __sync_sub_and_fetch((p), 1)
       | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/home/julien/lo/libo_perf/configmgr/source/access.cxx:134:5: note: in 
expansion of macro ‘osl_atomic_decrement’
   134 |     osl_atomic_decrement(&m_refCount);
       |     ^~~~~~~~~~~~~~~~~~~~
In member function ‘rtl::Reference<configmgr::ChildAccess> 
configmgr::Access::getUnmodifiedChild(const rtl::OUString&)’:
cc1plus: note: destination object is likely at address zero
cc1plus: all warnings being treated as errors
make[1]: *** [/home/julien/lo/libo_perf/solenv/gbuild/LinkTarget.mk:338 
: /home/julien/lo/libo_perf/workdir/CxxObject/configmgr/source/access.o] 
Erreur 1
make[1]: *** Attente des tâches non terminées....

autogen.input:

--disable-compiler-plugins
--enable-dbus
--enable-werror
--enable-dependency-tracking
--enable-python=fully-internal
--enable-symbols
--with-referenced-git=/home/julien/lo/libreoffice
--with-external-tar=/home/julien/lo/libreoffice/external/tarballs
--enable-avahi
--with-lang=en-US fr
#--with-lang=ALL
--with-help

gcc (Debian 14.2.0-1) 14.2.0

Any idea how to fix this?

Julien



More information about the LibreOffice mailing list