Bug 13336

Summary: thermald-1.9.1 compilation failure with musl 1.2.1
Product: buildroot Reporter: mscdex <mscdex>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: 2020.08.2   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: Fix for musl 1.2.x

Description mscdex 2020-11-23 16:37:01 UTC
Created attachment 8681 [details]
Fix for musl 1.2.x

Host machine: Ubuntu 18.04
Buildroot version: 2020.08.2
Target: i586-buildroot-linux-musl-gcc (GCC 10.2.0)

Trying to build thermald 1.9.1 fails when compiling with musl 1.2.0+. The reason for this appears to be that musl now uses a 64-bit time_t on all architectures.

I've attached a patch I found from Yocto that fixes this issue.
Comment 1 Peter Seiderer 2020-11-23 21:15:27 UTC
Thanks for the bug report, see [1] for suggested buildroot patch/fix (using the upstream commit instead of the yocto patch)...

[1] https://patchwork.ozlabs.org/project/buildroot/patch/20201123211248.23828-1-ps.report@gmx.net/
Comment 2 Peter Korsgaard 2020-11-23 22:12:17 UTC
Fixed in git master by Peter's patch