GDB builds fail on MSYS2 for RTEMS 6
Summary
MSYS2, target arm,aarch64
build command
../source-builder/sb-set-builder --log=l-arm.txt --prefix=/opt/rtems/6.1 6/rtems-arm
There are 2 issues.
awk command
This is same as rtems/rtos/rtems#4191 (closed)
RTEMS Source Builder - Set Builder, 6 (c4975f3bc2a9 modified)
Build Set: 6/rtems-arm
Build Set: tools/rtems-default-tools.bset
config: tools/rtems-gdb-14.2.cfg
error: shell macro failed: sh -c "/usr/bin/python3-config --ldflags --embed | awk '{for(i=1;i<NF;++i)if(match($i,\".*lpython.*\")) print \"lib\"substr($i,3)\"\\*\";}'": 1: awk: cmd. line:1: {for(i=1;i<NF;++i)if(match(,".*lpython.*")) print "lib"substr(,3)"\*";}
awk: cmd. line:1: ^ syntax error
Build FAILED
Build Set: Time 0:00:02.209720
error: shell macro failed: sh -c "/usr/bin/python3-config --ldflags --embed | awk '{for(i=1;i<NF;++i)if(match($i,\".*lpython.*\")) print \"lib\"substr($i,3)\"\\*\";}'": 1: awk: cmd. line:1: {for(i=1;i<NF;++i)if(match(,".*lpython.*")) print "lib"substr(,3)"\*";}
awk: cmd. line:1: ^ syntax error
Build Set: Time 0:00:02.218058
Build FAILED
'\' should be added before '$i' and '\\*' in gdb-common-1.cfg:line131-132
when fixed this, there is another error.
no usable python found at /usr/bin/python3
rsb-report-arm-rtems6-gdb-14.2-x86_64-w64-mingw32-1.txt
But python3 is there.
MINGW64 ~/rtems-source-builder/rtems$ whereis python3
python3: /usr/bin/python3.11-config /usr/bin/python3.exe /usr/lib/python3.11 /usr/include/python3.11 /usr/share/man/man1/python3.1.gz