<meta http-equiv="Content-Type" content="text/html; charset=GB18030"><div>Hi,</div><div>   I got the error messageŁ¬MSYS2  use python2-config</div><div><br></div><div><div>config: tools/rtems-gdb-head.cfg</div><div>error: shell macro failed: sh -c "/mingw64/bin/python2-config --ldflags | awk 'BEGIN{FS=\" \"}/python/{for(i=1;i<NF;++i)if(match($i,\".*lpython.*\")) print \"lib\"substr($i,3)\"*\";}'": 1: awk: cmd. line:1: BEGIN{FS=" "}/python/{for(i=1;i<NF;++i)if(match(,".*lpython.*")) print "lib"substr(,3)"*";}</div><div>awk: cmd. line:1:                                                 ^ syntax error</div><div>awk: cmd. line:1: BEGIN{FS=" "}/python/{for(i=1;i<NF;++i)if(match(,".*lpython.*")) print "lib"substr(,3)"*";}</div><div>awk: cmd. line:1:                                                               ^ 1 is invalid as number of arguments for match</div><div>close failed in file object destructor:</div></div><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From:</b>                                                                                                                        "Chris Johns"                                                                                    <chrisj@rtems.org>;</div><div><b>Date:</b> Tue, Jan 19, 2021 05:55 AM</div><div><b>To:</b> "ND"<nvdeshpande127@gmail.com>;<wbr></div><div><b>Cc:</b> "users"<users@rtems.org>;<wbr></div><div><b>Subject:</b> Re: Build failure on windows</div></div><div><br></div>On 18/1/21 2:00 pm, ND wrote:<br>> This is what i see <br>> <br>> $ /usr/bin/python3-config --ldflags --embed<br>>  -L/usr/lib -lpython3.8 -lcrypt -lintl -ldl<br><br>Great. For me on FreeBSD I have ...<br><br>/usr/local/bin/python3.8-config --ldflags --embed | \<br>awk 'BEGIN{FS=" "}/python/{for(i=1;i<NF;++i)if(match($i,".*lpython.*")) print<br>"lib"substr($i,3)"*";}'<br>libpython3.8*<br><br>Could you please run with the `--trace --dry-run` options and then search the<br>log file for the command? The error line you posted seems to be missing the end<br>that filters the output of the config command.<br><br>Chris<br><br>> <br>> On Sat, Jan 16, 2021 at 3:13 AM Chris Johns <chrisj@rtems.org<br>> <mailto:chrisj@rtems.org>> wrote:<br>> <br>> <br>> <br>>     On 16/1/21 2:10 am, ND wrote:<br>>     > Trying to compile RBS for riscv on windows using MSYS2 fails with<br>>     following error.<br>>     ><br>>     > error: shell macro failed: sh -c "/usr/bin/python3-config --ldflags --embed |<br>>     > awk 'BEGIN{FS=\" \"}<br>> <br>>     What does the command ...<br>> <br>>      /usr/bin/python3-config --ldflags --embed<br>> <br>>     show you in an MSYS2 shell?<br>> <br>>     > Compiling master branch.<br>>     > Any ideas, what might be wrong?<br>> <br>>     The output of the command may help.<br>> <br>>     Chris<br>> <br>_______________________________________________<br>users mailing list<br>users@rtems.org<br>http://lists.rtems.org/mailman/listinfo/users</div>