Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No rule to make target ...driver/ctf_hash.o #7

Closed
msabramo opened this issue Feb 29, 2012 · 6 comments
Closed

No rule to make target ...driver/ctf_hash.o #7

msabramo opened this issue Feb 29, 2012 · 6 comments

Comments

@msabramo
Copy link
Contributor

make -C /lib/modules/2.6.32-38-generic/build M=/home/marca/src/dtrace4linux/linux/build-2.6.32-38-generic/driver
  LD      /home/marca/src/dtrace4linux/linux/build-2.6.32-38-generic/driver/built-in.o
make[3]: *** No rule to make target `/home/marca/src/dtrace4linux/linux/build-2.6.32-38-generic/driver/ctf_hash.o', needed by `/home/marca/src/dtrace4linux/linux/build-2.6.32-38-generic/driver/dtracedrv.o'.  Stop.
make[2]: *** [_module_/home/marca/src/dtrace4linux/linux/build-2.6.32-38-generic/driver] Error 2
make[1]: *** [kernel] Error 2
tools/bug.sh
======================
== Sorry - but dtrace failed to compile on your system.
== Please forward the following file to:
==
== file: /tmp/dtrace-bug.25778
== mail: dtrace@crisp.demon.co.uk
==
== 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
== ======================
(generating a make run - this may take a few moments...)
@dtrace4linux
Copy link
Owner

this shouldnt be necessary. first thing we do is symlink the sources so we can build in the build/driver directory. (I did this because there was an issue I couldnt easily resolve in the Linux Makefile structure).

@msabramo
Copy link
Contributor Author

Hmm, something must not be working as expected then.

marca@ubuntu:~/src/dtrace4linux$ git clone https://github.com/dtrace4linux/linux.git dtrace4linux-test && cd dtrace4linux-test && make all
...

symlink ../../driver/dis_tables.h build-2.6.32-38-generic/driver/dis_tables.h
symlink ../../driver/dtrace_linux.h build-2.6.32-38-generic/driver/dtrace_linux.h
symlink ../../driver/dtrace_proto.h build-2.6.32-38-generic/driver/dtrace_proto.h
symlink ../../driver/intr_x86-32.S build-2.6.32-38-generic/driver/intr_x86-32.S
symlink ../../driver/intr_x86-64.S build-2.6.32-38-generic/driver/intr_x86-64.S
Executing: /home/marca/src/dtrace4linux/dtrace4linux-test/tools/make-me
make -C /lib/modules/2.6.32-38-generic/build M=/home/marca/src/dtrace4linux/dtrace4linux-test/build-2.6.32-38-generic/driver
  LD      /home/marca/src/dtrace4linux/dtrace4linux-test/build-2.6.32-38-generic/driver/built-in.o
make[3]: *** No rule to make target `/home/marca/src/dtrace4linux/dtrace4linux-test/build-2.6.32-38-generic/driver/ctf_hash.o', needed by `/home/marca/src/dtrace4linux/dtrace4linux-test/build-2.6.32-38-generic/driver/dtracedrv.o'.  Stop.
make[2]: *** [_module_/home/marca/src/dtrace4linux/dtrace4linux-test/build-2.6.32-38-generic/driver] Error 2
make[1]: *** [kernel] Error 2
...

@msabramo
Copy link
Contributor Author

So I see that tools/mkdriver.pl symlinks a bunch of files in driver to $ENV{BUILD_DIR}/driver, but ctf_hash.c is in common/ctf/ctf_hash.c. libctf/makefile does this with it:

$(BINDIR)/libctf.a(ctf_hash.o): $(COMMON)/ctf_hash.c
        $(CC) $(CPPFLAGS) -c $<
        $(AR) rv $(BINDIR)/libctf.a ctf_hash.o
        rm -f ctf_hash.o

so there is no ctf_hash.o; only libctf.a and common/ctf/ctf_hash.c.

@dtrace4linux
Copy link
Owner

resolved by adding missing file to github

@mintberry
Copy link

issue open again, when make all

make[3]: *** No rule to make target /home/neon/Downloads/linux-master/build-3.2.0-37-generic-pae/driver/ctf_hash.o', needed by /home/neon/Downloads/linux-master/build-3.2.0-37-generic-pae/driver/dtracedrv.o'. Stop.'

maybe it's because the latest kernel?

