top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

make[2]: *** [arch/x86/kernel/ptrace.o] Error 1 - can anyone resolve this issue during kernel compilation

+2 votes
1,553 views
make[2]: *** [arch/x86/kernel/ptrace.o] Error 1 - can anyone resolve this issue during kernel compilation
posted Jan 13, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

enable CONFIG_IA32_EMULATION in .config. The is_compat_task function is declared in asm/compat.h, which is included only if CONFIG_IA32_EMULATION is enabled.

Hope it would be useful.

answer Jan 13, 2015 by Salil Agrawal
CONFIG_IA32_EMULATION is not found in the .config file.Shall i edit the file manually ?
CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  CC      arch/x86/kernel/ptrace.o
arch/x86/kernel/ptrace.c:1366:17: error: conflicting types for ‘syscall_trace_enter’
In file included from /usr/src/linux-2.6.39.4/arch/x86/include/asm/vm86.h:130:0,
                 from /usr/src/linux-2.6.39.4/arch/x86/include/asm/processor.h:10,
                 from /usr/src/linux-2.6.39.4/arch/x86/include/asm/thread_info.h:22,
                 from include/linux/thread_info.h:53,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:50,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/timex.h:56,
                 from include/linux/sched.h:57,
                 from arch/x86/kernel/ptrace.c:8:
/usr/src/linux-2.6.39.4/arch/x86/include/asm/ptrace.h:146:13: note: previous declaration of ‘syscall_trace_enter’ was here
arch/x86/kernel/ptrace.c:1411:17: error: conflicting types for ‘syscall_trace_leave’
In file included from /usr/src/linux-2.6.39.4/arch/x86/include/asm/vm86.h:130:0,
                 from /usr/src/linux-2.6.39.4/arch/x86/include/asm/processor.h:10,
                 from /usr/src/linux-2.6.39.4/arch/x86/include/asm/thread_info.h:22,
                 from include/linux/thread_info.h:53,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:50,
                 from include/linux/seqlock.h:29,
                 from include/linux/time.h:8,
                 from include/linux/timex.h:56,
                 from include/linux/sched.h:57,
                 from arch/x86/kernel/ptrace.c:8:
/usr/src/linux-2.6.39.4/arch/x86/include/asm/ptrace.h:147:13: note: previous declaration of ‘syscall_trace_leave’ was here
make[2]: *** [arch/x86/kernel/ptrace.o] Error 1
make[1]: *** [arch/x86/kernel] Error 2
make: *** [arch/x86] Error 2
I don't have access to the system so can only make guess, just try to enable CONFIG_IA32_EMULATION explicitly and see the effect.
Check this thread
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=709647

There seems to be a bug 2.6.39, please go through the complete chain.
Similar Questions
+3 votes

During the bench mark Drive test with other operator, we observe that in my network Rank 2 distribution is only 30% while in other operator is 60%.

can you help me what can be the possible causes for this?

+2 votes

Is there any option available to include header file while compiling?

For Ex:
i don't want to write "#include<stdio.h>" in my .c file. but while compiling i want to include it.
(like, $: cc 1.c -option stdio.h)
can it be done?

+2 votes

FATAL: java.io.IOException: Unexpected termination of the channel
hudson.remoting.RequestAbortedException: java.io.IOException: Unexpected termination of the channel

+1 vote

I have JIO LTE hotspot but it is not allowed to make call how and what should i change in LTE to make this work

...