openebs / spdk-rs

Enables building safer SPDK-based Rust applications
Apache License 2.0
58 stars 19 forks source link

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

Open Xuanwo opened 9 months ago

Xuanwo commented 9 months ago

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:

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.

tiagolobocastro commented 9 months ago

Are you missing pkg-config perhaps?

PKG_CONFIG_PATH: (undefined)

If you use the nix-shell, it will build spdk for you btw. You can also use nix-shell --arg nospdk true which lets you build your own with most needed dependencies. Please have a look at the README, if you haven't already.

orville-wright commented 8 months ago

hey @Xuanwo - did you get this resolved on your end? is spdk-rs building successfully for you?