jboero / hashifuse

Experimental FUSE clients for Hashicorp REST APIs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

main.cpp:353:2: sorry, unimplemented: non-trivial designated initializers not supported

metacoma opened this issue · comments

Hi, I'm trying to compile K8sFS fuse app and faced with:

$ make

g++ -o k8sfs -D_FILE_OFFSET_BITS=64 -O3 -std=c++11 -lfuse -ljsoncpp -lcurl main.cpp
main.cpp: In function 'int main(int, char**)':
main.cpp:373:2: sorry, unimplemented: non-trivial designated initializers not supported
  };
  ^
main.cpp:373:2: sorry, unimplemented: non-trivial designated initializers not supported
main.cpp:373:2: sorry, unimplemented: non-trivial designated initializers not supported
main.cpp:373:2: sorry, unimplemented: non-trivial designated initializers not supported
main.cpp:373:2: sorry, unimplemented: non-trivial designated initializers not supported
main.cpp:373:2: sorry, unimplemented: non-trivial designated initializers not supported
main.cpp:373:2: sorry, unimplemented: non-trivial designated initializers not supported
main.cpp:373:2: sorry, unimplemented: non-trivial designated initializers not supported
main.cpp:373:2: sorry, unimplemented: non-trivial designated initializers not supported
main.cpp:373:2: sorry, unimplemented: non-trivial designated initializers not supported
Makefile:6: recipe for target 'k8sfs' failed
make: *** [k8sfs] Error 1

My environment:

root@2d2adfb41fc2:/tmp/hashifuse/K8sFS# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.3 LTS"
root@2d2adfb41fc2:/tmp/hashifuse/K8sFS# gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0

Also, the same problem with ConsulFS and NomadFS

any clues?

make CC=clang++ solved this problem