dtrace4linux / linux

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

Lubuntu: FSET_BITS=64 -I../build-3.13.0-48-generic -c ../build-3.13.0-48-generic/dt_lex.c dt_lex.l:34:18: fatal error: port.h: No such file or directory #104

Closed hoahau closed 9 years ago

hoahau commented 9 years ago

Hi to every one... ... I try to compile dTrace4Linux... in Lubuntu in my NooteBook (intel Pentium (B950) 2 GB (ram)) ... and I get this error...

..Pleace Any idea? last commnad

make all ( as root )

gcc -g -DYYDEBUG=1 -DYYERROR_VERBOSE -I. -I../../common/ctf -I../uts/common -I../linux -I../libproc/common -I../libctf/ -DCTF_OLD_VERSIONS -D_ILP32 -D_LONGLONG_TYPE -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I../build-3.13.0-48-generic -c dt_grammar.c dt_grammar.y:29:0: warning: "YYERROR_VERBOSE" redefined [enabled by default]

define YYERROR_VERBOSE

^

:0:0: note: this is the location of the previous definition dt_grammar.y:30:18: fatal error: port.h: No such file or directory #include ^ compilation terminated. make[2]: **\* [../build-3.13.0-48-generic/dt_grammar.h] Error 1 make[1]: **\* [do_cmds] Error 2 tools/bug.sh .================================================================== .= Sorry - but dtrace failed to compile on your system. .= Please forward the following file to: .= .= file: /tmp/dtrace-bug.11078.txt .= mail: Crisp.Editor@gmail.com .= .= and the information provided will be used to help .= enhance the tool and fix the underlying issue. .= .= Latest news and blog updates on dtrace available here. Please .= check for latest problem reports. .= .= http://crtags.blogspot.com .= http://www.crisp.demon.co.uk/blog/ .= .= Latest downloads available from here: .= .= ftp://crisp.dyndns-server.com/pub/release/website/dtrace .================================================================== .= .= Common problems: .= 1. Run tools/get-deps.pl or get-deps-fedora.sh or get-deps-arch.sh .= to ensure everything is needed or a build. .= 2. Currently (Nov 2012) issues on Xen guests (Amazon EC2). Working .= to fix. (generating a make run - this may take a few moments...) make: **\* [all] Error 1
hoahau commented 9 years ago

I found this...

root@mike-pc:~/dTrace.ins/linux# locate /port.h /usr/src/linux-headers-3.13.0-46-generic/include/config/ip/set/bitmap/port.h /usr/src/linux-headers-3.13.0-46-generic/include/config/ks0108/port.h /usr/src/linux-headers-3.13.0-48-generic/include/config/ip/set/bitmap/port.h /usr/src/linux-headers-3.13.0-48-generic/include/config/ks0108/port.h root@mike-pc:~/dTrace.ins/linux#

.. But istill does NOT work !!! any One!!...any idea?

dtrace4linux commented 9 years ago

How are you actually building? You only seemed to show snippets of output. Do you have perl on your system? On 26 Mar 2015 16:02, "Mike" notifications@github.com wrote:

I found this...

root@mike-pc:~/dTrace.ins/linux# locate /port.h

/usr/src/linux-headers-3.13.0-46-generic/include/config/ip/set/bitmap/port.h /usr/src/linux-headers-3.13.0-46-generic/include/config/ks0108/port.h

/usr/src/linux-headers-3.13.0-48-generic/include/config/ip/set/bitmap/port.h /usr/src/linux-headers-3.13.0-48-generic/include/config/ks0108/port.h root@mike-pc:~/dTrace.ins/linux#

.. But istill does NOT work !!! any One!!...any idea?

— Reply to this email directly or view it on GitHub https://github.com/dtrace4linux/linux/issues/104#issuecomment-86691604.

hoahau commented 9 years ago

Hi... thanks 4 answer... ... and Yes I have Perl installed

