Git Product home page Git Product logo

Comments (4)

jayhesselberth avatar jayhesselberth commented on August 28, 2024

The gcc on tesla is so, so old.

Can you try module load gcc and build with g++-5?

from valr.

dpastling avatar dpastling commented on August 28, 2024

Mmmm... still doesn't work. Here is what I tried:

  • update R to version 3.3.0 (2016-05-03)
  • tried install via devtools::install_github('jayhesselberth/valr') and got same error
  • tried module load gcc
  • build still fails
    $ which g++
    /vol1/software/modules-sw/gcc/5.1.0/bin/g++
\> devtools::install_github('jayhesselberth/valr')
Downloading GitHub repo jayhesselberth/valr@master
from URL https://api.github.com/repos/jayhesselberth/valr/zipball/master
Installing valr
Skipping install for github remote, the SHA1 (9ebfca76) has not changed since last install.
  Use `force = TRUE` to force installation
Skipping 2 packages ahead of CRAN: dplyr, tibble
'/vol4/home/astlingd/R/lib64/R/bin/R' --no-site-file --no-environ --no-save  \
  --no-restore --quiet CMD INSTALL  \
  '/tmp/RtmpmwfQ4W/devtools69a4fee91a6/jayhesselberth-valr-4e430f0'  \
  --library='/vol4/home/astlingd/R/lib64/R/library' --install-tests 

* installing *source* package ‘valr’ ...
** libs
g++ -std=c++0x -I/vol4/home/astlingd/R/lib64/R/include -DNDEBUG -I../inst/include -I/usr/local/include -I"/vol4/home/astlingd/R/lib64/R/library/Rcpp/include" -I"/vol4/home/astlingd/R/lib64/R/library/BH/include" -I"/vol4/home/astlingd/R/lib64/R/library/dplyr/include"   -fpic  -g -O2 -c RcppExports.cpp -o RcppExports.o
In file included from ../inst/include/valr.h:6:0,
                 from RcppExports.cpp:4:
../inst/include/IntervalTree.h: In constructor ‘IntervalTree<T, K>::IntervalTree(IntervalTree<T, K>::intervalVector&, std::size_t, std::size_t, K, K, std::size_t’:
../inst/include/IntervalTree.h:140:37: error: use of ‘this’ in a constant expression
                 if (interval.stop < center) {
                                     ^
../inst/include/IntervalTree.h:140:30: error: parse error in template argument list
                 if (interval.stop < center) {
                              ^
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for package ‘valr’
* removing ‘/vol4/home/astlingd/R/lib64/R/library/valr’
Error: Command failed (1)

> devtools::session_info()
Session info -------------------------------------------------------------------
 setting  value                       
 version  R version 3.3.0 (2016-05-03)
 system   x86_64, linux-gnu           
 ui       X11                         
 language (EN)                        
 collate  en_US.UTF-8                 
 tz       <NA>                        
 date     2016-05-15                  

Packages -----------------------------------------------------------------------
 package  * version date       source        
 curl       0.9.7   2016-04-10 CRAN (R 3.2.3)
 devtools   1.11.1  2016-04-21 CRAN (R 3.2.3)
 digest     0.6.9   2016-01-08 CRAN (R 3.2.2)
 git2r      0.14.0  2016-03-13 CRAN (R 3.2.3)
 httr       1.1.0   2016-01-28 CRAN (R 3.2.3)
 memoise    1.0.0   2016-01-29 CRAN (R 3.2.3)
 R6         2.1.2   2016-01-26 CRAN (R 3.2.3)
 withr      1.0.1   2016-02-04 CRAN (R 3.2.3)

from valr.

jayhesselberth avatar jayhesselberth commented on August 28, 2024

valr compiles cleanly with clang++, so OS X may be the only option until I get some time to appease the g++ compiler.

from valr.

jayhesselberth avatar jayhesselberth commented on August 28, 2024

valr should be installable on Linux with clang++ >= 3.7

See build log at https://travis-ci.org/jayhesselberth/valr/jobs/148445783

from valr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.