-
Notifications
You must be signed in to change notification settings - Fork 8
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
[Bug]: Building flags that are needed #356
Comments
@kellijohnson-NOAA, I think the README is the best place for it. If you can add it there, I can follow up with a bit more detail. Thanks! |
to the README under a header labeled "Fixing Fatal Error". Close #356
A bit more background on this issue... This error message is specific to Windows OS and happens when FIMS is compiled through a devtools function that automatically turns on the degugger (eg. I have reached out to pkgbuild developers asking for an option to set the debugger flag as an argument through devtools. The recommended option was to use
In the future, we could possibly set-up a Makefile that automatically compiles FIMS with the correct debugger flag when calling |
@Andrea-Havron-NOAA I tried executing that I actually get an earlier error:
Here's the compiler call
but results in the same error
I confirmed that I can run |
@Cole-Monnahan-NOAA, It looks like you're still compiling with the You need to run Note the issue is with compiling templated C++ on windows when the debugger is automatically turned on by devtools. The debugger bloats the .o file, so you won't see this error with a small program. We started seeing this error in FIMS once we linked in the Rcpp interface, which includes a large codebase. Other TMB developers (eg. VAST) have also seen this error. |
I've added more details to the README, including instructions on how to modify Makevars.win to compile FIMS with the debugger turned on (needed for gdb). Given that developers may need to modify Makevars.win, I've added this file to the .gitignore in src to make sure changes are not pushed up to github. We will just want to remove from .gitignore if/when we need to make changes to Makevars.win. |
Describe the bug
Users can get this, or some derivative of, error as noted by @Cole-Monnahan-NOAA.
@Andrea-Havron-NOAA knows of the following solution that worked for @kellijohnson-NOAA
but this is not documented anywhere in FIMS that I know of. Perhaps having this searchable issue will be helpful. But, is this important enough that we should put it on the README?
I am happy to add this to the README if everything thinks that this is the best location for it.
To Reproduce
load_all()
Expected behavior
That FIMS would just compile.
Screenshots
No response
Which OS are you seeing the problem on?
Windows
Which browser are you seeing the problem on?
No response
Which version of FIMS are you seeing the problem on?
No response
Additional Context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: