Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Xuanwo opened this issue Jan 26, 2024 · 2 comments
Open

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

Xuanwo opened this issue Jan 26, 2024 · 2 comments
Assignees

Comments

@Xuanwo
Copy link

Xuanwo commented Jan 26, 2024

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.

@tiagolobocastro
Copy link
Contributor

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants