Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Build error while building chipsec on debian bullseye.

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
bond008
Posts: 1
Joined: 2021-10-05 06:30

Build error while building chipsec on debian bullseye.

#1 Post by bond008 »

Hello,
I am trying to build "Chipsec" on Debian 11 and getting the error as given below.
copying drivers/linux/Makefile -> /home/bond007/Documents/tools debian/chipsec/build/lib/drivers/linux
make[3]: *** No rule to make target 'debian/chipsec/build/lib/drivers/linux'. Stop.
make[2]: *** [/usr/src/linux-headers-5.10.0-8-common/Makefile:348: __build_one_by_one] Error 2
make[1]: *** [/usr/src/linux-headers-5.10.0-8-common/Makefile:185: __sub-make] Error 2
make: *** [Makefile:33: clean] Error 2
Traceback (most recent call last):
File "/home/bond007/Documents/tools debian/chipsec/setup.py", line 251, in <module>
setup(
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.9/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.9/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.9/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/home/bond007/Documents/tools debian/chipsec/setup.py", line 183, in run
driver_build_function()
File "/home/bond007/Documents/tools debian/chipsec/setup.py", line 81, in _build_linux_driver
subprocess.check_output(["make", "-C", build_driver])
File "/usr/lib/python3.9/subprocess.py", line 424, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File "/usr/lib/python3.9/subprocess.py", line 528, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['make', '-C', '/home/bond007/Documents/tools debian/chipsec/build/lib/drivers/linux']' returned non-zero exit status 2
I did check the kernel version and header version and the are the same .
bond007@bond007-x550lc:~/Documents/tools debian/chipsec$ uname -r
5.10.0-8-amd64
bond007@bond007-x550lc:~/Documents/tools debian/chipsec$ uname -v
#1 SMP Debian 5.10.46-5 (2021-09-23)
bond007@bond007-x550lc:~/Documents/tools debian/chipsec$
bond007@bond007-x550lc:~$ sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
linux-headers-5.10.0-8-amd64 is already the newest version (5.10.46-5).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Is this an issue of kernel version and header mismatch or any compatibility issue with the kernel .

Post Reply