Re: -save-temps not working with kbuild

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Timur Tabi <timur.tabi@xxxxxxxxxxx> writes:

> The -save-temps gcc option tells the compile not to delete the
> temporary files.  One reason to do this would be to preserve the
> assembly listings that get generated.  The assembly listings are
> useful for kdb debugging.
>
> When I try to specify -save-temps in my kbuild-style Makefile, I get
> this message during the build:
>
> gcc: warning: -pipe ignored because -save-temps specified
>
> In addition, the temporary files don't seem to be generated.  Or at
> least, I can't find them.
>
> What is the best way to get kbuild-style Makefiles to generate
> assembly listings?

Unless you mind the warning, you've found it.  If gcc is warning you
that pipe and save-temps are incompatible, then in the gccs that I've
used, save-temps wins, and you get .s and .i files generated.  

You are probably getting fooled by where the temp files go.  They go
into the current working directory, which is usually the base of the
linux kernel tree for kbuild.  Let us know if it's something else,
like a gcc version where pipe trumps save-temps.

-- 
  Ed L Cashin <ecashin@xxxxxxxxxx>


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux