Skip to content

Build errors on Linux 4.7 #125

Open
Open

Description

@avikivity

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

Activity

  1. fxlv commented on Nov 27, 2016

    @fxlv

    Same problem.
    Ubuntu 16.10, gcc version 6.2.0

  2. adolgert commented on Feb 10, 2017

    @adolgert

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions