matszpk / amdcovc

Utility to overclock AMD Radeon GPU's in console mode (linux)
GNU General Public License v2.0
192 stars 33 forks source link

make issue /usr/bin/ld: cannot find -lpci (Ubuntu 16.04.3 LTS) #10

Closed StorageGuru closed 6 years ago

StorageGuru commented 7 years ago

Hi there, I should have installed all the requirements:

Makefile ADLSDKDIR = /home/miner/treiber/AMD_ADL PCIDIR = /home/miner/pciutils CXX = g++ CXXFLAGS = -Wall -O3 -std=c++11 LDFLAGS = -Wall -O3 -std=c++11 INCDIRS = -I$(ADLSDKDIR)/include -I$(PCIDIR) LIBDIRS = -L/opt/amdgpu-pro/lib/x86_64-linux-gnu

LIBDIRS =

LIBS = -ldl -lpci -lm -lOpenCL -pthread [...]

If I run make I run into this: miner@erpel2:~/amdcovc$ make g++ -Wall -O3 -std=c++11 -L/opt/amdgpu-pro/lib/x86_64-linux-gnu -o amdcovc amdcovc.o -ldl -lpci -lm -lOpenCL -pthread /usr/bin/ld: cannot find -lpci collect2: error: ld returned 1 exit status Makefile:25: recipe for target 'amdcovc' failed make: *** [amdcovc] Error 1

Unfortunately I am far from being a Linux champion so any hint is appreciated . Thanks, Stefan

matszpk commented 7 years ago

To build amdcovc, you should install libpci-dev, libpci3 and pciutils packages (by apt-get install). Any user built of pciutils is not needed. This library and its development files are needed in system (this is recommended place) to build amdcovc.

StorageGuru commented 7 years ago

Hi matszpk, many thanks, that fixed it and I got amdcvoc running. However the output "VDDC voltage available only for AMD Catalyst/Crimson drivers." indicates that I cannot undervolt in Linux as Crimson drivers only support Windows, right ?