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

remove boost shared library link from header only test suite #406

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

karosc
Copy link
Member

@karosc karosc commented Jun 26, 2024

I started running Fedora 40 on my personal laptop and found that SWMM wouldn't pass unit tests on that OS. Fedora is known for running newer software than debian/ubuntu and I wanted to understand why the tests would not pass. I was getting all sorts of malloc errors suggesting there was a memory leak in boost, but I doubted that could be true.

Turns out our Boost.Test configuration is not quite correct and breaks in newer versions of our linux build stack (gcc/cmake/boost). Our Solver, LID, and output test suites are configured as header-only suites, but cmake is configured to link boost as if our tests are configured as the shared variant.

After consulting the cmake docs and boost docs, I thought it best to remove the boost link....which solved my issues on fedora 40.

Regression tests still are failing on mac and windows, but that's a separate issue entirely.

@karosc karosc requested a review from bemcdonnell June 26, 2024 02:17
@karosc karosc merged commit dfd0e62 into pyswmm:develop Jun 26, 2024
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants