All of lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: kernel test robot <lkp@intel.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org, Dinh Nguyen <dinguyen@kernel.org>
Subject: Re: ld.lld: error: undefined symbol: socfpga_reset_init
Date: Sun, 6 Feb 2022 12:55:57 +0100	[thread overview]
Message-ID: <67f432e2-1bfd-29dc-f2ed-051b47ef0844@kernel.org> (raw)
In-Reply-To: <202202050539.Mtk9I4Ef-lkp@intel.com>

On 04/02/2022 22:12, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   dcb85f85fa6f142aae1fe86f399d4503d49f2b60
> commit: 4483397b03536506535d611b0cb28a81a69e8edf ARM: socfpga: drop ARCH_SOCFPGA
> date:   11 months ago
> config: arm-socfpga_defconfig (https://download.01.org/0day-ci/archive/20220205/202202050539.Mtk9I4Ef-lkp@intel.com/config)
> compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a73e4ce6a59b01f0e37037761c1e6889d539d233)
> 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 arm cross compiling tool for clang build
>         # apt-get install binutils-arm-linux-gnueabi
>         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4483397b03536506535d611b0cb28a81a69e8edf
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout 4483397b03536506535d611b0cb28a81a69e8edf
>         # save the config file to linux build tree
>         mkdir build_dir
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash
> 
> 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: undefined symbol: socfpga_reset_init
>    >>> referenced by socfpga.c
>    >>>               socfpga.o:(socfpga_init_irq) in archive arch/arm/mach-socfpga/built-in.a
>    >>> referenced by socfpga.c
>    >>>               socfpga.o:(socfpga_arria10_init_irq) in archive arch/arm/mach-socfpga/built-in.a
> 

This looks like a false positive. On the socfpga defconfig arm build,
the socfpga_reset_init() (drivers/reset/reset-socfpga.c) is built.

I also could not reproduce it with GCC.

Best regards,
Krzysztof

WARNING: multiple messages have this Message-ID (diff)
From: Krzysztof Kozlowski <krzk@kernel.org>
To: kbuild-all@lists.01.org
Subject: Re: ld.lld: error: undefined symbol: socfpga_reset_init
Date: Sun, 06 Feb 2022 12:55:57 +0100	[thread overview]
Message-ID: <67f432e2-1bfd-29dc-f2ed-051b47ef0844@kernel.org> (raw)
In-Reply-To: <202202050539.Mtk9I4Ef-lkp@intel.com>

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

On 04/02/2022 22:12, kernel test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   dcb85f85fa6f142aae1fe86f399d4503d49f2b60
> commit: 4483397b03536506535d611b0cb28a81a69e8edf ARM: socfpga: drop ARCH_SOCFPGA
> date:   11 months ago
> config: arm-socfpga_defconfig (https://download.01.org/0day-ci/archive/20220205/202202050539.Mtk9I4Ef-lkp(a)intel.com/config)
> compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project a73e4ce6a59b01f0e37037761c1e6889d539d233)
> 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 arm cross compiling tool for clang build
>         # apt-get install binutils-arm-linux-gnueabi
>         # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4483397b03536506535d611b0cb28a81a69e8edf
>         git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
>         git fetch --no-tags linus master
>         git checkout 4483397b03536506535d611b0cb28a81a69e8edf
>         # save the config file to linux build tree
>         mkdir build_dir
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash
> 
> 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: undefined symbol: socfpga_reset_init
>    >>> referenced by socfpga.c
>    >>>               socfpga.o:(socfpga_init_irq) in archive arch/arm/mach-socfpga/built-in.a
>    >>> referenced by socfpga.c
>    >>>               socfpga.o:(socfpga_arria10_init_irq) in archive arch/arm/mach-socfpga/built-in.a
> 

This looks like a false positive. On the socfpga defconfig arm build,
the socfpga_reset_init() (drivers/reset/reset-socfpga.c) is built.

I also could not reproduce it with GCC.

Best regards,
Krzysztof

  reply	other threads:[~2022-02-06 11:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-04 21:12 ld.lld: error: undefined symbol: socfpga_reset_init kernel test robot
2022-02-04 21:12 ` kernel test robot
2022-02-06 11:55 ` Krzysztof Kozlowski [this message]
2022-02-06 11:55   ` Krzysztof Kozlowski
2022-02-07  0:51   ` Nathan Chancellor
2022-02-07  0:51     ` Nathan Chancellor
2022-02-07  7:55     ` Krzysztof Kozlowski
2022-02-07  7:55       ` Krzysztof Kozlowski
2022-02-07 16:06       ` Randy Dunlap
2022-02-07 16:06         ` Randy Dunlap
2022-02-07 16:09         ` Krzysztof Kozlowski
2022-02-07 16:09           ` Krzysztof Kozlowski

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=67f432e2-1bfd-29dc-f2ed-051b47ef0844@kernel.org \
    --to=krzk@kernel.org \
    --cc=dinguyen@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    /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.