Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 415535 - >=sys-power/powertop-2.0[-unicode] fails to build, configure: error: ncurses is required but was not found
Summary: >=sys-power/powertop-2.0[-unicode] fails to build, configure: error: ncurses ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mobile Herd (OBSOLETE)
URL:
Whiteboard:
Keywords:
: 434096 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-05-12 05:03 UTC by Antti Mäkelä
Modified: 2012-09-07 11:32 UTC (History)
3 users (show)

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


Attachments
config.log (file_415535.txt,74.34 KB, text/plain)
2012-05-12 05:57 UTC, Antti Mäkelä
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Mäkelä 2012-05-12 05:03:36 UTC
I cannot compile powertop. Complains about missing ncurses, although that *is* installed.

# emerge -uvDaN world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ~] sys-power/powertop-2.0 [1.13] USE="-unicode" 0 kB

Total: 1 package (1 upgrade), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] 

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-power/powertop-2.0
 * powertop-2.0.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                  [ ok ]
>>> Unpacking source...
>>> Unpacking powertop-2.0.tar.bz2 to /var/tmp/portage/sys-power/powertop-2.0/work
>>> Source unpacked in /var/tmp/portage/sys-power/powertop-2.0/work
>>> Preparing source in /var/tmp/portage/sys-power/powertop-2.0/work/powertop-2.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-power/powertop-2.0/work/powertop-2.0 ...
 * econf: updating powertop-2.0/config.sub with /usr/share/gnuconfig/config.sub
 * econf: updating powertop-2.0/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --disable-dependency-tracking
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/gmsgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for style of include used by make... GNU
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none needed
checking dependency style of x86_64-pc-linux-gnu-gcc... none
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for ld used by GCC... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for shared library run path origin... done
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... yes
checking whether to use NLS... yes
checking where the gettext function comes from... libc
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
checking whether we are using the GNU C++ compiler... yes
checking whether x86_64-pc-linux-gnu-g++ accepts -g... yes
checking dependency style of x86_64-pc-linux-gnu-g++... none
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by x86_64-pc-linux-gnu-gcc... /usr/x86_64-pc-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-pc-linux-gnu/bin/ld option to reload object files... -r
checking for x86_64-pc-linux-gnu-objdump... x86_64-pc-linux-gnu-objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-pc-linux-gnu-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64-pc-linux-gnu-ar... x86_64-pc-linux-gnu-ar
checking for archiver @FILE support... @
checking for x86_64-pc-linux-gnu-strip... x86_64-pc-linux-gnu-strip
checking for x86_64-pc-linux-gnu-ranlib... x86_64-pc-linux-gnu-ranlib
checking command to parse /usr/bin/nm -B output from x86_64-pc-linux-gnu-gcc object... ok
checking for sysroot... no
checking for x86_64-pc-linux-gnu-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if x86_64-pc-linux-gnu-gcc supports -fno-rtti -fno-exceptions... no
checking for x86_64-pc-linux-gnu-gcc option to produce PIC... -fPIC -DPIC
checking if x86_64-pc-linux-gnu-gcc PIC flag -fPIC -DPIC works... yes
checking if x86_64-pc-linux-gnu-gcc static flag -static works... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... yes
checking if x86_64-pc-linux-gnu-gcc supports -c -o file.o... (cached) yes
checking whether the x86_64-pc-linux-gnu-gcc linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... x86_64-pc-linux-gnu-g++ -E
checking for ld used by x86_64-pc-linux-gnu-g++... /usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the x86_64-pc-linux-gnu-g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for x86_64-pc-linux-gnu-g++ option to produce PIC... -fPIC -DPIC
checking if x86_64-pc-linux-gnu-g++ PIC flag -fPIC -DPIC works... yes
checking if x86_64-pc-linux-gnu-g++ static flag -static works... yes
checking if x86_64-pc-linux-gnu-g++ supports -c -o file.o... yes
checking if x86_64-pc-linux-gnu-g++ supports -c -o file.o... (cached) yes
checking whether the x86_64-pc-linux-gnu-g++ linker (/usr/x86_64-pc-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... (cached) yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... (cached) none needed
checking dependency style of x86_64-pc-linux-gnu-gcc... (cached) none
checking whether x86_64-pc-linux-gnu-gcc and cc understand -c and -o together... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/statfs.h usability... yes
checking sys/statfs.h presence... yes
checking for sys/statfs.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for inline... inline
checking for int64_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for working strtod... yes
checking for fdatasync... yes
checking for getpagesize... (cached) yes
checking for gettimeofday... yes
checking for memmove... yes
checking for memset... yes
checking for mkdir... yes
checking for munmap... yes
checking for pow... no
checking for realpath... yes
checking for regcomp... yes
checking for select... yes
checking for setlocale... yes
checking for socket... yes
checking for sqrt... no
checking for strcasecmp... yes
checking for strchr... yes
checking for strdup... yes
checking for strerror... yes
checking for strncasecmp... yes
checking for strstr... yes
checking for strtoul... yes
checking for strtoull... yes
checking for library containing delwin... (cached) no
configure: error: ncurses is required but was not found

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-power/powertop-2.0/work/powertop-2.0/config.log
 * ERROR: sys-power/powertop-2.0 failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *            ebuild.sh, line   85:  Called src_configure
 *          environment, line 1871:  Called default
 *   phase-functions.sh, line  798:  Called _eapi2_src_configure
 *     phase-helpers.sh, line  567:  Called econf
 *     phase-helpers.sh, line  467:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 * 
 * If you need support, post the output of `emerge --info '=sys-power/powertop-2.0'`,
 * the complete build log and the output of `emerge -pqv '=sys-power/powertop-2.0'`.
 * The complete build log is located at '/var/tmp/portage/sys-power/powertop-2.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-power/powertop-2.0/temp/environment'.
 * Working directory: '/var/tmp/portage/sys-power/powertop-2.0/work/powertop-2.0'
 * S: '/var/tmp/portage/sys-power/powertop-2.0/work/powertop-2.0'

>>> Failed to emerge sys-power/powertop-2.0, Log file:

>>>  '/var/tmp/portage/sys-power/powertop-2.0/temp/build.log'
Comment 1 Antti Mäkelä 2012-05-12 05:03:56 UTC
# emerge --info
Portage 2.2.0_alpha104 (default/linux/amd64/10.0/desktop/kde, gcc-4.5.3, glibc-2.14.1-r3, 3.3.4-gentoo x86_64)
=================================================================
System uname: Linux-3.3.4-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_820_@_1.73GHz-with-gentoo-2.0.3
Timestamp of tree: Sat, 12 May 2012 04:30:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo local-portage-repository
Installed sets: 
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ds.thn.htu.se/linux/gentoo http://ftp.linux.ee/pub/gentoo/distfiles/ http://gentoo.tiscali.nl/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en fi"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi adns aiglx akonadi alsa amd64 amr amrnb amrwb asf async audiofile automount berkdb bluetooth branding browserplugin bzip2 cairo calendar caps cdda cddax cddb cdio cdparanoia cdr celt chardet chm cjk colord compressed-lumas connectionstatus consolekit contactnotes contrast cracklib crypt css cups curl cxx dbus declarative desktopglobe dga dhcpcd dirac divx divx4linux djvu dmx dri dts dvd dvdr emboss enca encode eselect espeak exif expat expoblending extensions extras faac faad facedetect fam ffi ffmpeg firefox flac fontconfig fontforge foomaticdb fortran frei0r ftp gadu gd gdbm geoip gif gimp git glitz glut gmedia gmp gnutls gphoto2 gpm gps gsm gstreamer gtk hdaps hdri history hotpixels httpd hwdb hybrid-auth iconv id3tag idn ieee1394 ilbc imagemagick imlib inkjar inotify ipv6 irda irmc jabber java java6 jemalloc jingle jpeg jpeg2k justify kate kde kipi kqemu ladspa lame laptop latex lcms ldap lensfun libffi libnotify libproxy libsamplerate libtiger libv4l libv4l2 live lzma mad madwifi matroska melt midi mikmod mjpeg mmap mmx mmxext mng modplug modules moonlight mousewarp mozbranding mozdevelop mp3 mp4 mpeg mpi mplayer msn mtp mudflap multilib musepack mysql ncurses nls nokia nptl nsplugin ntp offensive ofx ogg oggvorbis ogm openexr opengl openmp oscar otr pam pango pcmcia pcre pdf pdfimport perl pgo phonon pic plasma plotutils png pnm pnp policykit portaudio postproc postscript ppds ppp pppd profile4 python qalculate qt-faststart qt3support qt4 quicktime quotes raw rdesktop rdp readline realmedia resolvconf romio rtc rtmp rtsp samba scale0tilt schroedinger scim sdl secure-delete semantic-desktop sift smi smp sndfile snmp sound soundtouch speex spell sql sqlite srt sse sse2 sse2_4way sse3 sse4 sse4_1 sse4a ssl ssse3 startup-notification stream subtitles subversion suid svg swat sysfs syslog system-sqlite tcltk tcpd tga theora threads thumbnail tiff timezone tk truetype twolame udev unlock-notify usb userlocales v4l v4l2 vamp vcd vcdinfo vcdx vdpau video visualization vlc vlm vnc vorbis vpx wavpack webkit wifi wireshark wma wma-fixed wmf wmp wps wxwidgets x264 xanim xcb xcomposite xine xinerama xml xml2 xorg xosd xscreensaver xulrunner xv xvfb xvid xvmc yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en fi" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Rafał Mużyło 2012-05-12 05:18:59 UTC
...so, about that config.log...
Comment 3 Antti Mäkelä 2012-05-12 05:57:04 UTC
Created attachment 311481 [details]
config.log

Third attempt to upload, this time with "paste text to attachment".
Comment 4 Shark 2012-05-12 10:11:58 UTC
Same problem here. Strangly ./configure works if called manualy inside the workdir
Comment 5 Rafał Mużyło 2012-05-12 14:33:52 UTC
Well, config.log wasn't very helpful, but the bug lies in the ebuild.

Haven't checked, but it seems that the line should have been:
export ac_cv_search_delwin=$(usex unicode -lncursesw -lncurses)

as ncurses is *always* required.
Comment 6 Shark 2012-05-12 14:43:40 UTC
(In reply to comment #5)
> Well, config.log wasn't very helpful, but the bug lies in the ebuild.
> 
> Haven't checked, but it seems that the line should have been:
> export ac_cv_search_delwin=$(usex unicode -lncursesw -lncurses)
> 
> as ncurses is *always* required.

You're right. I've changed the value of ac_cv_search_delwin in the ebuild and now PowerTop works without any problem. Thanks!
Comment 7 Preston Crow 2012-05-16 21:13:54 UTC
(In reply to comment #5)

Yup, that fixes it for me, too.  It would be nice if this fix would make it into portage.
Comment 8 Clemmitt M. Sigler 2012-05-20 00:56:33 UTC
(In reply to comment #7)
> (In reply to comment #5)
> 
> Yup, that fixes it for me, too.  It would be nice if this fix would make it
> into portage.

I've made the change in comment #5 and gotten the package to emerge.  However, when it runs it complains:

"Failed to mount debugfs!
exiting..."

so I've got something wrong.  When I re-emerge sys-power/powertop-1.13, it seems to run OK.  So is there a dependency problem in the ebuild?  Perhaps ver. 2.0 should check for a kernel .config option I don't have set properly?

Since this is a ~amd64 and ~x86 ebuild, I guess not enough people are trying ver. 2.0 to cause a riot due to the failing ebuild?

Clemmitt
Comment 9 Antti Mäkelä 2012-05-27 19:16:45 UTC
Re the debugfs issue, powertop 2.0 requires that

CONFIG_DEBUG_FS=y

is set in the kernel config. The ebuild should probably check for this one - other kernel options (listed in the readme) are mostly optional.
Comment 10 Sergey Popov gentoo-dev 2012-09-07 10:52:10 UTC
*** Bug 434096 has been marked as a duplicate of this bug. ***
Comment 11 Sergey Popov gentoo-dev 2012-09-07 11:32:32 UTC
+  07 Sep 2012; Sergey Popov <pinkbyte@gentoo.org> powertop-2.1.ebuild:
+  Add proper unicode flag handling. Fixes bug #415535

Checked on both +unicode and -unicode. Powertop links against correct libraries in both cases.