Skip to content

Missing dependencies #72

@leongross

Description

@leongross

Issue:

When building libnvme the build fails due to the missing pyhon3 development headers.

$ meson .build
The Meson build system
Version: 0.54.2
Source dir: /home/ec2-user/libnvme
Build dir: /home/ec2-user/libnvme/.build
Build type: native build
Project name: libnvme
Project version: v0.1
C compiler for the host machine: cc (gcc 7.5.0 "cc (SUSE Linux) 7.5.0")
C linker for the host machine: cc ld.bfd 2.35.1.20201123-7
C++ compiler for the host machine: c++ (gcc 7.5.0 "c++ (SUSE Linux) 7.5.0")
C++ linker for the host machine: c++ ld.bfd 2.35.1.20201123-7
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Run-time dependency uuid found: YES 2.33.1
Run-time dependency json-c found: YES 0.15
Checking if "__builtin_type_compatible_p" compiles: YES
Checking if "typeof" compiles: YES
Checking if "byteswap.h" compiles: YES
Checking if "bswap64" links: YES
Checking if "statement-expr" compiles: YES
Checking if "isblank" links: YES
Configuring config.h using configuration
Configuring libnvme.spec using configuration
Program python3 found: YES (/usr/bin/python3)
Program swig found: YES (/usr/bin/swig)
Dependency python found: YES (sysconfig)
Build targets in project: 10

Found ninja-1.10.0 at /usr/bin/ninja
$ cd .build/
$ ninja
[18/27] Compiling C object 'pynvme/37eb337@@_nvme.cpython-36m-x86_64-linux-gnu@sha/meson-generated_.._nvme_wrap.c.o'
FAILED: pynvme/37eb337@@_nvme.cpython-36m-x86_64-linux-gnu@sha/meson-generated_.._nvme_wrap.c.o
cc -Ipynvme/37eb337@@_nvme.cpython-36m-x86_64-linux-gnu@sha -Ipynvme -I../pynvme -I. -I.. -I../ccan -Isrc -I../src -I/usr/include/python3.6m -fdiagnostics-color=always -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O3 -fomit-frame-pointer -D_GNU_SOURCE -include config.h -fPIC -MD -MQ 'pynvme/37eb337@@_nvme.cpython-36m-x86_64-linux-gnu@sha/meson-generated_.._nvme_wrap.c.o' -MF 'pynvme/37eb337@@_nvme.cpython-36m-x86_64-linux-gnu@sha/meson-generated_.._nvme_wrap.c.o.d' -o 'pynvme/37eb337@@_nvme.cpython-36m-x86_64-linux-gnu@sha/meson-generated_.._nvme_wrap.c.o' -c pynvme/nvme_wrap.c
pynvme/nvme_wrap.c:149:11: fatal error: Python.h: No such file or directory
 # include <Python.h>
           ^~~~~~~~~~
compilation terminated.
[19/27] Generating symbol file 'src/25a6634@@nvme@sha/libnvme.so.0.0.0.symbols'
ninja: build stopped: subcommand failed.

Fix

Add python3-devel to meson dependencies. I would do it myself but I never used meson in dev, so I figured someone else would be faster than me adding this small feature.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions