stan-dev / stan-dev/rstan

compile rstan package error

Open
#626 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
1.1k
Forks
266
Avg merge
2h 56m
Merged PRs (30d)
1

Description

Summary:

Offline install rstan package by R CMD INSTALL rstan_2.14.1.tar.gz make error

Description:

The error is like below:
/opt/R-3.4.0/library/BH/include/boost/throw_exception.hpp:In functionvoid boost::throw_exception(const E&):
/opt/R-3.4.0/library/BH/include/boost/throw_exception.hpp:70:errorenable_ both: is not a member of boost::exception_detail
In file included from /opt/R-3.4.0/library/BH/include/boost/random/detail/integer_log2.hpp:19,
from /opt/R-3.4.0/library/BH/include/boost/random/detail/large_arithmetic.hpp:19,
from /opt/R-3.4.0/library/BH/include/boost/random/detail/const_mod.hpp:23,
from /opt/R-3.4.0/library/BH/include/boost/random/linear_congruential.hpp:30,
from /opt/R-3.4.0/library/BH/include/boost/random/additive_combine.hpp:27,
from chains.cpp:29:
/opt/R-3.4.0/library/BH/include/boost/pending/integer_log2.hpp:At global scope:
/opt/R-3.4.0/library/BH/include/boost/pending/integer_log2.hpp:7:note:#pragma message :This header is deprecated .Use <boost/integer/integer_log2.hpp> instead.
make: *** [chains.o] Error 1
Error:compilation failed for package rstan

RStan Version:

The version of RStan you are running (e.g., from packageVersion("rstan"))
rstan_2.14.1.tar.gz

R Version:

The version of R you are running (e.g., from R.version.string)
R version 3.4.0

Operating System:

Your operating system (e.g., OS X 10.11.3)
CentOS6.8 and gcc version 4.47

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the offline R CMD INSTALL rstan_2.14.1.tar.gz failure using R 3.4.0 on CentOS 6.8 with gcc 4.47. Start with the reported chains.cpp error and the BH Boost headers, especially boost/throw_exception.hpp; done means the rstan package compiles successfully without the reported enable_if error.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, r
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.