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

fatal error: switchtec/fabric.h: No such file or directory #1

Open
sannaik2 opened this issue Jan 1, 2019 · 2 comments
Open

fatal error: switchtec/fabric.h: No such file or directory #1

sannaik2 opened this issue Jan 1, 2019 · 2 comments

Comments

@sannaik2
Copy link

sannaik2 commented Jan 1, 2019

While compiling switchtec-nvme-cli unable to locate switchtec/fabric.h
I already complied switchtec-kernel switchtec-user it provide switchtec/switchtec.h and switchtec/mrpc.h but not switchtec/fabric.h any idea from where to get this file?
root@ubuntu:/switchtec-nvme-cli# make
NVME_VERSION = 1.5
cc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -O2 -g -Wall -Werror -std=gnu99 -DNVME_VERSION='"1.5"' -c argconfig.c
cc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -O2 -g -Wall -Werror -std=gnu99 -DNVME_VERSION='"1.5"' -c suffix.c
cc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -O2 -g -Wall -Werror -std=gnu99 -DNVME_VERSION='"1.5"' -c parser.c
cc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -O2 -g -Wall -Werror -std=gnu99 -DNVME_VERSION='"1.5"' -c nvme-print.c
cc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -O2 -g -Wall -Werror -std=gnu99 -DNVME_VERSION='"1.5"' -c nvme-ioctl.c
cc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -O2 -g -Wall -Werror -std=gnu99 -DNVME_VERSION='"1.5"' -c nvme-lightnvm.c
cc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -O2 -g -Wall -Werror -std=gnu99 -DNVME_VERSION='"1.5"' -c fabrics.c
cc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -O2 -g -Wall -Werror -std=gnu99 -DNVME_VERSION='"1.5"' -c json.c
cc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -O2 -g -Wall -Werror -std=gnu99 -DNVME_VERSION='"1.5"' -c plugin.c
cc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -O2 -g -Wall -Werror -std=gnu99 -DNVME_VERSION='"1.5"' -c intel-nvme.c
cc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -O2 -g -Wall -Werror -std=gnu99 -DNVME_VERSION='"1.5"' -c lnvm-nvme.c
cc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -O2 -g -Wall -Werror -std=gnu99 -DNVME_VERSION='"1.5"' -c memblaze-nvme.c
cc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -O2 -g -Wall -Werror -std=gnu99 -DNVME_VERSION='"1.5"' -c wdc-nvme.c
cc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -O2 -g -Wall -Werror -std=gnu99 -DNVME_VERSION='"1.5"' -c wdc-utils.c
cc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -O2 -g -Wall -Werror -std=gnu99 -DNVME_VERSION='"1.5"' -c nvme-models.c
cc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -O2 -g -Wall -Werror -std=gnu99 -DNVME_VERSION='"1.5"' -c huawei-nvme.c
cc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -O2 -g -Wall -Werror -std=gnu99 -DNVME_VERSION='"1.5"' -c netapp-nvme.c
cc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -O2 -g -Wall -Werror -std=gnu99 -DNVME_VERSION='"1.5"' -c toshiba-nvme.c
cc -D_GNU_SOURCE -D__CHECK_ENDIAN__ -O2 -g -Wall -Werror -std=gnu99 -DNVME_VERSION='"1.5"' -c switchtec-nvme-device.c
switchtec-nvme-device.c:32:30: fatal error: switchtec/fabric.h: No such file or directory
compilation terminated.
Makefile:47: recipe for target 'switchtec-nvme-device.o' failed
make: *** [switchtec-nvme-device.o] Error 1
root@ubuntu:/root/switchtec-nvme-cli# uname -a
Linux ubuntu 4.15.0-24-lowlatency #26~16.04.1-Ubuntu SMP PREEMPT Fri Jun 15 15:58:33 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
root@ubuntu:/root/switchtec-nvme-cli#

@sannaik2
Copy link
Author

sannaik2 commented Jan 1, 2019

root@ubuntu:# uname -a
Linux ubuntu 4.15.0-24-lowlatency #26~16.04.1-Ubuntu SMP PREEMPT Fri Jun 15 15:58:33 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
root@ubuntu:#

@sannaik2
Copy link
Author

sannaik2 commented Jan 2, 2019

Looks like the .h file in switchtec directory are provided by switchtec-user module. So may be problem is in switchtec-user as it is not providing fabric.h file

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

1 participant