Uploaded image for project: 'ORC'
  1. ORC
  2. ORC-479

[C++] Fails to compile with protobuf 3.7 on OSX

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.5.5
    • None
    • C++
    • None

    Description

      This fails for me locally with

      [9/82] Building CXX object c++/src/CMakeFiles/orc.dir/wrap/orc-proto-wrapper.cc.o
      FAILED: c++/src/CMakeFiles/orc.dir/wrap/orc-proto-wrapper.cc.o
      $BUILD_PREFIX/bin/x86_64-apple-darwin13.4.0-clang++ -Ic++/include -I../c++/include -I../c++/src -Ic++/src -isystem $PREFIX/include -isystem c++/libs/thirdparty/googletest_ep-install/include -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -I$PREFIX/include -fdebug-prefix-map==/usr/local/src/conda/- -fdebug-prefix-map==/usr/local/src/conda-prefix -std=c++11 -Weverything -Wno-c++98-compat -Wno-missing-prototypes -Wno-c++98-compat-pedantic -Wno-padded -Wno-covered-switch-default -Wno-missing-noreturn -Wno-unknown-pragmas -Wno-gnu-zero-variadic-macro-arguments -Wconversion -Werror -std=c++11 -Weverything -Wno-c++98-compat -Wno-missing-prototypes -Wno-c++98-compat-pedantic -Wno-padded -Wno-covered-switch-default -Wno-missing-noreturn -Wno-unknown-pragmas -Wno-gnu-zero-variadic-macro-arguments -Wconversion -Werror -O3 -DNDEBUG -MD -MT c++/src/CMakeFiles/orc.dir/wrap/orc-proto-wrapper.cc.o -MF c++/src/CMakeFiles/orc.dir/wrap/orc-proto-wrapper.cc.o.d -o c++/src/CMakeFiles/orc.dir/wrap/orc-proto-wrapper.cc.o -c ../c++/src/wrap/orc-proto-wrapper.cc
      In file included from ../c++/src/wrap/orc-proto-wrapper.cc:44:
      In file included from c++/src/orc_proto.pb.cc:4:
      c++/src/orc_proto.pb.h:16:15: error: 'PROTOBUF_MIN_PROTOC_VERSION' is not defined, evaluates to 0 [-Werror,-Wundef]
      #if 3007000 < PROTOBUF_MIN_PROTOC_VERSION
      ^
      1 error generated.

      Googling indicates that this might be a mismatch of protoc and libprotobuf but I've verified that this is not the case.

      Attachments

        Activity

          People

            Unassigned Unassigned
            uwe Uwe Korn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: