Section mismatches
Status: New User - Welcome
Joined: 07 Jan 2019
Posts: 1
Reply Quote
I rebuild the otherwise on MX-18 booting kernel 4.18 with v4.18.20-lqx2.patch with CONFIG_DEBUG_SECTION_MISMATCH=y configuration using the standard MX-18 compiler.

I got the following error:
:: Code ::
 GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  AR      init/built-in.a
  AR      built-in.a
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: vmlinux.o(.data+0x46eac): Section mismatch in reference from the variable logo_clut224 to the variable .init.rodata:logo_zen_clut224
The variable logo_clut224 references
the variable __initconst logo_zen_clut224
If the reference is valid then annotate the
variable with __init* or __refdata (see linux/init.h) or name the variable:
*_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console

FATAL: modpost: Section mismatches detected.
scripts/Makefile.modpost:98: die Regel für Ziel „vmlinux.o“ scheiterte
make[1]: *** [vmlinux.o] Fehler 1
Makefile:1019: die Regel für Ziel „vmlinux“ scheiterte
make: *** [vmlinux] Fehler 2
Is there anything I could do about that?
Back to top
Status: Assistant
Joined: 09 Sep 2008
Posts: 783
Reply Quote
In general, the only configuration I support is the configuration shipped with Liquorix.

In the Liquorix default config, mismatches are only treated as warnings:

I'm accepting patches to correct the issue, but otherwise, the mismatch is benign.
Back to top
Display posts from previous:   

All times are GMT - 8 Hours