And try to build form the Read-me file... ... I installed the dependency first ($ tools/get-deps.pl # if using Ubuntu) && echo $? ==> 0 ok

PD: Do U know... what is the "/port.h" header c file which is looking for? or where it is, in other system?

dtrace4linux commented 9 years ago

can you give out a complete transcript of how you are building?

On 27 March 2015 at 04:44, Mike notifications@github.com wrote:

Hi... thanks 4 answer... ... and Yes I have Perl installed

And try to build form the Read-me file... ... I installed the dependency first ($ tools/get-deps.pl # if using Ubuntu)

— Reply to this email directly or view it on GitHub https://github.com/dtrace4linux/linux/issues/104#issuecomment-86817521.

hoahau commented 9 years ago

Close this issue...

I have change my distro 4 DeepIn ... every is all rigth

thanks

dtrace4linux commented 9 years ago

thanks.

On 5 April 2015 at 01:27, Mike notifications@github.com wrote:

Closed #104 https://github.com/dtrace4linux/linux/issues/104.

— Reply to this email directly or view it on GitHub https://github.com/dtrace4linux/linux/issues/104#event-273462480.

farhanshariff2013 commented 9 years ago

[root@mscserver dtrace-20150306]# make all BUILD_DIR=build-2.6.32-358.el6.x86_64 tools/build.pl build-2.6.32-358.el6.x86_64 uname -m gcc -o build-2.6.32-358.el6.x86_64/kcore tools/kcore.c tools/check_dep.pl tools/mkport.pl insmod: can't read 'build/driver-kmem/dtrace_kmem.ko': No such file or directory ERROR: Module dtrace_kmem does not exist in /proc/modules Failed to find offset old_rsp= cannot find old_rsp tools/libgcc.pl /usr/lib/gcc/x86_64-redhat-linux/4.4.7/32 tools/mksyscall.pl Processing (32): /lib/modules/2.6.32-358.el6.x86_64/build/arch/x86/include/asm/unistd_32.h Creating: build-2.6.32-358.el6.x86_64/driver/syscalls-x86.tbl - 340 entries Processing (64): /lib/modules/2.6.32-358.el6.x86_64/build/arch/x86/include/asm/unistd_64.h Creating: build-2.6.32-358.el6.x86_64/driver/syscalls-x86-64.tbl - 312 entries make all0 cd tests ; make --no-print-directory case uname -m in \ x86_64) \ cc -m64 -g -o ../build-2.6.32-358.el6.x86_64/sys64 syscalls.c ; \ cc -m32 -g -o ../build-2.6.32-358.el6.x86_64/sys32 syscalls.c || true ; \ ;; \ i686) \ cc -m32 -g -o ../build-2.6.32-358.el6.x8664/sys32 syscalls.c ; \ ;; \ arm) \ cc -g -o ../build-2.6.32-358.el6.x86_64/sys32 syscalls.c ; \ ;; \ esac cd libctf ; make --no-print-directory gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c -o ctf_lib.o ctf_lib.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_lib.o ar: creating ../build-2.6.32-358.el6.x86_64/libctf.a a - ctf_lib.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c -o ctf_subr.o ctf_subr.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_subr.o a - ctf_subr.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_create.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_create.o a - ctf_create.o rm -f ctf_create.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_error.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_error.o a - ctf_error.o rm -f ctf_error.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_hash.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_hash.o a - ctf_hash.o rm -f ctf_hash.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_labels.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_labels.o a - ctf_labels.o rm -f ctf_labels.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_lookup.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_lookup.o a - ctf_lookup.o rm -f ctf_lookup.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_open.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_open.o a - ctf_open.o rm -f ctf_open.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_types.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_types.o a - ctf_types.o rm -f ctf_types.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c uncompress.c uncompress.c: In function 'ctf_uncompress': uncompress.c:26: warning: incompatible implicit declaration of built-in function 'memset' ar rv ../build-2.6.32-358.el6.x86_64/libctf.a uncompress.o a - uncompress.o rm -f uncompress.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_util.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_util.o a - ctf_util.o rm -f ctf_util.o rm ctf_subr.o ctf_lib.o cd libdtrace ; make --no-print-directory gcc -g -I. -I../../common/ctf -I../uts/common -I../linux -I../libproc/common -I../libctf/ -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I../build-2.6.32-358.el6.x86_64 -Ii386 -I../driver -c ../driver/dis_tables.c ar rv ../build-2.6.32-358.el6.x86_64/libdtrace.a dis_tables.o ar: creating ../build-2.6.32-358.el6.x86_64/libdtrace.a a - dis_tables.o rm -f dis_tables.o ../tools/yacc.pl -d dt_grammar.y /usr/bin/bison -d dt_grammar.y mv y.tab.h ../build-2.6.32-358.el6.x86_64/dt_grammar.h mv y.tab.c dt_grammar.c gcc -g -DYYDEBUG=1 -DYYERROR_VERBOSE -I. -I../../common/ctf -I../uts/common -I../linux -I../libproc/common -I../libctf/ -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I../build-2.6.32-358.el6.x86_64 -c dt_grammar.c dt_grammar.y:29:1: warning: "YYERROR_VERBOSE" redefined

: warning: this is the location of the previous definition dt_grammar.y:30:18: error: port.h: No such file or directory dt_grammar.y: In function 'yyparse': dt_grammar.y:613: warning: assignment from incompatible pointer type dt_grammar.y:614: warning: assignment from incompatible pointer type dt_grammar.y:615: warning: assignment from incompatible pointer type dt_grammar.y:616: warning: assignment from incompatible pointer type dt_grammar.y:617: warning: assignment from incompatible pointer type dt_grammar.y:618: warning: assignment from incompatible pointer type make[2]: *_\* [../build-2.6.32-358.el6.x86_64/dt_grammar.h] Error 1 make[1]: **\* [do_cmds] Error 2 tools/bug.sh make: **\* [all] Error 1 I am getting this error how to solve this
dtrace4linux commented 9 years ago

Am confused what your OS actually is. Is that old centos or redhat?

What is the contents of your dtrace/build directory? In there is a port.h created by the mkport.pl script. You have an error at the top of your output but that might be acceptable if "old_rsp" can be found via legacy methods.

i am curious why tools/bug.sh gave no output

On 6 May 2015 at 16:45, farhanshariff2013 notifications@github.com wrote:

[root@mscserver dtrace-20150306]# make all BUILD_DIR=build-2.6.32-358.el6.x86_64 tools/build.pl build-2.6.32-358.el6.x86_64 uname -m gcc -o build-2.6.32-358.el6.x86_64/kcore tools/kcore.c tools/check_dep.pl tools/mkport.pl insmod: can't read 'build/driver-kmem/dtrace_kmem.ko': No such file or directory ERROR: Module dtrace_kmem does not exist in /proc/modules Failed to find offset old_rsp= cannot find old_rsp tools/libgcc.pl /usr/lib/gcc/x86_64-redhat-linux/4.4.7/32 tools/mksyscall.pl Processing (32): /lib/modules/2.6.32-358.el6.x86_64/build/arch/x86/include/asm/unistd_32.h Creating: build-2.6.32-358.el6.x86_64/driver/syscalls-x86.tbl - 340 entries Processing (64): /lib/modules/2.6.32-358.el6.x86_64/build/arch/x86/include/asm/unistd_64.h Creating: build-2.6.32-358.el6.x86_64/driver/syscalls-x86-64.tbl - 312 entries make all0 cd tests ; make --no-print-directory case uname -m in \ x86_64) \ cc -m64 -g -o ../build-2.6.32-358.el6.x86_64/sys64 syscalls.c ; \ cc -m32 -g -o ../build-2.6.32-358.el6.x86_64/sys32 syscalls.c || true ; \ ;; \ i686) \ cc -m32 -g -o ../build-2.6.32-358.el6.x86_64/sys32 syscalls.c ; \ ;; \ arm

_) \ cc -g -o ../build-2.6.32-358.el6.x86_64/sys32 syscalls.c ; \ ;; \ esac cd libctf ; make --no-print-directory gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c -o ctf_lib.o ctf_lib.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_lib.o ar: creating ../build-2.6.32-358.el6.x86_64/libctf.a a - ctf_lib.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c -o ctf_subr.o ctf_subr.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_subr.o a - ctf_subr.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_create.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_create.o a - ctf_create.o rm -f ctf_create.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_error.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_error.o a - ctf_error.o rm -f ctf_error.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_hash.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_hash.o a - ctf_hash.o rm -f ctf_hash.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_labels.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_labels.o a - ctf_labels.o rm -f ctf_labels.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_lookup.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_lookup.o a - ctf_lookup.o rm -f ctf_lookup.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_open.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_open.o a - ctf_open.o rm -f ctf_open.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_types.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_types.o a - ctf_types.o rm -f ctf_types.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c uncompress.c uncompress.c: In function 'ctf_uncompress': uncompress.c:26: warning: incompatible implicit declaration of built-in function 'memset' ar rv ../build-2.6.32-358.el6.x86_64/libctf.a uncompress.o a - uncompress.o rm -f uncompress.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_util.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_util.o a - ctf_util.o rm -f ctf_util.o rm ctf_subr.o ctf_lib.o cd libdtrace ; make --no-print-directory gcc -g -I. -I../../common/ctf -I../uts/common -I../linux -I../libproc/common -I../libctf/ -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I../build-2.6.32-358.el6.x86_64 -Ii386 -I../driver -c ../driver/dis_tables.c ar rv ../build-2.6.32-358.el6.x86_64/libdtrace.a dis_tables.o ar: creating ../build-2.6.32-358.el6.x86_64/libdtrace.a a - dis_tables.o rm -f dis_tables.o ../tools/yacc.pl http://yacc.pl -d dt_grammar.y /usr/bin/bison -d dt_grammar.y mv y.tab.h ../build-2.6.32-358.el6.x86_64/dt_grammar.h mv y.tab.c dt_grammar.c gcc -g -DYYDEBUG=1 -DYYERROR_VERBOSE -I. -I../../common/ctf -I../uts/common -I../linux -I../libproc/common -I../libctf/ -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I../build-2.6.32-358.el6.x86_64 -c dt_grammar.c dt_grammar.y:29:1: warning: "YYERROR_VERBOSE" redefined : warning: this is the location of the previous definition dt_grammar.y:30:18: error: port.h: No such file or directory dt_grammar.y: In function 'yyparse': dt_grammar.y:613: warning: assignment from incompatible pointer type dt_grammar.y:614: warning: assignment from incompatible pointer type dt_grammar.y:615: warning: assignment from incompatible pointer type dt_grammar.y:616: warning: assignment from incompatible pointer type dt_grammar.y:617: warning: assignment from incompatible pointer type dtgrammar.y:618: warning: assignment from incompatible pointer type make[2]: ** [../build-2.6.32-358.el6.x86_64/dt_grammar.h] Error 1 make[1]: * [do_cmds] Error 2 tools/bug.sh make: * [all] Error 1

I am getting this error how to solve this

— Reply to this email directly or view it on GitHub https://github.com/dtrace4linux/linux/issues/104#issuecomment-99518750.

farhanshariff2013 commented 9 years ago

[root@mscserver msc]# cat /etc/issue CentOS release 6.4 (Final) Kernel \r on an \m

[root@mscserver msc]# uname -r 2.6.32-358.el6.x86_64

[root@mscserver build]# ls config.sh driver dt_grammar.h kcore libctf.a libdtrace.a libgcc.a notifiers.h sys32 sys64

[root@mscserver tools]# ./get-deps.pl sudo: apt-get: command not found sudo: apt-get: command not found sudo: apt-get: command not found sudo: apt-get: command not found sudo: apt-get: command not found [root@mscserver tools]# sh get-deps-fedora.sh Loaded plugins: fastestmirror, priorities, security Loading mirror speeds from cached hostfile

iso-i386:
iso-x86_64: 12 packages excluded due to repository priority protections

Setting up Install Process Package binutils-devel-2.20.51.0.2-5.36.el6.x86_64 already installed and latest version Package bison-2.4.1-5.el6.x86_64 already installed and latest version Package crash-6.1.0-1.el6.x86_64 already installed and latest version Package elfutils-devel-0.152-1.el6.x86_64 already installed and latest version Package elfutils-libelf-devel-0.152-1.el6.x86_64 already installed and latest version Package flex-2.5.35-8.el6.x86_64 already installed and latest version Package gcc-4.4.7-3.el6.x86_64 already installed and latest version Package glibc-devel-2.12-1.107.el6.x86_64 already installed and latest version Package glibc-devel-2.12-1.107.el6.i686 already installed and latest version Package kernel-devel-2.6.32-358.el6.x86_64 already installed and latest version No package libdwarf available. No package libdwarf-devel available. Package libgcc-4.4.7-3.el6.i686 already installed and latest version Package 1:make-3.81-20.el6.x86_64 already installed and latest version Package 4:perl-5.10.1-129.el6.x86_64 already installed and latest version Package zlib-devel-1.2.3-29.el6.x86_64 already installed and latest version Nothing to do [root@mscserver tools]# ./check_dep.pl [root@mscserver tools]# sh get-deps-arch.sh get-deps-arch.sh: line 2: pacman: command not found

I dont know what dependecies file I have to check for Cent OS Also is libdwarf and libdwar-devel available on cent os 6

Thanks in advance Regards

On Wed, May 6, 2015 at 9:27 PM, dtrace4linux notifications@github.com wrote:

Am confused what your OS actually is. Is that old centos or redhat?

What is the contents of your dtrace/build directory? In there is a port.h created by the mkport.pl script. You have an error at the top of your output but that might be acceptable if "old_rsp" can be found via legacy methods.

i am curious why tools/bug.sh gave no output

On 6 May 2015 at 16:45, farhanshariff2013 notifications@github.com wrote:

[root@mscserver dtrace-20150306]# make all BUILD_DIR=build-2.6.32-358.el6.x86_64 tools/build.pl build-2.6.32-358.el6.x86_64 uname -m gcc -o build-2.6.32-358.el6.x86_64/kcore tools/kcore.c tools/check_dep.pl tools/mkport.pl insmod: can't read 'build/driver-kmem/dtrace_kmem.ko': No such file or directory ERROR: Module dtrace_kmem does not exist in /proc/modules Failed to find offset old_rsp= cannot find old_rsp tools/libgcc.pl /usr/lib/gcc/x86_64-redhat-linux/4.4.7/32 tools/mksyscall.pl Processing (32): /lib/modules/2.6.32-358.el6.x86_64/build/arch/x86/include/asm/unistd_32.h Creating: build-2.6.32-358.el6.x86_64/driver/syscalls-x86.tbl - 340 entries Processing (64): /lib/modules/2.6.32-358.el6.x86_64/build/arch/x86/include/asm/unistd_64.h Creating: build-2.6.32-358.el6.x86_64/driver/syscalls-x86-64.tbl - 312 entries make all0 cd tests ; make --no-print-directory case uname -m in \ x86_64) \ cc -m64 -g -o ../build-2.6.32-358.el6.x86_64/sys64 syscalls.c ; \ cc -m32 -g -o ../build-2.6.32-358.el6.x86_64/sys32 syscalls.c || true ; \ ;; \ i686) \ cc -m32 -g -o ../build-2.6.32-358.el6.x86_64/sys32 syscalls.c ; \ ;; \ arm

_) \ cc -g -o ../build-2.6.32-358.el6.x86_64/sys32 syscalls.c ; \ ;; \ esac cd libctf ; make --no-print-directory gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c -o ctf_lib.o ctf_lib.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_lib.o ar: creating ../build-2.6.32-358.el6.x86_64/libctf.a a - ctf_lib.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c -o ctf_subr.o ctf_subr.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_subr.o a - ctf_subr.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_create.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_create.o a - ctf_create.o rm -f ctf_create.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_error.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_error.o a - ctf_error.o rm -f ctf_error.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_hash.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_hash.o a - ctf_hash.o rm -f ctf_hash.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_labels.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_labels.o a - ctf_labels.o rm -f ctf_labels.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_lookup.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_lookup.o a - ctf_lookup.o rm -f ctf_lookup.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_open.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_open.o a - ctf_open.o rm -f ctf_open.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_types.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_types.o a - ctf_types.o rm -f ctf_types.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c uncompress.c uncompress.c: In function 'ctf_uncompress': uncompress.c:26: warning: incompatible implicit declaration of built-in function 'memset' ar rv ../build-2.6.32-358.el6.x86_64/libctf.a uncompress.o a - uncompress.o rm -f uncompress.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_util.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_util.o a - ctf_util.o rm -f ctf_util.o rm ctf_subr.o ctf_lib.o cd libdtrace ; make --no-print-directory gcc -g -I. -I../../common/ctf -I../uts/common -I../linux -I../libproc/common -I../libctf/ -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I../build-2.6.32-358.el6.x86_64 -Ii386 -I../driver -c ../driver/dis_tables.c ar rv ../build-2.6.32-358.el6.x86_64/libdtrace.a dis_tables.o ar: creating ../build-2.6.32-358.el6.x86_64/libdtrace.a a - dis_tables.o rm -f dis_tables.o ../tools/yacc.pl http://yacc.pl -d dt_grammar.y /usr/bin/bison -d dt_grammar.y mv y.tab.h ../build-2.6.32-358.el6.x86_64/dt_grammar.h mv y.tab.c dt_grammar.c gcc -g -DYYDEBUG=1 -DYYERROR_VERBOSE -I. -I../../common/ctf -I../uts/common -I../linux -I../libproc/common -I../libctf/ -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I../build-2.6.32-358.el6.x86_64 -c dt_grammar.c dt_grammar.y:29:1: warning: "YYERROR_VERBOSE" redefined : warning: this is the location of the previous definition dt_grammar.y:30:18: error: port.h: No such file or directory dt_grammar.y: In function 'yyparse': dt_grammar.y:613: warning: assignment from incompatible pointer type dt_grammar.y:614: warning: assignment from incompatible pointer type dt_grammar.y:615: warning: assignment from incompatible pointer type dt_grammar.y:616: warning: assignment from incompatible pointer type dt_grammar.y:617: warning: assignment from incompatible pointer type dtgrammar.y:618: warning: assignment from incompatible pointer type make[2]: ** [../build-2.6.32-358.el6.x86_64/dt_grammar.h] Error 1 make[1]: * [do_cmds] Error 2 tools/bug.sh make: * [all] Error 1

