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

./boot-script: 357: cannot create /usr/local/sbin/sep5-load.sh: Directory nonexistent

Stolk
Beginner
169 Views

When I try to install vtune on Ubuntu26.04 using this guide, with apt method, I get this error when setting up vtune package:

 

Setting up intel-oneapi-vtune (2026.3.0-5)…
C compiler version: 15.2.0
Make version: 4.4.1
Kernel version: 7.0.0-27-generic

Cleaning workspaces ... 
Done

Building sep driver ... 
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0
  You are using:           gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0
Skipping BTF generation for sep5.ko due to unavailability of vmlinux
Done

Building pax driver ... 
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0
  You are using:           gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0
Skipping BTF generation for pax.ko due to unavailability of vmlinux
Done

Building vtsspp driver ... 
make[1]: Entering directory '/home/intel/oneapi/vtune/2026.3/sepdk/src/vtsspp'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0
  You are using:           gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0
Skipping BTF generation for vtsspp.ko due to unavailability of vmlinux
make[1]: Leaving directory '/home/intel/oneapi/vtune/2026.3/sepdk/src/vtsspp'
Done

Building socwatch driver ... 
Building drivers for Linux target
/lib/modules/7.0.0-27-generic/build will be used as the kernel build directory
Using alternate compiler '/bin/gcc'
Removing previously built driver and scripts from /home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/drivers
'-c /bin/gcc -l -k /lib/modules/7.0.0-27-generic/build' options will be used to build the SoCWatch driver
-c /bin/gcc -l -k /lib/modules/7.0.0-27-generic/build
************ Building socwatch2_16-x32_64-7.0.0-27-genericsmp.ko driver ************
Using C compiler = /bin/gcc
Using kernel build dir = /lib/modules/7.0.0-27-generic/build
No module symvers file found
Using common inc dir = /home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_driver/../common/include
"/lib/modules/7.0.0-27-generic/build/include/linux/cpufreq.h" exists!
"/lib/modules/7.0.0-27-generic/build/include/linux/device/class.h" exists!
Using file name sw_driver
Make args = KERNEL_SRC_DIR=/lib/modules/7.0.0-27-generic/build CPUFREQ_FIX_BACKPORTED=1 CLASSCREATE_CHANGE_BACKPORTED=1 DO_DEBUG_BUILD=0 DO_PROFILING=0 COMMON_INC_DIR=/home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_dri
ver/../common/include MODULE_SYMVERS_FILE= FILE_NAME=sw_driver 
make[1]: Entering directory '/home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_driver'
make -C /lib/modules/7.0.0-27-generic/build M=/home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_driver clean
make[2]: Entering directory '/usr/src/linux-headers-7.0.0-27-generic'
make[3]: Entering directory '/home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_driver'
make[3]: Leaving directory '/home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_driver'
make[2]: Leaving directory '/usr/src/linux-headers-7.0.0-27-generic'
make[1]: Leaving directory '/home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_driver'
Using C compiler = /bin/gcc
Using kernel build dir = /lib/modules/7.0.0-27-generic/build
No module symvers file found
Using common inc dir = /home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_driver/../common/include
"/lib/modules/7.0.0-27-generic/build/include/linux/cpufreq.h" exists!
"/lib/modules/7.0.0-27-generic/build/include/linux/device/class.h" exists!
Using file name sw_driver
Make args = KERNEL_SRC_DIR=/lib/modules/7.0.0-27-generic/build CPUFREQ_FIX_BACKPORTED=1 CLASSCREATE_CHANGE_BACKPORTED=1 DO_DEBUG_BUILD=0 DO_PROFILING=0 COMMON_INC_DIR=/home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_dri
ver/../common/include MODULE_SYMVERS_FILE= FILE_NAME=sw_driver 
make[1]: Entering directory '/home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_driver'
make -C /lib/modules/7.0.0-27-generic/build M=/home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_driver clean
make[2]: Entering directory '/usr/src/linux-headers-7.0.0-27-generic'
make[3]: Entering directory '/home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_driver'
make[3]: Leaving directory '/home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_driver'
make[2]: Leaving directory '/usr/src/linux-headers-7.0.0-27-generic'
************************************************************
KERNEL_SRC_DIR=/lib/modules/7.0.0-27-generic/build
CPUFREQ_FIX_BACKPORTED=1
CLASSCREATE_CHANGE_BACKPORTED=1
MODULE_SYMVERS_FILE=
DO_DRIVER_PROFILING=0
INCDIR_1=/home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_driver/../common/include
************************************************************
make -C /lib/modules/7.0.0-27-generic/build M=/home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_driver modules PWD=/home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_driver
make[2]: Entering directory '/usr/src/linux-headers-7.0.0-27-generic'
make[3]: Entering directory '/home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_driver'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0
  You are using:           gcc (Ubuntu 15.2.0-16ubuntu1) 15.2.0
  CC [M]  src/sw_driver.o
  CC [M]  src/sw_hardware_io.o
  CC [M]  src/sw_output_buffer.o
  CC [M]  src/sw_tracepoint_handlers.o
  CC [M]  src/sw_collector.o
  CC [M]  src/sw_mem.o
  CC [M]  src/sw_internal.o
  CC [M]  src/sw_file_ops.o
  CC [M]  src/sw_ops_provider.o
  CC [M]  src/sw_trace_notifier_provider.o
  CC [M]  src/sw_reader.o
  CC [M]  src/sw_telem.o
  CC [M]  src/sw_pmt.o
  CC [M]  src/sw_counter_list.o
  CC [M]  src/sw_pci.o
  LD [M]  socwatch2_16.o
  MODPOST Module.symvers
  CC [M]  socwatch2_16.mod.o
  CC [M]  .module-common.o
  LD [M]  socwatch2_16.ko
  BTF [M] socwatch2_16.ko
