Golevka / emacs-clang-complete-async

An emacs plugin to complete C and C++ code using libclang
360 stars 71 forks source link

Failed to compile on ArchLinux #74

Open vinipsmaker opened 10 years ago

vinipsmaker commented 10 years ago

When I try to build on ArchLinux, I get:

cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -std=c99 -I/usr/include  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -fPIC -Wall -Wextra -pedantic -O3 -I./src -D_FORTIFY_SOURCE=2  -c -o src/obj/completion_serv.o ./src/completion_serv.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -std=c99 -I/usr/include  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -fPIC -Wall -Wextra -pedantic -O3 -I./src -D_FORTIFY_SOURCE=2  -c -o src/obj/parse_results.o ./src/parse_results.c
cc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4 -std=c99 -I/usr/include  -DNDEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -O3 -fomit-frame-pointer -fPIC -Wall -Wextra -pedantic -O3 -I./src -D_FORTIFY_SOURCE=2  -c -o src/obj/main.o ./src/main.c
In file included from ./src/completion_serv.c:3:0:
./src/completion.h:57:75: error: unknown type name ‘FILE’
 void completion_printCompletionLine(CXCompletionString completion_string, FILE *fp);
                                                                           ^
./src/completion.h:60:72: error: unknown type name ‘FILE’
 void completion_printCodeCompletionResults(CXCodeCompleteResults *res, FILE *fp);
                                                                        ^
makefile.mk:43: recipe for target 'src/obj/completion_serv.o' failed
make: *** [src/obj/completion_serv.o] Error 1
make: ** Esperando que outros processos terminem.

clang version: 3.4.2

vinipsmaker commented 10 years ago

PS.: Build stable release version (0.5)

vinipsmaker commented 9 years ago

Hi @Golevka,

this issue was fixed in commit d75c893a533abe22fcbd81f33166a641f5e73304, but after so many months, I stil don't see a new tag/release.

Could you create a new tag, then I can update the ArchLinux package appropriately?

vinipsmaker commented 9 years ago

Could you create a new tag, then I can update the ArchLinux package appropriately?

Bump!