On 25/02/2021 14:50, Jonathan Salles wrote:
> Hello Martin, and all.
>
> First, thanks Martin for creating and continuing to improve. Thanks to
> all the users and contributors. Greatly appreciated.
>
> After a bit of a hiatus I am starting to upgrade as I am a bit behind.
> My main use system is a Mac Mini running Mojave or High Sierra (can't
> upgrade, too old, stupid Apple). I have a Macbook Pro running Catalina,
> but haven't installed Beancount to that.
>
> Trying to install on two CentOS systems, one mine and one at work. Both
> running Centos 7.8 and recently updated. One has Python 8.1, one has
> Python 8.2.
I think you mean Python 3.8.1 or 3.8.2.
> Both are incurring this error:
> beancount/parser/parser.c: In function ‘strtonl’:
> beancount/parser/parser.c:53:5: error: ‘for’ loop initial
> declarations are only allowed in C99 mode
> for (size_t i = 0; i < len; ++i) {
> ^
> beancount/parser/parser.c:53:5: note: use option -std=c99 or
> -std=gnu99 to compile your code
> error: command 'gcc' failed with exit status 1
>
> From the error and some web searching it looks like -std=c99 or
> -std=gnu99 needs to be added to the makefile, or I need to set it
> somewhere in my gcc options. In the makefile it would prevent others
> from having this issue.
Python extensions are compiled with setuptools, not wit a Makefile, thus
the setup.py may require some tweaking, or the code adjusted to do not
rely on c99 features.
Which version of GCC is CentOS 7.8 shipping?
Cheers,
Dan