Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Chan__Matthew
Beginner
195 Views

Kernel driver build fails on Fedora 30. Asm macros not substituted.

Hi, I previously posted about this same problem on Fedora 31, an unsupported OS. I tried today on Fedora 30 (a supported OS) and ran into the exact same problem. Here's the previous post with full details: https://software.intel.com/en-us/forums/vtune/topic/850745

0 Kudos
7 Replies
AthiraM_Intel
Moderator
195 Views

Hi,

Thanks for reaching out to us.

Could you please provide us the steps you used for building the driver, so that we can reproduce the same.

 

Thanks

Chan__Matthew
Beginner
195 Views

Hi,

Sure. I replied here: https://software.intel.com/en-us/forums/vtune/topic/850745#comment-1955175

It is the same problem, but being reproduced on two different OS versions it seems. 

Thanks,

Egor_S_Intel1
Employee
195 Views

Hi Matthew,
What version of Linux kernel is installed on your system? Could you please send the output of the command:

uname -r

Thanks.

Chan__Matthew
Beginner
195 Views

Hi Egor,

I'm running the latest Fedora 30 kernel, which is 5.5.

$ uname -r
5.5.10-100.fc30.x86_64

I tried the patch you linked in the Fedora 31 post and it can find the correct asm macros now, but it gives a different error:

$ sudo make
make[1]: Entering directory '/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/socperf/src'
make -C /lib/modules/5.5.10-100.fc30.x86_64/build M=/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/socperf/src LDDINCDIR=/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/socperf/src/../include LDDINCDIR1=/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/socperf/src/inc modules PWD=/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/socperf/src -j4
make[2]: Entering directory '/usr/src/kernels/5.5.10-100.fc30.x86_64'
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/socperf/src/socperfdrv.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/socperf/src/control.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/socperf/src/utility.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/socperf/src/pmu_list.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/socperf/src/pci.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/socperf/src/soc_uncore.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/socperf/src/haswellunc_sa.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/socperf/src/npk_uncore.o
  LD   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/socperf/src/socperf3.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/socperf/src/socperf3.mod.o
  LD   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/socperf/src/socperf3.ko
