RTEMS Source Builder | GDB builds fail on MSYS2 for RTEMS 6 (#27)

xiaojun zheng (@zhengxiaojun) gitlab at rtems.org
Fri Jul 19 03:22:06 UTC 2024



xiaojun zheng created an issue: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/issues/27



## 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 https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/4191
```
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](/uploads/7ccb399f7e4c0116d12f52990eb33f0e/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
```

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/issues/27
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240719/33badf2d/attachment.htm>


More information about the bugs mailing list