-
-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make/standalone does not work on Ubuntu #1613
Comments
@wds15 should this line https://github.com/stan-dev/math/blob/develop/make/compiler_flags#L215 just be
The other way of solving this is just adding LDLIBS += -ltbb to make/standalone. I can make a PR to fix this, |
No, we give the library using an absolute path to the binary in order to ensure that the absolute path is baked into the library. Let me try this on our Linux box to reproduce the problem. (we can use LDLIBs, but then I am not anymore sure if the rpath trick works, that's my concern) |
For the record, I love the standalone feature. It made on-boarding a new masters student, previously unfamiliar with Stan Math, really simple. Well apart from this hiccup, but this is fixable. |
Thanks... yeah, I also think that I tried to reproduce on my MacBook and on our RHEL Linux. It works on both systems just fine. Can you please
and post these? What Ubuntu version are you on? Does this happen on all Ubuntu's? Thanks. |
Yep, ran make clean-all in math and then I do have to note that I tried with
I have OpenCL on in this case but its the same issue without it.
There is no system TBB install or spaces in the Path. I tried it on Ubuntu 19.04 and 18.10 and the student that discovered this issue tried it on Linux Mint. |
This is all odd. Can you please experiment a bit? Maybe it is about the order of things. So could you test if compiling unit tests works (maybe one which uses the TBB). Then please compare the order of the arguments being given to the compiler. Maybe the Thanks. Sorry I am a bit in the dark right now... |
I had the same issue with g++ and the TBB under linux over in the perf-math repo. I couldnt find a fix and just ended up using clang++ as a workaround |
One more thought: replace the |
Oh... I now have this problem reproducible in a Docker container running Ubuntu 16.04. So I can debug. Let's see what's the matter here. |
Fixed. The order of arguments was messed up. See the PR which is there in a minute. |
Description
I tried to compile a standalone file with math (
make -f math/make/standalone test1
) and got the following error:Its missing
-ltbb
flag. If I addLDLIBS += -ltbb
to my make/local it works fine.`#### Current Version:
v3.0.0
The text was updated successfully, but these errors were encountered: