RTEMS Source Builder | Draft: [PATCH] rtems/config/tools: Add checks to stdcxx.py install script (!48)

Suraj Kumar (@the.m3chanic) gitlab at rtems.org
Mon Aug 19 21:12:29 UTC 2024



Suraj  Kumar created a merge request: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/merge_requests/48

Project:Branches: the.m3chanic/rtems-source-builder:the-m3chanic to rtems/tools/rtems-source-builder:main
Author:   Suraj  Kumar




## Summary

As noted in issue rtems/tools/rtems-source-builder#29, the build fails when run on a fresh toolchain. This occurs for 2 reasons:

1. The directory to which the script is to be installed does not exist (this only happens if this is the _first_ toolchain being built to that prefix).
2. `arch-rtems6-gcc` has not yet been installed, due to which one of the macros is left defined wrong. This is likely a result of not testing on a completely fresh toolchain after altering the order of some files in !35

To circumvent these errors, two checks have been added:

1. A check to see if the install path exists first, which if not, will be created and the script (`stdcxx.py`) will be placed there.
2. The `gcc_version` macro is used as backup if the toolchain's GCC is not yet built (in the case of fresh builds)

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/tools/rtems-source-builder/-/merge_requests/48
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/20240819/37b3f63f/attachment.htm>


More information about the bugs mailing list