LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-20-2007, 09:43 AM   #1
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
'make' exit codes


When you compile something with make, and you receive output like:
Code:
make[3]: ...stuff...
3 is the error code, correct?

Is it normal to receive some make warnings/errors during a build, or should you really just receive clean standard out if you expect something to work properly?
 
Old 08-20-2007, 11:22 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
It's the error code of the shell command that make was trying to execute. For example, if the Makefile has a command
Code:
mkdir /fu/bar/lib
and directory /fu/bar/lib already exists, then mkdir will return an exit status of 1. make will output make[1] and possibly a message.

make itself only has three exit status codes:

0 = make was successful.
1 = if you use the `-q' flag and make determines that some target is not already up to date.
2 = make encounters any errors. It will print messages describing the particular errors.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcpcd in Slackware 11.0 does not return any exit codes other than 0? Ken-ji Slackware 1 04-01-2007 06:55 PM
Bash scripting problem with exit codes Jeiku Programming 2 05-15-2006 01:22 AM
How to make my Apache server recognize JSP codes? jun_tuko Linux - Software 2 01-23-2006 10:24 PM
Are the hex codes for colors in a jpg the same codes as used in html? abefroman Linux - Security 3 07-31-2005 03:21 PM
exit codes introuble Programming 2 05-08-2005 12:53 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration