Dear Maintainer, The thinkfan package has a ftbfs issue on riscv64. Full buildd log here: https://buildd.debian.org/status/fetch.php?pkg=thinkfan&arch=riscv64&ver=1.3.1-1&stamp=1649865911&raw=0 I am including a patch which fixes the problem. Please consider applying it in the next upload. Thank you.
I am closing this bug, because glibc 2.34 will break the above solution (the cmake directive will be ignored in the future). Instead this will probably have to be fixed at the compiler level, when gcc adds inline support for subword atomics in riscv. This is pending. More information can be found at these links: [0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1012058 [1] https://blog.jiejiss.com/A-RISC-V-gcc-pitfall-revealed-by-a-glibc-update/