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

problem with builting Sampler Driver Ubuntu 24.04

BinhBS
Beginner
261 Views

Hallo,

I try to build it at /opt/intel/oneapi/vtune/2025.8/sepdk/src

using: sudo ./build-driver

but have the the following errors:

C compiler to use: [ /bin/gcc ] /usr/bin/x86_64-linux-gnu-gcc-13
C compiler version: 13.3.0

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

Kernel source directory: [ /lib/modules/6.14.0-37-generic/build ]
Kernel version: 6.14.0-37-generic

Cleaning workspaces ...
Done

Building sep driver ...
sys64.o: warning: objtool: .text+0x35: unreachable instruction
sys64.o: warning: objtool: .text+0x36: unreachable instruction

/bin/sh: 1: pahole: not found
make[4]: *** [/usr/src/linux-headers-6.14.0-37-generic/scripts/Makefile.modfinal:57: sep5.ko] Error 127
make[4]: *** Deleting file 'sep5.ko'
make[3]: *** [/usr/src/linux-headers-6.14.0-37-generic/Makefile:1928: modules] Error 2
make[2]: *** [/usr/src/linux-headers-6.14.0-37-generic/Makefile:251: __sub-make] Error 2

 

Could you pls help me by solving this problem? Thanks, Binh

0 Kudos
3 Replies
MinYeol_L_Intel
Employee
232 Views

Can you try installing dwarves package and try the build again?

 

sudo apt update
sudo apt install dwarves

 

0 Kudos
BinhBS
Beginner
202 Views

thanks you for your info.

Unfortunately, I also have errors after successfully installing dwarves like:

sys64.o: error: objtool: .text+0xf9: unreachable instruction
make[4]: *** [/usr/src/linux-headers-6.17.0-14-generic/scripts/Makefile.build:430: sys64.o] Error 1
make[4]: *** Deleting file 'sys64.o'
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [/usr/src/linux-headers-6.17.0-14-generic/Makefile:2016: .] Error 2
make[2]: *** [/usr/src/linux-headers-6.17.0-14-generic/Makefile:248: __sub-make] Error 2
make[1]: *** [Makefile:248: __sub-make] Error 2

 

Thanks again. Binh

0 Kudos
Hyun-Hwahn
Employee
171 Views

There might have been 2 issues with your build.

and one of them was resolved by installing dwarvs.

to resolve the another issue, add --make-args="OBJECT_FILES_NON_STANDARD_sys64.o:=y" in the build command like below

./build-driver -ni --make-args="OBJECT_FILES_NON_STANDARD_sys64.o:=y"

0 Kudos
Reply