I recently updated my xcode tools to 12.4, and that seems to have caused cc (now at 12.0.0; clang-1200.0.32.29) to start treating implicit functions as errors instead of just warnings as before (with clang 11). For example,
I am compiling with ifort+clang (and also updated from Mojave to Catalina). One solution is to add a -Wno-error flag in arch/config.defaults:
A heavy-handed option is to add "-w" to suppress all warnings. I don't know if there is some odd setting on my system that is causing this behavior, as I haven't found any other complaints about it. So this post is for anybody else who happens to run into this.
Code:
reg_parse.c:229:15: error: implicitly declaring library function 'tolower' with type 'int (int)' [-Werror,-Wimplicit-function-declaration]
x = tolower(tokens[F_DIMS][i]) ;
reg_parse.c:229:15: note: include the header <ctype.h> or explicitly provide a declaration for 'tolower'
I am compiling with ifort+clang (and also updated from Mojave to Catalina). One solution is to add a -Wno-error flag in arch/config.defaults:
Code:
#ARCH Darwin (MACOS) intel compiler with clang EDIT FOR OPENMPI #serial smpar dmpar dm+sm
...
...
CC_TOOLS = cc -Wno-error=implicit-function-declaration
A heavy-handed option is to add "-w" to suppress all warnings. I don't know if there is some odd setting on my system that is causing this behavior, as I haven't found any other complaints about it. So this post is for anybody else who happens to run into this.