linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* next: mips: ERROR: modpost: Section mismatches detected.
@ 2023-04-20 11:01 Naresh Kamboju
  2023-04-20 15:45 ` Nathan Chancellor
  0 siblings, 1 reply; 2+ messages in thread
From: Naresh Kamboju @ 2023-04-20 11:01 UTC (permalink / raw)
  To: linux-mips, llvm, Linux-Next Mailing List
  Cc: Nathan Chancellor, Nick Desaulniers, Phil Mathieu-Daudé,
	Masahiro Yamada, Thomas Bogendoerfer, Arnd Bergmann,
	Anders Roxell

Following build failures noticed on Linux next-20230419 for mips.

Regressions found on mips:
 - build/clang-nightly-allnoconfig
 - build/clang-16-allnoconfig
 - build/clang-16-tinyconfig
 - build/clang-nightly-tinyconfig


arch/mips/kernel/genex.S:520:2: warning: macro defined with named
parameters which are not used in macro body, possible positional
parameter found in body which will have no effect
 .macro __BUILD_verbose nexception
 ^
WARNING: modpost: vmlinux.o: section mismatch in reference: check_bugs
(section: .text) -> check_bugs32 (section: .init.text)
ERROR: modpost: Section mismatches detected.
Set CONFIG_SECTION_MISMATCH_WARN_ONLY=y to allow them.
make[2]: *** [scripts/Makefile.modpost:136: vmlinux.symvers] Error 1
make[2]: *** Deleting file 'vmlinux.symvers'
make[2]: Target '__modpost' not remade because of errors.
make[1]: *** [Makefile:1978: modpost] Error 2


Build details:
---------
 - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230419/testrun/16367253/suite/build/test/clang-16-tinyconfig/details/
 - https://qa-reports.linaro.org/lkft/linux-next-master/build/next-20230419/testrun/16367253/suite/build/test/clang-16-tinyconfig/log


Steps to reproduce:
----------
# To install tuxmake on your system globally:
# sudo pip3 install -U tuxmake
#
# See https://docs.tuxmake.org/ for complete documentation.
# Original tuxmake command with fragments listed below.

tuxmake --runtime podman --target-arch mips --toolchain clang-16
--kconfig tinyconfig LLVM=1 LLVM_IAS=1


--
Linaro LKFT
https://lkft.linaro.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: next: mips: ERROR: modpost: Section mismatches detected.
  2023-04-20 11:01 next: mips: ERROR: modpost: Section mismatches detected Naresh Kamboju
@ 2023-04-20 15:45 ` Nathan Chancellor
  0 siblings, 0 replies; 2+ messages in thread
From: Nathan Chancellor @ 2023-04-20 15:45 UTC (permalink / raw)
  To: Naresh Kamboju
  Cc: linux-mips, llvm, Linux-Next Mailing List, Nick Desaulniers,
	Phil Mathieu-Daudé,
	Masahiro Yamada, Thomas Bogendoerfer, Arnd Bergmann,
	Anders Roxell

Hi Naresh,

On Thu, Apr 20, 2023 at 04:31:12PM +0530, Naresh Kamboju wrote:
> Following build failures noticed on Linux next-20230419 for mips.
> 
> Regressions found on mips:
>  - build/clang-nightly-allnoconfig
>  - build/clang-16-allnoconfig
>  - build/clang-16-tinyconfig
>  - build/clang-nightly-tinyconfig
> 
> 
> arch/mips/kernel/genex.S:520:2: warning: macro defined with named
> parameters which are not used in macro body, possible positional
> parameter found in body which will have no effect
>  .macro __BUILD_verbose nexception
>  ^
> WARNING: modpost: vmlinux.o: section mismatch in reference: check_bugs
> (section: .text) -> check_bugs32 (section: .init.text)
> ERROR: modpost: Section mismatches detected.
> Set CONFIG_SECTION_MISMATCH_WARN_ONLY=y to allow them.
> make[2]: *** [scripts/Makefile.modpost:136: vmlinux.symvers] Error 1
> make[2]: *** Deleting file 'vmlinux.symvers'
> make[2]: Target '__modpost' not remade because of errors.
> make[1]: *** [Makefile:1978: modpost] Error 2

Thanks for the report. I sent a patch for this yesterday:

https://lore.kernel.org/20230419-mips-check_bugs-init-attribute-v1-1-91e6eed55b89@kernel.org/

Cheers,
Nathan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-20 15:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-20 11:01 next: mips: ERROR: modpost: Section mismatches detected Naresh Kamboju
2023-04-20 15:45 ` Nathan Chancellor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).