<div dir="ltr">Alright I have <div>ubuntu 18.10 with gcc 8.2.0 </div><div>and</div><div>Archlinux with gcc 8.2.1</div><div><br></div><div>both builds fine with freshly cloned repo and commands</div><div>make distclean</div><div>make defconfig</div><div>make vi</div><div><br></div><div>I can set up virtual image with ubuntu 14.04 perhaps tomorrow. what compiler version you might be using? </div><div><br></div><div>-Jarno</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Mar 23, 2019 at 9:59 PM Rob Landley <<a href="mailto:rob@landley.net">rob@landley.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I just did:<br>
<br>
make distclean<br>
make defconfig<br>
make vi<br>
<br>
On ubuntu 14.04.<br>
<br>
Rob<br>
<br>
On 3/23/19 2:27 PM, jarno Mäkipää wrote:<br>
> Hello<br>
> <br>
> Sorry I just build with default build flags made by:<br>
> make menuconfig<br>
> make<br>
> <br>
> Do you have instructions on some page what build flags should normally be set<br>
> on? So I can fix those few errors.<br>
> <br>
> -Jarno<br>
> <br>
> <br>
> On Sat, Mar 23, 2019 at 8:59 PM Rob Landley <<a href="mailto:rob@landley.net" target="_blank">rob@landley.net</a><br>
> <mailto:<a href="mailto:rob@landley.net" target="_blank">rob@landley.net</a>>> wrote:<br>
> <br>
> On 3/23/19 6:37 AM, Jarno Mäkipää wrote:<br>
> > Has beginnings of reading file, saving file, hjkl movement, insert, ex<br>
> > (only w, wq, q!), search with /, some other normal mode actions (dd, w, b,<br>
> > e), some utf8 support<br>
> <br>
> Compile vi....toys/pending/vi.c: In function 'run_vi_cmd':<br>
> toys/pending/vi.c:409:3: error: 'for' loop initial declarations are only allowed<br>
> in C99 mode<br>
> for(int i=0;i<7;i++) {<br>
> ^<br>
> toys/pending/vi.c:409:3: note: use option -std=c99 or -std=gnu99 to compile your<br>
> code<br>
> toys/pending/vi.c: In function 'draw_page':<br>
> toys/pending/vi.c:657:7: error: 'for' loop initial declarations are only allowed<br>
> in C99 mode<br>
> for(int p = 0; p < scr_buf->line->str_len;y++) {<br>
> ^<br>
> toys/pending/vi.c: In function 'utf8_len':<br>
> toys/pending/vi.c:854:3: error: 'for' loop initial declarations are only allowed<br>
> in C99 mode<br>
> for(int i = len-1;i>0;i--) {<br>
> ^<br>
> lib/lib.c: In function 'parse_formats':<br>
> lib/lib.c:1563:3: error: implicit declaration of function 'check_tm'<br>
> [-Werror=implicit-function-declaration]<br>
> check_tm(&tm);<br>
> ^<br>
> lib/lib.c: At top level:<br>
> lib/lib.c:1482:12: warning: 'parse_formats' defined but not used<br>
> [-Wunused-function]<br>
> static int parse_formats(char *str, time_t *t, int *nano)<br>
> ^<br>
> cc1: some warnings being treated as errors<br>
> make: *** [vi] Error 1<br>
> <br>
> Rob<br>
> <br>
</blockquote></div>