Bug #2183

Compilation of RSB Tools fails on MacOS 10.10

Added by S. Wrede about 6 years ago. Updated about 6 years ago.

Status:NewStart date:02/17/2015
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:C++ Tools
Target version:-

Description

Applies for rsb 0.10 and 0.11. Boost version is 1.57.

[ 90%] Building CXX object test/timesync/CMakeFiles/rsbtimesynctest.dir/rsb/tools/timesync/rsbtimesynctest.cpp.o
cd /tmp/rsb-tools-cpp-IQpiod/test/timesync && /usr/bin/clang++   -DRSB_PROTOCOL_EXPORT="" -Os -w -pipe -march=native -mmacosx-version-min=10.10  -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -mmacosx-version-min=10.10 -isystem /tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include -isystem /tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0 -isystem /tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/gtest/include -isystem /tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/gtest -I/tmp/rsb-tools-cpp-IQpiod/src/timesync -I/tmp/rsb-tools-cpp-IQpiod/test/timesync -I/usr/local/include -I/usr/local/share/rsc0.11/../../include/rsc0.11 -I/usr/local/share/rsb0.11/../../include/rsb0.11    -pipe -Wall -Wextra -fdiagnostics-show-option -o CMakeFiles/rsbtimesynctest.dir/rsb/tools/timesync/rsbtimesynctest.cpp.o -c /tmp/rsb-tools-cpp-IQpiod/test/timesync/rsb/tools/timesync/rsbtimesynctest.cpp
In file included from /tmp/rsb-tools-cpp-IQpiod/test/timesync/rsb/tools/timesync/rsbtimesynctest.cpp:22:
In file included from /tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/gmock.h:58:
In file included from /tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/gmock-actions.h:46:
In file included from /tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-internal-utils.h:45:
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:72:29: error: no member named 'tr1' in namespace 'std'
struct MatcherTuple< ::std::tr1::tuple<> > {
                     ~~~~~~~^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:72:40: error: expected expression
struct MatcherTuple< ::std::tr1::tuple<> > {
                                       ^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:77:29: error: no member named 'tr1' in namespace 'std'
struct MatcherTuple< ::std::tr1::tuple<A1> > {
                     ~~~~~~~^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:77:40: error: 'A1' does not refer to a value
struct MatcherTuple< ::std::tr1::tuple<A1> > {
                                       ^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:76:20: note: declared here
template <typename A1>
                   ^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:82:29: error: no member named 'tr1' in namespace 'std'
struct MatcherTuple< ::std::tr1::tuple<A1, A2> > {
                     ~~~~~~~^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:82:40: error: 'A1' does not refer to a value
struct MatcherTuple< ::std::tr1::tuple<A1, A2> > {
                                       ^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:81:20: note: declared here
template <typename A1, typename A2>
                   ^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:87:29: error: no member named 'tr1' in namespace 'std'
struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3> > {
                     ~~~~~~~^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:87:40: error: 'A1' does not refer to a value
struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3> > {
                                       ^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:86:20: note: declared here
template <typename A1, typename A2, typename A3>
                   ^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:92:29: error: no member named 'tr1' in namespace 'std'
struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4> > {
                     ~~~~~~~^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:92:40: error: 'A1' does not refer to a value
struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4> > {
                                       ^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:91:20: note: declared here
template <typename A1, typename A2, typename A3, typename A4>
                   ^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:98:29: error: no member named 'tr1' in namespace 'std'
struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5> > {
                     ~~~~~~~^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:98:40: error: 'A1' does not refer to a value
struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5> > {
                                       ^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:97:20: note: declared here
template <typename A1, typename A2, typename A3, typename A4, typename A5>
                   ^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:105:29: error: no member named 'tr1' in namespace 'std'
struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5, A6> > {
                     ~~~~~~~^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:105:40: error: 'A1' does not refer to a value
struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5, A6> > {
                                       ^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:103:20: note: declared here
template <typename A1, typename A2, typename A3, typename A4, typename A5,
                   ^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:112:29: error: no member named 'tr1' in namespace 'std'
struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7> > {
                     ~~~~~~~^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:112:40: error: 'A1' does not refer to a value
struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7> > {
                                       ^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:110:20: note: declared here
template <typename A1, typename A2, typename A3, typename A4, typename A5,
                   ^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:119:29: error: no member named 'tr1' in namespace 'std'
struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, A8> > {
                     ~~~~~~~^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:119:40: error: 'A1' does not refer to a value
struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, A8> > {
                                       ^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:117:20: note: declared here
template <typename A1, typename A2, typename A3, typename A4, typename A5,
                   ^
/tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include/gmock/internal/gmock-generated-internal-utils.h:126:29: error: no member named 'tr1' in namespace 'std'
struct MatcherTuple< ::std::tr1::tuple<A1, A2, A3, A4, A5, A6, A7, A8, A9> > {
                     ~~~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
/usr/local/Cellar/cmake/3.1.2/bin/cmake -E cmake_progress_report /tmp/rsb-tools-cpp-IQpiod/CMakeFiles 15
[ 93%] Building CXX object src/logger/CMakeFiles/logger.dir/rsb/tools/logger/StatisticsEventFormatter.cpp.o
cd /tmp/rsb-tools-cpp-IQpiod/src/logger && /usr/bin/clang++   -DRSB_PROTOCOL_EXPORT="" -Os -w -pipe -march=native -mmacosx-version-min=10.10  -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk -mmacosx-version-min=10.10 -isystem /tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/include -isystem /tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0 -isystem /tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/gtest/include -isystem /tmp/rsb-tools-cpp-IQpiod/gmock-1.7.0/gtest -I/usr/local/include -I/usr/local/share/rsc0.11/../../include/rsc0.11 -I/usr/local/share/rsb0.11/../../include/rsb0.11    -pipe -Wall -Wextra -fdiagnostics-show-option -o CMakeFiles/logger.dir/rsb/tools/logger/StatisticsEventFormatter.cpp.o -c /tmp/rsb-tools-cpp-IQpiod/src/logger/rsb/tools/logger/StatisticsEventFormatter.cpp
20 errors generated.
make[2]: *** [test/timesync/CMakeFiles/rsbtimesynctest.dir/rsb/tools/timesync/rsbtimesynctest.cpp.o] Error 1
make[1]: *** [test/timesync/CMakeFiles/rsbtimesynctest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

Brew config:

HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew
HEAD: 526e145b20c1ea96f557cd1336871c242716ef32
Last commit: 81 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CELLAR: /usr/local/Cellar
CPU: quad-core 64-bit haswell
OS X: 10.10.2-x86_64
Xcode: 6.1.1
CLT: 6.1.1.0.1.1416017670
Clang: 6.0 build 600
X11: 2.7.7 => /opt/X11
System Ruby: 2.0.0-p481
Perl: /usr/bin/perl
Python: /usr/local/bin/python => /usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/bin/python2.7
Ruby: /usr/bin/ruby
Java: 1.7.0_21

History

#1 Updated by J. Wienke about 6 years ago

https://code.google.com/p/googlemock/issues/detail?id=146

Seems that adding a compiler flag is required here. But I don't know how to reliably decide when to add it and when not.

#2 Updated by J. Wienke about 6 years ago

  • Assignee deleted (J. Wienke)

Also available in: Atom PDF