I am getting this error how to solve this

— Reply to this email directly or view it on GitHub <https://github.com/dtrace4linux/linux/issues/104#issuecomment-99518750 .

— Reply to this email directly or view it on GitHub https://github.com/dtrace4linux/linux/issues/104#issuecomment-99580646.

Farhan Shariff ESIGELEC Rouen, France Mob : +31 619084549

dtrace4linux commented 9 years ago

Confused by this output - but never mind - thanks for running that. Can you do

$ strace -f -o logfile make all

and send me the logfile. I think something is going wrong up front which leads to the build/ dir not having a generated port.h file.

thanks

On 7 May 2015 at 08:44, farhanshariff2013 notifications@github.com wrote:

[root@mscserver msc]# cat /etc/issue CentOS release 6.4 (Final) Kernel \r on an \m

[root@mscserver msc]# uname -r 2.6.32-358.el6.x86_64

[root@mscserver build]# ls config.sh driver dt_grammar.h kcore libctf.a libdtrace.a libgcc.a notifiers.h sys32 sys64

[root@mscserver tools]# ./get-deps.pl sudo: apt-get: command not found sudo: apt-get: command not found sudo: apt-get: command not found sudo: apt-get: command not found sudo: apt-get: command not found [root@mscserver tools]# sh get-deps-fedora.sh Loaded plugins: fastestmirror, priorities, security Loading mirror speeds from cached hostfile

