Help answer threads with 0 replies.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


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

Rep: Reputation: 210Reputation: 210Reputation: 210
'make' exit codes

When you compile something with make, and you receive output like:
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, 12:22 PM   #2
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
It's the error code of the shell command that make was trying to execute. For example, if the Makefile has a command
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:55 PM
Bash scripting problem with exit codes Jeiku Programming 2 05-15-2006 02:22 AM
How to make my Apache server recognize JSP codes? jun_tuko Linux - Software 2 01-23-2006 11: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 04:21 PM
exit codes introuble Programming 2 05-08-2005 01:53 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:44 AM.

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