Menu

#600 29267 problems compiling under Linux (lex/yacc).

v2.4.x
closed-fixed
None
Linux
2016-02-27
2015-02-01
Flavioweb
No

I downloaded and started to compile version 29267 as usual:

svn checkout svn://svn.code.sf.net/p/vice-emu/code/trunk vice-emu-code
./autogen.sh
./configure --enable-gnomeui --enable-memmap
make

but making process stops with:
make[4]: Entering directory `/home/flavio/vice-emu-code/vice/src/monitor'
/bin/sh ../../ylwrap mon_lex.l .c mon_lex.c -- flex

( http://pastebin.com/CYnfBVbF ).

Probably is a problem with lex and/or yacc...

Discussion

  • Marco van den Heuvel

    Please provide your config.log.

     
  • Flavioweb

    Flavioweb - 2015-02-01

    here it is ...

     
  • Marco van den Heuvel

    Should be fixed in rev 29268, please retest.

     
    • Greg King

      Greg King - 2015-02-02

      That fix doesn't work for me because I disable the use of the missing script (it's pointless; I have all of the programs that it tests). The ${am_missing_run} variable is empty. Therefore, your test thinks that flex and lex can't be found, when flex was found.

      You should use AC_PROG_LEX instead of AM_PROG_LEX (then, test for x"$LEX"=="x:").

      ==========

      Ah, OK. After posting the above reply, I updated from the repository, and saw that you had done it.

      However, you should use the word "and" instead of "or" in those error messages ("or" implies that only one of those programs couldn't be found, "and" says that all of them are missing).

       

      Last edit: Greg King 2015-02-02
  • Flavioweb

    Flavioweb - 2015-02-01

    Now i have a problem during "config":
    checking whether yytext is a pointer... yes
    ./configure: line 5923: syntax error near unexpected token (' ./configure: line 5923: $as_echo_n "(cached) " >&6'

    Let me know if you need more infos or files...

     
  • gpz

    gpz - 2015-02-03

    please try again with r29284 (or later)

     
  • Flavioweb

    Flavioweb - 2015-02-03

    I tried 29286.
    There are still problems, but during -make- now:

    http://pastebin.com/8fncEcFY

     
  • Robert Hurst

    Robert Hurst - 2015-02-14

    Yeah, this got messy/broken:

    checking for byacc... byacc
    checking for flex... flex --noyywrap
    checking for flex... (cached) flex --noyywrap
    checking lex output file root... lex.yy
    checking lex library...
    checking whether yytext is a pointer... yes

    ...

    Making all in monitor
    mon_lex.l:65:23: error: macro "yywrap" passed 1 arguments, but takes just 0
    static int yywrap(void);
    ^
    mon_lex.l:572:23: error: macro "yywrap" passed 1 arguments, but takes just 0
    {
    ^
    mon_lex.l:573:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘{’ token
    return 1;
    ^
    mon_lex.l:65:12: warning: ‘yywrap’ defined but not used [-Wunused-variable]
    static int yywrap(void);
    ^
    Makefile:577: recipe for target 'mon_lex.o' failed
    make[4]: *** [mon_lex.o] Error 1

     
  • Marco van den Heuvel

    please retest with rev 29330.

     
  • Robert Hurst

    Robert Hurst - 2015-02-14

    Nice! Configured and compiled just fine.

     
  • Marco van den Heuvel

    • status: open --> pending-fixed
    • assigned_to: Marco van den Heuvel
     
  • Flavioweb

    Flavioweb - 2015-02-15

    I can confirm: configured and compiled without problems! (29337)
    Thanks!

     
  • Marco van den Heuvel

    • status: pending-fixed --> closed-fixed
     

Log in to post a comment.