-
Notifications
You must be signed in to change notification settings - Fork 52
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
Doris_core directory not compiling due to error in function declaration in orbitbk.hh #27
Comments
Hi @CarloArpini, the fix for this issue is in PR #5. Please let me know if it works for you on MacOSX |
Hi @avalentino , just by changing that line of code according to the "fix build on modern compilers" nothing happens. I see though that in 8fa0365 you actually changed the orbitbk.hh file in a very similar manner to what I tried to do: you just redefined the functions outside of the orbit class, I tried defining them both outside the orbit class with fixed arguments and inside without fixed arguments. In both cases it compiles but the problem is that, when launching, it encounters segmentation fault on my machine: |
Have you tried to apply the entire set of patches? |
I tried but it actually causes errors in the compiling process. |
Can you please report the error? |
OK; this seems not to be a build problem, rather a permission problem not related to Doris. |
I will look into that; for now, I tried to copy and paste the executables in the bin directory too just as a try, but as the previous times when launched, with the set of patches applied, it encounters segmentation fault (just as in the screenshot above) |
Sorry I can confirm that the patches still work on linux but I can also confirm that I have the same error that you reported on MacOSX. If you find a solution please keep us updated. |
I tired setting the |
I was able to successfully compile using:
and
The easiest way to get a hold of these is to use the Hope this helps. |
Hello, as stated in the title the Doris core directory won't compile after using the configure executable; this appears to be due the fact that during the definition of some friend functions in the orbitbk.hh file (namely the coordinates change ones) they are given fixed values for some arguments (such as MAXITER and CRITTERTIM or CRITTERPOS). I tried changing the code and the only thing that made compiling possible was not giving the friend functions their fixed arguments but at the same time re-defining out of the orbit class in the same header file the same functions, no longer as friend ones, with fixed arguments, as shown here: https://stackoverflow.com/questions/22533511/friend-declaration-specifying-a-default-argument-must-be-a-definition This made compiling possible but causes segmentation fault with sigsev. This issue seems to be present both in the version 4 and 5 of Doris. See attached files for what exactly was shown on my terminal. I'm using currently a macbook pro late 2013 15" with the latest version of MacOs Big Sur at the time (11.2.3) and with Xcode 12D4e version.
The text was updated successfully, but these errors were encountered: