Comments (8)
- Your question is poorly formatted. Do you use quoye (
>
) when you mean code. See the help. - Installation from
devtools
is not supported or encouraged. - We make monthly (!!) releases to CRAN. Use those. The command is
install.packages()
. - 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.
- 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.
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.
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.
Done! Thank you guys!
** testing if installed package can be loaded
* DONE (RcppArmadillo)
from rcpparmadillo.
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.
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.
Jeebus. John von Neuman wrote that one himself while he was at Los Alamos, right?
from rcpparmadillo.
True story!
Thank you again for the help and a good joke!
from rcpparmadillo.
Related Issues (20)
- Random seeding for chi2rnd doesn't work cross-platform HOT 4
- warning: chol(): given matrix is not symmetric HOT 7
- Possible bug in configure.ac HOT 18
- Problems in installing RcppArmadillo on macOS Monterey HOT 3
- Missing distr_param argument in randu HOT 8
- no matching function for call to ‘arma::Cube<double>::insert_slices(arma::uword&, arma::mat&) HOT 2
- Deprecating old initialization code in packages using RcppArmadillo HOT 17
- Is `ARMA_64BIT_WORD` supported in RcppArmadillo? HOT 4
- NaN output from arma::uvec compared to arma::vec HOT 4
- Planning to potentially (re)move some legacy internal header files
- Deprecating old stderr stream setting code in packages using RcppArmadillo HOT 12
- Fails to compile vs HOT 3
- Question about SIMD Optimization HOT 3
- package compilation failure HOT 20
- Two failures in test_cube.R on PowerPC HOT 33
- Armadillo 12.0.0 regressions HOT 2
- `RCPP_ARMADILLO_RETURN_ANYVEC_AS_VECTOR` in an R package? HOT 2
- using namespace arma; HOT 1
- Issue on call by reference with a NA matrix HOT 1
- Update indMatrix->arma::SpMat and pMatrix->arma::SpMat for Matrix 1.5-5 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rcpparmadillo.