stan-dev / stan-dev/stan

`install-tbb.bat` fails on windows

Open
#3,245 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
2.8k
Forks
388
Avg merge
2d 17h
Merged PRs (30d)
15

Description

Summary:

After building on windows, install-tbb.bat fails with an error:

ERROR: Invalid syntax. Default option is not allowed more than '2' time(s).

I think that this is due to spaces in PATH entries.

Additional Information:

Adding quotes around the argument to PATH fixed the problem for me.

Replaced this:
setx Path %~dp0stan\lib\stan_math\lib\tbb;%OLD_SYSTEM_PATH%

with this:
setx Path "%~dp0stan\lib\stan_math\lib\tbb;%OLD_SYSTEM_PATH%"

Current Version:

v2.33.0

Contributor guide

Open the contributing guide

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 with install-tbb.bat and reproduce the failure on Windows using a PATH that contains spaces. Check the setx command described in the issue, then verify the script completes successfully and preserves the existing PATH entries.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.