Compilation Errors on Travis (for R package)
See original GitHub issueI have an R package that imports feather. Builds on Travis are failing due feather failing to compile. Any ideas how to correct?
Here’s the set of errors:
* installing *source* package ‘feather’ ...
** package ‘feather’ successfully unpacked and MD5 sums checked
** libs
g++ -std=c++0x -I/home/travis/R-bin/lib/R/include -DNDEBUG -I. -I/home/travis/R-bin/include -I"/usr/local/lib/R/site-library/Rcpp/include" -fpic -g -O2 -c RcppExports.cpp -o RcppExports.o
g++ -std=c++0x -I/home/travis/R-bin/lib/R/include -DNDEBUG -I. -I/home/travis/R-bin/include -I"/usr/local/lib/R/site-library/Rcpp/include" -fpic -g -O2 -c feather-read.cpp -o feather-read.o
g++ -std=c++0x -I/home/travis/R-bin/lib/R/include -DNDEBUG -I. -I/home/travis/R-bin/include -I"/usr/local/lib/R/site-library/Rcpp/include" -fpic -g -O2 -c feather-types.cpp -o feather-types.o
g++ -std=c++0x -I/home/travis/R-bin/lib/R/include -DNDEBUG -I. -I/home/travis/R-bin/include -I"/usr/local/lib/R/site-library/Rcpp/include" -fpic -g -O2 -c feather-write.cpp -o feather-write.o
g++ -std=c++0x -I/home/travis/R-bin/lib/R/include -DNDEBUG -I. -I/home/travis/R-bin/include -I"/usr/local/lib/R/site-library/Rcpp/include" -fpic -g -O2 -c feather/buffer.cc -o feather/buffer.o
g++ -std=c++0x -I/home/travis/R-bin/lib/R/include -DNDEBUG -I. -I/home/travis/R-bin/include -I"/usr/local/lib/R/site-library/Rcpp/include" -fpic -g -O2 -c feather/feather-c.cc -o feather/feather-c.o
g++ -std=c++0x -I/home/travis/R-bin/lib/R/include -DNDEBUG -I. -I/home/travis/R-bin/include -I"/usr/local/lib/R/site-library/Rcpp/include" -fpic -g -O2 -c feather/io.cc -o feather/io.o
g++ -std=c++0x -I/home/travis/R-bin/lib/R/include -DNDEBUG -I. -I/home/travis/R-bin/include -I"/usr/local/lib/R/site-library/Rcpp/include" -fpic -g -O2 -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
ERROR: compilation failed for package ‘feather’
* removing ‘/usr/local/lib/R/site-library/feather’
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Travis CI error: compilation failed for package 'rgdal' · Issue #89
After reverting the one line commit I erroneously pushed to master, Travis CI fails to build inborutils due to compilation failure: ...
Read more >Building an R package on Travis, how not to treat warnings as ...
I'm building an R package on Travis to share the integration status with users of the package. I have no errors but 8...
Read more >Common Build Problems - Travis CI Docs
My build fails unexpectedly # One possible cause for builds failing unexpectedly can be calling set -e (also known as set errexit ),...
Read more >R Package is Passing R CMD check and devtools
I've built an R package that I've tested locally via devtools::check() and R CMD ... I get a message that the build failed...
Read more >Error using packrat and Travis CI - Google Groups
Hi, I am using packrat for an app written in R and I have difficulties running it in my Travis CI ... Looks...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So you have to install gcc-4.9 or greater and set CXX1X, CXX1XSTD in ~/.R/Makevars, e.g.
https://github.com/jimhester/rio/blob/9026180fd731aaed34f21cba3b5e207124618e5b/.travis.yml#L8-L20
Which allows you to build successfully, https://travis-ci.org/leeper/rio/builds/131807863#L1367-L1380
This is pretty painful, but I am not sure what can be done to avoid it unless travis updates their default gcc or ubuntu version…
also here, FYI, just setting
dist=trusty
solves the problem, though I am not sure whether this is recommended.