PowerTop configure fails on BeagleBone/Ubuntu
Bram Bouwens
Hi!
I'm trying to build powertop-2.0 on a BeagleBone running Ubuntu:
root(a)omap:~/powertop-2.0# uname -a Linux omap 3.2.0-psp7 #1 Fri Apr 13 04:55:05 UTC 2012 armv7l armv7l armv7l GNU/Linux
but I get an error in the ./configure stage:
checking for strtoull... yes
checking for library containing delwin... -lncurses ./configure: line 19020: syntax error near unexpected token PCIUTILS,' ./configure: line 19020: PKG_CHECK_MODULES(PCIUTILS, libpci,,'
I do have the pci utils I think:
root(a)omap:~/powertop-2.0# dpkg --list | egrep -i pci ii libpci-dev 1:3.1.8-2ubuntu5 Linux PCI Utilities (development files) ii libpci3 1:3.1.8-2ubuntu5 Linux PCI Utilities (shared library) ii libpciaccess0 0.12.902-1 Generic PCI access library for X ii pciutils 1:3.1.8-2ubuntu5 Linux PCI Utilities
though I see something unexpected with the PCI bus:
root(a)omap:~/powertop-2.0# ls /proc/bus/pci ls: cannot access /proc/bus/pci: No such file or directory
I'm not sure this board has a PCI bus, actually.
How should I proceed?
Bram
Lekensteyn
Quoted 4 lines · On Monday 21 May 2012 16:56:20 Bram Bouwens wrote:
checking for strtoull... yes
checking for library containing delwin... -lncurses ./configure: line 19020: syntax error near unexpected tokenPCIUTILS,' ./configure: line 19020:PKG_CHECK_MODULES(PCIUTILS, libpci,,'
You need to install the pkg-config package.
Quoted 4 lines
though I see something unexpected with the PCI bus:
root(a)omap:~/powertop-2.0# ls /proc/bus/pci ls: cannot access /proc/bus/pci: No such file or directory
Not sure if there is a kernel config missing, does /sys/bus/pci/ exists?
Peter
Bram Bouwens
Quoted 6 lines · Lekensteyn
Quoted 4 lines · On Monday 21 May 2012 16:56:20 Bram Bouwens wrote:
checking for strtoull... yes
checking for library containing delwin... -lncurses ./configure: line 19020: syntax error near unexpected tokenPCIUTILS,' ./configure: line 19020:PKG_CHECK_MODULES(PCIUTILS, libpci,,'You need to install the pkg-config package.
No, that's present.
Quoted 6 lines
Quoted 5 lines
though I see something unexpected with the PCI bus:
root(a)omap:~/powertop-2.0# ls /proc/bus/pci ls: cannot access /proc/bus/pci: No such file or directoryNot sure if there is a kernel config missing, does
/sys/bus/pci/exists?
That isn't there either. Just checked under Angstrom too, it simply isn't there; the message is slightly different though:
checking for PCIUTILS... no
checking for library containing pci_get_dev... no
configure: error: libpci is required but was not found
And opkg can't find a package for it....
Bram
Lekensteyn
Quoted 10 lines · On Monday 21 May 2012 22:00:25 Bram Bouwens wrote:
Quoted 7 lines · Lekensteyn
Quoted 4 lines · On Monday 21 May 2012 16:56:20 Bram Bouwens wrote:
checking for strtoull... yes
checking for library containing delwin... -lncurses ./configure: line 19020: syntax error near unexpected tokenPCIUTILS,' ./configure: line 19020:PKG_CHECK_MODULES(PCIUTILS, libpci,,'You need to install the pkg-config package.
No, that's present.
Have you re-executed autogen.sh after installing pkg-config?
Quoted 7 lines
Quoted 6 lines
Quoted 4 lines
though I see something unexpected with the PCI bus:
root(a)omap:~/powertop-2.0# ls /proc/bus/pci ls: cannot access /proc/bus/pci: No such file or directoryNot sure if there is a kernel config missing, does
/sys/bus/pci/exists?
Quoted 8 lines
That isn't there either. Just checked under Angstrom too, it simply isn't there; the message is slightly different though:
checking for PCIUTILS... no
checking for library containingpci_get_dev... no
configure: error: libpci is required but was not foundAnd opkg can't find a package for it....
No idea on this, sorry. Perhaps you can crosscompile it? (no experience on doing it with powertop though)
Regards,
Peter