iso-i386: iso-x86_64: 12 packages excluded due to repository priority protections Setting up Install Process Package binutils-devel-2.20.51.0.2-5.36.el6.x86_64 already installed and latest version Package bison-2.4.1-5.el6.x86_64 already installed and latest version Package crash-6.1.0-1.el6.x86_64 already installed and latest version Package elfutils-devel-0.152-1.el6.x86_64 already installed and latest version Package elfutils-libelf-devel-0.152-1.el6.x86_64 already installed and latest version Package flex-2.5.35-8.el6.x86_64 already installed and latest version Package gcc-4.4.7-3.el6.x86_64 already installed and latest version Package glibc-devel-2.12-1.107.el6.x86_64 already installed and latest version Package glibc-devel-2.12-1.107.el6.i686 already installed and latest version Package kernel-devel-2.6.32-358.el6.x86_64 already installed and latest version No package libdwarf available. No package libdwarf-devel available. Package libgcc-4.4.7-3.el6.i686 already installed and latest version Package 1:make-3.81-20.el6.x86_64 already installed and latest version Package 4:perl-5.10.1-129.el6.x86_64 already installed and latest version Package zlib-devel-1.2.3-29.el6.x86_64 already installed and latest version Nothing to do [root@mscserver tools]# ./check_dep.pl [root@mscserver tools]# sh get-deps-arch.sh get-deps-arch.sh: line 2: pacman: command not found

I dont know what dependecies file I have to check for Cent OS is libdwarf and libdwar-devel available on cent os 6

Thanks in advance Regards

On Wed, May 6, 2015 at 9:27 PM, dtrace4linux notifications@github.com wrote:

Am confused what your OS actually is. Is that old centos or redhat?

What is the contents of your dtrace/build directory? In there is a port.h created by the mkport.pl script. You have an error at the top of your output but that might be acceptable if "old_rsp" can be found via legacy methods.

