Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-5615

[C++] Compilation error due to C++11 string literals on gcc 5.4.0 Ubuntu 16.04

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.14.0
    • Component/s: C++

      Description

      I'm seeing this locally from docker-compose run cpp-ubuntu-xenial

      /arrow/cpp/src/arrow/ipc/json-simple-test.cc:543:9: error: missing terminating " character [-Werror]
         ASSERT_OK(ArrayFromJSON(type, R"delim(
               ^
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc:543:2: error: missing terminating " character
         ASSERT_OK(ArrayFromJSON(type, R"delim(
        ^
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc:550:1: error: stray '\' in program
       )delim",
       ^
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc:617:9: error: missing terminating " character [-Werror]
         ASSERT_OK(ArrayFromJSON(type, R"delim(
               ^
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc:617:2: error: missing terminating " character
         ASSERT_OK(ArrayFromJSON(type, R"delim(
        ^
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc:622:9: error: stray '\' in program
               [null, "empty"]
               ^
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc:622:17: error: missing terminating " character [-Werror]
               [null, "empty"]
                       ^
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc:622:9: error: missing terminating " character
               [null, "empty"]
               ^
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc:630:9: error: stray '\' in program
               ["bootstrapping tautology?", "lispy", null, "i can see eternity"]
               ^
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc:630:11: error: missing terminating " character [-Werror]
               ["bootstrapping tautology?", "lispy", null, "i can see eternity"]
                 ^
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc:630:9: error: missing terminating " character
               ["bootstrapping tautology?", "lispy", null, "i can see eternity"]
               ^
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc:635:1: error: stray '\' in program
       )delim",
       ^
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc: In member function 'virtual void arrow::ipc::internal::json::TestMap_IntegerToInteger_Test::TestBody()':
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc:544:1: error: two consecutive '[' shall only introduce an attribute before '[' token
       [
       ^
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc:544:1: error: return-statement with a value, in function returning 'void' [-fpermissive]
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc:544:1: error: expected ';' before '[' token
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc:545:6: error: expected ']' before '[' token
           [[0, 1], [1, 1], [2, 2], [3, 3], [4, 5], [5, 8]],
            ^
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc: In member function 'virtual void arrow::ipc::internal::json::TestMap_IntegerMapToStringList_Test::TestBody()':
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc:618:1: error: two consecutive '[' shall only introduce an attribute before '[' token
       [
       ^
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc:618:1: error: return-statement with a value, in function returning 'void' [-fpermissive]
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc:618:1: error: expected ';' before '[' token
      /arrow/cpp/src/arrow/ipc/json-simple-test.cc:620:7: error: expected ']' before '[' token
             [
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                wesm Wes McKinney
                Reporter:
                wesm Wes McKinney
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h