fallfish / zapraid

8 stars 2 forks source link

SPDK build error #1

Open ci-tz opened 10 months ago

ci-tz commented 10 months ago

When I follow your instructions to build the SPDK, I get build errors: make[2]: [/home/ctz/Desktop/zapraid/zapraid_spdk/mk/spdk.subdirs.mk:16:lib] Error 2 make[1]: [/home/ctz/Desktop/zapraid/zapraid_spdk/mk/spdk.subdirs.mk:16:unit] Error 2 make: *** [/home/ctz/Desktop/zapraid/zapraid_spdk/mk/spdk.subdirs.mk:16:test] Error 2

fallfish commented 10 months ago

Can you also provide the steps you performed and the environment (e.g., OS, compiler, etc.)?

ci-tz commented 10 months ago

environment:

$ uname -a
Linux fvm 6.1.64 #1 SMP PREEMPT_DYNAMIC Fri Dec  1 08:14:43 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

$ gdb --version
GNU gdb (Ubuntu 12.1-0ubuntu1~22.04) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

steps :

$ git clone https://github.com/fallfish/zapraid.git
$ cd zapraid/zapraid_spdk/
$ sudo ./scripts/pkgdep.sh
$ ./configure --without-zapraid
$ make -j
make[2]: *** [/home/femu/zapraid/zapraid_spdk/mk/spdk.subdirs.mk:16: lib] Error 2
make[1]: *** [/home/femu/zapraid/zapraid_spdk/mk/spdk.subdirs.mk:16: unit] Error 2
make: *** [/home/femu/zapraid/zapraid_spdk/mk/spdk.subdirs.mk:16: test] Error 2
fallfish commented 10 months ago

Can you also post messages before the line make[2]? The error message should be a traceback of the compile process. There seem to be some missing messages indicating where the problem occurs.

cardze commented 4 months ago

In my case, this is caused by the missing target in makefile of zapraid/zapraid_spdk/test/unit/lib/blobfs. I removed blobfs_async_ut blobfs_sync_ut and the build is perfect.