[R] Installation of package "rio" broken

William Dunlap wdunlap at tibco.com
Tue Jun 14 21:33:21 CEST 2016


Your log showed that g++ was given the flag -std=c++0x.  It should be
-std=c++11 so the 'using typename = blahblah' syntax works.  Either
your feather/src/Makevars is missing the line CXX_STD=CXX11 or your
version of R is lacking support for CXX_STD.


> g++ -m32 -std=c++0x -I"C:/PROGRA~1/R/R-32~1.2/include" -DNDEBUG -I.
 -I"C:/Users/admin/Documents/R/win-library/3.2/Rcpp/include"
-I"d:/RCompile/r-compiling/local/local320/include"     -O2 -Wall
-mtune=core2 -c feather/metadata.cc -o feather/metadata.o
> feather/metadata.cc:29:7: error: expected nested-name-specifier before
'FBString'

Bill Dunlap
TIBCO Software
wdunlap tibco.com

On Tue, Jun 14, 2016 at 12:19 PM, <G.Maubach at gmx.de> wrote:

> Hi all,
>
> today I wanted to install package "rio". As it depends on package
> "feather" which is only available as source I have chosen to install "rio"
> from source. The installations fails with the following messages:
>
> -- cut --
> * installing *source* package 'feather' ...
> ** Paket 'feather' erfolgreich entpackt und MD5 Summen überprüft
> ** libs
>
> *** arch - i386
> g++ -m32 -std=c++0x -I"C:/PROGRA~1/R/R-32~1.2/include" -DNDEBUG -I.
>  -I"C:/Users/admin/Documents/R/win-library/3.2/Rcpp/include"
> -I"d:/RCompile/r-compiling/local/local320/include"     -O2 -Wall
> -mtune=core2 -c RcppExports.cpp -o RcppExports.o
> g++ -m32 -std=c++0x -I"C:/PROGRA~1/R/R-32~1.2/include" -DNDEBUG -I.
>  -I"C:/Users/admin/Documents/R/win-library/3.2/Rcpp/include"
> -I"d:/RCompile/r-compiling/local/local320/include"     -O2 -Wall
> -mtune=core2 -c feather-read.cpp -o feather-read.o
> g++ -m32 -std=c++0x -I"C:/PROGRA~1/R/R-32~1.2/include" -DNDEBUG -I.
>  -I"C:/Users/admin/Documents/R/win-library/3.2/Rcpp/include"
> -I"d:/RCompile/r-compiling/local/local320/include"     -O2 -Wall
> -mtune=core2 -c feather-types.cpp -o feather-types.o
> g++ -m32 -std=c++0x -I"C:/PROGRA~1/R/R-32~1.2/include" -DNDEBUG -I.
>  -I"C:/Users/admin/Documents/R/win-library/3.2/Rcpp/include"
> -I"d:/RCompile/r-compiling/local/local320/include"     -O2 -Wall
> -mtune=core2 -c feather-write.cpp -o feather-write.o
> g++ -m32 -std=c++0x -I"C:/PROGRA~1/R/R-32~1.2/include" -DNDEBUG -I.
>  -I"C:/Users/admin/Documents/R/win-library/3.2/Rcpp/include"
> -I"d:/RCompile/r-compiling/local/local320/include"     -O2 -Wall
> -mtune=core2 -c feather/buffer.cc -o feather/buffer.o
> g++ -m32 -std=c++0x -I"C:/PROGRA~1/R/R-32~1.2/include" -DNDEBUG -I.
>  -I"C:/Users/admin/Documents/R/win-library/3.2/Rcpp/include"
> -I"d:/RCompile/r-compiling/local/local320/include"     -O2 -Wall
> -mtune=core2 -c feather/feather-c.cc -o feather/feather-c.o
> g++ -m32 -std=c++0x -I"C:/PROGRA~1/R/R-32~1.2/include" -DNDEBUG -I.
>  -I"C:/Users/admin/Documents/R/win-library/3.2/Rcpp/include"
> -I"d:/RCompile/r-compiling/local/local320/include"     -O2 -Wall
> -mtune=core2 -c feather/io.cc -o feather/io.o
> feather/io.cc:18:0: warning: "NOMINMAX" redefined [enabled by default]
> c:\program
> files\rtools\gcc-4.6.3\bin\../lib/gcc/i686-w64-mingw32/4.6.3/../../../../include/c++/4.6.3/i686-w64-mingw32/bits/os_defines.h:46:0:
> note: this is the location of the previous definition
> g++ -m32 -std=c++0x -I"C:/PROGRA~1/R/R-32~1.2/include" -DNDEBUG -I.
>  -I"C:/Users/admin/Documents/R/win-library/3.2/Rcpp/include"
> -I"d:/RCompile/r-compiling/local/local320/include"     -O2 -Wall
> -mtune=core2 -c feather/metadata.cc -o feather/metadata.o
> feather/metadata.cc:29:7: error: expected nested-name-specifier before
> 'FBString'
> feather/metadata.cc:29:7: error: 'FBString' has not been declared
> feather/metadata.cc:29:16: error: expected ';' before '=' token
> feather/metadata.cc:29:16: error: expected unqualified-id before '=' token
> feather/metadata.cc:32:7: error: expected nested-name-specifier before
> 'ColumnVector'
> feather/metadata.cc:32:7: error: 'ColumnVector' has not been declared
> feather/metadata.cc:32:20: error: expected ';' before '=' token
> feather/metadata.cc:32:20: error: expected unqualified-id before '=' token
> feather/metadata.cc:178:3: error: 'ColumnVector' does not name a type
> feather/metadata.cc: In member function 'feather::Status
> feather::metadata::TableBuilder::Impl::Finish()':
> feather/metadata.cc:146:5: error: 'FBString' was not declared in this scope
> feather/metadata.cc:146:14: error: expected ';' before 'desc'
> feather/metadata.cc:148:7: error: 'desc' was not declared in this scope
> feather/metadata.cc:154:9: error: 'desc' was not declared in this scope
> feather/metadata.cc:156:27: error: 'columns_' was not declared in this
> scope
> feather/metadata.cc:157:34: error: unable to deduce 'auto' from
> '<expression error>'
> feather/metadata.cc: In member function 'void
> feather::metadata::TableBuilder::Impl::add_column(const
> flatbuffers::Offset<feather::fbs::Column>&)':
> feather/metadata.cc:173:5: error: 'columns_' was not declared in this scope
> feather/metadata.cc: In constructor
> 'feather::metadata::TableBuilder::TableBuilder()':
> feather/metadata.cc:190:5: error: type 'feather::metadata::TableBuilder'
> is not a direct base of 'feather::metadata::TableBuilder'
> make: *** [feather/metadata.o] Error 1
> Warnung: Ausführung von Kommando 'make -f "Makevars" -f
> "C:/PROGRA~1/R/R-32~1.2/etc/i386/Makeconf" -f
> "C:/PROGRA~1/R/R-32~1.2/share/make/winshlib.mk" CXX='$(CXX1X)
> $(CXX1XSTD)' CXXFLAGS='$(CXX1XFLAGS)' CXXPICFLAGS='$(CXX1XPICFLAGS)'
> SHLIB_LDFLAGS='$(SHLIB_CXX1XLDFLAGS)' SHLIB_LD='$(SHLIB_CXX1XLD)'
> SHLIB="feather.dll" OBJECTS="RcppExports.o feather-read.o feather-types.o
> feather-write.o"' ergab Status 2
> ERROR: compilation failed for package 'feather'
> * removing 'C:/Users/admin/Documents/R/win-library/3.2/feather'
> Warning in install.packages :
>   running command '"C:/PROGRA~1/R/R-32~1.2/bin/x64/R" CMD INSTALL -l
> "C:\Users\admin\Documents\R\win-library\3.2"
> C:\Users\admin\AppData\Local\Temp\RtmpwNaGYz/downloaded_packages/feather_0.0.1.tar.gz'
> had status 1
> Warning in install.packages :
>   installation of package ‘feather’ had non-zero exit status
> ERROR: dependency 'feather' is not available for package 'rio'
> * removing 'C:/Users/admin/Documents/R/win-library/3.2/rio'
> Warning in install.packages :
>   running command '"C:/PROGRA~1/R/R-32~1.2/bin/x64/R" CMD INSTALL -l
> "C:\Users\admin\Documents\R\win-library\3.2"
> C:\Users\admin\AppData\Local\Temp\RtmpwNaGYz/downloaded_packages/rio_0.4.6.tar.gz'
> had status 1
> Warning in install.packages :
>   installation of package ‘rio’ had non-zero exit status
>
> The downloaded source packages are in
>         ‘C:\Users\admin\AppData\Local\Temp\RtmpwNaGYz\downloaded_packages’
> -- cut --
>
> How can I fix that?
>
> Kind regards
>
> Georg Maubach
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

	[[alternative HTML version deleted]]



More information about the R-help mailing list