Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 555368

Summary: sys-power/thermald needs to unset -fopenmp in Makefile
Product: Gentoo Linux Reporter: Scott Ellis <scotte>
Component: Current packagesAssignee: Yixun Lan <dlan>
Status: RESOLVED FIXED    
Severity: normal CC: scotte, timeraider
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
output of emerge --info
build.log

Description Scott Ellis 2015-07-19 16:59:54 UTC
Created attachment 407158 [details]
build.log

If openmp isn't set as a USE variable, thermald fails to compile because libgomp.spec doesn't exist (GCC never created it, since it wasn't built with OpenMP support).

I don't see a good configure/autogen option to fix this, but removing "-fopenmp\" from the resultant Makefile works (and thermald works fine).  This appears to be a bug in the upstream thermald package, as the same error occurs with a current git checkout.
Comment 1 Harald Weiner 2017-06-18 18:25:49 UTC
Created attachment 477146 [details]
output of emerge --info
Comment 2 Harald Weiner 2017-06-18 18:26:34 UTC
Created attachment 477148 [details]
build.log
Comment 3 Harald Weiner 2017-06-18 18:26:47 UTC
Can confirm this bug: sys-power/thermald-1.6 fails to build when sys-devel/gcc does not have openmp enabled

Steps to reproduce:
1.) emerge sys-devel/gcc with openmp use-flag disabled
2.) emerge sys-power/thermald-1.6

Actual results:
compilation of thermald fails with
"x86_64-pc-linux-gnu-g++: error: libgomp.spec: No such file or directory"

Expected results:
thermald is compiled and installed.

When sys-devel/gcc has openmp enabled, the compilation of thermald also succeeded, but that is only a work-around.

emerge --info is attached

build.log is attached
Comment 4 Larry the Git Cow gentoo-dev 2018-02-19 15:26:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bd1a263f1ff2ea09ea5e1774a55ab344673f283

commit 5bd1a263f1ff2ea09ea5e1774a55ab344673f283
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2018-02-19 15:25:54 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2018-02-19 15:25:54 +0000

    sys-power/thermald: Version bump to 1.7.1
    
    Closes: https://bugs.gentoo.org/555368
    Closes: https://bugs.gentoo.org/618948
    Closes: https://bugs.gentoo.org/642220
    Package-Manager: Portage-2.3.24, Repoman-2.3.6

 sys-power/thermald/Manifest              |  1 +
 sys-power/thermald/thermald-1.7.1.ebuild | 45 ++++++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)