RTEMS | Waf bspdefaults fails due duplicated option 'section_flags' for i386/pc686 with already exists (#5532)
Pavel Pisa (@ppisa)
gitlab at rtems.org
Sat Mar 21 09:19:33 UTC 2026
Pavel Pisa created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5532
## Summary
The attempt to configure `i386/pc686` (i386_pc686) fails with reportin next error
```
Setting top to : /home/pi/repo/rtems/git/rtems
Setting out to : /home/pi/repo/rtems/build/i386-pc686/rtems-1
Configure RTEMS version : 7.0.40818d91c5e9b6f41b333959206c039d92fc82d5-modified
Regenerate build specification cache (needs a couple of seconds)...
Traceback (most recent call last):
File "/home/pi/repo/rtems/git/rtems/.waf3-2.1.4-72787ce48f227ac42c4b0da24e780694/waflib/Scripting.py", line 122, in waf_entry_point
run_commands()
...
...
File "/usr/lib/python3.13/configparser.py", line 1146, in _handle_option
raise DuplicateOptionError(st.sectname, st.optname,
fpname, st.lineno)
configparser.DuplicateOptionError: While reading from '/home/pi/repo/rtems/build/i386-pc686/rtems-1/config.ini' [line 192]: option 'section_flags' in section 'i386/pc686' already exists
```
## Steps to reproduce
```
$RTEMS_DIR/waf bspdefaults --rtems-bsps=i386/pc686 -t "$RTEMS_DIR" -o "$MY_DIR" --prefix "/opt/rtems/7" >config.ini || exit 1
```
## Workaround fix
Edit manually `config.ini` and remove all lines starting by`SECTION_FLAGS` except the first one. All lines read as
```
SECTION_FLAGS = -ffunction-sections -fdata-sections
```
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5532
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/20260321/eafb0e6b/attachment.htm>
More information about the bugs
mailing list