Bug 13336 - thermald-1.9.1 compilation failure with musl 1.2.1
Summary: thermald-1.9.1 compilation failure with musl 1.2.1
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2020.08.2
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-23 16:37 UTC by mscdex
Modified: 2020-11-23 22:12 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Fix for musl 1.2.x (1.94 KB, patch)
2020-11-23 16:37 UTC, mscdex
Details

Note You need to log in before you can comment on or make changes to this bug.
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