This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS: Error while building vision_sdk_usecase_gen tool



Tool/software: TI-RTOS

Hello,

I have added new algorithm link in vision sdk 03.03.00.00.

When I am trying to run below command to build all changes at path

/vision_sdk/apps/tools/vision_sdk_usecase_gen/

Command : make all 

then I am getting below error:

$ make all
mkdir -p objs
mkdir -p bin
bison -vd parse.yy
process_begin: CreateProcess(NULL, bison -vd parse.yy, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [parse.tab.cc] Error 2

I am building this on Windows 7 using git bash.

Please guide me to resolve this.

Regards,

Sayali V.

  • Hello,
    Any update on this.
    Regards,
    Sayali V.
  • Hi Sayali,
    Could you please confirm all tools are installed to compile and build the Usecase Generation tool ?
    If not please refer section 2: Requirement of VisionSDK_UserGuide_UsecaseGen.docx

    Also could you please confirm is it 64 bit machine where you are trying to build ?

    Regards
    Surya
  • Hello Suryamani,

    Thanks for the reference document. I have installed all require tools to compile.
    After that it's show error like:

    $ make all
    mkdir -p objs
    mkdir -p bin
    bison -vd parse.yy
    m4: cannot open `Files': No such file or directory
    m4: cannot open `(x86)\GnuWin32/share/bison': No such file or directory
    m4: cannot open `C:\Program': No such file or directory
    m4: cannot open `Files': No such file or directory
    m4: cannot open `(x86)\GnuWin32/share/bison/m4sugar/m4sugar.m4': No such file or directory
    m4_init()
    m4_define([b4_actions],
    [b4_case(6, [b4_syncline(102, [["parse.yy"]])
    [ {
    mainObj.setNewConn(]b4_rhs_value(1, 1, [lnk])[);
    }]])

    b4_case(7, [b4_syncline(109, [["parse.yy"]])
    [ {
    mainObj.setFileName(*]b4_rhs_value(3, 3, [sval])[);
    }]])

    b4_case(8, [b4_syncline(116, [["parse.yy"]])
    [ {
    ]b4_lhs_value([lnk])[ = new vector<Link*>;
    Link* obj = mainObj.createObject(*]b4_rhs_value(1, 1, [sval])[);
    ]b4_lhs_value([lnk])[->push_back(obj);
    }]])

    b4_case(9, [b4_syncline(123, [["parse.yy"]])
    [ {
    ]b4_lhs_value([lnk])[ = new vector<Link*>;
    Link* obj = mainObj.createObject(*]b4_rhs_value(4, 1, [sval])[);
    obj->setProcType(*]b4_rhs_value(4, 3, [sval])[);
    ]b4_lhs_value([lnk])[->push_back(obj);
    }]])

    b4_case(10, [b4_syncline(132, [["parse.yy"]])
    [ {
    Link* obj = mainObj.createObject(*]b4_rhs_value(4, 1, [sval])[);
    ]b4_rhs_value(4, 4, [lnk])[->push_back(obj);
    ]b4_lhs_value([lnk])[ = ]b4_rhs_value(4, 4, [lnk])[;
    }]])

    b4_case(11, [b4_syncline(139, [["parse.yy"]])
    [ {
    Link* obj = mainObj.createObject(*]b4_rhs_value(7, 1, [sval])[);
    obj->setProcType(*]b4_rhs_value(7, 3, [sval])[);
    ]b4_rhs_value(7, 7, [lnk])[->push_back(obj);
    ]b4_lhs_value([lnk])[ = ]b4_rhs_value(7, 7, [lnk])[;
    }]])

    ])

    m4_define([b4_mergers],
    [[]])

    m4_define([b4_tokens],
    [[[[I_NUM]], 258],
    [[[ID]], 259],
    [[[INT]], 260],
    [[[USECASE]], 261]])

    m4_define([b4_symbol_destructors],
    [])

    m4_define([b4_symbol_printers],
    [])

    m4_define([b4_translate],
    [[ 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    12, 13, 7, 9, 2, 10, 2, 8, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 11, 2,
    2, 2, 14, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
    2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
    5, 6]])


    m4_define([b4_use_push_for_pull_flag],
    [[0]])


    m4_define([b4_pact_ninf],
    [[-14]])


    m4_define([b4_initial_action],
    [[]b4_syncline(82, [["parse.yy"]])[
    {
    // Filename for locations here
    ]b4_at_dollar[.begin.filename = ]b4_at_dollar[.end.filename = new std::string("stdin");
    }]])


    m4_define([b4_conflict_list_heads],
    [[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0]])


    m4_define([b4_toknum_max],
    [[261]])


    m4_define([b4_rhs],
    [[ 16, 0, -1, 17, -1, 18, -1, 18, 17, -1,
    19, -1, 20, -1, 6, 11, 4, -1, 4, -1,
    4, 12, 4, 13, -m4: cannot open `C:\Program': No such file or directory
    m4: cannot open `Files': No such file or directory
    m4: cannot open `(x86)\GnuWin32/share/bison/bison.m4': No such file or directory
    m4: cannot open `C:\Program': No such file or directory
    m4: cannot open `Files': No such file or directory
    m4: cannot open `(x86)\GnuWin32/share/bison/lalr1.cc': No such file or directory
    1, 4, 10, 14, 20, -1,
    4, 12, 4, 13, 10, 14, 20, -1]])


    m4_define([b4_last],
    [[15]])


    m4_define([b4_stos_min],
    [[0]])


    m4_define([b4_tag_seen_flag],
    [[1]])


    m4_define([b4_percent_define_loc(lr.keep_unreachable_states)],
    [[[[[Bison:muscle_percent_define_default]:1.0]], [[[Bison:muscle_percent_define_default]:1.0]]]])


    m4_define([b4_parser_file_name],
    [[parse.tab.cc]])


    m4_define([b4_table_min],
    [[1]])


    m4_define([b4_table],
    [[ 16, 1, 8, 2, 9, 10, 20, 11, 14, 13,
    15, 17, 1, 18, 19, 12]])


    m4_define([b4_conflicting_rules_max],
    [[0]])


    m4_define([b4_merger],
    [[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0]])


    m4_define([b4_glr_flag],
    [[0]])


    m4_define([b4_check_max],
    [[19]])


    m4_define([b4_percent_define(parser_class_name)],
    [[vsdk]])


    m4_define([b4_spec_graph_file],
    [[]])


    m4_define([b4_rline_min],
    [[0]])


    m4_define([b4_toknum],
    [[ 0, 256, 257, 258, 259, 260, 261, 42, 47, 43,
    45, 58, 40, 41, 62]])


    m4_define([b4_defgoto_max],
    [[7]])


    m4_define([b4_version],
    [[2.4.1]])


    m4_define([b4_translate_min],
    [[0]])


    m4_define([b4_stype],
    [[]b4_syncline(30, [["parse.yy"]])[

    int ival;
    std::string *sval;
    vector<Link*> *lnk;

    ]])


    m4_define([b4_pkgdatadir],
    [[C:\Program Files (x86)\GnuWin32/share/bison]])


    m4_define([b4_percent_define_loc(parser_class_name)],
    [[[[parse.yy:6.9]], [[parse.yy:6.26]]]])


    m4_define([b4_pgoto_min],
    [[-14]])


    m4_define([b4_rhs_max],
    [[20]])


    m4_define([b4_skeleton],
    [["lalr1.cc"]])


    m4_define([b4_pgoto],
    [[ -14, -14, 10, -14, -14, -13]])


    m4_define([b4_pact_max],
    [[8]])


    m4_define([b4_debug_flag],
    [[0]])


    m4_define([b4_yacc_flag],
    [[0]])


    m4_define([b4_spec_verbose_file],
    [[parse.output]])


    m4_define([b4_conflict_list_heads_min],
    [[0]])


    m4_define([b4_tname],
    [["$][end", "error", "$][undefined", "I_NUM", "ID", "INT", "USECASE", "'*'",
    "'/'", "'+'", "'-'", "':'", "'('", "')'", "'>'", "$][accept", "start",
    "List_Declarations", "Declaration", "UseCaseName", "Connection", ]b4_null[]])


    m4_define([b4_defact],
    [[ 0, 8, 0, 0, 2, 3, 5, 6, 0, 0,
    0, 1, 4, 0, 0, 7, 10, 9, 0, 0,
    11]])


    m4_define([b4_tokens_number],
    [[15]])


    m4_define([b4_stos_max],
    [[20]])


    m4_define([b4_percent_define_user_variables],
    [[[[[[parser_class_name]], [[parse.yy:6.9]], [[parse.yy:6.26]]]]]])


    m4_define([b4_lex_param],
    [[[[[vsdk_ctx &ctx]], [[ctx]]]]])


    m4_define([b4_merger_min],
    [[0]])


    m4_define([b4_table_max],
    [[20]])


    m4_define([b4_spec_name_prefix],
    [[]])


    m4_define([b4_post_prologue],
    [[]b4_syncline(46, [["parse.yy"]])[

    /* Grammar
    * start:
    List_Declarations
    ;

    List_Declarations :
    Declaration
    |
    Declaration List_Declarations
    ;

    Declaration :
    UseCaseName
    |
    Connection
    ;

    UseCaseName :
    UseCase ':' ID
    ;

    Connection :
    ID
    |
    ID '-''>' Connection
    ;
    */

    extern int yylex(yy::vsdk::semantic_type *yylval,
    yy::vsdk::location_type* yylloc,
    vsdk_ctx &ctx);

    extern int yylineno;
    ]])


    m4_define([b4_table_ninf],
    [[-1]])


    m4_define([b4_prhs],
    [[ 0, 0, 3, 5, 7, 10, 12, 14, 18, 20,
    25, 30]])


    m4_define([b4_check],
    [[ 13, 4, 10, 6, 12, 11, 19, 0, 4, 14,
    4, 13, 4, 10, 14, 5]])


    m4_define([b4_nterms_number],
    [[6]])


    m4_define([b4_rline_max],
    [[138]])


    m4_define([b4_dprec],
    [[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
    0, 0]])


    m4_define([b4_rline],
    [[ 0, 89, 89, 93, 95, 99, 101, 108, 115, 122,
    131, 138]])


    m4_define([b4_prhs_min],
    [[0]])


    m4_define([b4_spec_outfile],
    [[]])


    m4_define([b4_translate_max],
    [[14]])


    m4_define([b4_percent_define_syncline(lr.keep_unreachable_states)],
    [[]b4_syncline(1, [["[Bison:muscle_percent_define_default]"]])[]])


    m4_define([b4_r1_min],
    [[0]])


    m4_define([b4_user_token_number_max],
    [[261]])


    m4_define([b4_max_left_semantic_context],
    [[0]])


    m4_define([b4_pgoto_max],
    [[10]])


    m4_define([b4_rules_number],
    [[11]])


    m4_define([b4_file_name_all_but_ext],
    [[parse.tab]])


    m4_define([b4_error_verbose_flag],
    [[0]])


    m4_define([b4_token_table],
    [[0]])


    m4_define([b4_r2_min],
    [[0]])


    m4_define([b4_pact],
    [[ -3, -8, -6, 7, -14, -3, -14, -14, -5, 4,
    6, -14, -14, 8, -2, -14, -14, 3, 0, 8,
    -14]])


    m4_define([b4_dprec_min],
    [[0]])


    m4_define([b4_defact_min],
    [[0]])


    m4_define([b4_defines_flag],
    [[1]])


    m4_define([b4_synclines_flag],
    [[1]])


    m4_define([b4_nondeterministic_flag],
    [[0]])


    m4_define([b4_conflict_list_heads_max],
    [[0]])


    m4_define([b4_dir_prefix],
    [[]])


    m4_define([b4_percent_define_syncline(parser_class_name)],
    [[]b4_syncline(6, [["parse.yy"]])[]])


    m4_define([b4_merger_max],
    [[0]])


    m4_define([b4_undef_token_number],
    [[2]])


    m4_define([b4_prhs_max],
    [[30]])


    m4_define([b4_spec_file_prefix],
    [[]])


    m4_define([b4_r1_max],
    [[20]])


    m4_define([b4_toknum_min],
    [[0]])


    m4_define([b4_spec_defines_file],
    [[parse.tab.hh]])


    m4_define([b4_conflicting_rules_min],
    [[0]])


    m4_define([b4_r1],
    [[ 0, 15, 16, 17, 17, 18, 18, 19, 20, 20,
    20, 20]])


    m4_define([b4_pre_prologue],
    [[]b4_syncline(8, [["parse.yy"]])[


    #include <iostream>
    #include <sstream>
    #include <string>
    #include <vector>

    #include "vsdk-ctx.h"
    #include "link.h"
    #include "usecase.h"

    using namespace std;

    class Link;
    extern Usecase mainObj;

    ]])


    m4_define([b4_r2],
    [[ 0, 2, 1, 1, 2, 1, 1, 3, 1, 4,
    4, 7]])


    m4_define([b4_parse_param],
    [[[[[vsdk_ctx &ctx]], [[ctx]]]]])


    m4_define([b4_percent_define_bison_variables(lr.keep_unreachable_states)],
    [[]])


    m4_define([b4_check_min],
    [[0]])


    m4_define([b4_states_number],
    [[21]])


    m4_define([b4_r2_max],
    [[7]])


    m4_define([b4_dprec_max],
    [[0]])


    m4_define([b4_defgoto],
    [[ -1, 3, 4, 5, 6, 7]])


    m4_define([b4_defact_max],
    [[11]])


    m4_define([b4_stos],
    [[ 0, 4, 6, 16, 17, 18, 19, 20, 10, 12,
    11, 0, 17, 14, 4, 4, 20, 13, 10, 14,
    20]])


    m4_define([b4_final_state_number],
    [[11]])


    m4_define([b4_defgoto_min],
    [[-1]])


    m4_define([b4_file_name],
    [["parse.yy"]])


    m4_define([b4_locations_flag],
    [[1]])


    m4_define([b4_percent_define(lr.keep_unreachable_states)],
    [[false]])


    m4_define([b4_rhs_min],
    [[-1]])


    m4_define([b4_pact_min],
    [[-14]])


    m4_define([b4_conflicting_rules],
    [[ 0]])


    g++ -c parse.tab.cc -o objs/parse.tab.o
    g++: error: parse.tab.cc: No such file or directory
    g++: fatal error: no input files
    compilation terminated.
    make: *** [objs/parse.tab.o] Error 1

    Is there anything else I need to change for removing this error?

    Also could you please confirm is it 64 bit machine where you are trying to build ?
    >> Yes, It is a 64 bit machine.

    Regards,
    Sayali V.
  • Hello
    This error shows missing some dependency tools
    can you try to re-build Auto code gen tool without any of your changes, i would like to check first all the build environment is proper.
    you can add your changes to the tool once rebuild of unmodified tool works

    regards, Shiju
  • Hello Shiju,
    I tried to rebuild the tool without any modification, then also it's showing the same error.

    Regards,
    Sayali V.
  • Sayali
    This clearly tells that your build environment has issues, please double check this with VisionSDK_UserGuide_UsecaseGen.pdf and fix this.
    I do not expect any issues here as we have a lot of customers who rebuilt this tool following the documentation

    regards, Shiju
  • Hello Shiju,

    I tried to fix above error and I successfully fixed that.
    Code build process has progressed and now I am facing below error in file "parse.tab.cc":

    $ make all
    mkdir -p objs
    mkdir -p bin
    bison -vd parse.yy
    parse.yy:6.9-25: warning: %define variable 'parser_class_name' requires '{...}' values [-Wdeprecated]
    %define parser_class_name "vsdk"
    ^^^^^^^^^^^^^^^^^
    g++ -c parse.tab.cc -o objs/parse.tab.o
    parse.tab.cc:1004:1: warning: character constant too long for its type
    '_m4eof'
    ^
    parse.tab.cc:1004:1: error: expected unqualified-id before '\x34656f66'
    make: *** [objs/parse.tab.o] Error 1

    Please let me know if you have come across this issue.

    Regards,
    Sayali V.
  • Hi Sayali
    No, I haven't come across any such issue.
    can you please try re-installing all dependent tools and try again

    regards, Shiju