Skip to content
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

SBOL_TEST requires linking to Python libraries #177

Open
kirichoi opened this issue Sep 10, 2017 · 8 comments
Open

SBOL_TEST requires linking to Python libraries #177

kirichoi opened this issue Sep 10, 2017 · 8 comments

Comments

@kirichoi
Copy link

SBOL_TEST requires linking to Python libraries which should not happen.
This issue was introduced by commit 41ad477 and was temporarily circumvented in commit 4eec728 by linking Python libraries.

@kirichoi
Copy link
Author

It segfaults now when it tries to run sbol_test executable.
@bbartley: Please take a look at this if you can. I will also try to find what's causing the issue.

@kirichoi
Copy link
Author

I believe this issue occurs because C++ library now has Python specific code embedded to it. When both SBOL_BUILD_TEST and SBOL_BUILD_PYTHON2 flags are TRUE, C++ library is practically useless by itself, leading to failure in test executable.

@bbartley
Copy link
Contributor

bbartley commented Sep 10, 2017 via email

@kirichoi
Copy link
Author

I don't think Python specific code was ever tested through Travis. This seems like a linking problem specific to test executable and any other projects that depends on libSBOL. I think the issue is that SBOL_BUILD_PYTHON2 enables Python specific code creating libSBOL library that will only work when Python library is linked. I think Mac should have similar problem when trying to build test and wrapper at the same time.

@bbartley
Copy link
Contributor

bbartley commented Sep 10, 2017 via email

@kirichoi
Copy link
Author

Hmm, I will check what's going on.

@kirichoi
Copy link
Author

This could be also gcc specific. @bbartley: could you test gcc?

@kirichoi
Copy link
Author

I think this is gcc specific issue. In clang it seems like you are using weak linking? I did got this working by linking all appropriate libraries and include directories. I will push out and let you see whether it's appropriate fix or not.

kirichoi pushed a commit that referenced this issue Sep 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants