You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Vinson Lee (JIRA)" <ji...@apache.org> on 2014/11/07 00:23:35 UTC

[jira] [Created] (MESOS-2049) 3rdparty/boost-1.53.0/boost/circular_buffer/base.hpp:2090:21: error: destination for this 'memset' call is a pointer to class containing a dynamic class 'ExecutorInfo'; vtable pointer will be overwritten [-Werror,-Wdynamic-class-memaccess]

Vinson Lee created MESOS-2049:
---------------------------------

             Summary: 3rdparty/boost-1.53.0/boost/circular_buffer/base.hpp:2090:21: error: destination for this 'memset' call is a pointer to class containing a dynamic class 'ExecutorInfo'; vtable pointer will be overwritten [-Werror,-Wdynamic-class-memaccess]
                 Key: MESOS-2049
                 URL: https://issues.apache.org/jira/browse/MESOS-2049
             Project: Mesos
          Issue Type: Bug
          Components: build
         Environment: Ubuntu 14.10
clang 3.5

            Reporter: Vinson Lee
            Priority: Blocker


libtool: compile:  clang++ -DPACKAGE_NAME=\"mesos\" -DPACKAGE_TARNAME=\"mesos\" -DPACKAGE_VERSION=\"0.22.0\" "-DPACKAGE_STRING=\"mesos 0.22.0\"" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"mesos\" -DVERSION=\"0.22.0\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -DHAVE_PTHREAD=1 -DHAVE_LIBZ=1 -DHAVE_LIBCURL=1 -DHAVE_LIBAPR_1=1 -DHAVE_LIBSVN_SUBR_1=1 -DHAVE_LIBSVN_DELTA_1=1 -DHAVE_LIBSASL2=1 -DMESOS_HAS_JAVA=1 -DHAVE_PYTHON=\"2.7\" -DMESOS_HAS_PYTHON=1 -I. -I../../src -Wall -Werror -DLIBDIR=\"/usr/local/lib\" -DPKGLIBEXECDIR=\"/usr/local/libexec/mesos\" -DPKGDATADIR=\"/usr/local/share/mesos\" -I../../include -I../../3rdparty/libprocess/include -I../../3rdparty/libprocess/3rdparty/stout/include -I../include -I../include/mesos -I../3rdparty/libprocess/3rdparty/boost-1.53.0 -I../3rdparty/libprocess/3rdparty/picojson-4f93734 -I../3rdparty/libprocess/3rdparty/protobuf-2.5.0/src -I../3rdparty/libprocess/3rdparty/glog-0.3.3/src -I../3rdparty/libprocess/3rdparty/glog-0.3.3/src -I../3rdparty/leveldb/include -I../3rdparty/zookeeper-3.4.5/src/c/include -I../3rdparty/zookeeper-3.4.5/src/c/generated -I../3rdparty/libprocess/3rdparty/protobuf-2.5.0/src -I/usr/include/subversion-1 -I/usr/include/apr-1 -I/usr/include/apr-1.0 -pthread -g1 -O0 -std=c++11 -MT local/libmesos_no_3rdparty_la-local.lo -MD -MP -MF local/.deps/libmesos_no_3rdparty_la-local.Tpo -c ../../src/local/local.cpp  -fPIC -DPIC -o local/.libs/libmesos_no_3rdparty_la-local.o
In file included from ../../src/local/local.cpp:47:
In file included from ../../src/master/hierarchical_allocator_process.hpp:39:
In file included from ../../src/master/master.hpp:28:
In file included from ../3rdparty/libprocess/3rdparty/boost-1.53.0/boost/circular_buffer.hpp:65:
../3rdparty/libprocess/3rdparty/boost-1.53.0/boost/circular_buffer/base.hpp:2090:21: error: destination for this 'memset' call is a pointer to class containing a dynamic class 'ExecutorInfo'; vtable pointer will be overwritten [-Werror,-Wdynamic-class-memaccess]
        std::memset(p, cb_details::UNINITIALIZED, sizeof(value_type) * n);
        ~~~~~~~~~~~ ^
../3rdparty/libprocess/3rdparty/boost-1.53.0/boost/circular_buffer/base.hpp:2177:18: note: in instantiation of member function 'boost::circular_buffer<mesos::internal::slave::ResourceMonitorProcess::MonitoringInfo, std::allocator<mesos::internal::slave::ResourceMonitorProcess::MonitoringInfo> >::allocate' requested here
        m_buff = allocate(buffer_capacity);
                 ^
../3rdparty/libprocess/3rdparty/boost-1.53.0/boost/circular_buffer/base.hpp:1018:9: note: in instantiation of member function 'boost::circular_buffer<mesos::internal::slave::ResourceMonitorProcess::MonitoringInfo, std::allocator<mesos::internal::slave::ResourceMonitorProcess::MonitoringInfo> >::initialize_buffer' requested here
        initialize_buffer(buffer_capacity);
        ^
../../src/slave/monitor.hpp:99:7: note: in instantiation of member function 'boost::circular_buffer<mesos::internal::slave::ResourceMonitorProcess::MonitoringInfo, std::allocator<mesos::internal::slave::ResourceMonitorProcess::MonitoringInfo> >::circular_buffer' requested here
      archive(MONITORING_ARCHIVED_TIME_SERIES) {}
      ^
../3rdparty/libprocess/3rdparty/boost-1.53.0/boost/circular_buffer/base.hpp:2090:21: note: explicitly cast the pointer to silence this warning
        std::memset(p, cb_details::UNINITIALIZED, sizeof(value_type) * n);
                    ^
                    (void*)




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)