RTEMS | Unhelpful message from waf for duplicate configure option (#5376)

Joel Sherrill (@joel) gitlab at rtems.org
Thu Oct 16 22:04:31 UTC 2025



Joel Sherrill created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5376



## Summary

I have no idea why this has not shown up before now. This issue has lurked in the file since May 2023. The microblaze_fpga/grp.yml included an option file twice:

```
- role: build-dependency
  uid: optuartirq
- role: build-dependency
  uid: optuartirq
```

This triggered the following error output from waf:

```
 File "/home/joel/rtems-work/rtems/.waf3-2.1.4-72787ce48f227ac42c4b0da24e780694/waflib/Context.py", line 92, in execute
    self.recurse([os.path.dirname(g_module.root_path)])
  File "/home/joel/rtems-work/rtems/.waf3-2.1.4-72787ce48f227ac42c4b0da24e780694/waflib/Context.py", line 133, in recurse
    user_function(self)
  File "/home/joel/rtems-work/rtems/wscript", line 1612, in configure
    cp = load_config_files(conf)
  File "/home/joel/rtems-work/rtems/wscript", line 1457, in load_config_files
    actual_files = cp.read(files)
  File "/usr/lib64/python3.9/configparser.py", line 697, in read
    self._read(fp, filename)
  File "/usr/lib64/python3.9/configparser.py", line 1096, in _read
    raise DuplicateOptionError(sectname, optname,
configparser.DuplicateOptionError: While reading from 'config-microblaze-kcu105_qemu.ini' [line 141]: option 'bsp_microblaze_fpga_uart_irq' in section 'microblaze/kcu105_qemu' already exists
## Steps to reproduce
```

Notice that the error message lower cases the option name which results in the error message being not as helpful as it could be.

It would be great if the option name was not lower cased and the message was clearer.

<!-- Pre-set options
- milestone
-->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5376
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/20251016/ae0995d7/attachment.htm>


More information about the bugs mailing list