Boost C++ Libraries: Ticket #13538: Issue in addressof.hpp? https://svn.boost.org/trac10/ticket/13538 <p> I'm trying to build pCloudCC and not sure if this is a Boost problem or a pCloud problem: </p> <p> [ 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:&#34;_GNU_SOURCE&#34; redefined [enabled by default] </p> <blockquote> <p> #define _GNU_SOURCE <sup> </sup></p> </blockquote> <p> &lt;command-line&gt;: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, </p> <blockquote> <p> 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: </p> </blockquote> <p> /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: <span class="underline">builtin_assume’ was not declared in this scope </span></p> <blockquote> <p> <span class="underline">builtin_assume( local_use_count_ &gt;= 1 ); </span></p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> In file included from /usr/local/include/boost/smart_ptr/detail/sp_counted_impl.hpp:29:0, </p> <blockquote> <p> 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: </p> </blockquote> <p> /usr/local/include/boost/core/addressof.hpp: In instantiation of ‘T* boost::addressof(T&amp;) [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&lt;P, D&gt;::get_local_deleter(const sp_typeinfo&amp;) [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: ‘<span class="underline">builtin_addressof’ was not declared in this scope </span></p> <blockquote> <p> return <span class="underline">builtin_addressof(o); </span></p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13538 Trac 1.4.3 John Maddock Thu, 10 May 2018 16:46:05 GMT component changed; owner set https://svn.boost.org/trac10/ticket/13538#comment:1 https://svn.boost.org/trac10/ticket/13538#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Peter Dimov</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">smart_ptr</span> </li> </ul> Ticket anonymous Thu, 10 May 2018 17:03:58 GMT <link>https://svn.boost.org/trac10/ticket/13538#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13538#comment:2</guid> <description> <p> This is a pCloud issue, see <a class="ext-link" href="https://lists.boost.org/Archives/boost/2018/04/242088.php"><span class="icon">​</span>https://lists.boost.org/Archives/boost/2018/04/242088.php</a> </p> </description> <category>Ticket</category> </item> </channel> </rss>