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

[R] Set minimum cpp11 version

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: R
    • Environment:
      Mac and Linux

      Description

      Here's the log for ubuntu:

      install.packages("arrow")
      Installing package into '/home/tching/R/x86_64-pc-linux-gnu-library/4.0'
      (as 'lib' is unspecified)
      trying URL 'https://cloud.r-project.org/src/contrib/arrow_2.0.0.tar.gz'
      Content type 'application/x-gzip' length 322592 bytes (315 KB)
      ==================================================
      downloaded 315 KB

      * installing source package 'arrow' ...
      ** package 'arrow' successfully unpacked and MD5 sums checked
      ** using staged installation
      *** Arrow C++ libraries found via pkg-config
      PKG_CFLAGS= -DARROW_R_WITH_ARROW
      PKG_LIBS=-larrow_dataset -lparquet -larrow
      ** libs
      g++ -std=gnu++11 -I"/usr/share/R/include" -DNDEBUG -DARROW_R_WITH_ARROW -I'/home/tching/R/x86_64-pc-linux-gnu-library/4.0/cpp11/include' -fpic -g -O2 -fdebug-prefix-map=/build/r-base-7BvS0x/r-base-4.0.3=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c array.cpp -o array.o
      In file included from ./arrow_types.h:22:0,
      {{ from array.cpp:18:}}
      ././arrow_cpp11.h: In function 'SEXPREC* arrow::r::utf8_strings(SEXP)':
      ././arrow_cpp11.h:117:4: error: void value not ignored as it ought to be
      {{ });}}
      {{ ^}}
      ././arrow_cpp11.h: In function 'Pointer arrow::r::r6_to_pointer(SEXP)':
      ././arrow_cpp11.h:164:16: error: 'decay_t' is not a member of 'cpp11'
      {{ cpp11::decay_t<typename std::remove_pointer<Pointer>::type>>();}}
      {{ ^~~~~~~}}
      ././arrow_cpp11.h:164:16: error: 'decay_t' is not a member of 'cpp11'
      ././arrow_cpp11.h:163:42: error: parse error in template argument list
      {{ std::string type_name = arrow::util::nameof<}}
      {{ ^~~~~~~}}
      {{ cpp11::decay_t<typename std::remove_pointer<Pointer>::type>>();}}
      {{ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}}
      ././arrow_cpp11.h:164:70: error: expected primary-expression before ')' token
      {{ cpp11::decay_t<typename std::remove_pointer<Pointer>::type>>();}}
      {{ ^}}
      ././arrow_cpp11.h: At global scope:
      ././arrow_cpp11.h:322:1: error: 'enable_if_enum' does not name a type; did you mean 'enable_if_shared_ptr'?
      {{ enable_if_enum<E, SEXP> as_sexp(E e) {}}
      {{ ^~~~~~~~~~~~~~}}
      {{ enable_if_shared_ptr}}
      /usr/lib/R/etc/Makeconf:181: recipe for target 'array.o' failed
      make: *** [array.o] Error 1
      ERROR: compilation failed for package 'arrow'
      * removing '/home/tching/R/x86_64-pc-linux-gnu-library/4.0/arrow'

      The downloaded source packages are in
      {{ '/tmp/RtmpwBcRFV/downloaded_packages'}}
      Warning message:
      In install.packages("arrow") :
      {{ installation of package 'arrow' had non-zero exit status}}

       

      On mac:

      ...

      clang++ -std=gnu++11 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I/private/var/folders/w9/n1w04yfs0j3fj5ftrq9vxn5nj6m7h0/T/RtmpcVzz9H/R.INSTALL3d32a98f8cd/.autobrew/build-apache-arrow/include -DARROW_R_WITH_S3 -DARROW_R_WITH_ARROW -DARROW_R_WITH_S3 -I"/Users/tching/Library/R/3.5/library/cpp11/include" -I/usr/local/include -fPIC -O3 -c array.cpp -o array.o
      In file included from array.cpp:18:
      In file included from ././arrow_types.h:22:
      In file included from ././arrow_cpp11.h:39:
      In file included from /Users/tching/Library/R/3.5/library/cpp11/include/cpp11.hpp:5:
      In file included from /Users/tching/Library/R/3.5/library/cpp11/include/cpp11/as.hpp:9:
      /Users/tching/Library/R/3.5/library/cpp11/include/cpp11/protect.hpp:236:10: error: definition with same mangled name as another definition
      {{ auto operator()(A&&... a) const}}
      {{ ^}}
      /Users/tching/Library/R/3.5/library/cpp11/include/cpp11/protect.hpp:236:10: note: previous definition is here
      1 error generated.
      make: *** [array.o] Error 1
      ERROR: compilation failed for package 'arrow'
      * removing '/Users/tching/Library/R/3.5/library/arrow'
      * restoring previous '/Users/tching/Library/R/3.5/library/arrow'
      Warning in install.packages :
      {{ installation of package 'arrow' had non-zero exit status}}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                traversc Travers Ching
                Reporter:
                traversc Travers Ching
              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 - 40m
                  40m