【问题标题】:Cannot compile Linux Kernel v4.14 on Debian Wheezy x86无法在 Debian Wheezy x86 上编译 Linux Kernel v4.14
【发布时间】:2018-08-24 14:34:37
【问题描述】:

在 Debian GNU/Linux 7 (wheezy) 上编译 Linux v4.14(例如 v4.14.10)时,它会停止并显示以下错误消息:

./system/buildroot-2017.08.x/output/host/usr/bin/x86_64-buildroot-linux-uclibc-ld \
      -m elf_x86_64 -r -o vmlinux.o --whole-archive built-in.o \
      --no-whole-archive --start-group lib/lib.a arch/x86/lib/lib.a \
      --end-group
built-in.o: member arch/x86/kernel/head_64.o in archive is not an object

在 Kernel v4.13 上,编译工作正常。

【问题讨论】:

    标签: linux compiler-errors


    【解决方案1】:

    Git bisect 在提交时停止 b40a923903d:

    b40a923903d0a535676b8d7b22bfe17260c3d35a is the first bad commit
    commit b40a923903d0a535676b8d7b22bfe17260c3d35a
    Author: Josh Poimboeuf <jpoimboe@redhat.com>
    Date:   Fri Oct 13 15:02:01 2017 -0500
    
        x86/unwind: Make CONFIG_UNWINDER_ORC=y the default in kconfig for 64-bit
    
        commit fc72ae40e30327aa24eb88a24b9c7058f938bd36 upstream.
    
        The ORC unwinder has been stable in testing so far.  Give it much wider
        testing by making it the default in kconfig for x86_64.  It's not yet
        supported for 32-bit, so leave frame pointers as the default there.
    
        Suggested-by: Ingo Molnar <mingo@kernel.org>
        Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
        Cc: Linus Torvalds <torvalds@linux-foundation.org>
        Cc: Peter Zijlstra <peterz@infradead.org>
        Cc: Thomas Gleixner <tglx@linutronix.de>
        Link: http://lkml.kernel.org/r/9b1237bbe7244ed9cdf8db2dcb1253e37e1c341e.1507924831.git.jpoimboe@redhat.com
        Signed-off-by: Ingo Molnar <mingo@kernel.org>
        Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    

    禁用 CONFIG_UNWINDER_ORC 可修复 Debian Wheezy 上的编译。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-03-22
      • 2015-12-09
      • 1970-01-01
      • 2013-09-18
      • 1970-01-01
      • 2020-07-18
      相关资源
      最近更新 更多