Build failure on windows

jameszxj jameszxj at gmail.com
Tue Jan 19 01:26:53 UTC 2021


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:





------------------ Original ------------------
From:                                                                                                                        "Chris Johns"                                                                                    <chrisj at rtems.org>;
Date: Tue, Jan 19, 2021 05:55 AM
To: "ND"<nvdeshpande127 at gmail.com>;
Cc: "users"<users at rtems.org>;
Subject: Re: Build failure on windows



On 18/1/21 2:00 pm, ND wrote:
> This is what i see 
> 
> $ /usr/bin/python3-config --ldflags --embed
>  -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

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


More information about the users mailing list