Hi,
I am compiling the linux kernel 2.6.32 with my custom config file as input. I am using gcc-4.9.2 on Debian-8.0.
I am getting following error. Can someone help me resolve this?
Thanks in advance. - build@bd:~/2.6.32/linux-2.6.32-358.el6$ make oldconfig
-
scripts/kconfig/conf -o arch/x86/Kconfig
-
#
-
# configuration written to .config
-
#
-
build@bd:~/2.6.32/linux-2.6.32-358.el6$ make oldconfig bzImage
-
scripts/kconfig/conf -o arch/x86/Kconfig
-
#
-
# configuration written to .config
-
#
-
scripts/kconfig/conf -s arch/x86/Kconfig
-
CHK include/linux/version.h
-
CHK include/linux/utsrelease.h
-
SYMLINK include/asm -> include/asm-x86
-
CC kernel/bounds.s
-
GEN include/linux/bounds.h
-
CC arch/x86/kernel/asm-offsets.s
-
GEN include/asm/asm-offsets.h
-
CALL scripts/checksyscalls.sh
-
CC scripts/mod/empty.o
-
MKELF scripts/mod/elfconfig.h
-
HOSTCC scripts/mod/file2alias.o
-
HOSTCC scripts/mod/modpost.o
-
HOSTCC scripts/mod/sumversion.o
-
HOSTLD scripts/mod/modpost
-
CC init/main.o
-
CHK include/linux/compile.h
-
CC init/version.o
-
CC init/do_mounts.o
-
CC init/do_mounts_rd.o
-
CC init/do_mounts_initrd.o
-
LD init/mounts.o
-
CC init/initramfs.o
-
CC init/calibrate.o
-
LD init/built-in.o
-
GEN usr/initramfs_data.cpio
-
AS usr/initramfs_data.o
-
LD usr/built-in.o
-
CC arch/x86/kernel/process_32.o
-
CC arch/x86/kernel/signal.o
-
AS arch/x86/kernel/entry_32.o
-
CC arch/x86/kernel/traps.o
-
CC arch/x86/kernel/irq.o
-
CC arch/x86/kernel/irq_32.o
-
CC arch/x86/kernel/dumpstack_32.o
-
CC arch/x86/kernel/time.o
-
CC arch/x86/kernel/ioport.o
-
CC arch/x86/kernel/ldt.o
-
CC arch/x86/kernel/dumpstack.o
-
CC arch/x86/kernel/setup.o
-
CC arch/x86/kernel/x86_init.o
-
CC arch/x86/kernel/i8259.o
-
CC arch/x86/kernel/irqinit.o
-
CC arch/x86/kernel/irq_work.o
-
CC arch/x86/kernel/probe_roms.o
-
CC arch/x86/kernel/sys_i386_32.o
-
CC arch/x86/kernel/i386_ksyms_32.o
-
CC arch/x86/kernel/bootflag.o
-
CC arch/x86/kernel/e820.o
-
CC arch/x86/kernel/pci-dma.o
-
CC arch/x86/kernel/quirks.o
-
CC arch/x86/kernel/i8237.o
-
CC arch/x86/kernel/topology.o
-
CC arch/x86/kernel/kdebugfs.o
-
CC arch/x86/kernel/alternative.o
-
CC arch/x86/kernel/i8253.o
-
CC arch/x86/kernel/pci-nommu.o
-
CC arch/x86/kernel/tsc.o
-
CC arch/x86/kernel/io_delay.o
-
CC arch/x86/kernel/rtc.o
-
CC arch/x86/kernel/resource.o
-
CC arch/x86/kernel/trampoline.o
-
CC arch/x86/kernel/process.o
-
CC arch/x86/kernel/i387.o
-
CC arch/x86/kernel/xsave.o
-
CC arch/x86/kernel/ptrace.o
-
arch/x86/kernel/ptrace.c:1245:17: error: conflicting types for ‘syscall_trace_enter’
-
asmregparm long syscall_trace_enter(struct pt_regs *regs)
-
^
-
In file included from /home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/vm86.h:130:0,
-
from /home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/processor.h:10,
-
from /home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/thread_info.h:22,
-
from include/linux/thread_info.h:56,
-
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:56,
-
from arch/x86/kernel/ptrace.c:8:
-
/home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/ptrace.h:146:13: note: previous declaration of ‘syscall_trace_enter’ was here
-
extern long syscall_trace_enter(struct pt_regs *);
-
^
-
arch/x86/kernel/ptrace.c:1290:17: error: conflicting types for ‘syscall_trace_leave’
-
asmregparm void syscall_trace_leave(struct pt_regs *regs)
-
^
-
In file included from /home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/vm86.h:130:0,
-
from /home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/processor.h:10,
-
from /home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/thread_info.h:22,
-
from include/linux/thread_info.h:56,
-
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:56,
-
from arch/x86/kernel/ptrace.c:8:
-
/home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/ptrace.h:147:13: note: previous declaration of ‘syscall_trace_leave’ was here
-
extern void syscall_trace_leave(struct pt_regs *);
-
^
-
scripts/Makefile.build:229: recipe for target 'arch/x86/kernel/ptrace.o' failed
-
make[3]: *** [arch/x86/kernel/ptrace.o] Error 1
-
scripts/Makefile.build:365: recipe for target 'arch/x86/kernel' failed
-
make[2]: *** [arch/x86/kernel] Error 2
-
Makefile:915: recipe for target 'arch/x86' failed
-
make[1]: *** [arch/x86] Error 2
-
Makefile:464: recipe for target 'bzImage' failed
-
make: *** [bzImage] Error 2
2 5847
I have observed that
are working properly but there is problem when i run
. I just tried
which is working.
Is there anything prerequisite missing for
?
Wow. No pain, no gain
So i figured out the errors and now added patches for kernel.
I am very happy that i can see those last lines as output. - LD arch/x86/boot/setup.elf
-
OBJCOPY arch/x86/boot/setup.bin
-
OBJCOPY arch/x86/boot/vmlinux.bin
-
HOSTCC arch/x86/boot/tools/build
-
BUILD arch/x86/boot/bzImage
-
Root device is (8, 1)
-
Setup is 14896 bytes (padded to 15360 bytes).
-
System is 2481 kB
-
CRC 1fd5f99c
-
Kernel: arch/x86/boot/bzImage is ready (#2)
-
I have encountered below errors while compiling and their solutions are intact: - AS arch/x86/vdso/vdso32/int80.o
-
VDSO arch/x86/vdso/vdso32-int80.so.dbg
-
gcc: error: elf_i386: No such file or directory
-
gcc: error: unrecognized command line option ‘-m’
-
/home/build/dhirajtest/linux-2.6.32-358.el6/arch/x86/vdso/Makefile:94: recipe for target 'arch/x86/vdso/vdso32-int80.so.dbg' failed
-
make[2]: *** [arch/x86/vdso/vdso32-int80.so.dbg] Error 1
-
scripts/Makefile.build:365: recipe for target 'arch/x86/vdso' failed
-
make[1]: *** [arch/x86/vdso] Error 2
-
Makefile:915: recipe for target 'arch/x86' failed
-
make: *** [arch/x86] Error 2
I have solved this by following the steps on below link: https://github.com/AshishPrasad/BTP/...ion%20Problems
I also got another error as - drivers/built-in.o: In function `dsm_get_label.constprop.1':
-
pci-label.c:(.text+0x11102): undefined reference to utf16s_to_utf8s'
'
i solved it by referring below link: https://lkml.org/lkml/2011/1/17/193
Hope this will be helpful to anyone who is learning kernel compilation.
Thanks
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Martin Burger |
last post by:
Hello,
I configured PHP 4.3.11
'./configure' '--prefix=~/php-4.3.11' '--enable-memory-limit'
'--enable-force-cgi-redirect' '--enable-track-vars' '--with-pcre-regex'
'--with-mysql=shared'...
|
by: Servé Laurijssen |
last post by:
I saw that GCC4 is out, anybody knows how well C99 is implemented or where
to find the info?
|
by: Marcel van Kervinck |
last post by:
Dear all,
I would like to confirm my suspicion of a compiler
bug in gcc4 for MacOSX. The code example below expects
that the initializer of 'v' sets all elements in
v.u.bytes to zero, as...
|
by: Clint Olsen |
last post by:
I was just thinking about the virtues of C vs. C++ wrt. ADT/generic
programming. The biggest complaint about writing container libraries for
ADTs is that void * offers no type safety. Does it...
|
by: LewGun |
last post by:
at the end of last year Herb Sutter told us that "C++ 0x has been
fixed", now GCC4.3 had been released, the compiler were known as "the C
++ new features' experimental unit",but it support to the...
|
by: kwatch |
last post by:
Hi all,
I have released pyKook 0.0.1.
http://pypi.python.org/pypi/Kook/0.0.1
http://www.kuwata-lab.com/kook/
http://www.kuwata-lab.com/kook/pykook-users-guide.html
pyKook is a simple build...
|
by: Time |
last post by:
This command is not working as am trying to install kernel-2.6.30
make oldconfig
make: *** No rule to make target `oldconfig'. Stop.
i even tried
make -f oldconfig
make: oldconfig: No such...
|
by: basti |
last post by:
hi bytes people,
my name is bastian and i am new to this list.
a week ago i upgraded from gcc4.0 to llvm gcc4.2. everything went well except for one thing i have really big trouble to figure out...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |