Git Product home page Git Product logo

Comments (8)

eddelbuettel avatar eddelbuettel commented on June 12, 2024
  1. Your question is poorly formatted. Do you use quoye (>) when you mean code. See the help.
  2. Installation from devtools is not supported or encouraged.
  3. We make monthly (!!) releases to CRAN. Use those. The command is install.packages().
  4. Your error message, buried in the ill-formatted question, suggested that the compiler in Ubuntu 12.04 may be too old. Nothing we can fix. Use an older RcppArmadillo if this is the binding issue--or better still upgrade your compile or Ubuntu version.
  5. For what it is worth we run Travis CI on that Ubuntu version too. The last test four days ago preceding the last release used gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3.

from rcpparmadillo.

seninp avatar seninp commented on June 12, 2024

I see, sorry for the trouble.

Nevertheless, CRAN-based installation throws exactly the same exception:

essai de l'URL 'http://cran.rstudio.com/src/contrib/RcppArmadillo_0.6.300.2.0.tar.gz'
Content type 'application/x-gzip' length 984649 bytes (961 KB)
==================================================
downloaded 961 KB

* installing *source* package ‘RcppArmadillo’ ...
** package ‘RcppArmadillo’ correctement décompressé et sommes MD5 vérifiées
* checking LAPACK_LIBS: divide-and-conquer complex SVD available via system LAPACK
** libs
ccache clang++ -Qunused-arguments -I/usr/share/R/include -DNDEBUG   -I"/home/psenin/R/x86_64-pc-linux-gnu-library/3.2/Rcpp/include"  -I../inst/include -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c RcppArmadillo.cpp -o RcppArmadillo.o
In file included from RcppArmadillo.cpp:22:
In file included from ../inst/include/RcppArmadillo.h:30:
In file included from ../inst/include/RcppArmadilloForward.h:46:
In file included from ../inst/include/armadillo:50:
../inst/include/armadillo_bits/compiler_setup.hpp:273:7: error: builtin feature check macro requires a parenthesized identifier
  #if __has_attribute(__const__)
      ^
../inst/include/armadillo_bits/compiler_setup.hpp:273:32: error: expected end of line in preprocessor expression
  #if __has_attribute(__const__)
                           ^
2 errors generated.

My gcc version is also 4.6.3

$ gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright © 2011 Free Software Foundation, Inc.

Updating OS at the host is not possible. Where can I get older sources?

Thanks!

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 12, 2024

As I told you, g++-4.6.3 has been used for hundreds of builds by us. It is fine.

Now that you questions is legible, we see ccache clang++. Turn off that clang version and try again.

Older sources are in Archive/ section of CRAN. Each package has its full history.

from rcpparmadillo.

seninp avatar seninp commented on June 12, 2024

Done! Thank you guys!

** testing if installed package can be loaded
* DONE (RcppArmadillo)

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 12, 2024

Ok. For that record, what does clang++ --version say? Something from the dark ages likes 3.2 or so? Newer versions should all work too.

There will be a cutoff point at which g++-4.6.* will be too old too once Conrad switches to a C++11 based version.

from rcpparmadillo.

seninp avatar seninp commented on June 12, 2024

Ha, 3.0!!!

$ clang++ --version
Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0)
Target: x86_64-pc-linux-gnu
Thread model: posix

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 12, 2024

Jeebus. John von Neuman wrote that one himself while he was at Los Alamos, right?

from rcpparmadillo.

seninp avatar seninp commented on June 12, 2024

True story!

Thank you again for the help and a good joke!

from rcpparmadillo.

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.