Skip to content

Linker error on mcu.c with some specific config #104

@clandmeter

Description

@clandmeter

After applying sophgo_mango_normal_defconfig on top of our alpine linux edge kernel im receiving the following linker error. It seems to happen only on some specific config cases but im not sure which ones. This is based on commit: beafa88
With the following config: https://sprunge.us/PP7uUK

>>> linux-sophgo: Build kernel
  SYNC    include/config/auto.conf
  GEN     Makefile
  GEN     Makefile
  CALL    /home/clandmeter/aports/testing/linux-sophgo/src/linux-riscv-beafa8820ba0ea1e8aab84c4ebb0c907f828c963/scripts/checksyscalls.sh
  UPD     init/utsversion-tmp.h
  CC      init/version.o
  AR      init/built-in.a
  AR      built-in.a
  AR      vmlinux.a
  LD      vmlinux.o
  OBJCOPY modules.builtin.modinfo
  GEN     modules.builtin
  MODPOST Module.symvers
  UPD     include/generated/utsversion.h
  CC      init/version-timestamp.o
  LD      .tmp_vmlinux.kallsyms1
ld: drivers/soc/sophgo/umcu/mcu.o: in function `.L0 ':
mcu.c:(.text+0xf3e): undefined reference to `devm_hwmon_device_register_with_info'
make[1]: *** [/home/clandmeter/aports/testing/linux-sophgo/src/linux-riscv-beafa8820ba0ea1e8aab84c4ebb0c907f828c963/scripts/Makefile.vmlinux:34: vmlinux] Error 1
make: *** [/home/clandmeter/aports/testing/linux-sophgo/src/linux-riscv-beafa8820ba0ea1e8aab84c4ebb0c907f828c963/Makefile:1255: vmlinux] Error 2
make: *** Waiting for unfinished jobs....
>>> ERROR: linux-sophgo: build failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions