Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-30-2006, 06:33 PM   #1
Registered: Nov 2006
Location: USA, CA
Distribution: RedHat, Debian
Posts: 202

Rep: Reputation: 31
How is it done that making 2.6 kernel it doesn't display full command line?

How is it done that while compiling kernel the make utility doesn't print full compilation line including "/path_to_gcc/gcc -I's and -D's file.c -o file.o", but just 'CC', 'LD' etc.? How could I examine "-D's" which are used during compilation? Or is it possible to enable old style outputs on the display? Where could I find explanation for possible abbreviations, something like "CC [M]" is quiet clear, but is there other more exotic lettering?
Old 12-01-2006, 11:05 AM   #2
Senior Member
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 63
I have wondered this myself, but I was never curious enough to bother looking in the Makefile to find out.
Old 12-01-2006, 11:42 AM   #3
Registered: Aug 2006
Location: Aberdeen, Scotland
Distribution: OpenBSD
Posts: 164
Blog Entries: 1

Rep: Reputation: 30
isnt the kernel completely independant from gcc? isnt it built from its own form of C no intirely sure but im sure i read it somewhere. Try the Documentation folder in the kernel source , or
Old 12-01-2006, 01:36 PM   #4
Registered: Nov 2006
Location: USA, CA
Distribution: RedHat, Debian
Posts: 202

Original Poster
Rep: Reputation: 31
I don't think that kernel is independant from "gcc" at all. Try to compile a new kernel with gcc ver.2.xx - it complains that compiler version is too old, and wants you to have versions above 3 (I think gcc. v4.xx is the latest at the moment). But if I use the same compiler with my own makefile - it gives me the same 'old' style outputs on the screen. I actually tried to look at the Linux makefiles, but didn't see any specail setting. But I am not 'make' expert. I will try to dig up at the '', if I see anything on the subject.
Old 12-07-2006, 12:26 PM   #5
Registered: Nov 2006
Location: USA, CA
Distribution: RedHat, Debian
Posts: 202

Original Poster
Rep: Reputation: 31
I am still puzzled with this issue. Can't find anything on the subject. Is there any 'resedue' files left by the kernel compilation to see what happened?
Old 12-07-2006, 01:30 PM   #6
Harmaa Kettu
Registered: Apr 2005
Location: Finland
Posts: 196

Rep: Reputation: 30
From line 32 of the top-level kernel 2.6.19 makefile...
# To put more focus on warnings, be less verbose as default
# Use 'make V=1' to see the full commands
...and this is how it works (kernel makefiles are "a little" more complex but the idea is similar):
ifeq ($(V),1)
  Q =
  Q = @   

test: test.c
	$(Q)echo "Compiling $^"
	$(Q)gcc $^ -o $@


kernel, makefile

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making programs accessible from command line simsjr Linux - Software 5 04-27-2004 08:56 AM
making aliases via command line MACSRULE *BSD 1 04-07-2004 03:14 PM
Command to display whole filestructure hierarchy f/ command line? mjewell Linux - Newbie 10 01-19-2004 10:48 AM
display full line instead of single word in for loop ken734 Linux - Newbie 3 08-15-2003 02:35 PM
Command line Full Screen Acidprime Linux - Software 3 08-13-2003 02:11 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:17 PM.

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