Skipping BTF generation for socwatch2_16.ko due to unavailability of vmlinux
make[3]: Leaving directory '/home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_driver'
make[2]: Leaving directory '/usr/src/linux-headers-7.0.0-27-generic'
make[1]: Leaving directory '/home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_driver'
************ Built drivers are copied to /home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/drivers directory ************
Done

Done building the drivers

Configuring sep5 boot script with the following options:
    driver files = /opt/intel/oneapi/vtune/2026.3/sepdk/src/.
Creating systemd load script /usr/local/sbin/sep5-load.sh ... 
./boot-script: 357: cannot create /usr/local/sbin/sep5-load.sh: Directory nonexistent
chmod: cannot access '/usr/local/sbin/sep5-load.sh': No such file or directory
Unable to create systemd load script ... exiting.

 

0 Kudos
2 Replies
Stolk
Beginner
165 Views

To fix this, I did:

$ sudo mkdir /usr/local/sbin

Then: 

$ sudo apt-get install --reinstall intel-oneapi-vtune


Which gets me:

...
Skipping BTF generation for socwatch2_16.ko due to unavailability of vmlinux
make[3]: Leaving directory '/home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_driver'
make[2]: Leaving directory '/usr/src/linux-headers-7.0.0-27-generic'
make[1]: Leaving directory '/home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/socwatch_driver'
************ Built drivers are copied to /home/intel/oneapi/vtune/2026.3/sepdk/src/socwatch/drivers directory ************
Done

Done building the drivers

Configuring sep5 boot script with the following options:
    driver files = /opt/intel/oneapi/vtune/2026.3/sepdk/src/.
Creating systemd load script /usr/local/sbin/sep5-load.sh ... 
done.
Creating systemd boot config file /lib/systemd/system/sep5.service ... 
done.
Configuring autoload of sep5.service service ... 
Created symlink '/etc/systemd/system/multi-user.target.wants/sep5.service' → '/usr/lib/systemd/system/sep5.service'.
done.

 
I think it will be a good idea to add the creation of the installation dir to the debian setup script.

0 Kudos
Stolk
Beginner
161 Views

Sadly, vtune-gui just sits there at the splash screen, no TTY output, no progression to show a GUI.

$ source /opt/intel/oneapi/vtune/latest/vtune-vars.sh
$ vtune-gui

 

See attached file for self checker output.

0 Kudos
Reply