henktm

Hello, hope someone can help.

Installed the git version on a PC with Linux Mint Cinnamon, like outlined in the Getting Started section.
Installing the runtime was not a problem and that runs fine.

Just get errors and no Editor. I have no clue how to solve this.

Thanks,
Henk

Reply 0 0
henktm
The errors i get are:
(Tested Ubuntu 20.04 and Mint 20.1 cinnamon). Same errors:

aking all in absyntax_utils
debug_ast.cc:59:63: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
59 | if (const_value. _int64.is_valid ()) fprintf(stderr, "%"PRId64"", const_value. _int64.get());
| ^
debug_ast.cc:64:63: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
64 | if (const_value._uint64.is_valid ()) fprintf(stderr, "%"PRIu64"", const_value._uint64.get());
| ^
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in stage1_2
/home/henk/OpenPLC_Editor/matiec/stage1_2/iec_bison.yy:255.1-5: warning: POSIX Yacc does not support %code [-Wyacc]
255 | %code requires {
| ^~~~~
updating iec_bison.hh
ar: `u' modifier ignored since `D' is the default (see `U')

and

array_range_check.cc:202:71: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
202 | STAGE3_ERROR(0, symbol, symbol, "Subrange has lower limit (%"PRId64") larger than upper limit (%"PRId64").", GET_CVALUE( int64, symbol->lower_limit), GET_CVALUE( int64, symbol->upper_limit));
| ^
array_range_check.cc:212:36: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
212 | STAGE3_ERROR(0, symbol, symbol, "Subrange has lower limit (%"PRIu64") larger than upper limit (%"PRIu64").", GET_CVALUE(uint64, symbol->lower_limit), GET_CVALUE(uint64, symbol->upper_limit));
| ^
array_range_check.cc:212:71: warning: invalid suffix on literal; C++11 requires a space between literal and string macro [-Wliteral-suffix]
212 | STAGE3_ERROR(0, symbol, symbol, "Subrange has lower limit (%"PRIu64") larger than upper limit (%"PRIu64").", GET_CVALUE(uint64, symbol->lower_limit), GET_CVALUE(uint64, symbol->upper_limit));
| ^
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in stage4
Making all in generate_c
In file included from generate_c.cc:525:
generate_c_il.cc: In member function ‘virtual void* generate_c_il_c::visit(il_function_call_c*)’:
generate_c_il.cc:957:11: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
957 | if (nb_param > 0)
| ^~
generate_c_il.cc:959:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
959 | if (param_value == NULL) {
| ^~
ar: `u' modifier ignored since `D' is the default (see `U')
Making all in generate_iec
ar: `u' modifier ignored since `D' is the default (see `U')
config.status: creating config/config.h
config.status: config/config.h is unchanged

[FINALIZING]

Reply 0 0
thiagoralves
There aren’t any errors in there, just compilation warnings. The editor doesn’t come with the runtime on Linux, you need to install it separately.
Reply 0 0
henktm

Thanks.
Yes, i tried to install it right after installing the runtime on the same Ubuntu. 

You mean it cannot be installed on the same machine?

Reply 0 0
henktm

Sorry for my confusing texts.

I was foolish trying to install editor as root. 
Removed it and installed it again as my username. Now all works.
Thanks for the good work.

Reply 0 0
Reply