Git Product home page Git Product logo

Comments (16)

kevinushey avatar kevinushey commented on June 12, 2024 2

Indeed, the latest versions of armadillo + RcppArmadillo require a newer compiler, hence the configure warnings.

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 12, 2024 1

Error, actually -- see here.

No point having a warning only to have the compilation die a minute later. This is a hard requirement (from upstream).

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 12, 2024 1

You may need to alk to the NetDiff maintainers. Maybe you can just edit out the requirement from their DESCRIPTION. Not our package.

But a current (Rcpp)Armadillo requires a new-enough compiler. And g++ 4.4.6 on ancient RHEL or CentOs does not work. Sorry.

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 12, 2024 1

[ The first name is 'Dirk' ]

That message does not come from us; I suspect you may just have used configure the wrong way.

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 12, 2024

Why do you open an issue?

You need to install an older version of RcppArmadillo that is appropriately dated for your compiler. And you did. So what more is there to say, really?

from rcpparmadillo.

jrounds avatar jrounds commented on June 12, 2024

Any advice on which version to install?
https://cran.r-project.org/src/contrib/Archive/RcppArmadillo/

I am not quite sure on an efficient way to discover an old version compatible with a specific compiler.

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 12, 2024

To a first approximation follow the Armadillo majors, so try the last 6.* release: 0.6.700.6.0. Then 0.5.600.2.0 and so on.

from rcpparmadillo.

jrounds avatar jrounds commented on June 12, 2024

Thanks. Picked Dec because holidays! Seems sufficient (wanted latest
Forecast package). Sorry for the hassle I should have tried a few before
posting.

On Mon, Aug 1, 2016 at 3:23 PM, Dirk Eddelbuettel [email protected]
wrote:

To a first approximation follow the Armadillo majors, so try the last 6.*
release: 0.6.700.6.0. Then 0.5.600.2.0 and so on.

β€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#97 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAsk5dn0uBmrec9yj5ZKd8b3m_nBHK3Bks5qbnHmgaJpZM4IoxB3
.

from rcpparmadillo.

pengchy avatar pengchy commented on June 12, 2024

Hi, sorry to comment on this issue, but I cann't solve my question.

I have successfully installed latest Rcpp version 0.12.8 and RcppArmadillo version 0.6.100.0.0 with g++ 4.4.6, using the command "R CMD INSTALL".
But one of my wanted package "NetDiff" (https://gitlab.com/tt104/NetDiff) need the latest RcppArmadillo version 0.7.600.1.0. However, when I add the g++ version 4.9.2, I got the following error message:

checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in `/tmp/Rtmp5LKNdB/R.INSTALL6ffa4a2cc4a4/RcppArmadillo':
configure: error: cannot run C++ compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
ERROR: configuration failed for package 'RcppArmadillo'

Is it possible to compile RcppArmadillo_0.7.600.1.0 with g++ 4.9.2 when I have compiled other package with g++ 4.4.6?

Thanks a lot and Happy New Year!
Pengcheng Yang

from rcpparmadillo.

pengchy avatar pengchy commented on June 12, 2024

Hi Eddelbuettel,

Thank you for your reply.

I have noticed that the error message says: "If you meant to cross compile, use `--host'." So, I wander if it possible compile RcppArmadillo_0.7.600.1.0 using "cross compile with --host". I have uncompressed the package, but don't know how to do "cross compile use --host".

Anyway, I will try to edit the DESCRIPTION file of NetDiff to use the older version of RcppArmadillo.

Thanks!

from rcpparmadillo.

pengchy avatar pengchy commented on June 12, 2024

Hi Dirk,

The installation was performed using the command "R CMD INSTALL", so I don't know how to configure, such as add "--host" parameter, when installing the R package. OK, I will search how to do this work.

I have contacted with the NetDiff maintainer. Thank you!

from rcpparmadillo.

majaidi avatar majaidi commented on June 12, 2024

I wanted to let everyone that I have installed version 0.5 RcppArmadillo to compile the forecast package successfully. No need to get a new GCC :)

from rcpparmadillo.

ppadebettu avatar ppadebettu commented on June 12, 2024

Hello majaidi, what are the steps you followed to install version 0.5 of RcppArmadillo without updating GCC ?

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 12, 2024

Go to the archive page for RcppArmadillo and download the desired version. You can use the archive file stamp along with the NEWS file to guide. Download the tarball, install locally from source as usual.

from rcpparmadillo.

antass avatar antass commented on June 12, 2024

This is old, but FWIW, I was able to figure out which version of RcppArmadillo to get by checking which version of ubuntu was shipped with my version of g++ (v4.6). Trusty came out in April 2014, so I downloaded a version of RcppArmadillo from early 2014 (v0.4). It worked.

Any advice on which version to install?
https://cran.r-project.org/src/contrib/Archive/RcppArmadillo/

I am not quite sure on an efficient way to discover an old version compatible with a specific compiler.

from rcpparmadillo.

eddelbuettel avatar eddelbuettel commented on June 12, 2024

Even easier: install the r-cran-rcpparmadillo that came with your version of Ubuntu if you prefer to (or are forced to) run outdated code.

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.