Python 3.8.6 is installed on the machine. I will try the flags and see if I 
can make some progress. Thanks for the suggestions.

On Monday, February 1, 2021 at 7:39:59 PM UTC-5 [email protected] wrote:

> One can always compile a newer version of GCC, bison and python from 
> source using the existing GCC :D
>
> Le mar. 2 févr. 2021 à 01:28, Daniele Nicolodi <[email protected]> a 
> écrit :
>
>> On 02/02/2021 01:22, Altynbek Isabekov wrote:
>> > Yes, there are many others:
>> > python3.9-config --cflags
>> > -I/usr/include/python3.9 -I/usr/include/python3.9  -Wno-unused-result
>> > -Wsign-compare -march=x86-64 -mtune=generic -O3 -pipe -fno-plt
>> > -fno-semantic-interposition -DNDEBUG -g -fwrapv -O3 -Wall
>> > 
>> > but it's worth giving a try.
>>
>> I'll say it again, using different words: the CFLAGS variable in the
>> Makefile does not contain the flags used to compile the Python
>> extension. The CFLAGS variable hold the flags used to compile a test
>> case, which is not build by default.
>>
>> Anyhow, the C standard is not William's only problem, if he is working
>> on a system that really has GCC 4.4.7. For example, using the Makefile
>> to compile Beancount, you need also Bison 3.7, which is also extremely
>> unlikely to be distributed along with GCC 4.4.7.
>>
>> Cheers,
>> Dan
>>
>>
>> > 
>> > 
>> > Le mar. 2 févr. 2021 à 01:13, Daniele Nicolodi <[email protected]
>> > <mailto:[email protected]>> a écrit :
>> > 
>> >     On 02/02/2021 01:10, Altynbek Isabekov wrote:
>> >     > No need to modify the code, just replace
>> >     > CFLAGS += $(shell $(PYCONFIG) --cflags) -I$(PWD) -fPIE -UNDEBUG
>> >     > -Wno-unused-function -Wno-unused-variable
>> >     > with
>> >     > CFLAGS += $(shell $(PYCONFIG) --cflags) -I$(PWD) -fPIE -UNDEBUG
>> >     > -Wno-unused-function -Wno-unused-variable -std=c99
>> >     > in
>> >     file https://github.com/beancount/beancount/blob/master/Makefile
>> >     <https://github.com/beancount/beancount/blob/master/Makefile>
>> >     > <https://github.com/beancount/beancount/blob/master/Makefile
>> >     <https://github.com/beancount/beancount/blob/master/Makefile>>
>> >     > and rerun the build process.
>> > 
>> >     These flags are not the ones used to build the Python extension.
>> > 
>> >     >
>> >     >
>> >     >
>> >     > Le mar. 2 févr. 2021 à 00:58, William Bean <[email protected]
>> >     <mailto:[email protected]>
>> >     > <mailto:[email protected] <mailto:[email protected]>>> a écrit :
>> >     >
>> >     >     Ahh yea it probably is the compiler version, thanks. So would
>> >     I just
>> >     >     modify tokens.c on my local copy as the error (and you 
>> previously)
>> >     >     suggested and see if that works?
>> >     >
>> >     >     On Mon, Feb 1, 2021, 6:53 PM Altynbek Isabekov
>> >     >     <[email protected]
>> >     <mailto:[email protected]>
>> >     <mailto:[email protected]
>> >     <mailto:[email protected]>>>
>> >     >     wrote:
>> >     >
>> >     >         If 4.4.7-23 is the version of your GCC compiler and not
>> >     Red Hat
>> >     >         OS, then its default C standard is ANSI (with GNU 
>> extensions,
>> >     >         i.e. "-std=c90" ).
>> >     >
>> >     >         Constructions such:
>> >     >
>> >     >         for (size_t i = 0; i < len; ++i) {
>> >     >             ...
>> >     >
>> >     >             }
>> >     >
>> >     >         in
>> >     >       
>> >      
>> https://github.com/beancount/beancount/blob/master/beancount/parser/tokens.c
>> >     <
>> https://github.com/beancount/beancount/blob/master/beancount/parser/tokens.c
>> >
>> >     >       
>> >      <
>> https://github.com/beancount/beancount/blob/master/beancount/parser/tokens.c
>> >     <
>> https://github.com/beancount/beancount/blob/master/beancount/parser/tokens.c
>> >>
>> >     >
>> >     >         won't work, you need specify a newer C standard (C99) or
>> >     install
>> >     >         a newer version of GCC.
>> >     >
>> >     >
>> >     >
>> >     >         Le mar. 2 févr. 2021 à 00:27, William Bean
>> >     <[email protected] <mailto:[email protected]>
>> >     >         <mailto:[email protected] <mailto:[email protected]>>> a
>> >     écrit :
>> >     >
>> >     >             Oof I can double check, but that's what it was
>> >     spitting out
>> >     >             for me.
>> >     >
>> >     >             On Mon, Feb 1, 2021, 5:39 PM Daniele Nicolodi
>> >     >             <[email protected] <mailto:[email protected]>
>> >     <mailto:[email protected] <mailto:[email protected]>>> wrote:
>> >     >
>> >     >                 On 01/02/2021 23:31, William Bean wrote:
>> >     >                 > I've been trying to install Beancount on my new
>> >     shared
>> >     >                 hosting account
>> >     >                 > today and haven't had any luck. I ended up
>> >     needing to
>> >     >                 do a git clone and
>> >     >                 > manual install because I couldn't get pip to 
>> work. I
>> >     >                 do have compile
>> >     >                 > access and it seemed to almost install. The os
>> >     is Red
>> >     >                 Hat 4.4.7-23
>> >     >
>> >     >                 Are you sure of this version number? That would
>> >     point to
>> >     >                 a RedHat
>> >     >                 version released in 2006. I would not like to run 
>> a
>> >     >                 shared hosting
>> >     >                 platform on something so old.
>> >     >
>> >     >                 Cheers,
>> >     >                 Dan
>> >     >
>> >     >                 --
>> >     >                 You received this message because you are
>> >     subscribed to
>> >     >                 a topic in the Google Groups "Beancount" group.
>> >     >                 To unsubscribe from this topic, visit
>> >     >               
>> >      
>> https://groups.google.com/d/topic/beancount/XEgsh6OXsO8/unsubscribe
>> >     <
>> https://groups.google.com/d/topic/beancount/XEgsh6OXsO8/unsubscribe>
>> >     >               
>> >      <
>> https://groups.google.com/d/topic/beancount/XEgsh6OXsO8/unsubscribe <
>> https://groups.google.com/d/topic/beancount/XEgsh6OXsO8/unsubscribe>>.
>> >     >                 To unsubscribe from this group and all its topics,
>> >     send
>> >     >                 an email to [email protected]
>> >     <mailto:beancount%[email protected]>
>> >     >                 <mailto:beancount%[email protected]
>> >     <mailto:beancount%[email protected]>>.
>> >     >                 To view this discussion on the web visit
>> >     >               
>> >      
>> https://groups.google.com/d/msgid/beancount/a2409688-c301-3733-82a2-713e8cfa1853%40grinta.net
>> >     <
>> https://groups.google.com/d/msgid/beancount/a2409688-c301-3733-82a2-713e8cfa1853%40grinta.net
>> >
>> >     >               
>> >      <
>> https://groups.google.com/d/msgid/beancount/a2409688-c301-3733-82a2-713e8cfa1853%40grinta.net
>> >     <
>> https://groups.google.com/d/msgid/beancount/a2409688-c301-3733-82a2-713e8cfa1853%40grinta.net
>> >>.
>> >     >
>> >     >             --
>> >     >             You received this message because you are subscribed
>> >     to the
>> >     >             Google Groups "Beancount" group.
>> >     >             To unsubscribe from this group and stop receiving 
>> emails
>> >     >             from it, send an email to
>> >     >             [email protected]
>> >     <mailto:beancount%[email protected]>
>> >     >             <mailto:[email protected]
>> >     <mailto:beancount%[email protected]>>.
>> >     >             To view this discussion on the web visit
>> >     >           
>> >      
>> https://groups.google.com/d/msgid/beancount/CAO0DHEAfxBYMUbbmAyEc%2Bxfb-G6NOG%3DMQ9xgG%3DKrEzeh0fv2fQ%40mail.gmail.com
>> >     <
>> https://groups.google.com/d/msgid/beancount/CAO0DHEAfxBYMUbbmAyEc%2Bxfb-G6NOG%3DMQ9xgG%3DKrEzeh0fv2fQ%40mail.gmail.com
>> >
>> >     >           
>> >      <
>> https://groups.google.com/d/msgid/beancount/CAO0DHEAfxBYMUbbmAyEc%2Bxfb-G6NOG%3DMQ9xgG%3DKrEzeh0fv2fQ%40mail.gmail.com?utm_medium=email&utm_source=footer
>> >     <
>> https://groups.google.com/d/msgid/beancount/CAO0DHEAfxBYMUbbmAyEc%2Bxfb-G6NOG%3DMQ9xgG%3DKrEzeh0fv2fQ%40mail.gmail.com?utm_medium=email&utm_source=footer
>> >>.
>> >     >
>> >     >
>> >     >
>> >     >         --
>> >     >         Sincerely yours, Altynbek
>> >     >
>> >     >         --
>> >     >         You received this message because you are subscribed to a
>> >     topic
>> >     >         in the Google Groups "Beancount" group.
>> >     >         To unsubscribe from this topic, visit
>> >     >       
>> >      
>> https://groups.google.com/d/topic/beancount/XEgsh6OXsO8/unsubscribe
>> >     <
>> https://groups.google.com/d/topic/beancount/XEgsh6OXsO8/unsubscribe>
>> >     >       
>> >      <
>> https://groups.google.com/d/topic/beancount/XEgsh6OXsO8/unsubscribe <
>> https://groups.google.com/d/topic/beancount/XEgsh6OXsO8/unsubscribe>>.
>> >     >         To unsubscribe from this group and all its topics, send an
>> >     email
>> >     >         to [email protected]
>> >     <mailto:beancount%[email protected]>
>> >     >         <mailto:[email protected]
>> >     <mailto:beancount%[email protected]>>.
>> >     >         To view this discussion on the web visit
>> >     >       
>> >      
>> https://groups.google.com/d/msgid/beancount/CAOm1zMPDdGgx6mm3C9rFbrHg02PNk0h5YRp8OvUmrCSM7Tv%3D8g%40mail.gmail.com
>> >     <
>> https://groups.google.com/d/msgid/beancount/CAOm1zMPDdGgx6mm3C9rFbrHg02PNk0h5YRp8OvUmrCSM7Tv%3D8g%40mail.gmail.com
>> >
>> >     >       
>> >      <
>> https://groups.google.com/d/msgid/beancount/CAOm1zMPDdGgx6mm3C9rFbrHg02PNk0h5YRp8OvUmrCSM7Tv%3D8g%40mail.gmail.com?utm_medium=email&utm_source=footer
>> >     <
>> https://groups.google.com/d/msgid/beancount/CAOm1zMPDdGgx6mm3C9rFbrHg02PNk0h5YRp8OvUmrCSM7Tv%3D8g%40mail.gmail.com?utm_medium=email&utm_source=footer
>> >>.
>> >     >
>> >     >     --
>> >     >     You received this message because you are subscribed to the 
>> Google
>> >     >     Groups "Beancount" group.
>> >     >     To unsubscribe from this group and stop receiving emails from 
>> it,
>> >     >     send an email to [email protected]
>> >     <mailto:beancount%[email protected]>
>> >     >     <mailto:[email protected]
>> >     <mailto:beancount%[email protected]>>.
>> >     >     To view this discussion on the web visit
>> >     >   
>> >      
>> https://groups.google.com/d/msgid/beancount/CAO0DHECRGj6MUsu0ECYRWVzUE-a3V9DXy6vdTgG9OE%2BiZ7B89g%40mail.gmail.com
>> >     <
>> https://groups.google.com/d/msgid/beancount/CAO0DHECRGj6MUsu0ECYRWVzUE-a3V9DXy6vdTgG9OE%2BiZ7B89g%40mail.gmail.com
>> >
>> >     >   
>> >      <
>> https://groups.google.com/d/msgid/beancount/CAO0DHECRGj6MUsu0ECYRWVzUE-a3V9DXy6vdTgG9OE%2BiZ7B89g%40mail.gmail.com?utm_medium=email&utm_source=footer
>> >     <
>> https://groups.google.com/d/msgid/beancount/CAO0DHECRGj6MUsu0ECYRWVzUE-a3V9DXy6vdTgG9OE%2BiZ7B89g%40mail.gmail.com?utm_medium=email&utm_source=footer
>> >>.
>> >     >
>> >     >
>> >     >
>> >     > --
>> >     > Sincerely yours, Altynbek
>> >     >
>> >     > --
>> >     > You received this message because you are subscribed to the Google
>> >     > Groups "Beancount" group.
>> >     > To unsubscribe from this group and stop receiving emails from it, 
>> send
>> >     > an email to [email protected]
>> >     <mailto:beancount%[email protected]>
>> >     > <mailto:[email protected]
>> >     <mailto:beancount%[email protected]>>.
>> >     > To view this discussion on the web visit
>> >     >
>> >     
>> https://groups.google.com/d/msgid/beancount/CAOm1zMPDNvETHxmh6NdTNsT6H3RO0-V4LFzUnk5o9Qw_4w1ojg%40mail.gmail.com
>> >     <
>> https://groups.google.com/d/msgid/beancount/CAOm1zMPDNvETHxmh6NdTNsT6H3RO0-V4LFzUnk5o9Qw_4w1ojg%40mail.gmail.com
>> >
>> >     >
>> >     <
>> https://groups.google.com/d/msgid/beancount/CAOm1zMPDNvETHxmh6NdTNsT6H3RO0-V4LFzUnk5o9Qw_4w1ojg%40mail.gmail.com?utm_medium=email&utm_source=footer
>> >     <
>> https://groups.google.com/d/msgid/beancount/CAOm1zMPDNvETHxmh6NdTNsT6H3RO0-V4LFzUnk5o9Qw_4w1ojg%40mail.gmail.com?utm_medium=email&utm_source=footer
>> >>.
>> > 
>> >     -- 
>> >     You received this message because you are subscribed to the Google
>> >     Groups "Beancount" group.
>> >     To unsubscribe from this group and stop receiving emails from it,
>> >     send an email to [email protected]
>> >     <mailto:beancount%[email protected]>.
>> >     To view this discussion on the web visit
>> >     
>> https://groups.google.com/d/msgid/beancount/59ff8b5c-adb3-cccd-1056-7abfab0b828d%40grinta.net
>> >     <
>> https://groups.google.com/d/msgid/beancount/59ff8b5c-adb3-cccd-1056-7abfab0b828d%40grinta.net
>> >.
>> > 
>> > 
>> > 
>> > -- 
>> > Sincerely yours, Altynbek
>> > 
>> > -- 
>> > You received this message because you are subscribed to the Google
>> > Groups "Beancount" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an email to [email protected]
>> > <mailto:[email protected]>.
>> > To view this discussion on the web visit
>> > 
>> https://groups.google.com/d/msgid/beancount/CAOm1zMNq7utWd5TmsHUGEKVThhtskcoExPi3GEyNFE1Z6An_8Q%40mail.gmail.com
>> > <
>> https://groups.google.com/d/msgid/beancount/CAOm1zMNq7utWd5TmsHUGEKVThhtskcoExPi3GEyNFE1Z6An_8Q%40mail.gmail.com?utm_medium=email&utm_source=footer
>> >.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Beancount" group.
>>
> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/beancount/2b15e334-ec0f-fd4d-fa01-751b4607db3f%40grinta.net
>> .
>>
>
>
> -- 
> Sincerely yours, Altynbek
>

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/8b7c5bb9-aa49-46ed-bc4d-df48dd8a1390n%40googlegroups.com.

Reply via email to