Armand Grillet created MESOS-8355:
-------------------------------------
Summary: "expression with side effects has no effect in an
unevaluated context" on Ubuntu 16.04
Key: MESOS-8355
URL: https://issues.apache.org/jira/browse/MESOS-8355
Project: Mesos
Issue Type: Bug
Reporter: Armand Grillet
Attachments: ubuntu-16.04-clang.txt
Following https://reviews.apache.org/r/62287/ building Mesos on Ubuntu 16.04
with Clang does not work:
{code}
00:13:42 creating
build/bdist.linux-x86_64/wheel/mesos.scheduler-1.5.0.dist-info/WHEEL
00:13:46 make dynamic-reservation-framework test-http-framework test-framework
test-executor test-http-executor long-lived-framework long-lived-executor
no-executor-framework docker-no-executor-framework balloon-framework
balloon-executor load-generator-framework persistent-volume-framework
disk-full-framework test-helper mesos-tests examples/java/test-executor
examples/java/test-exception-framework examples/java/test-framework
examples/java/test-log examples/java/test-multiple-executors-framework
examples/java/v1-test-framework examples/python/test_executor.py
examples/python/test-executor examples/python/test_framework.py
examples/python/test-framework \
00:13:46 tests/balloon_framework_test.sh tests/disk_full_framework_test.sh
tests/dynamic_reservation_framework_test.sh tests/java_exception_test.sh
tests/java_framework_test.sh tests/java_log_test.sh
tests/java_v0_framework_test.sh tests/java_v1_framework_test.sh
tests/no_executor_framework_test.sh tests/persistent_volume_framework_test.sh
tests/python_framework_test.sh tests/test_http_framework_test.sh
tests/test_framework_test.sh
00:13:47 make[3]: Entering directory
'/home/ubuntu/workspace/mesos/Mesos_CI-build/FLAG/Clang/label/mesos-ec2-ubuntu-16.04/mesos/build/src'
00:13:47 CXXLD dynamic-reservation-framework
00:13:47 CXXLD test-http-framework
00:13:49 CXXLD test-framework
00:13:49 CXXLD test-executor
00:13:51 CXXLD test-http-executor
00:13:51 CXXLD long-lived-framework
00:13:52 CXXLD long-lived-executor
00:13:53 CXXLD no-executor-framework
00:13:54 CXXLD docker-no-executor-framework
00:13:54 CXXLD balloon-framework
00:13:56 CXXLD balloon-executor
00:13:56 CXXLD load-generator-framework
00:13:58 CXXLD persistent-volume-framework
00:13:58 CXXLD disk-full-framework
00:14:00 CXX tests/test_helper-active_user_test_helper.o
00:14:00 CXX tests/test_helper-flags.o
00:14:00 CXX tests/test_helper-http_server_test_helper.o
00:14:00 CXX tests/test_helper-kill_policy_test_helper.o
00:14:00 CXX tests/test_helper-resources_utils.o
00:14:00 CXX tests/test_helper-test_helper_main.o
00:14:00 CXX tests/test_helper-utils.o
00:14:00 CXX tests/containerizer/test_helper-memory_test_helper.o
00:14:00 CXX tests/containerizer/test_helper-capabilities_test_helper.o
00:14:00 CXX tests/containerizer/test_helper-setns_test_helper.o
00:14:00 CXX tests/mesos_tests-log_tests.o
00:14:01 CXX tests/mesos_tests-master_authorization_tests.o
00:14:27 ../../src/tests/log_tests.cpp:2439:120: error: expression with side
effects has no effect in an unevaluated context
[-Werror,-Wunevaluated-expression]
00:14:27 switch (0) case 0: default: if (const ::testing::AssertionResult
gtest_ar = (::testing::internal::
EqHelper<(sizeof(::testing::internal::IsNullLiteralHelper(stringify(position++)))
== 1)>::Compare("stringify(position++)", "entry.data", stringify(position++),
entry.data))) ; else
::testing::internal::AssertHelper(::testing::TestPartResult::kNonFatalFailure,
"../../src/tests/log_tests.cpp", 2439, gtest_ar.failure_message()) =
::testing::Message();
00:14:27
^
00:14:27 1 error generated.
00:14:27 Makefile:10317: recipe for target 'tests/mesos_tests-log_tests.o'
failed
00:14:27 make[3]: *** [tests/mesos_tests-log_tests.o] Error 1
00:14:27 make[3]: *** Waiting for unfinished jobs....
00:14:54 make[3]: Leaving directory
'/home/ubuntu/workspace/mesos/Mesos_CI-build/FLAG/Clang/label/mesos-ec2-ubuntu-16.04/mesos/build/src'
00:14:54 Makefile:13776: recipe for target 'check-am' failed
00:14:54 make[2]: *** [check-am] Error 2
00:14:54 make[2]: Leaving directory
'/home/ubuntu/workspace/mesos/Mesos_CI-build/FLAG/Clang/label/mesos-ec2-ubuntu-16.04/mesos/build/src'
00:14:54 Makefile:13780: recipe for target 'check' failed
00:14:54 make[1]: *** [check] Error 2
00:14:54 make[1]: Leaving directory
'/home/ubuntu/workspace/mesos/Mesos_CI-build/FLAG/Clang/label/mesos-ec2-ubuntu-16.04/mesos/build/src'
00:14:54 Makefile:774: recipe for target 'check-recursive' failed
00:14:54 make: *** [check-recursive] Error 1
00:14:55 Build step 'Conditional step (single)' marked build as failure
00:14:55 [WARNINGS] Parsing warnings in console log with parser GNU Make + GNU
C Compiler (gcc)
00:14:56 Skipping warnings blame since Git is the only supported SCM up to
now.%n
00:14:57 [WARNINGS] Computing warning deltas based on reference build
#2451-asf/master-63f116a5
00:15:00 Archiving artifacts
00:15:01 Recording test results
00:15:01 ERROR: Step ‘Publish JUnit test result report’ failed: No test report
files were found. Configuration error?
00:15:01 Finished: FAILURE
{code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)