@dtrace4linux
Copy link
Owner

Pae mode kernels likely wont compile...but the issue here is likely a
poluted compilation environment or env vars conglicting with the linux build
On Feb 1, 2013 4:34 AM, "Neo Qi" notifications@github.com wrote:

issue open again, when make all

make[3]: *** No rule to make target /home/neon/Downloads/linux-master/build-3.2.0-37-generic-pae/driver/ctf_hash.o',
needed by/home/neon/Downloads/linux-master/build-3.2.0-37-generic-pae/driver/dtracedrv.o'.
Stop.

maybe it's because the latest kernel?


Reply to this email directly or view it on GitHubhttps://github.com//issues/7#issuecomment-12980413.

azat added a commit to azat-archive/dtrace4linux that referenced this issue Aug 7, 2013
I see this is happens in gdb:

gdb bt:
 #0  taskq_dispatch2 (tq=0xffff88003712e600, func=0x0 <irq_stack_union>,
     arg=0x0 <irq_stack_union>, flags=0, delay=1)
     at /usr/src/dtrace4linux/build-3.11.0-rc4+/driver/taskq.c:263
 dtrace4linux#1  0xffffffffa0369433 in timeout (
     func=func@entry=0xffffffffa035c9d5 <fasttrap_pid_cleanup_cb>,
     arg=arg@entry=0x0 <irq_stack_union>, ticks=ticks@entry=1)
     at /usr/src/dtrace4linux/build-3.11.0-rc4+/driver/taskq.c:306
 dtrace4linux#2  0xffffffffa035c9c0 in fasttrap_pid_cleanup ()
     at /usr/src/dtrace4linux/build-3.11.0-rc4+/driver/fasttrap.c:505
 dtrace4linux#3  0xffffffffa035cdbf in fasttrap_provider_retire (pid=<optimized out>,
     name=0xffffffffa037eb8f "pid", name@entry=0x140ef <Address 0x140ef out of bounds>,
     mprov=mprov@entry=0) at /usr/src/dtrace4linux/build-3.11.0-rc4+/driver/fasttrap.c:1713
 dtrace4linux#4  0xffffffffa035ce08 in fasttrap_exec_exit (p=0xffff8800371d3b18)
     at /usr/src/dtrace4linux/build-3.11.0-rc4+/driver/fasttrap.c:596
 dtrace4linux#5  0xffffffffa0358c09 in proc_exit_notifier (n=<optimized out>, code=<optimized out>,
     ptr=<optimized out>)
     at /usr/src/dtrace4linux/build-3.11.0-rc4+/driver/dtrace_linux.c:2020
 dtrace4linux#6  0xffffffff8139b2d3 in notifier_call_chain (
     nl=nl@entry=0xffffffff81634da0 <task_exit_notifier+32>, val=val@entry=0,
     v=v@entry=0xffff88007b62b040, nr_to_call=nr_to_call@entry=-1,
     nr_calls=nr_calls@entry=0x0 <irq_stack_union>) at kernel/notifier.c:93
 dtrace4linux#7  0xffffffff8105824b in __blocking_notifier_call_chain (
     nh=nh@entry=0xffffffff81634d80 <task_exit_notifier>, val=val@entry=0,
     v=0xffff88007b62b040, nr_to_call=nr_to_call@entry=-1,
     nr_calls=nr_calls@entry=0x0 <irq_stack_union>) at kernel/notifier.c:314
 dtrace4linux#8  0xffffffff81058273 in blocking_notifier_call_chain (
     nh=nh@entry=0xffffffff81634d80 <task_exit_notifier>, val=val@entry=0,
     v=<optimized out>) at kernel/notifier.c:325
 dtrace4linux#9  0xffffffff810750f5 in profile_task_exit (task=<optimized out>) at kernel/profile.c:143
 dtrace4linux#10 0xffffffff8103a3cf in do_exit ()
 dtrace4linux#11 0xffffffff8103b87c in do_group_exit ()
 dtrace4linux#12 0xffffffff81047522 in get_signal_to_deliver ()
 dtrace4linux#13 0xffffffff81002176 in do_signal ()
 dtrace4linux#14 0xffffffff810025d3 in do_notify_resume ()
 dtrace4linux#15 <signal handler called>
 dtrace4linux#16 0x00007fed3818fff8 in ?? ()

 Refs dtrace4linux#61
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants