Warning of duplicate -rpath when compiling and installing CmdStan

When I compile or install the latest version of CmdStan, there is one warning at the end:

ld: warning: duplicate -rpath '/Users/.cmdstan/cmdstan-2.33.1/stan/lib/stan_math/lib/tbb' ignored

It doesn’t prevent me from compiling my models, but I wonder what this warming means and how to get rid of it. Thank you!

  • Operating System: MacOS (Ventura 13.5.2)
  • CmdStan Version: 2.33.1 (cmdstanr 0.5.3)
  • Compiler/Toolkit: R

I can confirm. It seems it doesn’t do anything, but annoying still :)


I’ll third the existence of this warning message after updating a variety of packages (brms, CmdStanR, CmdStan, Xcode, etc., etc. – software update bonanza!). If I recall correctly, my previous CmdStan install also threw a bevy of inconsequential warning messages on macOS.

In my case, the updates seem to have changed the the way brms interacts with CmdStanR. With silent = 1 (or 2, I assume), sampling progress is not reported. Switching to silent = 0 allows sampling progress to be reported to the console.


I think this is because of a change introduced in cmdstanr in Update handling of show_messages, add show_exceptions by andrjohns · Pull Request #746 · stan-dev/cmdstanr · GitHub and we didn’t anticipate the affect on brms’s default behavior with silent=1. I started a discussion about this with some of the other developers on the stan slack. We’ll have to decide whether we should attempt to restore the previous default behavior by updating brms to handle that change in cmdstanr or modifying what we did in cmdstanr (or neither and brms just documents this new behavior). I’m not sure yet.

1 Like

I feel the same, but it’s assuring that the program still runs fine.

This warning is indeed innocuous, but I have also opened a PR which will make it go away in future releases

1 Like