Thomas Marshall created MESOS-485:
-------------------------------------
Summary: Latest trunk fails on strict aliasing on CentOS
Key: MESOS-485
URL: https://issues.apache.org/jira/browse/MESOS-485
Project: Mesos
Issue Type: Bug
Reporter: Thomas Marshall
I get the following error when building the latest trunk on CentOS 6.5:
g++ -DPACKAGE_NAME=\"mesos\" -DPACKAGE_TARNAME=\"mesos\"
-DPACKAGE_VERSION=\"0.13.0\" -DPACKAGE_STRING=\"mesos\ 0.13.0\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"mesos\" -DVERSION=\"0.13.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 -DMESOS_HAS_JAVA=1 -DMESOS_HAS_PYTHON=1 -DHAVE_LIBZ=1
-DHAVE_LIBCRYPTO=1 -DHAVE_LIBSSL=1 -DHAVE_LIBCURL=1 -I. -I../../src -Wall
-Werror -DMESOS_WEBUI_DIR=\"/usr/local/share/mesos/webui\"
-DMESOS_LIBEXECDIR=\"/usr/local/libexec/mesos\" -I../../include
-I../../third_party/libprocess/include
-I../../third_party/libprocess/third_party/stout/include -I../include
-I../third_party/libprocess/third_party/boost-1.53.0
-I../third_party/libprocess/third_party/protobuf-2.4.1/src
-I../third_party/libprocess/third_party/glog-0.3.1/src
-I../third_party/zookeeper-3.3.4/src/c/include
-I../third_party/zookeeper-3.3.4/src/c/generated
-DSOURCE_DIR=\"/root/workspace/Mesos/build/..\"
-DBUILD_DIR=\"/root/workspace/Mesos/build\"
-I../third_party/libprocess/third_party/gmock-1.6.0/gtest/include
-I../third_party/libprocess/third_party/gmock-1.6.0/include
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include
-I/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/include/linux
-DZOOKEEPER_VERSION=\"3.3.4\" -g -g2 -O2 -MT tests/mesos_tests-gc_tests.o -MD
-MP -MF tests/.deps/mesos_tests-gc_tests.Tpo -c -o tests/mesos_tests-gc_tests.o
`test -f 'tests/gc_tests.cpp' || echo '../../src/'`tests/gc_tests.cpp
cc1plus: warnings being treated as errors
./mesos.pb.h: In member function ‘virtual void
MasterTest_MultipleExecutors_Test::TestBody()’:
./mesos.pb.h:3716: error: dereferencing pointer ‘<anonymous>’ does break
strict-aliasing rules
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_tree.h:175:
note: initialized from here
make[3]: *** [tests/mesos_tests-master_tests.o] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f tests/.deps/mesos_tests-status_update_manager_tests.Tpo
tests/.deps/mesos_tests-status_update_manager_tests.Po
mv -f tests/.deps/mesos_tests-slave_recovery_tests.Tpo
tests/.deps/mesos_tests-slave_recovery_tests.Po
mv -f tests/.deps/mesos_tests-gc_tests.Tpo tests/.deps/mesos_tests-gc_tests.Po
make[3]: Leaving directory `/root/workspace/Mesos/build/src'
make[2]: *** [check-am] Error 2
make[2]: Leaving directory `/root/workspace/Mesos/build/src'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/root/workspace/Mesos/build/src'
make: *** [check-recursive] Error 1
This can be fixed for now by adding -fno-strict-aliasing to CXXFLAGS, but
that's obviously not a long term solution.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira