public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/39293]  New: -save-temps does not follow the -o option and instead puts the temp file in the current directory
@ 2009-02-24 17:47 meissner at linux dot vnet dot ibm dot com
  2009-02-24 18:10 ` [Bug driver/39293] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: meissner at linux dot vnet dot ibm dot com @ 2009-02-24 17:47 UTC (permalink / raw)
  To: gcc-bugs

I was building Spec 2006 with a powerpc64-linux cross compiler using the
-save-temps option so that I could do some analysis on the generated code. 
Unfortunately, if I use -j4 in the make for the spec build, the test cactusADM
does not build.  I traced this down to there were several Startup.c files in
different directories, and the spec make uses -o to put the resulting objects
in different directories:

<gcc>/gcc <flags> -o PUGH/Startup.o PUGH/Startup.c
<gcc>/gcc <flags> -o IOUtil/Startup.o IOUtil/Startup.c
<gcc>/gcc <flags> -o BenchADMsrc/Startup.o BenchADMsrc/Startup.c
<gcc>/gcc <flags> -o CartGrid3D/Startup.o CartGrid3D/Startup.c
...

As luck would have it, make decided to compile several of of the Startup.c's at
the same time, and since they wrote the files in the current directory, they
overwrote each other, and the assembler complained about illegal input.


-- 
           Summary: -save-temps does not follow the -o option and instead
                    puts the temp file in the current directory
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: meissner at linux dot vnet dot ibm dot com
 GCC build triplet: x86_64-gnu-linux
  GCC host triplet: x86_64-gnu-linux
GCC target triplet: powerpc64-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39293


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-04-29 12:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-24 17:47 [Bug driver/39293] New: -save-temps does not follow the -o option and instead puts the temp file in the current directory meissner at linux dot vnet dot ibm dot com
2009-02-24 18:10 ` [Bug driver/39293] " pinskia at gcc dot gnu dot org
2009-02-24 19:08 ` joseph at codesourcery dot com
2009-02-28  1:01 ` meissner at linux dot vnet dot ibm dot com
2009-04-02 20:45 ` meissner at gcc dot gnu dot org
2009-04-29 12:08 ` bje at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).