Closed simfaucher closed 5 months ago
This is strange. As you can see from our CI builds compilation succeeds with GCC 9. I can also compile it just fine locally with GCC 13. However, a colleague of mine experienced the same issue with GCC 12. So it seems to be specific to a certain GCC version range.
I also checked the test code. The current size of infos
(2) is correct. This is the number of subsimulators listed in the SSP files used for the test, and it can be verified by printing the numSlaves
variable. Furthermore, both the size of name
and infos[i].name
are the same (SLAVE_NAME_MAX_SIZE
), and the subsimulator names given in the SSP files are well within the size bound.
I suspect that this is a GCC bug, perhaps related to issue 89689 or 91890.
I am therefore closing this, but please feel free to reopen if you can point more precisely to what is wrong in our test code.
I can also compile it just fine locally with GCC 13.
Sorry, I spoke too soon. I can reproduce the issue with GCC 13 if I compile with the release
build type. But to me, this indicates even more that this is a GCC bug which is related to side effects of compiler optimisations.
Hello, We have the following error when compiling libcosimc on branch feature/conan-2:
The solution is very simple and present on pull request #52 :
for tests execution_from_ssp_custom_algo_test.c, line 66, replace :
with
The same for execution_from_ssp_test.c, line 57
Could you fix it please? Thank you!