Skip to content

plat.c not compiling #14

@DavidBrayford

Description

@DavidBrayford

When I execute the make command in the and_hsmp directory. I get the following output/error:

I am running on Ubuntu:

cat /etc/os-release 
PRETTY_NAME="Ubuntu 25.04"
NAME="Ubuntu"
VERSION_ID="25.04"
VERSION="25.04 (Plucky Puffin)"
VERSION_CODENAME=plucky
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=plucky
LOGO=ubuntu-logo
make
make -C /lib/modules/`uname -r`/build M=$PWD modules
make[1]: Entering directory '/usr/src/linux-headers-6.14.0-32-generic'
make[2]: Entering directory '/home/user1/amd_hsmp'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-14 (Ubuntu 14.2.0-19ubuntu2) 14.2.0
  You are using:           gcc-14 (Ubuntu 14.2.0-19ubuntu2) 14.2.0
  CC [M]  acpi.o
  LD [M]  hsmp_acpi.o
  CC [M]  hsmp.o
  CC [M]  hwmon.o
  LD [M]  hsmp_common.o
  CC [M]  plat.o
plat.c: In function ‘init_platform_device’:
plat.c:212:68: error: ‘struct amd_northbridge’ has no member named ‘root’
  212 |                 sock->root                      = node_to_amd_nb(i)->root;
      |                                                                    ^~
make[4]: *** [/usr/src/linux-headers-6.14.0-32-generic/scripts/Makefile.build:207: plat.o] Error 1
make[3]: *** [/usr/src/linux-headers-6.14.0-32-generic/Makefile:1997: .] Error 2
make[2]: *** [/usr/src/linux-headers-6.14.0-32-generic/Makefile:251: __sub-make] Error 2
make[2]: Leaving directory '/home/user1/amd_hsmp'
make[1]: *** [Makefile:251: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.14.0-32-generic'
make: *** [Makefile:16: default] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions