Opened 4 months ago

Last modified 3 months ago

#13538 new Support Requests

Issue in addressof.hpp?

Reported by: Josh <egomagickian@…> Owned by: Peter Dimov
Milestone: To Be Determined Component: smart_ptr
Version: Boost 1.67.0 Severity: Problem
Keywords: Cc:

Description

I'm trying to build pCloudCC and not sure if this is a Boost problem or a pCloud problem:

[ 40%] Building CXX object CMakeFiles/pcloudcc_lib.dir/pclsync_lib.cpp.o In file included from /root/build/console-client-master/pCloudCC/pclsync_lib.cpp:30:0: /root/build/console-client-master/pCloudCC/lib/pclsync/pcompat.h:95:0: warning:"_GNU_SOURCE" redefined [enabled by default]

#define _GNU_SOURCE

<command-line>:0:0: note: this is the location of the previous definition In file included from /usr/local/include/boost/smart_ptr/detail/local_sp_deleter.hpp:20:0,

from /usr/local/include/boost/smart_ptr/shared_ptr.hpp:1158, from /usr/local/include/boost/shared_ptr.hpp:17, from /root/build/console-client-master/pCloudCC/pclsync_lib.cpp:45:

/usr/local/include/boost/smart_ptr/detail/local_counted_base.hpp: In member function ‘void boost::detail::local_counted_base::add_ref()’: /usr/local/include/boost/smart_ptr/detail/local_counted_base.hpp:67:49: error: builtin_assume’ was not declared in this scope

builtin_assume( local_use_count_ >= 1 );

In file included from /usr/local/include/boost/smart_ptr/detail/sp_counted_impl.hpp:29:0,

from /usr/local/include/boost/smart_ptr/detail/shared_count.hpp:30, from /usr/local/include/boost/smart_ptr/shared_ptr.hpp:28, from /usr/local/include/boost/shared_ptr.hpp:17, from /root/build/console-client-master/pCloudCC/pclsync_lib.cpp:45:

/usr/local/include/boost/core/addressof.hpp: In instantiation of ‘T* boost::addressof(T&) [with T = int (*)(_IO_FILE*)]’: /usr/local/include/boost/smart_ptr/detail/sp_counted_impl.hpp:182:98: required from ‘void* boost::detail::sp_counted_impl_pd<P, D>::get_local_deleter(const sp_typeinfo&) [with P = _IO_FILE*; D = int (*)(_IO_FILE*); boost::detail::sp_typeinfo = std::type_info]’ /root/build/console-client-master/pCloudCC/pclsync_lib.cpp:304:1: required from here /usr/local/include/boost/core/addressof.hpp:40:33: error: ‘builtin_addressof’ was not declared in this scope

return builtin_addressof(o);

Change History (2)

comment:1 Changed 3 months ago by John Maddock

Component: Nonesmart_ptr
Owner: set to Peter Dimov
Note: See TracTickets for help on using tickets.