All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Li <philip.li@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [linux-next:master 8545/12022] ld.lld: error: arch/powerpc/built-in.a(kernel/exceptions-64e.o):(.text+0x2576): unknown relocation (110) against symbol interrupt_base_book3e
Date: Wed, 24 Feb 2021 07:02:46 +0800	[thread overview]
Message-ID: <20210223230246.GA132276@pl-dbox> (raw)
In-Reply-To: <CAKwvOd=whAkJDYAe_t53hGHdjFRm3a61rrh2WrpN-TB4s+F7YQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 4963 bytes --]

On Tue, Feb 23, 2021 at 02:09:53PM -0800, Nick Desaulniers wrote:
> On Tue, Feb 23, 2021 at 1:51 PM 'Fangrui Song' via Clang Built Linux
> <clang-built-linux@googlegroups.com> wrote:
> >
> > On 2021-02-22, kernel test robot wrote:
> > >CC: Linux Memory Management List <linux-mm@kvack.org>
> > >TO: Nicholas Piggin <npiggin@gmail.com>
> > >CC: Michael Ellerman <mpe@ellerman.id.au>
> > >
> > >Hi Nicholas,
> > >
> > >First bad commit (maybe != root cause):
> > >
> > >tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> > >head:   37dfbfbdca66834bc0f64ec9b35e09ac6c8898da
> > >commit: 755d664174463791489dddf34c33308b61de68c3 [8545/12022] powerpc: DebugException remove args
> > >config: powerpc-randconfig-r026-20210222 (attached as .config)
> > >compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)
> > >reproduce (this is a W=1 build):
> > >        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
> > >        chmod +x ~/bin/make.cross
> > >        # install powerpc cross compiling tool for clang build
> > >        # apt-get install binutils-powerpc-linux-gnu
> > >        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=755d664174463791489dddf34c33308b61de68c3
> > >        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> > >        git fetch --no-tags linux-next master
> > >        git checkout 755d664174463791489dddf34c33308b61de68c3
> > >        # save the attached .config to linux build tree
> > >        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
> > >
> > >If you fix the issue, kindly add following tag as appropriate
> > >Reported-by: kernel test robot <lkp@intel.com>
> > >
> > >All errors (new ones prefixed by >>):
> > >
> > >   ld.lld: error: arch/powerpc/built-in.a(kernel/exceptions-64e.o):(.text+0x23EE): unknown relocation (110) against symbol interrupt_base_book3e
> > >   ld.lld: error: arch/powerpc/built-in.a(kernel/exceptions-64e.o):(.text+0x2406): unknown relocation (110) against symbol __end_interrupts
> > >>> ld.lld: error: arch/powerpc/built-in.a(kernel/exceptions-64e.o):(.text+0x2576): unknown relocation (110) against symbol interrupt_base_book3e
> > >>> ld.lld: error: arch/powerpc/built-in.a(kernel/exceptions-64e.o):(.text+0x258E): unknown relocation (110) against symbol __end_interrupts
> > >   ld.lld: error: arch/powerpc/built-in.a(kernel/exceptions-64e.o):(.text+0x37F2): unknown relocation (110) against symbol
> > >   ld.lld: error: undefined symbol: .early_setup
> > >   >>> referenced by arch/powerpc/kernel/head_64.o:(.ref.text+0x5A)
> > >   >>> did you mean: early_setup
> > >   >>> defined in: arch/powerpc/built-in.a(kernel/setup_64.o)
> > >
> > >Kconfig warnings: (for reference only)
> > >   WARNING: unmet direct dependencies detected for HOTPLUG_CPU
> > >   Depends on SMP && (PPC_PSERIES || PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE
> > >   Selected by
> > >   - PM_SLEEP_SMP && SMP && (ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE && PM_SLEEP
> >
> > 110 is R_PPC64_ADDR16_HIGH.
> > This is https://github.com/ClangBuiltLinux/linux/issues/1260
> >
> > A newer LLD 12.0.0 (llvmorg-12-init-17087-g5fcb412ed083) supports R_PPC64_ADDR16_HIGH.
> > llvmorg-12-init-17023-gc9439ca36342 used by the bot does not have R_PPC64_ADDR16_HIGH support.
> 
> Thanks Fangrui for verifying.  Philip, clang-12 is not yet released
> and is still landing fixes.  Can the version used by 0day bot be
> upgraded? Top of Tree LLVM will be clang-13, so both branches are
got it, we will upgrade the clang compiler asap.

> actively landing patches.  When clang-12 is officially released, there
> will be a point release 6 months later, clang-13 will branch, and
> clang-14 will eventually ship as what's ToT.
> 
> >
> > >---
> > >0-DAY CI Kernel Test Service, Intel Corporation
> > >https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
> > >
> > >--
> > >You received this message because you are subscribed to the Google Groups "Clang Built Linux" group.
> > >To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe(a)googlegroups.com.
> > >To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/202102222003.q8ZqV9Xy-lkp%40intel.com.
> >
> >
> > --
> > You received this message because you are subscribed to the Google Groups "Clang Built Linux" group.
> > To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe(a)googlegroups.com.
> > To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/20210223215104.etyo2intapqy2t4n%40google.com.
> 
> 
> 
> -- 
> Thanks,
> ~Nick Desaulniers

      reply	other threads:[~2021-02-23 23:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-22 12:45 [linux-next:master 8545/12022] ld.lld: error: arch/powerpc/built-in.a(kernel/exceptions-64e.o):(.text+0x2576): unknown relocation (110) against symbol interrupt_base_book3e kernel test robot
2021-02-23 21:51 ` Fangrui Song
2021-02-23 22:09   ` Nick Desaulniers
2021-02-23 23:02     ` Philip Li [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210223230246.GA132276@pl-dbox \
    --to=philip.li@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.