Make 1 Error 1
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more gcc error 1 about Stack Overflow the company Business Learn more about hiring developers or posting make error 1 eclipse ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack make error codes Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Makefile: Error1 up vote 6 down vote favorite 2 I have
Linux Make Error 1
a very simple c programme: int main() { return(1); } and a simple Makefile: all: gcc -ansi -pedantic -o tmp tmp.c ./tmp However, when I type make I get the following error message: $ make gcc -ansi -pedantic -o tmp tmp.c ./tmp make: *** [all] Error 1 What obvious thing am I missing? c makefile share|improve this question asked Oct 27 '10 at 14:32 csgillespie 31.9k969117 add a comment| make * * * error 1 c++ 3 Answers 3 active oldest votes up vote 18 down vote accepted Make exits with an error if any command it executes exits with an error. Since your program is exiting with a code of 1, make sees that as an error, and then returns the same error itself. You can tell make to ignore errors by placing a - at the beginning of the line like this: -./tmp You can see more about error handling in makefiles here. share|improve this answer answered Oct 27 '10 at 14:34 Alan Geleynse 16.3k23147 I knew it was going to be obvious. Thanks (to everyone) for the very quick answers –csgillespie Oct 27 '10 at 14:39 1 +1, for the ignore part. –codaddict Oct 27 '10 at 14:39 Yeah I ran into this exact error a few months ago. I had to look up the syntax again to ignore errors though, its not something I use enough to remember. –Alan Geleynse Oct 27 '10 at 14:40 I love you hard. –hookdump May 24 '13 at 17:20 add a comment| up vote 4 down vote You're returning an error code of 1 from your application. It's Make's job to report this as
here for a quick overview of the site Help Center Detailed answers to any questions makefile error 2 you might have Meta Discuss the workings and policies of this
Gcc Error 2
site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers
Make Error 2
or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a http://stackoverflow.com/questions/4034392/makefile-error1 community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up make[ ]: *** [ ] Error 1 up vote 4 down vote favorite I am trying to compile a file on gcc and my 'make' command seems to throw an error. Rishabhs-MacBook-Pro:binutils-2.20.1 Rishabh$ make http://stackoverflow.com/questions/21062244/make-error-1 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 I think the problem could be with the gcc but I can't seem to get around the problem. Any help would be appreciated. shell gcc makefile share|improve this question asked Jan 11 '14 at 12:30 Rishabh Garg 141210 ad
Get Kubuntu Get Xubuntu Get Lubuntu Get UbuntuStudio Get Mythbuntu Get Edubuntu Get Ubuntu-GNOME Get UbuntuKylin Ubuntu Code of Conduct Ubuntu Wiki Community Wiki Other Support Launchpad https://ubuntuforums.org/showthread.php?t=913673 Answers Ubuntu IRC Support AskUbuntu Official Documentation User Documentation Social Media Facebook Twitter Useful Links Distrowatch Bugs: Ubuntu PPAs: Ubuntu Web Upd8: Ubuntu OMG! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please http://askubuntu.com/questions/620182/error-when-using-command-make read before SSO login Advanced Search Forum The Ubuntu Forum Community Ubuntu Official Flavours Support New to Ubuntu [ubuntu] Whats Make error ERROR 1? Having an Issue With Posting ? Do you error 1 want to help us debug the posting issues ? < is the place to report it, thanks ! Results 1 to 3 of 3 Thread: Whats Make error ERROR 1? Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode September 8th, 2008 #1 Guruprasad View Profile View Forum Posts Private Message Frothy Coffee! Join make error 1 Date Jul 2007 Location India Beans 206 DistroUbuntu 9.10 Karmic Koala Whats Make error ERROR 1? I am trying to compile patched usbserial module. I am getting the error 1. What does it mean? Adv Reply September 8th, 2008 #2 ModelM View Profile View Forum Posts Private Message Way Too Much Ubuntu Join Date Dec 2004 Location Oregon, USA Beans 278 DistroUbuntu 12.04 Precise Pangolin Re: Whats Make error ERROR 1? On the man page for make, look under "Exit Status". Adv Reply August 13th, 2011 #3 twistedumbrella View Profile View Forum Posts Private Message First Cup of Ubuntu Join Date Jul 2011 Beans 2 Re: Whats Make error ERROR 1? Originally Posted by ModelM On the man page for make, look under "Exit Status". Exit Status GNU make exits with a status of zero if all makefiles were successfully parsed and no targets that were built failed. A status of one will be returned if the -q flag was used and make determines that a target needs to be rebuilt. A status of two will be returned if any errors were encountered. Always love those "go look i
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Error when using command 'make' up vote 0 down vote favorite I get error whenever I'm trying to 'make' file, I did this before I typed 'make': tar xjf xarchiver-0.5.4.tar.bz2 cd ./xarchiver-0.5.4 ./configure Configure command: thomas@thomas-pc:~/Downloads/xarchiver-0.5.4$ ./configure checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether to enable maintainer-specific portions of Makefiles... no checking for style of include used by make... GNU checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for AIX... no checking for library containing strerror... none required checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes