2014-01-11 108 views
4

我想在gcc上編譯一個文件,我的'make'命令似乎會引發錯誤。make []:*** []錯誤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 

我認爲這個問題可能是與海灣合作委員會,但我似乎無法解決這個問題。任何幫助,將不勝感激。

回答

5

您在gcc命令行上有-Werror標誌。由於輸出說:

CC1:警告被視爲錯誤

所以要麼改變你的makefile不包括本或固定stat64 is deprecated預警strings.c