Find the answer to your Linux question:
Results 1 to 2 of 2
I'm trying to record the errors/warnings of a make build to a log file, but cannot do so successfully. I've tried some of the following, but to no prevail: make ...
  1. #1
    Just Joined!
    Join Date
    Feb 2010
    Posts
    2

    Make Log File

    I'm trying to record the errors/warnings of a make build to a log file, but cannot do so successfully. I've tried some of the following, but to no prevail:

    make > errors.log

    In errors log, instead of the several error messages I get only the following line:

    g++ -Wall -c file.cpp -o file.o

    Is there a command I could not find in the manual to log the errors instead of displaying them? How to capture output to file if not?

  2. #2
    Linux User
    Join Date
    Nov 2009
    Location
    France
    Posts
    292
    Try redirecting file descriptor 2

    Code:
    make 2> errors.log
    file descriptors - The UNIX and Linux Forums
    0 + 1 = 1 != 2 <> 3 != 4 ...
    Until the camel can pass though the eye of the needle.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...