i am curious why tools/bug.sh gave no output

On 6 May 2015 at 16:45, farhanshariff2013 notifications@github.com wrote:

[root@mscserver dtrace-20150306]# make all BUILD_DIR=build-2.6.32-358.el6.x86_64 tools/build.pl build-2.6.32-358.el6.x86_64 uname -m gcc -o build-2.6.32-358.el6.x86_64/kcore tools/kcore.c tools/check_dep.pl tools/mkport.pl insmod: can't read 'build/driver-kmem/dtrace_kmem.ko': No such file or directory ERROR: Module dtrace_kmem does not exist in /proc/modules Failed to find offset old_rsp= cannot find old_rsp tools/libgcc.pl /usr/lib/gcc/x86_64-redhat-linux/4.4.7/32 tools/mksyscall.pl Processing (32):

/lib/modules/2.6.32-358.el6.x86_64/build/arch/x86/include/asm/unistd_32.h Creating: build-2.6.32-358.el6.x86_64/driver/syscalls-x86.tbl - 340 entries Processing (64):

/lib/modules/2.6.32-358.el6.x86_64/build/arch/x86/include/asm/unistd_64.h Creating: build-2.6.32-358.el6.x86_64/driver/syscalls-x86-64.tbl - 312 entries make all0 cd tests ; make --no-print-directory case uname -m in \ x86_64) \ cc -m64 -g -o ../build-2.6.32-358.el6.x86_64/sys64 syscalls.c ; \ cc -m32 -g -o ../build-2.6.32-358.el6.x86_64/sys32 syscalls.c || true ; \ ;; \ i686) \ cc -m32 -g -o ../build-2.6.32-358.el6.x86_64/sys32 syscalls.c ; \ ;; \ arm

*) \ cc -g -o ../build-2.6.32-358.el6.x86_64/sys32 syscalls.c ; \ ;; \

esac cd libctf ; make --no-print-directory gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c -o ctf_lib.o ctf_lib.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_lib.o ar: creating ../build-2.6.32-358.el6.x86_64/libctf.a a - ctf_lib.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c -o ctf_subr.o ctf_subr.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_subr.o a - ctf_subr.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_create.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_create.o a - ctf_create.o rm -f ctf_create.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_error.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_error.o a - ctf_error.o rm -f ctf_error.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_hash.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_hash.o a - ctf_hash.o rm -f ctf_hash.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_labels.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_labels.o a - ctf_labels.o rm -f ctf_labels.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_lookup.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_lookup.o a - ctf_lookup.o rm -f ctf_lookup.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_open.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_open.o a - ctf_open.o rm -f ctf_open.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_types.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_types.o a - ctf_types.o rm -f ctf_types.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c uncompress.c uncompress.c: In function 'ctf_uncompress': uncompress.c:26: warning: incompatible implicit declaration of built-in function 'memset' ar rv ../build-2.6.32-358.el6.x86_64/libctf.a uncompress.o a - uncompress.o rm -f uncompress.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_util.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_util.o a - ctf_util.o rm -f ctf_util.o rm ctf_subr.o ctf_lib.o cd libdtrace ; make --no-print-directory gcc -g -I. -I../../common/ctf -I../uts/common -I../linux -I../libproc/common -I../libctf/ -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I../build-2.6.32-358.el6.x86_64 -Ii386 -I../driver -c ../driver/dis_tables.c ar rv ../build-2.6.32-358.el6.x86_64/libdtrace.a

dis_tables.o ar: creating ../build-2.6.32-358.el6.x86_64/libdtrace.a a

dis_tables.o rm -f dis_tables.o ../tools/yacc.pl http://yacc.pl -d dt_grammar.y /usr/bin/bison -d dt_grammar.y mv y.tab.h ../build-2.6.32-358.el6.x86_64/dt_grammar.h mv y.tab.c dt_grammar.c gcc -g -DYYDEBUG=1 -DYYERROR_VERBOSE -I. -I../../common/ctf -I../uts/common -I../linux -I../libproc/common -I../libctf/ -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I../build-2.6.32-358.el6.x86_64 -c dt_grammar.c dt_grammar.y:29:1: warning: "YYERROR_VERBOSE" redefined : warning: this is the location of the previous definition dt_grammar.y:30:18: error: port.h: No such file or directory dt_grammar.y: In function 'yyparse': dt_grammar.y:613: warning: assignment from incompatible pointer type dt_grammar.y:614: warning: assignment from incompatible pointer type dt_grammar.y:615: warning: assignment from incompatible pointer type dt_grammar.y:616: warning: assignment from incompatible pointer type dt_grammar.y:617: warning: assignment from incompatible pointer type dt_grammar.y:618: warning: assignment from incompatible pointer type make[2]: * [../build-2.6.32-358.el6.x86_64/dt_grammar.h] Error 1 make[1]: *\ [do_cmds] Error 2 tools/bug.sh make: * [all] Error 1

I am getting this error how to solve this

— Reply to this email directly or view it on GitHub < https://github.com/dtrace4linux/linux/issues/104#issuecomment-99518750 .

— Reply to this email directly or view it on GitHub <https://github.com/dtrace4linux/linux/issues/104#issuecomment-99580646 .

Farhan Shariff ESIGELEC Rouen, France Mob : +31 619084549

— Reply to this email directly or view it on GitHub https://github.com/dtrace4linux/linux/issues/104#issuecomment-99757426.

farhanshariff2013 commented 9 years ago

Hi ,

Please find the attached logfile

Best Regards

On Fri, May 8, 2015 at 10:00 PM, dtrace4linux notifications@github.com wrote:

Confused by this output - but never mind - thanks for running that. Can you do

$ strace -f -o logfile make all

and send me the logfile. I think something is going wrong up front which leads to the build/ dir not having a generated port.h file.

thanks

On 7 May 2015 at 08:44, farhanshariff2013 notifications@github.com wrote:

[root@mscserver msc]# cat /etc/issue CentOS release 6.4 (Final) Kernel \r on an \m

[root@mscserver msc]# uname -r 2.6.32-358.el6.x86_64

[root@mscserver build]# ls config.sh driver dt_grammar.h kcore libctf.a libdtrace.a libgcc.a notifiers.h sys32 sys64

