473,385 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

make oldconfig bzImage fails under GCC-4.9.2 on debian-8.0

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.

Expand|Select|Wrap|Line Numbers
  1. build@bd:~/2.6.32/linux-2.6.32-358.el6$ make oldconfig
  2. scripts/kconfig/conf -o arch/x86/Kconfig
  3. #
  4. # configuration written to .config
  5. #
  6. build@bd:~/2.6.32/linux-2.6.32-358.el6$ make oldconfig bzImage
  7. scripts/kconfig/conf -o arch/x86/Kconfig
  8. #
  9. # configuration written to .config
  10. #
  11. scripts/kconfig/conf -s arch/x86/Kconfig
  12.   CHK     include/linux/version.h
  13.   CHK     include/linux/utsrelease.h
  14.   SYMLINK include/asm -> include/asm-x86
  15.   CC      kernel/bounds.s
  16.   GEN     include/linux/bounds.h
  17.   CC      arch/x86/kernel/asm-offsets.s
  18.   GEN     include/asm/asm-offsets.h
  19.   CALL    scripts/checksyscalls.sh
  20.   CC      scripts/mod/empty.o
  21.   MKELF   scripts/mod/elfconfig.h
  22.   HOSTCC  scripts/mod/file2alias.o
  23.   HOSTCC  scripts/mod/modpost.o
  24.   HOSTCC  scripts/mod/sumversion.o
  25.   HOSTLD  scripts/mod/modpost
  26.   CC      init/main.o
  27.   CHK     include/linux/compile.h
  28.   CC      init/version.o
  29.   CC      init/do_mounts.o
  30.   CC      init/do_mounts_rd.o
  31.   CC      init/do_mounts_initrd.o
  32.   LD      init/mounts.o
  33.   CC      init/initramfs.o
  34.   CC      init/calibrate.o
  35.   LD      init/built-in.o
  36.   GEN     usr/initramfs_data.cpio
  37.   AS      usr/initramfs_data.o
  38.   LD      usr/built-in.o
  39.   CC      arch/x86/kernel/process_32.o
  40.   CC      arch/x86/kernel/signal.o
  41.   AS      arch/x86/kernel/entry_32.o
  42.   CC      arch/x86/kernel/traps.o
  43.   CC      arch/x86/kernel/irq.o
  44.   CC      arch/x86/kernel/irq_32.o
  45.   CC      arch/x86/kernel/dumpstack_32.o
  46.   CC      arch/x86/kernel/time.o
  47.   CC      arch/x86/kernel/ioport.o
  48.   CC      arch/x86/kernel/ldt.o
  49.   CC      arch/x86/kernel/dumpstack.o
  50.   CC      arch/x86/kernel/setup.o
  51.   CC      arch/x86/kernel/x86_init.o
  52.   CC      arch/x86/kernel/i8259.o
  53.   CC      arch/x86/kernel/irqinit.o
  54.   CC      arch/x86/kernel/irq_work.o
  55.   CC      arch/x86/kernel/probe_roms.o
  56.   CC      arch/x86/kernel/sys_i386_32.o
  57.   CC      arch/x86/kernel/i386_ksyms_32.o
  58.   CC      arch/x86/kernel/bootflag.o
  59.   CC      arch/x86/kernel/e820.o
  60.   CC      arch/x86/kernel/pci-dma.o
  61.   CC      arch/x86/kernel/quirks.o
  62.   CC      arch/x86/kernel/i8237.o
  63.   CC      arch/x86/kernel/topology.o
  64.   CC      arch/x86/kernel/kdebugfs.o
  65.   CC      arch/x86/kernel/alternative.o
  66.   CC      arch/x86/kernel/i8253.o
  67.   CC      arch/x86/kernel/pci-nommu.o
  68.   CC      arch/x86/kernel/tsc.o
  69.   CC      arch/x86/kernel/io_delay.o
  70.   CC      arch/x86/kernel/rtc.o
  71.   CC      arch/x86/kernel/resource.o
  72.   CC      arch/x86/kernel/trampoline.o
  73.   CC      arch/x86/kernel/process.o
  74.   CC      arch/x86/kernel/i387.o
  75.   CC      arch/x86/kernel/xsave.o
  76.   CC      arch/x86/kernel/ptrace.o
  77. arch/x86/kernel/ptrace.c:1245:17: error: conflicting types for ‘syscall_trace_enter’
  78.  asmregparm long syscall_trace_enter(struct pt_regs *regs)
  79.                  ^
  80. In file included from /home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/vm86.h:130:0,
  81.                  from /home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/processor.h:10,
  82.                  from /home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/thread_info.h:22,
  83.                  from include/linux/thread_info.h:56,
  84.                  from include/linux/preempt.h:9,
  85.                  from include/linux/spinlock.h:50,
  86.                  from include/linux/seqlock.h:29,
  87.                  from include/linux/time.h:8,
  88.                  from include/linux/timex.h:56,
  89.                  from include/linux/sched.h:56,
  90.                  from arch/x86/kernel/ptrace.c:8:
  91. /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
  92.  extern long syscall_trace_enter(struct pt_regs *);
  93.              ^
  94. arch/x86/kernel/ptrace.c:1290:17: error: conflicting types for ‘syscall_trace_leave’
  95.  asmregparm void syscall_trace_leave(struct pt_regs *regs)
  96.                  ^
  97. In file included from /home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/vm86.h:130:0,
  98.                  from /home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/processor.h:10,
  99.                  from /home/build/2.6.32/linux-2.6.32-358.el6/arch/x86/include/asm/thread_info.h:22,
  100.                  from include/linux/thread_info.h:56,
  101.                  from include/linux/preempt.h:9,
  102.                  from include/linux/spinlock.h:50,
  103.                  from include/linux/seqlock.h:29,
  104.                  from include/linux/time.h:8,
  105.                  from include/linux/timex.h:56,
  106.                  from include/linux/sched.h:56,
  107.                  from arch/x86/kernel/ptrace.c:8:
  108. /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
  109.  extern void syscall_trace_leave(struct pt_regs *);
  110.              ^
  111. scripts/Makefile.build:229: recipe for target 'arch/x86/kernel/ptrace.o' failed
  112. make[3]: *** [arch/x86/kernel/ptrace.o] Error 1
  113. scripts/Makefile.build:365: recipe for target 'arch/x86/kernel' failed
  114. make[2]: *** [arch/x86/kernel] Error 2
  115. Makefile:915: recipe for target 'arch/x86' failed
  116. make[1]: *** [arch/x86] Error 2
  117. Makefile:464: recipe for target 'bzImage' failed
  118. make: *** [bzImage] Error 2
