You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can compile SeBa with gcc 11.4.0, but with 13.3.0 I get a whole bunch of errors of various kinds. Explicitly setting a lower C++ version only helps partially (see also amusecode/amuse#1159).
It looks like there's a lot of old Starlab code here that was written long before C++ got standardised, and that's definitely getting long in the tooth.
I'm going to have a look at this, because I'd like this to work in AMUSE.
Build log (I've replaced a very long path for readability): seba.log
Maybe it's the conda activation scripts that turn some of those warnings into errors? Then again, I don't immediately see anything that could cause that:
I've been looking into this, and the longer I look at it the more it seems that this isn't right. We're compiling everything with -DTOOLBOX, which seems like it should be used when compiling libraries, and not used when compiling executables. As a result, we get multiple definitions of main() and linking errors, at least if you fix all those main function to have the correct (and therefore the same) signature.
Could it be that we're using different versions of make, you the old one on macOS and me something newer? Perhaps that causes it to be built differently.
The build system also doesn't do dependencies correctly and the recursive calls aren't right, so it doesn't build in parallel. But maybe that's worth a separate issue.
I've been fixing things and I think I have a working build, but with some warnings still that I'm going to eradicate before I make a PR.
Activity
rieder commentedon Jul 8, 2025
Hi Lourens,
Could you post the error log?
Github actions compiles SeBa just fine (see https://github.com/amusecode/SeBa/actions/runs/16069847803), and also locally I have no errors (lots of warnings though). That's with gcc-14.2.0.
LourensVeen commentedon Jul 8, 2025
Build log (I've replaced a very long path for readability): seba.log
Maybe it's the conda activation scripts that turn some of those warnings into errors? Then again, I don't immediately see anything that could cause that:
It does look like it's compiling SeBa as C++17, maybe that's not helping. Then again, that should be the default for gcc 14.2.0 as well.
LourensVeen commentedon Jul 22, 2025
I've been looking into this, and the longer I look at it the more it seems that this isn't right. We're compiling everything with
-DTOOLBOX, which seems like it should be used when compiling libraries, and not used when compiling executables. As a result, we get multiple definitions ofmain()and linking errors, at least if you fix all those main function to have the correct (and therefore the same) signature.Could it be that we're using different versions of
make, you the old one on macOS and me something newer? Perhaps that causes it to be built differently.The build system also doesn't do dependencies correctly and the recursive calls aren't right, so it doesn't build in parallel. But maybe that's worth a separate issue.
I've been fixing things and I think I have a working build, but with some warnings still that I'm going to eradicate before I make a PR.