Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135521 - cpufrequtils-002 fails to build with parallel make option
Summary: cpufrequtils-002 fails to build with parallel make option
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Henrik Brix Andersen
URL:
Whiteboard:
Keywords: InVCS
: 135735 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-06-04 08:15 UTC by PaX Team
Modified: 2006-06-06 01:58 UTC (History)
1 user (show)

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


Attachments
Patch (cpufrequtils-002-parallel-make.patch,580 bytes, patch)
2006-06-04 15:18 UTC, Henrik Brix Andersen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description PaX Team 2006-06-04 08:15:51 UTC
emerging sys-power/cpufrequtils-002 with MAKEOPTS=-j2 produces the following error:

i686-pc-linux-gnu-gcc -DVERSION=\"002\"  -DPACKAGE=\"cpufrequtils\" -DPACKAGE_BUGREPORT=\"linux@brodo.de\" -D_GNU_SOURCE -pipe -DINTERFACE_PROC -DINTERFACE_SYSFS -Os -fomit-frame-pointer -march=pentium3 -O2 -pipe -Wall -Wchar-subscripts -Wpointer-arith -Wsign-compare  -Wdeclaration-after-statement -Wshadow -I/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include -g -I./lib/ -L. -L./.libs/ -lcpufreq -o cpufreq-info utils/cpufreq-info.o
/usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lcpufreq

that's because at that point libcpufreq.so (provided by this same package) has not yet been built as apparently there's no proper build dependency in the Makefile between the utilities and the library, upstream should be told probably.
Comment 1 Henrik Brix Andersen 2006-06-04 15:18:58 UTC
Created attachment 88384 [details, diff]
Patch

Please try with this patch and report back.
Comment 2 Jens Mayer 2006-06-04 16:52:37 UTC
Ran into the same error using "-j2", tried the attached patch - works for me. Thank you!
Comment 3 mrgoby 2006-06-04 19:43:26 UTC
Same here...   thanks for the patch...  works fine. 
Comment 4 Henrik Brix Andersen 2006-06-05 01:57:16 UTC
Fixed in CVS, thank you for testing.
Comment 5 PaX Team 2006-06-05 02:39:43 UTC
works here too, thanks.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-06-06 01:58:43 UTC
*** Bug 135735 has been marked as a duplicate of this bug. ***