crash-utility / crash

Linux kernel crash utility
https://crash-utility.github.io
788 stars 266 forks source link

Can't build on Ubuntu 20.04.6 LTS #153

Open zhanghaiyang9999 opened 10 months ago

zhanghaiyang9999 commented 10 months ago

when run make , show the following errors: TARGET: X86_64 CRASH: 8.0.3++ GDB: 10.2

make[3]: No targets specified and no makefile found. Stop. make[2]: [Makefile:274: rebuild] Error 2 make[1]: [Makefile:262: gdb_merge] Error 2 make: [Makefile:254: all] Error 2

the environment is:

gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.2) GNU Make 4.2.1

Distributor ID: Ubuntu Description: Ubuntu 20.04.6 LTS Release: 20.04 Codename: focal

kernel version: 5.15.0-83-generic

k-hagio commented 10 months ago

I can build the latest crash on Ubuntu 20.04.6. Probably lack of packages. Please try:

# apt install git gcc g++ make wget tar patch bison texinfo libncurses-dev zlib1g-dev liblzo2-dev libsnappy-dev libzstd-dev
$ cd crash
$ rm -rf gdb-10.2/
$ make clean
$ make