Hi,
   I got the error message??MSYS2  use python2-config


config: tools/rtems-gdb-head.cfg
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)"*";}
awk: cmd. line:1:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;^ syntax error
awk: cmd. line:1: BEGIN{FS=" 
"}/python/{for(i=1;i<NF;++i)if(match(,".*lpython.*")) print "lib"substr(,3)"*";}
awk: cmd. line:1:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp;^ 1 is invalid as number of arguments for match
close failed in file object destructor:





------------------&nbsp;Original&nbsp;------------------
From:                                                                           
                                             "Chris Johns"                      
                                                              
<chr...@rtems.org&gt;;
Date:&nbsp;Tue, Jan 19, 2021 05:55 AM
To:&nbsp;"ND"<nvdeshpande...@gmail.com&gt;;
Cc:&nbsp;"users"<users@rtems.org&gt;;
Subject:&nbsp;Re: Build failure on windows



On 18/1/21 2:00 pm, ND wrote:
&gt; This is what i see&nbsp;
&gt; 
&gt; $ /usr/bin/python3-config --ldflags --embed
&gt; &nbsp;-L/usr/lib -lpython3.8 -lcrypt -lintl -ldl

Great. For me on FreeBSD I have ...

/usr/local/bin/python3.8-config --ldflags --embed | \
awk 'BEGIN{FS=" "}/python/{for(i=1;i<NF;++i)if(match($i,".*lpython.*")) print
"lib"substr($i,3)"*";}'
libpython3.8*

Could you please run with the `--trace --dry-run` options and then search the
log file for the command? The error line you posted seems to be missing the end
that filters the output of the config command.

Chris

&gt; 
&gt; On Sat, Jan 16, 2021 at 3:13 AM Chris Johns <chr...@rtems.org
&gt; <mailto:chr...@rtems.org&gt;&gt; wrote:
&gt; 
&gt; 
&gt; 
&gt;&nbsp;&nbsp;&nbsp;&nbsp; On 16/1/21 2:10 am, ND wrote:
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Trying to compile RBS for riscv on windows 
using MSYS2 fails with
&gt;&nbsp;&nbsp;&nbsp;&nbsp; following error.
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt;
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; error: shell macro failed: sh -c 
"/usr/bin/python3-config --ldflags --embed |
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; awk 'BEGIN{FS=\" \"}
&gt; 
&gt;&nbsp;&nbsp;&nbsp;&nbsp; What does the command ...
&gt; 
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;/usr/bin/python3-config --ldflags --embed
&gt; 
&gt;&nbsp;&nbsp;&nbsp;&nbsp; show you in an MSYS2 shell?
&gt; 
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Compiling master branch.
&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; Any ideas, what might be wrong?
&gt; 
&gt;&nbsp;&nbsp;&nbsp;&nbsp; The output of the command may help.
&gt; 
&gt;&nbsp;&nbsp;&nbsp;&nbsp; Chris
&gt; 
_______________________________________________
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users

Reply via email to