[root@mscserver tools]# ./get-deps.pl sudo: apt-get: command not found sudo: apt-get: command not found sudo: apt-get: command not found sudo: apt-get: command not found sudo: apt-get: command not found [root@mscserver tools]# sh get-deps-fedora.sh Loaded plugins: fastestmirror, priorities, security Loading mirror speeds from cached hostfile

iso-i386: iso-x86_64: 12 packages excluded due to repository priority protections Setting up Install Process Package binutils-devel-2.20.51.0.2-5.36.el6.x86_64 already installed and latest version Package bison-2.4.1-5.el6.x86_64 already installed and latest version Package crash-6.1.0-1.el6.x86_64 already installed and latest version Package elfutils-devel-0.152-1.el6.x86_64 already installed and latest version Package elfutils-libelf-devel-0.152-1.el6.x86_64 already installed and latest version Package flex-2.5.35-8.el6.x86_64 already installed and latest version Package gcc-4.4.7-3.el6.x86_64 already installed and latest version Package glibc-devel-2.12-1.107.el6.x86_64 already installed and latest version Package glibc-devel-2.12-1.107.el6.i686 already installed and latest version Package kernel-devel-2.6.32-358.el6.x86_64 already installed and latest version No package libdwarf available. No package libdwarf-devel available. Package libgcc-4.4.7-3.el6.i686 already installed and latest version Package 1:make-3.81-20.el6.x86_64 already installed and latest version Package 4:perl-5.10.1-129.el6.x86_64 already installed and latest version Package zlib-devel-1.2.3-29.el6.x86_64 already installed and latest version Nothing to do [root@mscserver tools]# ./check_dep.pl [root@mscserver tools]# sh get-deps-arch.sh get-deps-arch.sh: line 2: pacman: command not found

I dont know what dependecies file I have to check for Cent OS is libdwarf and libdwar-devel available on cent os 6

Thanks in advance Regards

On Wed, May 6, 2015 at 9:27 PM, dtrace4linux notifications@github.com wrote:

Am confused what your OS actually is. Is that old centos or redhat?

What is the contents of your dtrace/build directory? In there is a port.h created by the mkport.pl script. You have an error at the top of your output but that might be acceptable if "old_rsp" can be found via legacy methods.

i am curious why tools/bug.sh gave no output

On 6 May 2015 at 16:45, farhanshariff2013 notifications@github.com wrote:

[root@mscserver dtrace-20150306]# make all BUILD_DIR=build-2.6.32-358.el6.x86_64 tools/build.pl build-2.6.32-358.el6.x86_64 uname -m gcc -o build-2.6.32-358.el6.x86_64/kcore tools/kcore.c tools/check_dep.pl tools/mkport.pl insmod: can't read 'build/driver-kmem/dtrace_kmem.ko': No such file or directory ERROR: Module dtrace_kmem does not exist in /proc/modules Failed to find offset old_rsp= cannot find old_rsp tools/libgcc.pl /usr/lib/gcc/x86_64-redhat-linux/4.4.7/32 tools/mksyscall.pl Processing (32):

/lib/modules/2.6.32-358.el6.x86_64/build/arch/x86/include/asm/unistd_32.h Creating: build-2.6.32-358.el6.x86_64/driver/syscalls-x86.tbl - 340 entries Processing (64):

/lib/modules/2.6.32-358.el6.x86_64/build/arch/x86/include/asm/unistd_64.h Creating: build-2.6.32-358.el6.x86_64/driver/syscalls-x86-64.tbl - 312 entries make all0 cd tests ; make --no-print-directory case uname -m in \ x86_64) \ cc -m64 -g -o ../build-2.6.32-358.el6.x86_64/sys64 syscalls.c ; \ cc -m32 -g -o ../build-2.6.32-358.el6.x86_64/sys32 syscalls.c || true ; \ ;; \ i686) \ cc -m32 -g -o ../build-2.6.32-358.el6.x86_64/sys32 syscalls.c ; \ ;; \ arm

*) \ cc -g -o ../build-2.6.32-358.el6.x86_64/sys32 syscalls.c ; \ ;; \

esac cd libctf ; make --no-print-directory gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c -o ctf_lib.o ctf_lib.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_lib.o ar: creating ../build-2.6.32-358.el6.x86_64/libctf.a a - ctf_lib.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c -o ctf_subr.o ctf_subr.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_subr.o a - ctf_subr.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_create.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_create.o a - ctf_create.o rm -f ctf_create.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_error.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_error.o a - ctf_error.o rm -f ctf_error.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_hash.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_hash.o a - ctf_hash.o rm -f ctf_hash.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_labels.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_labels.o a - ctf_labels.o rm -f ctf_labels.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_lookup.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_lookup.o a - ctf_lookup.o rm -f ctf_lookup.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_open.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_open.o a - ctf_open.o rm -f ctf_open.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_types.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_types.o a - ctf_types.o rm -f ctf_types.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c uncompress.c uncompress.c: In function 'ctf_uncompress': uncompress.c:26: warning: incompatible implicit declaration of built-in function 'memset' ar rv ../build-2.6.32-358.el6.x86_64/libctf.a uncompress.o a - uncompress.o rm -f uncompress.o gcc -g -I../common -I../common/ctf -I../uts/common/ -I../common/ctf -I. -I../linux -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -c ../common/ctf/ctf_util.c ar rv ../build-2.6.32-358.el6.x86_64/libctf.a ctf_util.o a - ctf_util.o rm -f ctf_util.o rm ctf_subr.o ctf_lib.o cd libdtrace ; make --no-print-directory gcc -g -I. -I../../common/ctf -I../uts/common -I../linux -I../libproc/common -I../libctf/ -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I../build-2.6.32-358.el6.x86_64 -Ii386 -I../driver -c ../driver/dis_tables.c ar rv ../build-2.6.32-358.el6.x86_64/libdtrace.a dis_tables.o ar: creating ../build-2.6.32-358.el6.x86_64/libdtrace.a

a

