stan-dev / stan-dev/rstan

Compiling in multiple translation units fails. Needs inline on functions.

Open
#341 0 comments 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:

Compiling with multiple translation units fails.

Description:

Describe the issue as clearly as possible.

Reproducible Steps:

See: https://github.com/stan-dev/stan/issues/1149#issuecomment-192535899

Current Output:
...
ld: 19 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
RStan Version:

v2.12.1

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 with the reproducible steps in the linked Stan issue and reproduce the reported linker failure using RStan v2.12.1. Trace the duplicate symbols across multiple translation units and verify that the completed change allows compilation to finish without the reported linker errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
build-system, compilers
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.