May 21 '15 #1
2 5847
I have observed that
Expand|Select|Wrap|Line Numbers
  1. make config
Expand|Select|Wrap|Line Numbers
  1. make menuconfig
Expand|Select|Wrap|Line Numbers
  1. make oldconfig
are working properly but there is problem when i run
Expand|Select|Wrap|Line Numbers
  1. make bzImage
. I just tried
Expand|Select|Wrap|Line Numbers
  1. make modules
which is working.
Is there anything prerequisite missing for
Expand|Select|Wrap|Line Numbers
  1. make bzImage
?
May 22 '15 #2
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.
Expand|Select|Wrap|Line Numbers
  1.  LD      arch/x86/boot/setup.elf
  2.   OBJCOPY arch/x86/boot/setup.bin
  3.   OBJCOPY arch/x86/boot/vmlinux.bin
  4.   HOSTCC  arch/x86/boot/tools/build
  5.   BUILD   arch/x86/boot/bzImage
  6. Root device is (8, 1)
  7. Setup is 14896 bytes (padded to 15360 bytes).
  8. System is 2481 kB
  9. CRC 1fd5f99c
  10. Kernel: arch/x86/boot/bzImage is ready  (#2)
  11.  
I have encountered below errors while compiling and their solutions are intact:

Expand|Select|Wrap|Line Numbers
  1.   AS      arch/x86/vdso/vdso32/int80.o
  2.   VDSO    arch/x86/vdso/vdso32-int80.so.dbg
  3. gcc: error: elf_i386: No such file or directory
  4. gcc: error: unrecognized command line option ‘-m’
  5. /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
  6. make[2]: *** [arch/x86/vdso/vdso32-int80.so.dbg] Error 1
  7. scripts/Makefile.build:365: recipe for target 'arch/x86/vdso' failed
  8. make[1]: *** [arch/x86/vdso] Error 2
  9. Makefile:915: recipe for target 'arch/x86' failed
  10. 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
Expand|Select|Wrap|Line Numbers
  1. drivers/built-in.o: In function `dsm_get_label.constprop.1': 
  2. 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
May 23 '15 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
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'...
7
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?
34
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...
19
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...
2
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...
0
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...
14
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...
1
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...
0
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,...
0
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...
0
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...
1
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...
0
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...
0
marktang
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,...
0
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...
0
Oralloy
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,...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.