Dear Andreas,

Thank you for the notice. It looks like a optimizer compiler bug... Anyway, I managed to patch it using a different syntax.

I pushed it in the repository. Please have a look and upload it if that's good enough.

Cheers.


*Dr. Flavien BRIDAULT*
Director of Software Development
IRCAD France & IRCAD Africa

flavien.brida...@ircad.fr <mailto:flavien.bridault-louc...@ircad.fr>
Tél. : +33 (0)3 88 119 201
                IRCAD France
http://www.ircad.fr/
http://www.ircad.africa/ <http://www.ircad.fr/>

Suivez l'IRCAD sur Facebook <http://www.facebook.com/pages/IRCAD/193785273990141>

*IRCAD France*
Hôpitaux Universitaires - 1, place de l'Hôpital - 67091 Strasbourg Cedex - FRANCE

Le 20/12/2023 à 12:30, Sebastian Ramacher a écrit :
Source: sight
Version: 23.1.0-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc:sramac...@debian.org

https://buildd.debian.org/status/fetch.php?pkg=sight&arch=amd64&ver=23.1.0-1%2Bb1&stamp=1702935225&raw=0

[ 50%] Building CXX object 
libs/filter/dicom/CMakeFiles/filter_dicom.dir/IFilter.cpp.o
cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libs/filter/dicom && /usr/bin/c++ -DBOOST_ALL_DYN_LINK -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_BIND_GLOBAL_PLACEHOLDERS -DBOOST_CHRONO_DYN_LINK 
-DBOOST_CHRONO_NO_LIB -DBOOST_DATE_TIME_DYN_LINK -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_IOSTREAMS_NO_LIB -DBOOST_LOG_DYN_LINK -DBOOST_LOG_NO_LIB 
-DBOOST_LOG_SETUP_DYN_LINK -DBOOST_LOG_SETUP_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DBOOST_SPIRIT_USE_PHOENIX_V3 -DBOOST_THREAD_DONT_PROVIDE_DEPRECATED_FEATURES_SINCE_V3_0_0 -DBOOST_THREAD_DYN_LINK 
-DBOOST_THREAD_NO_LIB -DBOOST_THREAD_PROVIDES_FUTURE -DBOOST_THREAD_VERSION=2 -DFILTER_DICOM_EXPORTS -DNDEBUG -DSIGHT_SOURCE_DIR=\"/<<PKGBUILDDIR>>\" -Dfilter_dicom_EXPORTS 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libs/filter/dicom/include -I/<<PKGBUILDDIR>>/libs -I/<<PKGBUILDDIR>>/libs/core -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libs/core/core/include 
-I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libs/core/data/include -I/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libs/geometry/data/include -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. 
-fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -O3 -DNDEBUG -std=gnu++20 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra 
-Wconversion -march=x86-64 -mtune=generic -mfpmath=sse -fopenmp -Werror -Wno-error=deprecated-declarations -fopenmp -Winvalid-pch -include 
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libs/core/pch/pchCore/CMakeFiles/pchCore.dir/cmake_pch.hxx -MD -MT libs/filter/dicom/CMakeFiles/filter_dicom.dir/IFilter.cpp.o -MF CMakeFiles/filter_dicom.dir/IFilter.cpp.o.d -o 
CMakeFiles/filter_dicom.dir/IFilter.cpp.o -c /<<PKGBUILDDIR>>/libs/filter/dicom/IFilter.cpp
In file included from /usr/include/c++/13/string:42,
                  from 
/usr/include/boost/algorithm/string/std/string_traits.hpp:15,
                  from 
/usr/include/boost/algorithm/string/std_containers_traits.hpp:19,
                  from /usr/include/boost/algorithm/string.hpp:18,
                  from 
/<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/libs/core/pch/pchCore/CMakeFiles/pchCore.dir/cmake_pch.hxx:5,
                  from <command-line>:
In static member function ‘static constexpr std::char_traits<char>::char_type* 
std::char_traits<char>::copy(char_type*, const char_type*, std::size_t)’,
     inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, 
_Alloc>::basic_string(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&&) [with _CharT = 
char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]’ at 
/usr/include/c++/13/bits/basic_string.h:683:23,
     inlined from ‘constexpr std::__cxx11::basic_string<_CharT, _Traits, _Allocator> 
std::operator+(__cxx11::basic_string<_CharT, _Traits, _Allocator>&&, __cxx11::basic_string<_CharT, _Traits, 
_Allocator>&&) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]’ at 
/usr/include/c++/13/bits/basic_string.h:3668:43,
     inlined from ‘std::string sight::core::com::SlotBase::getTypeName() const [with F = 
void(double)]’ at /<<PKGBUILDDIR>>/libs/core/core/com/SlotBase.hpp:227:99,
     inlined from ‘sight::core::com::Slot<R(A ...)>::Slot() [with R = void; A = {double}]’ 
at /<<PKGBUILDDIR>>/libs/core/core/com/Slot.hxx:48:33:
/usr/include/c++/13/bits/char_traits.h:445:56: error: ‘void* __builtin_memcpy(void*, const 
void*, long unsigned int)’ forming offset [32, 34] is out of the bounds [0, 32] of object 
‘<anonymous>’ with type ‘std::__cxx11::basic_string<char>’ 
[-Werror=array-bounds=]
   445 |         return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, 
__n));
       |                                        
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
In file included from /<<PKGBUILDDIR>>/libs/core/core/com/SlotRun.hpp:27,
                  from /<<PKGBUILDDIR>>/libs/core/core/com/SlotCall.hpp:27,
                  from /<<PKGBUILDDIR>>/libs/core/core/com/Slot.hpp:27,
                  from /<<PKGBUILDDIR>>/libs/core/service/IService.hpp:30,
                  from /<<PKGBUILDDIR>>/libs/core/service/IRegisterer.hpp:26,
                  from /<<PKGBUILDDIR>>/libs/core/service/IRegisterer.cpp:23:
/<<PKGBUILDDIR>>/libs/core/core/com/SlotBase.hpp: In constructor 
‘sight::core::com::Slot<R(A ...)>::Slot() [with R = void; A = {double}]’:
/<<PKGBUILDDIR>>/libs/core/core/com/SlotBase.hpp:227:50: note: ‘<anonymous>’ 
declared here
   227 |             return std::string("function_type(") + std::string(typeid(F).name()) 
+ std::string(")");
       |                         
~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
make[3]: *** [libs/core/service/CMakeFiles/service.dir/build.make:177: 
libs/core/service/CMakeFiles/service.dir/IRegisterer.cpp.o] Error 1

Cheers

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to