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"
<chr...@rtems.org>;
Date: Tue, Jan 19, 2021 05:55 AM
To: "ND"<nvdeshpande...@gmail.com>;
Cc: "users"<users@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 <chr...@rtems.org
> <mailto:chr...@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@rtems.org
http://lists.rtems.org/mailman/listinfo/users
_______________________________________________
users mailing list
users@rtems.org
http://lists.rtems.org/mailman/listinfo/users