stan-dev / stan-dev/rstan

Just updated to R4.04 and Stanhearders 2.21.0-7 and I am getting these compile errors

Open
#923 0 comments 1 reaction 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

Error in compileCode(f, code, language = language, verbose = verbose) :
from file6b81f084782.cpp:14:C:/Users/johnson.rd.1/R/R-4.0.4/library/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp: At global scope:C:/Users/johnson.rd.1/R/R-4.0.4/library/StanHeaders/include/stan/math/rev/core/set_zero_all_adjoints.hpp:14:13: warning: 'void stan::math::set_zero_all_adjoints()' defined but not used [-Wunused-function] static void set_zero_all_adjoints() { ^~~~~~~~~~~~~~~~~~~~~make: *** [C:/Users/JOHNSO1.1/R/R-401.4/etc/x64/Makeconf:229: file6b81f084782.o] Error 1
In addition: Warning message:
In system(paste(CXX, ARGS), ignore.stdout = TRUE, ignore.stderr = TRUE) :
'-E' not found
Error in sink(type = "output") : invalid connection

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

Start by reproducing the compile failure with R 4.0.4 and StanHeaders 2.21.0-7 on the reported Windows setup. Inspect the StanHeaders set_zero_all_adjoints.hpp diagnostic, the generated file6b81f084782.cpp reference, and R's etc/x64/Makeconf:229; done means the reported compilation and subsequent sink error no longer occur.

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
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.