make[2]: Leaving directory '/usr/src/kernels/5.5.10-100.fc30.x86_64'
cp socperf3.ko socperf3-x32_64-5.5.10-100.fc30.x86_64smp.ko
make[1]: Leaving directory '/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/socperf/src'
make -C /lib/modules/5.5.10-100.fc30.x86_64/build M=/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src LDDINCDIR=/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/../include LDDINCDIR1=/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/inc modules PWD=/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src -j4
make[1]: Entering directory '/usr/src/kernels/5.5.10-100.fc30.x86_64'
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/lwpmudrv.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/control.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/cpumon.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/eventmux.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/linuxos.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/output.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pmi.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sys_info.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/utility.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/valleyview_sochap.o
/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/utility.c: In function ‘UTILITY_Log’:
/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/utility.c:846:79: warning: ‘*’ in boolean context, suggest ‘&&’ instead [-Wint-in-bool-context]
  846 |                 if ((category_verbosity & LOG_CHANNEL_PRINTK) * !in_interrupt * !in_notification) {
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_power.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pmu_list.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pci.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/chap.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/gmch.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/gfx.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_sa.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/core2.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/perfver4.o
  AS   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sys64.o
/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sys64.o: warning: objtool: .text+0x11: unreachable instruction
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/silvermont.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/apic.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pebs.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_gt.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_mmio.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_msr.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_common.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_pci.o
  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sepdrv_p_state.o
  LD   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.o
  Building modules, stage 2.
  MODPOST 1 modules
ERROR: "SOCPERF_Switch_Group3" [/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.ko] undefined!
ERROR: "SOCPERF_Read_Data3" [/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.ko] undefined!
make[2]: *** [scripts/Makefile.modpost:94: __modpost] Error 1
make[1]: *** [Makefile:1606: modules] Error 2

Thank you for your help,

Matt

Egor_S_Intel1
Employee
195 Views

Hi Matt,

It looks like the build-driver script is not patched. Please make sure that value for make_args variable at sepdk/src/build-driver:755 also contains KBUILD_EXTRA_SYMBOLS=${DRIVER_SOURCE_DIRECTORY}/socperf/src/Module.symvers argument for make command. Could you please check it?
Thanks.

Chan__Matthew
Beginner
195 Views

Hi Egor,

Hmm, it looks like line 755 was patched properly:

make_args="KERNEL_VERSION=$kernel_version KERNEL_SRC_DIR=$KERNEL_SRC_DIR PER_USER_MODE=$PER_USER_MODE NMI_MODE=$NMI_MODE MINLOG_MODE=$MINLOG_MODE MAXLOG_MODE=$MAXLOG_MODE KBUILD_EXTRA_SYMBOLS=${DRIVER_SOURCE_DIRECTORY}/socperf/src/Module.symvers $make_args"

make -n output changes after I apply the patch so I guess it's working to some degree?

Here's the output:

$ make -n
(cd /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/socperf/src && make all)
cp /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/socperf/src/Module*.symvers .
make -C /lib/modules/5.5.10-100.fc30.x86_64/build M=/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src LDDINCDIR=/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/../include LDDINCDIR1=/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/inc modules PWD=/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src -j4
make[1]: Entering directory '/usr/src/kernels/5.5.10-100.fc30.x86_64'
make -f ./scripts/Makefile.build obj=/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src \
single-build= \
need-builtin=1 need-modorder=1
test -e ./Module.symvers || ( \
echo; \
echo "  WARNING: Symbol version dump ./Module.symvers"; \
echo "           is missing; modules will have no dependencies and modversions."; \
echo )
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  
:
set -e;  echo '  LD   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.o'; ld -m elf_x86_64  -z max-page-size=0x200000    -r -o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/lwpmudrv.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/control.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/cpumon.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/eventmux.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/linuxos.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/output.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pmi.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sys_info.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/utility.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/valleyview_sochap.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_power.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pmu_list.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pci.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/chap.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/gmch.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/gfx.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_sa.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/core2.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/perfver4.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sys64.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/silvermont.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/apic.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pebs.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_gt.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_mmio.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_msr.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_common.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_pci.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sepdrv_p_state.o; printf '%s\n' 'cmd_/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.o := ld -m elf_x86_64  -z max-page-size=0x200000    -r -o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/lwpmudrv.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/control.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/cpumon.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/eventmux.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/linuxos.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/output.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pmi.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sys_info.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/utility.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/valleyview_sochap.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_power.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pmu_list.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pci.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/chap.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/gmch.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/gfx.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_sa.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/core2.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/perfver4.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sys64.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/silvermont.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/apic.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pebs.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_gt.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_mmio.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_msr.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_common.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_pci.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sepdrv_p_state.o' > /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/.sep5.o.cmd
set -e;  { echo  /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/lwpmudrv.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/control.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/cpumon.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/eventmux.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/linuxos.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/output.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pmi.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sys_info.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/utility.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/valleyview_sochap.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_power.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pmu_list.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pci.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/chap.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/gmch.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/gfx.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_sa.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/core2.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/perfver4.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sys64.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/silvermont.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pci.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/apic.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pebs.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_gt.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_mmio.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_msr.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_common.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_pci.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sepdrv_p_state.o; echo; } > /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.mod; printf '%s\n' 'cmd_/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.mod := { echo  /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/lwpmudrv.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/control.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/cpumon.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/eventmux.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/linuxos.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/output.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pmi.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sys_info.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/utility.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/valleyview_sochap.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_power.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pmu_list.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pci.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/chap.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/gmch.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/gfx.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_sa.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/core2.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/perfver4.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sys64.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/silvermont.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pci.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/apic.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/pebs.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_gt.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_mmio.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_msr.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_common.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/unc_pci.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sepdrv_p_state.o; echo; } > /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.mod' > /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/.sep5.mod.cmd
{   echo /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.ko; :; } \
| awk '!x[$0]++' - > /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/modules.order
:
make -f ./scripts/Makefile.modpost
echo '  Building modules, stage 2.'
set -e;  echo '  MODPOST 1 modules'; sed 's/ko$/o/' /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/modules.order | scripts/mod/modpost   -i ./Module.symvers  -o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/Module.symvers    -s -T - 
make -f ./scripts/Makefile.modfinal
set -e;  echo '  CC   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.mod.o'; gcc -Wp,-MD,/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/.sep5.mod.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/9/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -Wno-address-of-packed-member -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wimplicit-fallthrough -Wno-unused-const-variable -fno-var-tracking-assignments -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -fcf-protection=none -Wno-packed-not-aligned  -DMODULE  -DKBUILD_BASENAME='"sep5.mod"' -DKBUILD_MODNAME='"sep5"' -c -o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.mod.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.mod.c; scripts/basic/fixdep /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/.sep5.mod.o.d /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.mod.o 'gcc -Wp,-MD,/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/.sep5.mod.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/9/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -Wno-address-of-packed-member -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_SSSE3=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -Wno-sign-compare -fno-asynchronous-unwind-tables -mindirect-branch=thunk-extern -mindirect-branch-register -fno-jump-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wimplicit-fallthrough -Wno-unused-const-variable -fno-var-tracking-assignments -g -pg -mrecord-mcount -mfentry -DCC_USING_FENTRY -flive-patching=inline-clone -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-map=./= -fcf-protection=none -Wno-packed-not-aligned  -DMODULE  -DKBUILD_BASENAME='\''"sep5.mod"'\'' -DKBUILD_MODNAME='\''"sep5"'\'' -c -o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.mod.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.mod.c' > /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/.sep5.mod.o.cmd; rm -f /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/.sep5.mod.o.d
set -e;  echo '  LD   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.ko'; ld -r -m elf_x86_64  -z max-page-size=0x200000  --build-id  -T ./scripts/module-common.lds -o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.ko /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.mod.o;  true; printf '%s\n' 'cmd_/opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.ko := ld -r -m elf_x86_64  -z max-page-size=0x200000  --build-id  -T ./scripts/module-common.lds -o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.ko /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.o /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.mod.o;  true' > /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/.sep5.ko.cmd
  LD   /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.ko
ld: cannot find /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.mod.o: No such file or directory
make[3]: *** [scripts/Makefile.modfinal:41: /opt/intel/vtune_profiler_2020.0.0.605129/sepdk/src/sep5.ko] Error 1
make[2]: *** [scripts/Makefile.modpost:95: __modpost] Error 2
make[1]: *** [Makefile:1606: modules] Error 2
make[1]: Leaving directory '/usr/src/kernels/5.5.10-100.fc30.x86_64'
make: *** [Makefile:215: default] Error 2

 

ArunJ_Intel
Moderator
195 Views

Hey Matt,

Closing this case as you have mentioned in the below thread that you issue is resolved

https://software.intel.com/en-us/forums/vtune/topic/850745

 

Please feel free to raise a new thread for further issues

Thanks

Arun Jose

Reply