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

Bug 135735

Summary: cpufrequtils fails to compile "cannot find -lcpufreq"
Product: Gentoo Linux Reporter: Jens Pranaitis <jens>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: x86   
OS: Linux   
URL: http://www.hansmaulwurf.net/gentoo/cpufreqerror.txt
Whiteboard:
Package list:
Runtime testing required: ---

Description Jens Pranaitis 2006-06-06 01:53:59 UTC
Portage 2.1_rc4-r1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.16-suspend2-r8-laptop i686)
=================================================================
System uname: 2.6.16-suspend2-r8-laptop i686 Intel(R) Celeron(R) CPU 2.60GHz
Gentoo Base System version 1.12.0
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/initng-portage"
SYNC="rsync://192.168.0.2/gentoo-portage/"
USE="x86 7zip X aac aalib acl acpi alsa amarok apm arts asf avi bash-completion berkdb bitmap-fonts bzip2 cdr cdrom cgi chroot cli crypt css ctype cups curl cvs dbus dhcp dri dvd dvdr dvdread encode estraier ethereal fam fastbuild ffmpeg flac flatfile force-cgi-redirect fortran fping ftp gd gdbm gif glibc-omitfp glx gnutls gpgme gpm hal imagemagick imlib input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_synaptics ipod java javascript jikes john joystick jpeg kde kdepim kdexdeltas lame libg++ libwww live logrotate logwatch mad memlimit mikmod mime mmx mmxext mng motif mouse moznocompose moznoirc moznomail moznoroaming mp3 mp4 mp4live mpeg mpeg2 mplayer musepack musicbrainz ncurses net nls nowin nptl nptlonly nsplugin ntlm offensive ogg oggvorbis on-the-fly-crypt opengl pcre pdf pdflib perl pic png posix python qt quicktime rdesktop readline real recode reflection ruby runlevels samba screen sdl session silc simplexml soap sockets spell spl splash sse sse2 ssl svg svga tcpd theora thumbnail tidy tiff tokenizer transcode truetype truetype-fonts type1-fonts udev urandom usb userlocales vcd video_cards_ati vim vorbis wifi win32codecs winbind wma wxgtk1 wxwindows xcomposite xine xml xorg xosd xscreensaver xsl xv xvid zip zlib elibc_glibc kernel_linux linguas_de userland_GNU video_cards_radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

I first suspected this to be a gcc-4.1.1 bug, but compiling with gcc-3.4.6 gave the same error. Should you need the complete output simply check the url. Here's the last bit before it fails:

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 -O2 -march=pentium4 -pipe -fomit-frame-pointer -Wall -Wchar-subscripts -Wpointer-arith -Wsign-compare -Wno-pointer-sign -Wdeclaration-after-statement -Wshadow -I/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/include -g -I./lib/ -L. -L./.libs/ -lcpufreq -o cpufreq-info utils/cpufreq-info.o
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lcpufreq
collect2: ld returned 1 exit status
make: *** [cpufreq-info] Error 1
make: *** Waiting for unfinished jobs....
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-06-06 01:58:43 UTC

*** This bug has been marked as a duplicate of 135521 ***