* Cannot find symbol for section 69: .text.arch_max_swapfile_size.
@ 2023-08-12 1:11 kernel test robot
2023-08-14 15:38 ` Peter Xu
0 siblings, 1 reply; 4+ messages in thread
From: kernel test robot @ 2023-08-12 1:11 UTC (permalink / raw)
To: Peter Xu
Cc: llvm, oe-kbuild-all, linux-kernel, Andrew Morton,
Linux Memory Management List, Huang, Ying
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 190bf7b14b0cf3df19c059061be032bd8994a597
commit: be45a4902c7caa717fee6b2f671e59b396ed395c mm/swap: cache maximum swapfile size when init swap
date: 11 months ago
config: mips-randconfig-r014-20230811 (https://download.01.org/0day-ci/archive/20230812/202308120906.Efohswpa-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce: (https://download.01.org/0day-ci/archive/20230812/202308120906.Efohswpa-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308120906.Efohswpa-lkp@intel.com/
All errors (new ones prefixed by >>):
>> Cannot find symbol for section 69: .text.arch_max_swapfile_size.
mm/swapfile.o: failed
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Cannot find symbol for section 69: .text.arch_max_swapfile_size. 2023-08-12 1:11 Cannot find symbol for section 69: .text.arch_max_swapfile_size kernel test robot @ 2023-08-14 15:38 ` Peter Xu 2023-08-14 15:47 ` Nathan Chancellor 0 siblings, 1 reply; 4+ messages in thread From: Peter Xu @ 2023-08-14 15:38 UTC (permalink / raw) To: kernel test robot Cc: llvm, oe-kbuild-all, linux-kernel, Andrew Morton, Linux Memory Management List, Huang, Ying On Sat, Aug 12, 2023 at 09:11:33AM +0800, kernel test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > head: 190bf7b14b0cf3df19c059061be032bd8994a597 > commit: be45a4902c7caa717fee6b2f671e59b396ed395c mm/swap: cache maximum swapfile size when init swap > date: 11 months ago > config: mips-randconfig-r014-20230811 (https://download.01.org/0day-ci/archive/20230812/202308120906.Efohswpa-lkp@intel.com/config) > compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) > reproduce: (https://download.01.org/0day-ci/archive/20230812/202308120906.Efohswpa-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot <lkp@intel.com> > | Closes: https://lore.kernel.org/oe-kbuild-all/202308120906.Efohswpa-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > >> Cannot find symbol for section 69: .text.arch_max_swapfile_size. > mm/swapfile.o: failed Hmm.. I don't really know what's the issue here, neither can I reproduce this locally - the cross build seems to all work with the reproducer and I can see mm/swapfile.o correctly generated. $ wget https://download.01.org/0day-ci/archive/20230812/202308120906.Efohswpa-lkp@intel.com/config $ mv config .config $ COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ./make.cross W=1 O=build_dir ARCH=mips olddefconfig [...] $ COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang ./make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash [...] FIT description: Linux 6.5.0-rc4-00492-gad3232df3e41 Created: Mon Aug 14 11:35:57 2023 Image 0 (kernel) Description: Linux 6.5.0-rc4-00492-gad3232df3e41 Created: Mon Aug 14 11:35:57 2023 Type: Kernel Image Compression: gzip compressed Data Size: 1767982 Bytes = 1726.54 KiB = 1.69 MiB Architecture: MIPS OS: Linux Load Address: 0x80100000 Entry Point: 0x8043e5f0 Hash algo: sha1 Hash value: 750e28c2fdd0d73eec9b0d8dbf5655579cb1364c Default Configuration: 'conf-default' Configuration 0 (conf-default) Description: Generic Linux kernel Kernel: kernel $ file build_dir/mm/swapfile.o build_dir/mm/swapfile.o: ELF 32-bit MSB relocatable, MIPS, MIPS32 version 1 (SYSV), not stripped Please let me now if anyone knows what I'm missing. -- Peter Xu ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Cannot find symbol for section 69: .text.arch_max_swapfile_size. 2023-08-14 15:38 ` Peter Xu @ 2023-08-14 15:47 ` Nathan Chancellor 2023-08-15 1:49 ` Liu, Yujie 0 siblings, 1 reply; 4+ messages in thread From: Nathan Chancellor @ 2023-08-14 15:47 UTC (permalink / raw) To: Peter Xu, lkp Cc: llvm, oe-kbuild-all, linux-kernel, Andrew Morton, Linux Memory Management List, Huang, Ying On Mon, Aug 14, 2023 at 11:38:18AM -0400, Peter Xu wrote: > On Sat, Aug 12, 2023 at 09:11:33AM +0800, kernel test robot wrote: > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > head: 190bf7b14b0cf3df19c059061be032bd8994a597 > > commit: be45a4902c7caa717fee6b2f671e59b396ed395c mm/swap: cache maximum swapfile size when init swap > > date: 11 months ago > > config: mips-randconfig-r014-20230811 (https://download.01.org/0day-ci/archive/20230812/202308120906.Efohswpa-lkp@intel.com/config) > > compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) > > reproduce: (https://download.01.org/0day-ci/archive/20230812/202308120906.Efohswpa-lkp@intel.com/reproduce) > > > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > > the same patch/commit), kindly add following tags > > | Reported-by: kernel test robot <lkp@intel.com> > > | Closes: https://lore.kernel.org/oe-kbuild-all/202308120906.Efohswpa-lkp@intel.com/ > > > > All errors (new ones prefixed by >>): > > > > >> Cannot find symbol for section 69: .text.arch_max_swapfile_size. > > mm/swapfile.o: failed > > Hmm.. I don't really know what's the issue here, neither can I reproduce > this locally - the cross build seems to all work with the reproducer and I > can see mm/swapfile.o correctly generated. This is https://github.com/ClangBuiltLinux/linux/issues/1830 and https://github.com/ClangBuiltLinux/linux/issues/981, which is a bug in recordmcount with regards to section symbols that occurs when building with clang's integrated assembler. It happens when the there are only weak symbols in a .text section, which occurs more often with MIPS due to LD_DEAD_CODE_DATA_ELIMINATION implying -ffunction-sections (i.e., any __weak symbol will trigger this) and I can see this randconfig setting it. Unfortunately, the robot seems to have tripped over this a lot over the weekend :/ Intel folks, can this type of warning please be added to your filter for at least MIPS + LD_DEAD_CODE_DATA_ELIMINATION so that people don't get bothered? https://lore.kernel.org/202308121810.APAJIBxn-lkp@intel.com/ https://lore.kernel.org/202308121535.otQuZept-lkp@intel.com/ https://lore.kernel.org/202308121810.APAJIBxn-lkp@intel.com/ https://lore.kernel.org/202308121246.0TYkHC1K-lkp@intel.com/ https://lore.kernel.org/202308120553.IRzzfaXL-lkp@intel.com/ https://lore.kernel.org/202308111956.QRc8XJVr-lkp@intel.com/ Cheers, Nathan ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Cannot find symbol for section 69: .text.arch_max_swapfile_size. 2023-08-14 15:47 ` Nathan Chancellor @ 2023-08-15 1:49 ` Liu, Yujie 0 siblings, 0 replies; 4+ messages in thread From: Liu, Yujie @ 2023-08-15 1:49 UTC (permalink / raw) To: nathan, peterx, lkp Cc: Huang, Ying, linux-mm, llvm, linux-kernel, oe-kbuild-all, akpm On Mon, 2023-08-14 at 08:47 -0700, Nathan Chancellor wrote: > On Mon, Aug 14, 2023 at 11:38:18AM -0400, Peter Xu wrote: > > On Sat, Aug 12, 2023 at 09:11:33AM +0800, kernel test robot wrote: > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > > head: 190bf7b14b0cf3df19c059061be032bd8994a597 > > > commit: be45a4902c7caa717fee6b2f671e59b396ed395c mm/swap: cache maximum swapfile size when init swap > > > date: 11 months ago > > > config: mips-randconfig-r014-20230811 (https://download.01.org/0day-ci/archive/20230812/202308120906.Efohswpa-lkp@intel.com/config) > > > compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a) > > > reproduce: (https://download.01.org/0day-ci/archive/20230812/202308120906.Efohswpa-lkp@intel.com/reproduce) > > > > > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > > > the same patch/commit), kindly add following tags > > > > Reported-by: kernel test robot <lkp@intel.com> > > > > Closes: https://lore.kernel.org/oe-kbuild-all/202308120906.Efohswpa-lkp@intel.com/ > > > > > > All errors (new ones prefixed by >>): > > > > > > > > Cannot find symbol for section 69: .text.arch_max_swapfile_size. > > > mm/swapfile.o: failed > > > > Hmm.. I don't really know what's the issue here, neither can I reproduce > > this locally - the cross build seems to all work with the reproducer and I > > can see mm/swapfile.o correctly generated. > > This is https://github.com/ClangBuiltLinux/linux/issues/1830 and > https://github.com/ClangBuiltLinux/linux/issues/981, which is a bug in > recordmcount with regards to section symbols that occurs when building > with clang's integrated assembler. It happens when the there are only > weak symbols in a .text section, which occurs more often with MIPS due > to LD_DEAD_CODE_DATA_ELIMINATION implying -ffunction-sections (i.e., any > __weak symbol will trigger this) and I can see this randconfig setting > it. > > Unfortunately, the robot seems to have tripped over this a lot over the > weekend :/ Intel folks, can this type of warning please be added to your > filter for at least MIPS + LD_DEAD_CODE_DATA_ELIMINATION so that people > don't get bothered? Sorry for the noise. We've added this type of warning to the filter of the bot. Thanks, Yujie > https://lore.kernel.org/202308121810.APAJIBxn-lkp@intel.com/ > https://lore.kernel.org/202308121535.otQuZept-lkp@intel.com/ > https://lore.kernel.org/202308121810.APAJIBxn-lkp@intel.com/ > https://lore.kernel.org/202308121246.0TYkHC1K-lkp@intel.com/ > https://lore.kernel.org/202308120553.IRzzfaXL-lkp@intel.com/ > https://lore.kernel.org/202308111956.QRc8XJVr-lkp@intel.com/ > > Cheers, > Nathan > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-08-15 1:49 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-08-12 1:11 Cannot find symbol for section 69: .text.arch_max_swapfile_size kernel test robot 2023-08-14 15:38 ` Peter Xu 2023-08-14 15:47 ` Nathan Chancellor 2023-08-15 1:49 ` Liu, Yujie
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox