Build failure on windows

Chris Johns chrisj at rtems.org
Tue Jan 19 01:40:14 UTC 2021


On 19/1/21 12:26 pm, jameszxj wrote:
> 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:                                                 ^ 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:                                                               ^ 1 is invalid as number of arguments for match
> close failed in file object destructor:

It looks like a quoting issue as `$i` has gone. The addition of the
shell at the start of the command must be the issue.

Chris


More information about the users mailing list