dis_tables.o rm -f dis_tables.o ../tools/yacc.pl http://yacc.pl -d dt_grammar.y /usr/bin/bison -d dt_grammar.y mv y.tab.h ../build-2.6.32-358.el6.x86_64/dt_grammar.h mv y.tab.c dt_grammar.c gcc -g -DYYDEBUG=1 -DYYERROR_VERBOSE -I. -I../../common/ctf -I../uts/common -I../linux -I../libproc/common -I../libctf/ -DCTF_OLD_VERSIONS -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 -I../build-2.6.32-358.el6.x86_64 -c dt_grammar.c dt_grammar.y:29:1: warning: "YYERROR_VERBOSE" redefined : warning: this is the location of the previous definition dt_grammar.y:30:18: error: port.h: No such file or directory dt_grammar.y: In function 'yyparse': dt_grammar.y:613: warning: assignment from incompatible pointer type dt_grammar.y:614: warning: assignment from incompatible pointer type dt_grammar.y:615: warning: assignment from incompatible pointer type dt_grammar.y:616: warning: assignment from incompatible pointer type dt_grammar.y:617: warning: assignment from incompatible pointer type dt_grammar.y:618: warning: assignment from incompatible pointer type make[2]: * [../build-2.6.32-358.el6.x86_64/dt_grammar.h] Error 1 make[1]: *\ [do_cmds] Error 2 tools/bug.sh make: * [all] Error 1

I am getting this error how to solve this

— Reply to this email directly or view it on GitHub < https://github.com/dtrace4linux/linux/issues/104#issuecomment-99518750 .

— Reply to this email directly or view it on GitHub < https://github.com/dtrace4linux/linux/issues/104#issuecomment-99580646 .

Farhan Shariff ESIGELEC Rouen, France Mob : +31 619084549

— Reply to this email directly or view it on GitHub <https://github.com/dtrace4linux/linux/issues/104#issuecomment-99757426 .

— Reply to this email directly or view it on GitHub https://github.com/dtrace4linux/linux/issues/104#issuecomment-100341764.

Farhan Shariff ESIGELEC Rouen, France Mob : +31 619084549

farhanshariff2013 commented 9 years ago

Logfile: http://www.filedropper.com/logfile_2

dtrace4linux commented 9 years ago

Thanks. Looks like you have a broken kernel, and when mkport.pl aborts, it doesnt make it obvious that this happened. Your kernel is broken because /proc/kcore is unusable - and we probe the kernel to find something. The old_rsp item is the issue - we need that to find kernel thread data.

I think there is a catch-22 bug in the build for this kernel - the initial build requires a transient driver due to the broken kernel, but that is happening after the point we need it.

can you do

$ make -i all let it complete/fail then $ make all

and see if that cures the issue?

On 11 May 2015 at 21:36, farhanshariff2013 notifications@github.com wrote:

Logfile: http://www.filedropper.com/logfile_2

— Reply to this email directly or view it on GitHub https://github.com/dtrace4linux/linux/issues/104#issuecomment-101040363.

farhanshariff2013 commented 9 years ago

Yeah it is still there it does not fix it.

dtrace4linux commented 9 years ago

Did u grab the latest release? On 13 May 2015 07:32, "farhanshariff2013" notifications@github.com wrote:

Yeah it is still there it does not fix it.

— Reply to this email directly or view it on GitHub https://github.com/dtrace4linux/linux/issues/104#issuecomment-101530759.

farhanshariff2013 commented 9 years ago

oh sorry I will check with the latest release :) Thanks

farhanshariff2013 commented 9 years ago

hi,

please check this build it says The build is complete, but build/ctfconvert is not available. make all http://www.filedropper.com/output

dtrace4linux commented 9 years ago

heres what it says in your log

=== You need /usr/lib/libdwarf.a or /usr/lib64/libdwarf.a

=== (libdw is not yet supported) to build.

=== apt-get install binutils-dev

=== apt-get install libdw-dev

=== Without these, we will not build ctfconvert (needed for

=== SDT structure definitions).

On 13 May 2015 at 15:05, farhanshariff2013 notifications@github.com wrote:

hi,

please check this build it says The build is complete, but build/ctfconvert is not available. make all http://www.filedropper.com/output

— Reply to this email directly or view it on GitHub https://github.com/dtrace4linux/linux/issues/104#issuecomment-101674339.

paulvoncc commented 8 years ago

i met this problem in centos-6.7(2.6.32-573.el6.x86_64) Need i have a dtrace-kmem.ko module? or i have some dependent packages that dtrace need?

btw: how can i choose the dtrace-kmem option in the linux kernel when i compile the linux kernel? thanks

[root@fcc-dev linux-master]# make all BUILD_DIR=build-2.6.32-573.el6.x86_64 \ tools/mkdriver.pl driver-kmem ; \ tools/build.pl build-2.6.32-573.el6.x86_64 uname -m Executing: /home/fcc/setupfiles/linux-master/tools/make-me ERROR: /lib/modules/2.6.32-573.el6.x86_64/build does not exist. gcc -o build-2.6.32-573.el6.x86_64/kcore tools/kcore.c tools/check_dep.pl tools/mkport.pl insmod: can't read 'build/driver-kmem/dtrace_kmem.ko': No such file or directory ERROR: Module dtrace_kmem does not exist in /proc/modules Failed to find offset Use of uninitialized value $old_rsp in concatenation (.) or string at tools/mkport.pl line 144. old_rsp= We cannot find old_rsp or per_cpu__old_rsp in your kernel. Additionally, it looks like /proc/kcore is broken on your kernel, meaning we cannot poke to find this variable, which helps identify kernel thread offsets. FATAL ERROR: cannot find old_rsp FATAL ERROR: build.pl aborting make: *\ [all] Error 25

dtrace4linux commented 8 years ago

dtrace-kmem is a mini prerequisite driver to handle the fact that some kernels have a broken /proc/kmem o their system. One of the things we need is a kernel value for "old_rsp" - this got renamed in later kernels as rsp_scratch. You can send me a copy of /proc/kallsyms to look at to see why we arent matching this. Its always likely I am breaking support for older kernels, whilst trying to support newer kernels. I wish I had a better way of regression testing this, but its not really sustainable to keep/acquire every version of every linux distro out there.

apologies

On 21 December 2015 at 05:39, paulvon notifications@github.com wrote:

i met this problem in centos-6.7(2.6.32-573.el6.x86_64) Need i have a dtrace-kmem.ko module? or i have some dependent packages that dtrace need?

btw: how can i choose the dtrace-kmem option in the linux kernel when i compile the linux kernel? thanks

