Created attachment 554440 [details] build.log /var/tmp/portage/sys-power/thermald-1.8/work/thermal_daemon-1.8/src/thd_zone.cpp: In member function ‘void cthd_zone::sort_and_update_poll_trip()’: /usr/include/glib-2.0/glib/gmessages.h:342:43: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘std::vector<cthd_trip_point>::size_type {aka unsigned int}’ [-Werror=format=] __VA_ARGS__)
https://github.com/intel/thermal_daemon/commit/bb7631163c8f3f44d0dc83690765cdb799664fd5.patch upstream patch fixes the issue
upstream patch fixes this, I added -r1 with the fix