Examples | Compile error in misc/regulator/regulator_example.c (#3)
geng zhu (@zhugengyu2023)
gitlab at rtems.org
Fri Sep 20 08:14:45 UTC 2024
geng zhu created an issue: https://gitlab.rtems.org/rtems/rtos/rtems-examples/-/issues/3
## Summary
<!--
Please provide as much information as possible such as error messages or attaching logs
-->
- compile rtems_example failed with error
```c
[ 97/175] Linking build/aarch64-rtems6-phytium_pi/misc/nanosecond_tick_wrap/nanoseconds_tick_wrap.exe
[ 98/175] Compiling misc/regulator/regulator_example.c
[ 99/175] Compiling misc/regulator/rtems_config.c
../../misc/regulator/regulator_example.c: In function 'example_send_messages':
../../misc/regulator/regulator_example.c:134:6: error: 'rtems_regulator_attributes' has no member named 'output_thread_priority'; did you mean 'delivery_thread_priority'?
134 | .output_thread_priority = 16,
| ^~~~~~~~~~~~~~~~~~~~~~
| delivery_thread_priority
../../misc/regulator/regulator_example.c:135:6: error: 'rtems_regulator_attributes' has no member named 'output_thread_stack_size'; did you mean 'delivery_thread_stack_size'?
135 | .output_thread_stack_size = 0,
| ^~~~~~~~~~~~~~~~~~~~~~~~
| delivery_thread_stack_size
../../misc/regulator/regulator_example.c:136:6: error: 'rtems_regulator_attributes' has no member named 'output_thread_period'; did you mean 'delivery_thread_period'?
136 | .output_thread_period = RTEMS_MILLISECONDS_TO_TICKS(1000),
| ^~~~~~~~~~~~~~~~~~~~
| delivery_thread_period
Waf: Leaving directory `/root/rtems-work/rtems/rtems-examples/build/aarch64-rtems6-phytium_pi'
Build failed
-> task in 'regulator_example.exe' failed with exit status 1 (run with -v to display more information)
make: *** [/root/rtems-work/tools/rtems_phytium_pi.mk:40: phytium_pi_aarch64_example] Error 1
```
- I modify code as gcc prompted and works ok
## Steps to reproduce
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems-examples/-/issues/3
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/20240920/bb2eac50/attachment.htm>
More information about the bugs
mailing list