Build error in linux-3.8.7

Sarbojit Ganguly unixman.linuxboy at gmail.com
Wed Apr 17 08:12:37 EDT 2013


On 17 April 2013 15:38, Giridhara RP (grp) <grp at cisco.com> wrote:

>  Thanks guys J. Finally I have a successful build.
>

Sorry, checked late, do share the reason and solution. It might help others
who are facing similar problem.



> ****
>
> Giri****
>
> ** **
>
> *From:* kernelnewbies-bounces at kernelnewbies.org [mailto:
> kernelnewbies-bounces at kernelnewbies.org] *On Behalf Of *Giridhara RP (grp)
> *Sent:* Wednesday, April 17, 2013 1:42 PM
>
> *To:* Sarbojit Ganguly
> *Cc:* kernelnewbies at kernelnewbies.org
> *Subject:* RE: Build error in linux-3.8.7****
>
>  ** **
>
> Hi,****
>
> ** **
>
> I am getting error in firmware. Any pointer will be helpful. Segmetation
> fault is gone after changning to gcc-4.5****
>
> ** **
>
> make-3.79.1-p7[1]: Nothing to be done for `all'.****
>
>   CHK     include/generated/uapi/linux/version.h****
>
> make-3.79.1-p7[1]: Nothing to be done for `relocs'.****
>
>   CHK     include/generated/utsrelease.h****
>
>   CALL    scripts/checksyscalls.sh****
>
> *make-3.79.1-p7[1]: *** No rule to make target `|', needed by
> `firmware/bnx2/bnx2-mips-09-6.2.1a.fw.gen.S'.  Stop.*
>
> *make-3.79.1-p7: *** [firmware] Error 2*
>
> make-3.79.1-p7: *** Waiting for unfinished jobs....****
>
>   CHK     include/generated/compile.h****
>
>   PASYMS  arch/x86/realmode/rm/pasyms.h****
>
>   VDSOSYM arch/x86/vdso/vdso32-int80-syms.lds****
>
>   LDS     arch/x86/realmode/rm/realmode.lds****
>
>   LD      arch/x86/realmode/rm/realmode.elf****
>
>   RELOCS  arch/x86/realmode/rm/realmode.relocs****
>
>   OBJCOPY arch/x86/realmode/rm/realmode.bin****
>
>   VDSOSYM arch/x86/vdso/vdso32-sysenter-syms.lds****
>
>   AS      arch/x86/realmode/rmpiggy.o****
>
>   VDSOSYM arch/x86/vdso/vdso32-syms.lds****
>
>   LD      arch/x86/realmode/built-in.o****
>
>   LD      arch/x86/vdso/built-in.o****
>
>   LD      arch/x86/built-in.o****
>
> make-3.79.1-p7: *** wait: No child processes.  Stop.****
>
> bash-3.00$****
>
> ** **
>
> Thanks****
>
> Giri****
>
> ** **
>
> *From:* kernelnewbies-bounces at kernelnewbies.org [
> mailto:kernelnewbies-bounces at kernelnewbies.org<kernelnewbies-bounces at kernelnewbies.org>]
> *On Behalf Of *Giridhara RP (grp)
> *Sent:* Wednesday, April 17, 2013 12:33 PM
> *To:* Sarbojit Ganguly
> *Cc:* kernelnewbies at kernelnewbies.org
> *Subject:* RE: Build error in linux-3.8.7****
>
> ** **
>
> Hi Sarbojit,****
>
> ** **
>
> Using gcc4.2.1 the compilation error disaappered, but now linker (ld) is
> crashing. Any workaround to overcome this?****
>
> ** **
>
> CHK     include/generated/uapi/linux/version.h****
>
> CHK     include/generated/utsrelease.h****
>
> CALL    scripts/checksyscalls.sh****
>
> CHK     include/generated/compile.h****
>
> LD      arch/x86/kernel/built-in.o****
>
> /bin/sh: line 1: 17454 Segmentation fault      ld -m elf_i386 -r -o
> arch/x86/kernel/built-in.o arch/x86/kernel/process_32.o
> arch/x86/kernel/signal.o arch/x86/kernel/entry_32.o arch/x86/kernel/traps.o
> arch/x86/kernel/irq.o arch/x86/kernel/irq_32.o
> arch/x86/kernel/dumpstack_32.o arch/x86/kernel/time.o
> arch/x86/kernel/ioport.o arch/x86/kernel/ldt.o arch/x86/kernel/dumpstack.o
> arch/x86/kernel/nmi.o arch/x86/kernel/setup.o arch/x86/kernel/x86_init.o
> arch/x86/kernel/i8259.o arch/x86/kernel/irqinit.o
> arch/x86/kernel/jump_label.o arch/x86/kernel/irq_work.o
> arch/x86/kernel/probe_roms.o arch/x86/kernel/i386_ksyms_32.o
> arch/x86/kernel/syscall_32.o arch/x86/kernel/bootflag.o
> arch/x86/kernel/e820.o arch/x86/kernel/pci-dma.o arch/x86/kernel/quirks.o
> arch/x86/kernel/topology.o arch/x86/kernel/kdebugfs.o
> arch/x86/kernel/alternative.o arch/x86/kernel/i8253.o
> arch/x86/kernel/pci-nommu.o arch/x86/kernel/hw_breakpoint.o
> arch/x86/kernel/tsc.o arch/x86/kernel/io_delay.o arch/x86/kernel/rtc.o
> arch/x86/kernel/pci-iommu_table.o arch/x86/kernel/resource.o
> arch/x86/kernel/process.o arch/x86/kernel/i387.o arch/x86/kernel/xsave.o
> arch/x86/kernel/ptrace.o arch/x86/kernel/tls.o arch/x86/kernel/step.o
> arch/x86/kernel/i8237.o arch/x86/kernel/stacktrace.o
> arch/x86/kernel/cpu/built-in.o arch/x86/kernel/acpi/built-in.o
> arch/x86/kernel/reboot.o arch/x86/kernel/msr.o arch/x86/kernel/cpuid.o
> arch/x86/kernel/early-quirks.o arch/x86/kernel/smp.o
> arch/x86/kernel/smpboot.o arch/x86/kernel/tsc_sync.o
> arch/x86/kernel/setup_percpu.o arch/x86/kernel/mpparse.o
> arch/x86/kernel/apic/built-in.o arch/x86/kernel/reboot_fixups_32.o
> arch/x86/kernel/trace_clock.o arch/x86/kernel/machine_kexec_32.o
> arch/x86/kernel/relocate_kernel_32.o arch/x86/kernel/crash.o
> arch/x86/kernel/crash_dump_32.o arch/x86/kernel/kprobes.o
> arch/x86/kernel/kprobes-opt.o arch/x86/kernel/module.o
> arch/x86/kernel/doublefault_32.o arch/x86/kernel/vm86_32.o
> arch/x86/kernel/early_printk.o arch/x86/kernel/hpet.o
> arch/x86/kernel/amd_nb.o arch/x86/kernel/pcspeaker.o
> arch/x86/kernel/microcode.o arch/x86/kernel/check.o
> arch/x86/kernel/perf_regs.o****
>
> make-3.79.1-p7[2]: *** [arch/x86/kernel/built-in.o] Error 139****
>
> make-3.79.1-p7[1]: *** [arch/x86/kernel] Error 2****
>
> make-3.79.1-p7: *** [arch/x86] Error 2****
>
> ** **
>
> bash-3.00$ uname -a****
>
> Linux sam-build01.cisco.com 2.6.9-89.ELsmp #1 SMP Mon Jun 22 12:32:43 EDT
> 2009 i686 i686 i386 GNU/Linux****
>
> ** **
>
> bash-3.00$ ld --version****
>
> GNU ld version 2.15.92.0.2 20040927****
>
> Copyright 2002 Free Software Foundation, Inc.****
>
> This program is free software; you may redistribute it under the terms of*
> ***
>
> the GNU General Public License.  This program has absolutely no warranty.*
> ***
>
> ** **
>
> *From:* kernelnewbies-bounces at kernelnewbies.org [
> mailto:kernelnewbies-bounces at kernelnewbies.org<kernelnewbies-bounces at kernelnewbies.org>]
> *On Behalf Of *Giridhara RP (grp)
> *Sent:* Wednesday, April 17, 2013 11:35 AM
> *To:* Sarbojit Ganguly
> *Cc:* kernelnewbies at kernelnewbies.org
> *Subject:* RE: Build error in linux-3.8.7****
>
> ** **
>
> Hi Sarbojit,****
>
> ** **
>
> My gcc is 3.4.6-11. Sure, I will try 3.8.8****
>
> ** **
>
> bash-3.00$ gcc --version****
>
> gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-11)****
>
> Copyright (C) 2006 Free Software Foundation, Inc.****
>
> This is free software; see the source for copying conditions.  There is NO
> ****
>
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> ****
>
> ** **
>
> *From:* Sarbojit Ganguly [mailto:unixman.linuxboy at gmail.com<unixman.linuxboy at gmail.com>]
>
> *Sent:* Wednesday, April 17, 2013 11:34 AM
> *To:* Giridhara RP (grp)
> *Cc:* kernelnewbies at kernelnewbies.org
> *Subject:* Re: Build error in linux-3.8.7****
>
> ** **
>
> Hello GRP,****
>
> ** **
>
> Can you post your toolchain (gcc) version? As you're doing this, may I
> request you to try with 3.8.8?****
>
> ** **
>
> Regards,****
>
> Sarbojit****
>
> ** **
>
> On 17 April 2013 10:20, Giridhara RP (grp) <grp at cisco.com> wrote:****
>
> Hi,****
>
>  ****
>
> I am new to linux kernel buidling. I have download 3.8.7 latest (stable)
> kernel from https://www.kernel.org/. I want build kernel for X86_64.****
>
>  ****
>
> 1.       make x86_64_defconfig (this created .config file)****
>
> 2.       make****
>
> Make failed with below error, please help me in resolving this.****
>
>  ****
>
>   CC      kernel/power/user.o****
>
>   CC      kernel/power/block_io.o****
>
>   CC      kernel/power/poweroff.o****
>
>   LD      kernel/power/built-in.o****
>
>   CC      kernel/sched/core.o****
>
>   CC      kernel/sched/clock.o****
>
>   CC      kernel/sched/cputime.o****
>
>   CC      kernel/sched/idle_task.o****
>
>   CC      kernel/sched/fair.o****
>
> kernel/sched/fair.c: In function `update_curr':****
>
> kernel/sched/fair.c:428: sorry, unimplemented: inlining failed in call to
> 'account_cfs_rq_runtime': function body not available****
>
> kernel/sched/fair.c:714: sorry, unimplemented: called from here****
>
> make-3.79.1-p7[2]: *** [kernel/sched/fair.o] Error 1****
>
> make-3.79.1-p7[1]: *** [kernel/sched] Error 2****
>
> make-3.79.1-p7: *** [kernel] Error 2****
>
> bash-3.00$ pwd****
>
>  ****
>
> thanks****
>
> Giri****
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies****
>
>
>
> ****
>
> ** **
>
> --
> Regards,
> Sarbojit ****
>



-- 
Regards,
Sarbojit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130417/7d82b529/attachment-0001.html 


More information about the Kernelnewbies mailing list