Analyzers
Talk to fellow users of Intel Analyzer tools (Intel VTune™ Profiler, Intel Advisor)
5271 Discussions

Building Sampling drivers failed, header files not found

MickeJ-IUA
Novice
1,043 Views

Hi, when building sep drivers compilation fails. Linux Fedora workstation. Console output with errors:

ello@fedora:/opt/intel/oneapi/vtune/2025.4/sepdk/src$ sudo ./build-driver 
[sudo] password for ello: 

C compiler to use: [ /bin/gcc ] 
C compiler version: 15.2.1

Make command to use: [ /bin/make ] 
Make version: 4.4.1

Kernel source directory: [ /lib/modules/6.16.7-200.fc42.x86_64/build ] 
Kernel version: 6.16.7-200

Cleaning workspaces ... 
Done

Building sep driver ... 
lwpmudrv.c:30:10: fatal error: lwpmudrv_version.h: No such file or directory
   30 | #include "lwpmudrv_version.h"
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [/usr/src/kernels/6.16.7-200.fc42.x86_64/scripts/Makefile.build:287: lwpmudrv.o] Error 1
make[4]: *** Waiting for unfinished jobs....
eventmux.c:38:10: fatal error: lwpmudrv_types.h: No such file or directory
   38 | #include "lwpmudrv_types.h"
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [/usr/src/kernels/6.16.7-200.fc42.x86_64/scripts/Makefile.build:287: eventmux.o] Error 1
cpumon.c:44:10: fatal error: lwpmudrv_types.h: No such file or directory
   44 | #include "lwpmudrv_types.h"
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [/usr/src/kernels/6.16.7-200.fc42.x86_64/scripts/Makefile.build:287: cpumon.o] Error 1
control.c:40:10: fatal error: lwpmudrv_types.h: No such file or directory
   40 | #include "lwpmudrv_types.h"
      |          ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [/usr/src/kernels/6.16.7-200.fc42.x86_64/scripts/Makefile.build:287: control.o] Error 1
make[3]: *** [/usr/src/kernels/6.16.7-200.fc42.x86_64/Makefile:2033: .] Error 2
make[2]: *** [/usr/src/kernels/6.16.7-200.fc42.x86_64/Makefile:248: __sub-make] Error 2
make[1]: *** [Makefile:248: __sub-make] Error 2
make: *** [Makefile:234: default] Error 2

Failed to build the drivers

 

0 Kudos
2 Replies
jonejames235
Novice
207 Views

The build fails because required header files (lwpmudrv_version.h and lwpmudrv_types.h) are missing. Make sure the SEP driver source is complete and that all dependencies are installed. Often, this happens if the source folder isn’t fully extracted or the build script can’t locate the headers. Verify the source directory and include paths before rebuilding.

0 Kudos
MickeJ-IUA
Novice
62 Views

What a bad answer, must be AI...

The installation readme.txt states:

------------------

# build the driver:
cd /path/to/sepdk/sources/
./build-driver

----------------

There is no "path/to/sepdk/sources/", it is actually "path/to/sepdk/src/"

Your AI slop answer "...the build script can’t locate the headers..." true that.

The "missing" headers is located in "/opt/intel/oneapi/vtune/2025.4/sepdk/src/inc" folder. 

The make file complains it can not find headers located in the /inc  subfolder. What should i do, customize the Intels make file? Is it not better that Intel ships a makefile and readme.txt that is correct and works?

0 Kudos
Reply