Running phase: unpackPhase @nix { "action": "setPhase", "phase": "unpackPhase" } unpacking source archive /nix/store/bn4120cgi19f45rgf53xf4z0f4b0yyah-AMDPowerProfilerDriverSource.tar.gz source root is AMDPowerProfiler-10.6 setting SOURCE_DATE_EPOCH to timestamp 1749122721 of file "AMDPowerProfiler-10.6/src/PwrSampleCollect.c" Running phase: patchPhase @nix { "action": "setPhase", "phase": "patchPhase" } applying patch /nix/store/r04qhrrvi7qxsk3n6pk6ajb9bbjgjgqs-makefile.patch patching file Makefile applying patch /nix/store/hh99df2p9f5alfyg5y5j0w8yzdk7vafw-hrtimer.patch patching file src/PmcTimerConfig.c patching file src/PwrProfTimer.c Running phase: updateAutotoolsGnuConfigScriptsPhase @nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" } Running phase: configurePhase @nix { "action": "setPhase", "phase": "configurePhase" } no configure script, doing nothing Running phase: buildPhase @nix { "action": "setPhase", "phase": "buildPhase" } build flags: SHELL=/nix/store/rlq03x4cwf8zn73hxaxnx0zn5q9kifls-bash-5.3p3/bin/bash KERNEL_VERSION=6.17.9 KERNEL_DIR=/nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/build INSTALL_MOD_PATH=\$\(out\) make -C /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/build M=/build/AMDPowerProfiler-10.6 CFLAGS_MODULE="-I/build/AMDPowerProfiler-10.6/inc -mpopcnt -DKERNEL_MODULE" modules make[1]: Entering directory '/nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/build' make[2]: Entering directory '/build/AMDPowerProfiler-10.6' CC [M] src/PmcDataBufferOps.o CC [M] src/PmcProcessConfig.o In file included from /build/AMDPowerProfiler-10.6/inc/PwrProfInternal.h:33, from /build/AMDPowerProfiler-10.6/inc/PwrDriverInternal.h:25, from /build/AMDPowerProfiler-10.6/inc/PwrDriverUtils.h:25, from src/PmcProcessConfig.c:33: /build/AMDPowerProfiler-10.6/inc/PwrProfAsm.h:350:9: warning: "rdmsrq" redefined 350 | #define rdmsrq(msr,val1,val2,val3,val4) ({ \ | ^~~~~~ In file included from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/irqflags.h:102, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/irqflags.h:18, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/spinlock.h:59, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/wait.h:9, from /build/AMDPowerProfiler-10.6/inc/PmcOsTypes.h:27, from /build/AMDPowerProfiler-10.6/inc/PmcCommonDataTypes.h:27, from /build/AMDPowerProfiler-10.6/inc/PmcProcessConfig.h:27, from src/PmcProcessConfig.c:26: /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/paravirt.h:210:9: note: this is the location of the previous definition 210 | #define rdmsrq(msr, val) \ | ^~~~~~ CC [M] src/PmcTimerConfig.o CC [M] src/PmcUtils.o CC [M] src/PwrAccessPmcData.o In file included from /build/AMDPowerProfiler-10.6/inc/PwrProfInternal.h:33, from /build/AMDPowerProfiler-10.6/inc/PwrDriverInternal.h:25, from /build/AMDPowerProfiler-10.6/inc/PwrDriverUtils.h:25, from src/PwrAccessPmcData.c:25: /build/AMDPowerProfiler-10.6/inc/PwrProfAsm.h:350:9: warning: "rdmsrq" redefined 350 | #define rdmsrq(msr,val1,val2,val3,val4) ({ \ | ^~~~~~ In file included from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/irqflags.h:102, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/irqflags.h:18, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/spinlock.h:59, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/mmzone.h:8, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/gfp.h:7, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/slab.h:16, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/resource_ext.h:11, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/acpi.h:13, from /build/AMDPowerProfiler-10.6/inc/PwrOsPrimitives.h:46, from src/PwrAccessPmcData.c:24: /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/paravirt.h:210:9: note: this is the location of the previous definition 210 | #define rdmsrq(msr, val) \ | ^~~~~~ CC [M] src/PwrCommonConfig.o In file included from /build/AMDPowerProfiler-10.6/inc/PwrProfInternal.h:33, from src/PwrCommonConfig.c:25: /build/AMDPowerProfiler-10.6/inc/PwrProfAsm.h:350:9: warning: "rdmsrq" redefined 350 | #define rdmsrq(msr,val1,val2,val3,val4) ({ \ | ^~~~~~ In file included from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/irqflags.h:102, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/irqflags.h:18, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/spinlock.h:59, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/mmzone.h:8, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/gfp.h:7, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/slab.h:16, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/resource_ext.h:11, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/acpi.h:13, from /build/AMDPowerProfiler-10.6/inc/PwrOsPrimitives.h:46, from src/PwrCommonConfig.c:24: /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/paravirt.h:210:9: note: this is the location of the previous definition 210 | #define rdmsrq(msr, val) \ | ^~~~~~ CC [M] src/PwrCommonHelper.o In file included from /build/AMDPowerProfiler-10.6/inc/PwrProfInternal.h:33, from /build/AMDPowerProfiler-10.6/inc/PwrDriverInternal.h:25, from /build/AMDPowerProfiler-10.6/inc/PwrDriverUtils.h:25, from src/PwrCommonHelper.c:26: /build/AMDPowerProfiler-10.6/inc/PwrProfAsm.h:350:9: warning: "rdmsrq" redefined 350 | #define rdmsrq(msr,val1,val2,val3,val4) ({ \ | ^~~~~~ In file included from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/irqflags.h:102, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/irqflags.h:18, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/spinlock.h:59, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/mmzone.h:8, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/gfp.h:7, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/slab.h:16, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/resource_ext.h:11, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/acpi.h:13, from /build/AMDPowerProfiler-10.6/inc/PwrOsPrimitives.h:46, from src/PwrCommonHelper.c:25: /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/paravirt.h:210:9: note: this is the location of the previous definition 210 | #define rdmsrq(msr, val) \ | ^~~~~~ CC [M] src/PwrCounterAccessInterface.o In file included from /build/AMDPowerProfiler-10.6/inc/PwrProfInternal.h:33, from /build/AMDPowerProfiler-10.6/inc/PwrDriverInternal.h:25, from /build/AMDPowerProfiler-10.6/inc/PwrDriverUtils.h:25, from src/PwrCounterAccessInterface.c:25: /build/AMDPowerProfiler-10.6/inc/PwrProfAsm.h:350:9: warning: "rdmsrq" redefined 350 | #define rdmsrq(msr,val1,val2,val3,val4) ({ \ | ^~~~~~ In file included from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/irqflags.h:102, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/irqflags.h:18, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/spinlock.h:59, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/mmzone.h:8, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/gfp.h:7, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/slab.h:16, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/resource_ext.h:11, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/acpi.h:13, from /build/AMDPowerProfiler-10.6/inc/PwrOsPrimitives.h:46, from src/PwrCounterAccessInterface.c:24: /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/paravirt.h:210:9: note: this is the location of the previous definition 210 | #define rdmsrq(msr, val) \ | ^~~~~~ CC [M] src/PwrDriverUtils.o In file included from /build/AMDPowerProfiler-10.6/inc/PwrProfInternal.h:33, from /build/AMDPowerProfiler-10.6/inc/PwrDriverInternal.h:25, from /build/AMDPowerProfiler-10.6/inc/PwrCounterAccessInterface.h:26, from src/PwrDriverUtils.c:27: /build/AMDPowerProfiler-10.6/inc/PwrProfAsm.h:350:9: warning: "rdmsrq" redefined 350 | #define rdmsrq(msr,val1,val2,val3,val4) ({ \ | ^~~~~~ In file included from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/irqflags.h:102, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/irqflags.h:18, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/spinlock.h:59, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/mmzone.h:8, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/gfp.h:7, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/slab.h:16, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/resource_ext.h:11, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/acpi.h:13, from /build/AMDPowerProfiler-10.6/inc/PwrOsPrimitives.h:46, from src/PwrDriverUtils.c:26: /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/paravirt.h:210:9: note: this is the location of the previous definition 210 | #define rdmsrq(msr, val) \ | ^~~~~~ CC [M] src/PwrOsPrimitives.o In file included from /build/AMDPowerProfiler-10.6/inc/PwrProfInternal.h:33, from /build/AMDPowerProfiler-10.6/inc/PwrDriverInternal.h:25, from /build/AMDPowerProfiler-10.6/inc/PwrDriverUtils.h:25, from src/PwrOsPrimitives.c:45: /build/AMDPowerProfiler-10.6/inc/PwrProfAsm.h:350:9: warning: "rdmsrq" redefined 350 | #define rdmsrq(msr,val1,val2,val3,val4) ({ \ | ^~~~~~ In file included from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/irqflags.h:102, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/irqflags.h:18, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/special_insns.h:10, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/io.h:45, from src/PwrOsPrimitives.c:25: /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/paravirt.h:210:9: note: this is the location of the previous definition 210 | #define rdmsrq(msr, val) \ | ^~~~~~ CC [M] src/PwrProfDebugHelper.o CC [M] src/PwrProfEntry.o In file included from /build/AMDPowerProfiler-10.6/inc/PwrProfInternal.h:33, from /build/AMDPowerProfiler-10.6/inc/PwrDriverInternal.h:25, from /build/AMDPowerProfiler-10.6/inc/PwrDriverUtils.h:25, from src/PwrProfEntry.c:33: /build/AMDPowerProfiler-10.6/inc/PwrProfAsm.h:350:9: warning: "rdmsrq" redefined 350 | #define rdmsrq(msr,val1,val2,val3,val4) ({ \ | ^~~~~~ In file included from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/cpuid/api.h:57, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/processor.h:19, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/sched.h:13, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/uaccess.h:9, from src/PwrProfEntry.c:25: /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/paravirt.h:210:9: note: this is the location of the previous definition 210 | #define rdmsrq(msr, val) \ | ^~~~~~ CC [M] src/PwrProfModule.o CC [M] src/PwrProfSharedMemOps.o In file included from /build/AMDPowerProfiler-10.6/inc/PwrProfInternal.h:33, from /build/AMDPowerProfiler-10.6/inc/PwrDriverInternal.h:25, from /build/AMDPowerProfiler-10.6/inc/PwrDriverUtils.h:25, from src/PwrProfSharedMemOps.c:36: /build/AMDPowerProfiler-10.6/inc/PwrProfAsm.h:350:9: warning: "rdmsrq" redefined 350 | #define rdmsrq(msr,val1,val2,val3,val4) ({ \ | ^~~~~~ In file included from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/irqflags.h:102, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/irqflags.h:18, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/spinlock.h:59, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/wait.h:9, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/wait_bit.h:8, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/fs.h:7, from src/PwrProfSharedMemOps.c:25: /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/paravirt.h:210:9: note: this is the location of the previous definition 210 | #define rdmsrq(msr, val) \ | ^~~~~~ CC [M] src/PwrProfTimer.o In file included from /build/AMDPowerProfiler-10.6/inc/PwrProfInternal.h:33, from /build/AMDPowerProfiler-10.6/inc/PwrDriverInternal.h:25, from /build/AMDPowerProfiler-10.6/inc/PwrCommonConfig.h:25, from src/PwrProfTimer.c:39: /build/AMDPowerProfiler-10.6/inc/PwrProfAsm.h:350:9: warning: "rdmsrq" redefined 350 | #define rdmsrq(msr,val1,val2,val3,val4) ({ \ | ^~~~~~ In file included from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/cpuid/api.h:57, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/processor.h:19, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/timex.h:5, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/timex.h:67, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/time32.h:13, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/time.h:60, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/jiffies.h:10, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/ktime.h:25, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/hrtimer_defs.h:5, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/hrtimer.h:15, from src/PwrProfTimer.c:26: /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/paravirt.h:210:9: note: this is the location of the previous definition 210 | #define rdmsrq(msr, val) \ | ^~~~~~ CC [M] src/PwrProfTimerHelper.o In file included from /build/AMDPowerProfiler-10.6/inc/PwrProfInternal.h:33, from /build/AMDPowerProfiler-10.6/inc/PwrDriverInternal.h:25, from /build/AMDPowerProfiler-10.6/inc/PwrProfTimerHelper.h:26, from src/PwrProfTimerHelper.c:26: /build/AMDPowerProfiler-10.6/inc/PwrProfAsm.h:350:9: warning: "rdmsrq" redefined 350 | #define rdmsrq(msr,val1,val2,val3,val4) ({ \ | ^~~~~~ In file included from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/irqflags.h:102, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/irqflags.h:18, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/spinlock.h:59, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/mmzone.h:8, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/gfp.h:7, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/slab.h:16, from src/PwrProfTimerHelper.c:24: /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/paravirt.h:210:9: note: this is the location of the previous definition 210 | #define rdmsrq(msr, val) \ | ^~~~~~ CC [M] src/PwrSampleCollect.o In file included from /build/AMDPowerProfiler-10.6/inc/PwrProfInternal.h:33, from /build/AMDPowerProfiler-10.6/inc/PwrDriverInternal.h:25, from /build/AMDPowerProfiler-10.6/inc/PwrCounterAccessInterface.h:26, from src/PwrSampleCollect.c:24: /build/AMDPowerProfiler-10.6/inc/PwrProfAsm.h:350:9: warning: "rdmsrq" redefined 350 | #define rdmsrq(msr,val1,val2,val3,val4) ({ \ | ^~~~~~ In file included from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/cpuid/api.h:57, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/processor.h:19, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/timex.h:5, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/timex.h:67, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/time32.h:13, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/time.h:60, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/jiffies.h:10, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/ktime.h:25, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/hrtimer_defs.h:5, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/hrtimer.h:15, from /build/AMDPowerProfiler-10.6/inc/PwrProfInternal.h:27: /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/paravirt.h:210:9: note: this is the location of the previous definition 210 | #define rdmsrq(msr, val) \ | ^~~~~~ In file included from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/elf.h:14, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/elf.h:6, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/module.h:20, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/device/driver.h:21, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/device.h:32, from /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/include/linux/acpi.h:14, from /build/AMDPowerProfiler-10.6/inc/PwrOsPrimitives.h:46, from src/PwrSampleCollect.c:25: /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/fsgsbase.h: In function 'x86_fsbase_read_cpu': /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/fsgsbase.h:63:43: error: macro "rdmsrq" requires 5 arguments, but only 2 given 63 | rdmsrq(MSR_FS_BASE, fsbase); | ^ /build/AMDPowerProfiler-10.6/inc/PwrProfAsm.h:350:9: note: macro "rdmsrq" defined here 350 | #define rdmsrq(msr,val1,val2,val3,val4) ({ \ | ^~~~~~ /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/fsgsbase.h:63:17: error: 'rdmsrq' undeclared (first use in this function); did you mean 'wrmsrq'? 63 | rdmsrq(MSR_FS_BASE, fsbase); | ^~~~~~ | wrmsrq /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/fsgsbase.h:63:17: note: each undeclared identifier is reported only once for each function it appears in /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/fsgsbase.h: In function 'x86_fsbase_write_cpu': /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/fsgsbase.h:73:43: error: macro "wrmsrq" requires 5 arguments, but only 2 given 73 | wrmsrq(MSR_FS_BASE, fsbase); | ^ /build/AMDPowerProfiler-10.6/inc/PwrProfAsm.h:358:9: note: macro "wrmsrq" defined here 358 | #define wrmsrq(msr,val1,val2,val3,val4) ({ \ | ^~~~~~ /nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/arch/x86/include/asm/fsgsbase.h:73:17: warning: statement with no effect []8;;https://gcc.gnu.org/onlinedocs/gcc-14.3.0/gcc/Warning-Options.html#index-Wno-unused-value-Wunused-value]8;;] 73 | wrmsrq(MSR_FS_BASE, fsbase); | ^~~~~~ make[4]: *** [/nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/scripts/Makefile.build:287: src/PwrSampleCollect.o] Error 1 make[3]: *** [/nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/Makefile:2011: .] Error 2 make[2]: *** [/nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/Makefile:248: __sub-make] Error 2 make[2]: Leaving directory '/build/AMDPowerProfiler-10.6' make[1]: *** [/nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/source/Makefile:248: __sub-make] Error 2 make[1]: Leaving directory '/nix/store/b2l91yvdmg7hr18wq2nv2izr74kh3c6k-linux-6.17.9-dev/lib/modules/6.17.9/build' make: *** [Makefile:69: all] Error 2