2014-01-11 4 views
4

gcc에서 파일을 컴파일하려고하는데 'make'명령이 오류를 발생시키는 것 같습니다.make [] : *** [] Error 1

Rishabhs-MacBook-Pro:binutils-2.20.1 Rishabh$ make 
make[3]: Nothing to be done for `all'. 
make[2]: Nothing to be done for `all'. 
Making info in doc 
make chew 
make[4]: `chew' is up to date. 
./chew -f ./doc.str <./../opncls.c >opncls.tmp 
/bin/sh ./../../move-if-change opncls.tmp opncls.texi 
Making info in po 
... 
... 
make[4]: Nothing to be done for `all'. 
gcc -DHAVE_CONFIG_H -I. -I. -I. -I../bfd -I./../bfd -I./../include -  DLOCALEDIR="\"/usr/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -MT strings.o -MD -MP -MF .deps/strings.Tpo -c -o strings.o strings.c 
cc1: warnings being treated as errors 
strings.c: In function ‘strings_file’: 
strings.c:419: warning: ‘stat64’ is deprecated (declared at /usr/include/sys/stat.h:466) 
make[4]: *** [strings.o] Error 1 
make[3]: *** [all-recursive] Error 1 
make[2]: *** [all] Error 2 
make[1]: *** [all-binutils] Error 2 
make: *** [all] Error 2 

문제는 gcc와 관련이있을 수 있지만 문제를 해결할 수는 없다고 생각합니다. 어떤 도움을 주시면 감사하겠습니다.

답변

5

gcc 명령 줄에 -Werror 플래그가 있습니다. 출력이 말하기를 :

CC1 : 경고는 그래서 메이크 변경이를 포함하거나 strings.cstat64 is deprecated 경고를 해결하지 않는 중 오류

으로 치료를 받고!

관련 문제