[root@fcc-dev linux-master]# make all BUILD_DIR=build-2.6.32-573.el6.x86_64 \ tools/mkdriver.pl driver-kmem ; \ tools/build.pl build-2.6.32-573.el6.x86_64 uname -m Executing: /home/fcc/setupfiles/linux-master/tools/make-me ERROR: /lib/modules/2.6.32-573.el6.x86_64/build does not exist. gcc -o build-2.6.32-573.el6.x86_64/kcore tools/kcore.c tools/check_dep.pl tools/mkport.pl insmod: can't read 'build/driver-kmem/dtrace_kmem.ko': No such file or directory ERROR: Module dtrace_kmem does not exist in /proc/modules Failed to find offset Use of uninitialized value $old_rsp in concatenation (.) or string at tools/mkport.pl line 144. old_rsp= We cannot find old_rsp or per_cpu__old_rsp in your kernel. Additionally, it looks like /proc/kcore is broken on your kernel, meaning we cannot poke to find this variable, which helps identify kernel thread offsets. FATAL ERROR: cannot find old_rsp FATAL ERROR: build.pl aborting make: *\ [all] Error 25

— Reply to this email directly or view it on GitHub https://github.com/dtrace4linux/linux/issues/104#issuecomment-166209375.

paulvoncc commented 8 years ago

hello: Thanks for your reply. After I commit this error, i realized that the package had included a mini prerequisite driver and i tried to compiled again. The result of the 'make all': +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ tools/mkdriver.pl driver-2 all Executing: /home/fcc/setupfiles/linux-master/tools/make-me make -C /lib/modules/2.6.32-573.el6.x86_64/build M=/home/fcc/setupfiles/linux-master/build-2.6.32-573.el6.x86_64/driver-2 Building modules, stage 2. MODPOST 1 modules tools/mkctf.sh build/ctfconvert not available - so not building the linux.ctf file NOTE: The build is complete, but build/ctfconvert is not available. This means you will get run time errors from the io.d and sched.d files due to undefined kernel structure definitions. Simply delete or rename these files until a fix can be put in place to handle older distros which do not have the required libdwarf dependencies.

  (Typical error is references to undefined struct definitions such
  as dtrace_cpu_t).

sync +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

I ignored it, and did 'make install , make load' without any error or warning: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [root@fcc-dev linux-master]# make load tools/load.pl 18:49:21 Syncing... 18:49:21 Loading: build-2.6.32-573.el6.x86_64/driver/dtracedrv.ko 18:49:23 Preparing symbols... 18:49:23 Probes available: 298567 18:49:25 Time: 4s +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

above all, i supposed that i had done, when i 『dtrace -l | grep 'syscall.*read'』 it made well. But when i 'dtrace -n pid27013:::entry' , it occured segment fault: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [root@fcc-dev linux-master]# dtrace -n pid27013:::entry rd_loadobj_iter rd_loadobj_iter: /lib64/libnss_files-2.12.so 0x7f0365df9000 rd_loadobj_iter: /lib64/libfreebl3.so 0x7f036621d000 rd_loadobj_iter: /lib64/libc-2.12.so 0x7f0366420000 rd_loadobj_iter: /lib64/libdl-2.12.so 0x7f0367290000 rd_loadobj_iter: /lib64/libm-2.12.so 0x7f0367494000 rd_loadobj_iter: /lib64/libcrypt-2.12.so 0x7f0367987000 rd_loadobj_iter: /lib64/libpthread-2.12.so 0x7f0367bbe000 rd_loadobj_iter: /lib64/ld-2.12.so 0x7f0367ddb000 Segmentation fault +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ pid27013 was a nginx worker processID. I have sent an email which contain /proc/kallsyms content to your email address(paul.d.fox@gmail.com) , thanks.

paulvon

dtrace4linux commented 8 years ago

Thanks for the reply - the pid provider obviously doesnt work - it did at some point. Will need to investigate over Xmas.

On 22 December 2015 at 02:08, paulvon notifications@github.com wrote:

hello: Thanks for your reply. After I commit this error, i realized that the package had included a mini prerequisite driver and i tried to compiled again. The result of the 'make all':

tools/mkdriver.pl driver-2 all Executing: /home/fcc/setupfiles/linux-master/tools/make-me make -C /lib/modules/2.6.32-573.el6.x86_64/build M=/home/fcc/setupfiles/linux-master/build-2.6.32-573.el6.x86_64/driver-2 Building modules, stage 2. MODPOST 1 modules tools/mkctf.sh build/ctfconvert not available - so not building the linux.ctf file NOTE: The build is complete, but build/ctfconvert is not available. This means you will get run time errors from the io.d and sched.d files due to undefined kernel structure definitions. Simply delete or rename these files until a fix can be put in place to handle older distros which do not have the required libdwarf dependencies.

(Typical error is references to undefined struct definitions such as dtrace_cpu_t).

sync I ignored it, and did 'make install , make load' without any error or warning:

[root@fcc-dev linux-master]# make load tools/load.pl 18:49:21 Syncing... 18:49:21 Loading: build-2.6.32-573.el6.x86_64/driver/dtracedrv.ko 18:49:23 Preparing symbols... 18:49:23 Probes available: 298567 18:49:25 Time: 4s

above all, i supposed that i had done, when i 『dtrace -l | grep 'syscall.*read'』 it made well. But when i 'dtrace -n pid27013:::entry' , it occured segment fault:

[root@fcc-dev linux-master]# dtrace -n pid27013:::entry rd_loadobj_iter rd_loadobj_iter: /lib64/libnss_files-2.12.so 0x7f0365df9000 rd_loadobj_iter: /lib64/libfreebl3.so 0x7f036621d000 rd_loadobj_iter: /lib64/libc-2.12.so 0x7f0366420000 rd_loadobj_iter: /lib64/libdl-2.12.so 0x7f0367290000 rd_loadobj_iter: /lib64/libm-2.12.so 0x7f0367494000 rd_loadobj_iter: /lib64/libcrypt-2.12.so 0x7f0367987000 rd_loadobj_iter: /lib64/libpthread-2.12.so 0x7f0367bbe000 rd_loadobj_iter: /lib64/ld-2.12.so 0x7f0367ddb000 Segmentation fault

pid27013 was a nginx worker processID. I have sent an email which contain /proc/kallsyms content to your email address(paul.d.fox@gmail.com) , thanks.

paulvon

— Reply to this email directly or view it on GitHub https://github.com/dtrace4linux/linux/issues/104#issuecomment-166479387.

paulvoncc commented 8 years ago

sorry i have to assure something: do you mean that i have already run a pid provider that caused segment fault? or the pid provider of the dtrace package have its own problem?

paulvon

jinny987 commented 8 years ago

Using the latest 4.3.3 kernel, got the same "We cannot find old_rsp or per_cpu__old_rsp in your kernel." kallsyms is attached.

Thanks kallsyms.txt