On Sun, Apr 18, 2021, Otto Sievert wrote:
>
>Today I helped someone install AmberTools20 on his macOS computer. I wanted
>to report a problem with this, and my hacky work-around. At a minimum, this
>work-around might help others.
>
>The issue: after installing prerequisites (Xcode command line tools,
>gfortran 8.2, cmake) the build fails to compile the file
>build/AmberTools/src/leap/src/leap/y.tab.c file (a generated source file)
>because the C compiler requires a forward declaration of the two functions
>yylex() and yyerror() before they are referenced.
>
>My hacky work-around: after getting that build failure, I edited the
>generated y.tab.c file, added these two forward declaration lines near the
>top of the file, and re-ran "make":
> int yylex();
> int yyerror(char *sStr);
Thanks for the report. This is fixed in the development version, and will
be in AmberTools21, which will be released soon.
It's odd that no one else has reported this (which is why we haven't
released an update patch). It used to be flagged as a warning for some
compilers, but it seems that other compilers are now issuing an error rather
than a warning, and are no longer allowing implicit declarations.
....regards....dac
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Mon Apr 19 2021 - 06:30:05 PDT