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

Build errors on Linux 4.7 #125

Open
avikivity opened this issue Oct 5, 2016 · 2 comments
Open

Build errors on Linux 4.7 #125

avikivity opened this issue Oct 5, 2016 · 2 comments

Comments

@avikivity
Copy link

gcc 6.2.1.

  CC [M]  /home/avi/dtrace/build-4.7.3-100.fc23.x86_64/driver/dtrace_asm.o
/home/avi/dtrace/build-4.7.3-100.fc23.x86_64/driver/dtrace_asm.c: In function 'dtrace_copystr':
/home/avi/dtrace/build-4.7.3-100.fc23.x86_64/driver/dtrace_asm.c:197:2: warning: ignoring return value of 'copy_from_user', declared with attribute warn_unused_result [-Wunused-result]
  (void) copy_from_user((void *) kaddr, (void *) uaddr, size);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/avi/dtrace/build-4.7.3-100.fc23.x86_64/driver/dtrace_asm.c: In function 'dtrace_getfp':
/home/avi/dtrace/build-4.7.3-100.fc23.x86_64/driver/dtrace_asm.c:60:18: warning: calling '__builtin_frame_address' with a nonzero argument is unsafe [-Wframe-address]
  return (greg_t) __builtin_frame_address(1);
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/avi/dtrace/build-4.7.3-100.fc23.x86_64/driver/dtrace_asm.o: warning: objtool: asm_placeholder()+0x9: return without frame pointer restore
/home/avi/dtrace/build-4.7.3-100.fc23.x86_64/driver/dtrace_asm.o: warning: objtool: asm_placeholder()+0x9: frame pointer state mismatch
  CC [M]  /home/avi/dtrace/build-4.7.3-100.fc23.x86_64/driver/dtrace_isa.o
distcc[9180] ERROR: compile /home/avi/dtrace/build-4.7.3-100.fc23.x86_64/driver/dtrace_isa.c on localhost failed
/home/avi/dtrace/build-4.7.3-100.fc23.x86_64/driver/dtrace_isa.c:161:16: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  .walk_stack = walk_stack,
                ^~~~~~~~~~
/home/avi/dtrace/build-4.7.3-100.fc23.x86_64/driver/dtrace_isa.c:161:16: note: (near initialization for 'print_trace_ops.walk_stack')
/home/avi/dtrace/build-4.7.3-100.fc23.x86_64/driver/dtrace_isa.c:167:13: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
  .address = print_trace_address,
             ^~~~~~~~~~~~~~~~~~~
/home/avi/dtrace/build-4.7.3-100.fc23.x86_64/driver/dtrace_isa.c:167:13: note: (near initialization for 'print_trace_ops.address')
cc1: some warnings being treated as errors
scripts/Makefile.build:289: recipe for target '/home/avi/dtrace/build-4.7.3-100.fc23.x86_64/driver/dtrace_isa.o' failed

@fxlv
Copy link

fxlv commented Nov 27, 2016

Same problem.
Ubuntu 16.10, gcc version 6.2.0

@adolgert
Copy link

Kernel 4.8.0-37, gcc 6.2.0, Ubuntu 16.10.
stacktrace.h has changed, so print_trace_address in dtrace_isa.c returns an int.
Also indtrace_isa.c, the first argument to walk_stack is a task_struct*, so you can use task_thread_info(task) to get the thread_info from it.
Some of the definitions in vminfo.c have changed, too, and the updated ones are in vm_event_item.h.
HTH.

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

No branches or pull requests

3 participants