-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
picolibc: FPU issue on x86 with timer_behavior test #64333
Comments
FPU exception at this point in the test:
|
CONFIG_FPU needed now? |
it works for qemu_x86 and to fix this particular test, at least. I wonder might it be a general problem with picolibc now as default libc and where config options have not been set explicitly like in this test case. |
This test used to work with soft floating point ... Wondering if that is no longer supported |
It sounds like the soft float bits aren't getting used in this case, which sounds like a toolchain configuration issue, or perhaps a problem with multilib aliasing for x86? |
Nope, just an old version of picolibc that didn't handle x86 soft float (because who even does that in 2023?). It's all fixed in the current bits which are part of pr #62882 and the related SDK pr zephyrproject-rtos/sdk-ng#707 (which has already been merged). |
I thought we were testing sqrtf and friends in |
sqrt() test is just skipped without CONFIG_FPU zephyr/tests/lib/c_lib/src/test_sqrt.c Lines 178 to 183 in 88b05b3
and without the above skip condition
|
Fixed in #63443 |
Describe the bug
@golowanow noted that a test case (timer_behavior) was failing on an x86 hardware platform with an FPU exception.
Re-running this test on qemu_x86 shows the same exception.
To Reproduce
Comment out the platform_type lines in tests/kernel/timer/timer_behavior/testcase.yaml
Run west
west twister -p qemu_x86 -T tests/kernel/timer/timer_behavior -vvv
Expected behavior
A non failing test case, or at least one that doesn't cause a hardware exception over FPU usage
Logs and console output
Additional context
Bisecting found this commit f0daf90 to be the culprit
The text was updated successfully, but these errors were encountered: