You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I assume llvm_libc/sys/times.h will only be included for clang+llvm_libc (and not clang+picolibc), but I guess it does indicate the value for CLOCKS_PER_SEC is expected to be 100. So that leaves the question what the correct include is to get CLOCKS_PER_SEC == 100 in picolibc_interface.c.
pico-sdk 2.1.0 compiles fine with clang 18.1.3 (LVM-ET-Arm-18.1.3) but with clang 19.1.1 (LLVM-ET-Arm-19.1.1) I get the following compile error:
I don't know what a correct fix is. For example, if I add the following code to
picolibc_interface.c
:It compiles and
CLOCKS_PER_SEC == 1000000
.clang 18's
time.h
includesmachine/time.h
, clang 19's does not. So if instead I add:It again compiles, but now
CLOCKS_PER_SEC == 100
(same as clang 18).The text was updated successfully, but these errors were encountered: