Closed mtwalach closed 3 years ago
Update: Apparently this is a known problem with the compiler on Catalina. I removed make_sim.1.0
, sim_data.1.0
and sim_real.1.0
which all throw up this error and RST compiles fine without them. I have never used those routines before, so I won't miss them. If anyone does want to use these on Catalina however, they may run into this issue...
@mtwalach unfortunately I can't help with compiling on Mac / Catalina, but just wanted to mention that these same libraries / binaries gave us a lot of trouble several years ago: https://github.com/vtsuperdarn/VTRST3.5/issues/19
At the time our solution was to tar the problematic directories so the make.code
process would skip over them. At some later point, I copied a few bug fixes from @asreimer's RSTLite fork which (at that time) got the make.code
process working again (https://github.com/SuperDARN/rst/commit/d161d560a9463103efa78613625585f632d87dba).
Hey everyone. I don't have time to fix this, but I think the error message is pretty clear:
/Users/maria/rst/rst/include/base/rmath.h:44:1: error: declaration of anonymous struct must be a definition
struct complex {
^
The compiler doesn't like the anonymous structure definition. Some newer versions of compilers (remember all the extra warnings I found in RST with GCC 8? Latest is now GCC 9.2) do a better job of ensuring compliance with newer code standards and have started throwing errors where once they would just throw a warning.
You might be able to add -Wno-gnu-anonymous-struct
to the makefile for the sim_*
code as a bandaid work around.
The proper fix involves investigating where RST even uses that struct complex
definition and just removing it and updating any code that might be using it to use the builtin "complex.h" instead. Custom type definitions from the time before the C99 Standard existed probably don't make sense 20 years later.
@mtwalach did you fix this?
Working on the solution @asreimer suggested :)
Sorry, my previous post on this wasn't particularly clear. "fix" is a strong description: I took the aforementioned culprits of code out (i.e. removed the folders & files) and then it compiled just fine. As I said, I probably won't miss them but someone else might (they are neat pieces of code).
Happy to test it when it's done!
Hi, I am still trying to install RST on a new OS (I have made an advancement on my last issue (🎉) but have now run into a problem that I have never come across before:
I think this might be a problem in
/include/base/rmath.h
but I can't spot what is wrong with it - Can anyone help?