Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 555368 - sys-power/thermald needs to unset -fopenmp in Makefile
Summary: sys-power/thermald needs to unset -fopenmp in Makefile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Yixun Lan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-19 16:59 UTC by Scott Ellis
Modified: 2018-02-19 15:26 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,278.91 KB, application/octet-stream)
2015-07-19 16:59 UTC, Scott Ellis
Details
output of emerge --info (emerge-info.log,8.20 KB, text/plain)
2017-06-18 18:25 UTC, Harald Weiner
Details
build.log (build.log,27.33 KB, text/plain)
2017-06-18 18:26 UTC, Harald Weiner
Details

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