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

[C++] Failed to build arrow-cpp with gcc 4.9.2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.17.1
    • 1.0.0
    • C++

    Description

      The Building Arrow C++ document say "building requires a C++11-enabled compiler. On Linux, gcc 4.8 and higher should be sufficient."

      But actually, it failed to build with gcc 4.9.2 (see attached image-2020-06-19-11-29-13-641.png). This is because a bug in gcc Bug 57250

      Please note it in the document to lead using a higher version of gcc. Current document is still misleading.

       

      NEED TRIAGE, because the atomic_shared_ptr.h file is aim to eliminate the bug. But the error occurred when compiling it.

      OK, got it. I installed clang but still using the gcc 4.9.2's libstdc++. The bug appeared then.

      I think it more reliable to check libstdc++ version instead of the gcc version, because this is a libstdc++ bug instead of a gcc bug. I found it possible to check the libstdc++ version via MACRO __GLIBCXX__ with help of this timeline table.

      Attachments

        1. image-2020-06-19-11-29-13-641.png
          111 kB
          Shuai Zhang
        2. fix.patch
          0.6 kB
          Shuai Zhang

        Issue Links

          Activity

            People

              HCOONa Shuai Zhang
              HCOONa Shuai Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 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