dtrace4linux / linux

dtrace for linux - kernel driver and userland tools
http://crtags.blogspot.com
1.17k stars 226 forks source link

make all falling on centos #141

Open qiangzi11hao opened 5 years ago

qiangzi11hao commented 5 years ago

BUILD_DIR=build-3.10.0-957.21.3.el7.x86_64 \ tools/mkdriver.pl driver-kmem ; \ tools/build.pl build-3.10.0-957.21.3.el7.x86_64 uname -m Executing: /home/ansible/dtrace_v1/tools/make-me ERROR: /lib/modules/3.10.0-957.21.3.el7.x86_64/build does not exist. gcc -o build-3.10.0-957.21.3.el7.x86_64/kcore tools/kcore.c tools/check_dep.pl tools/mkport.pl /tmp/ccc4TGit.o: In function main': root.dwarf.c:(.text+0x1f): undefined reference todwarf_loclist' collect2: error: ld returned 1 exit status old_rsp=10600 grep: /usr/src/kernels/3.10.0-957.21.3.el7.x86_64/include/linux/fs.h: No such file or directory tools/libgcc.pl tools/mksyscall.pl Processing (32): /usr/include/asm/unistd_32.h Creating: build-3.10.0-957.21.3.el7.x86_64/driver/syscalls-x86.tbl - 351 entries Processing (64): /usr/include/asm/unistd_64.h Creating: build-3.10.0-957.21.3.el7.x86_64/driver/syscalls-x86-64.tbl - 320 entries make all0 cd tests ; make --no-print-directory case uname -m in \ x86_64) \ cc -m64 -g -o ../build-3.10.0-957.21.3.el7.x86_64/sys64 syscalls.c ; \ cc -m32 -g -o ../build-3.10.0-957.21.3.el7.x86_64/sys32 syscalls.c || true ; \ ;; \ i686) \ cc -m32 -g -o ../build-3.10.0-957.21.3.el7.x86_64/sys32 syscalls.c ; \ ;; \ arm*) \ cc -g -o ../build-3.10.0-957.21.3.el7.x86_64/sys32 syscalls.c ; \ ;; \ esac cd libctf ; make --no-print-directory cd libdtrace ; make --no-print-directory cd liblinux ; make --no-print-directory cd libproc/common ; make --no-print-directory cd librtld ; make --no-print-directory cd cmd/dtrace ; make --no-print-directory cd cmd/ctfconvert ; make --no-print-directory make[3]: Nothing to be done for `all1'. cd cmd/instr ; make --no-print-directory cd usdt/c ; make --no-print-directory tools/mkdriver.pl driver-kmem all Executing: /home/ansible/dtrace_v1/tools/make-me ERROR: /lib/modules/3.10.0-957.21.3.el7.x86_64/build does not exist. make[1]: [kernel] Error 1 tools/bug.sh make: [all] 错误 1

AIDeepx commented 4 years ago

I have the same mistake as you. Have you solved it?