spdk-rs icon indicating copy to clipboard operation
spdk-rs copied to clipboard

Build failed for `build/include/spdk_internal` doesn't exist

Open Xuanwo opened this issue 1 year ago • 2 comments

Describe the bug

I tried to build spdk-rs with README but failed for

failed to run custom build command for `spdk-rs v0.1.0 (/home/xuanwo/Code/openebs/spdk-rs)`

Caused by:
  process didn't exit successfully: `/home/xuanwo/Code/openebs/spdk-rs/target/debug/build/spdk-rs-52a1fec7aa47c81d/build-script-build` (exit status: 1)
  --- stdout

  Configuring SPDK library...
  SPDK_PATH variable is set to /home/xuanwo/Code/spdk/spdk/build
  SPDK found at /home/xuanwo/Code/spdk/spdk/build
  **** PKG_CONFIG_PATH: (undefined)
  **** PKG_CONFIG_PATH_FOR_TARGET: (undefined)
  Added include path: /home/xuanwo/Code/spdk/spdk/build/include

  --- stderr

  Failed to configure SPDK: Failed to add include path '/home/xuanwo/Code/spdk/spdk/build/include/spdk_internal': No such file or directory (os error 2)

To Reproduce Steps to reproduce the behavior:

  • Clone spdk-rs and spdk seperately.
  • In spdk
    • git checkout v23.05
    • AS=yasm ./configure --enable-debug --target-arch=nehalem --without-shared \ --without-crypto \ --with-uring --without-uring-zns \ --disable-unit-tests --disable-tests
    • make
  • In spdk-rs
    • cargo build

Expected behavior

Build succeeded.

Screenshots

:) neofetch
                   -`                    xuanwo@xuanwo-work
                  .o+`                   ------------------
                 `ooo/                   OS: Arch Linux x86_64
                `+oooo:                  Host: 90RC00EGCP ZhengJiuZhe REN7000P-26AMR
               `+oooooo:                 Kernel: 6.7.1-zen1-1-zen
               -+oooooo+:                Uptime: 9 hours, 8 mins
             `/:-:++oooo+:               Packages: 1327 (pacman)
            `/++++/+++++++:              Shell: zsh 5.9
           `/++++++++++++++:             Resolution: 3840x2160
          `/+++ooooooooooooo/`           DE: Plasma 5.27.10
         ./ooosssso++osssssso+`          WM: kwin
        .oossssso-````/ossssss+`         WM Theme: Breeze
       -osssssso.      :ssssssso.        Theme: Breeze Light [Plasma], Breeze [GTK2],
      :osssssss/        osssso+++.       Icons: [Plasma], breeze [GTK2/3]
     /ossssssss/        +ssssooo/-       Terminal: WezTerm
   `/ossssso+/:-        -:/+osssso+-     CPU: AMD Ryzen 9 5950X (32) @ 3.400GHz
  `+sso+:-`                 `.-/+oso:    GPU: AMD ATI Radeon RX 6800/6800 XT / 6900 X
 `++:.                           `-/+/   Memory: 31405MiB / 64157MiB
 .`                                 `/

Additional context

None.

Xuanwo avatar Jan 26 '24 10:01 Xuanwo