Issue #336 has been updated by Max Mustermann.
Idwer Vollering wrote:
Yes, this is odd. Did you install the debian/ubuntu package 'build-essential'?
Can you run, and paste the output, from:
- dpkg -l | egrep 'libpci|zlib'
- in the util/intelmetool/ directory: make --trace
The expected outcome is:
I was able to track the issue by editing the makefile:
pciutils: @printf "\nChecking for development libraries: pci and zlib... " @echo "$$LIBPCI_TEST" > .test.c @$(CC) $(CFLAGS) .test.c -o .test $(LDFLAGS) ~~>/dev/null 2>&1~~ && \ printf "found.\n" || ( printf "not found.\n\n"; \ printf "For RPM based distributions like Fedora, please install pciutils-devel and zlib-devel.\n"; \ printf "For DEB based distributions, please install libpci-dev and zlib1g-dev.\n"; \ rm -f .test.c .test; exit 1) @rm -rf .test.c .test .test.dSYM
I removed **/dev/null 2>&1** to see the output:
*Checking for development libraries: pci and zlib... /bin.sh: 1: cc: not found not found*
ubuntu@ubuntu:~/coreboot/util/intelmetool$ sudo update-alternatives --config cc update-alternatives: error: no alternatives for cc
I don't had build-essential installed. I usually never build anything. First time for me. So yeah... after installing 'build-essential' everything worked as expected. Could you please update the makefile and give a hint, that 'build-essential' has to be installed as well? As a linux newbie, it took me a whole day and external help to troubleshoot this.
Thank you :)
BR Max
---------------------------------------- Bug #336: Intelmetool makefile problem https://ticket.coreboot.org/issues/336#change-870
* Author: Max Mustermann * Status: New * Priority: Normal * Assignee: * Category: * Target version: ---------------------------------------- make states, that pci and zlib libraries are not installed, but they are. I guess, theres a problem regarding the makefile? I tried it with Debian 11 (Bullseye) and Ubuntu 20.04 (Focal Fossa).
Can anyone confirm this issue?
![](https://abload.de/img/screenshotfrom2022-02n7kn2.png)