This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/18549] -save-temps option ends with corrupt object file
- From: "h dot rind at mondial dot co dot at" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Nov 2004 01:46:20 -0000
- Subject: [Bug driver/18549] -save-temps option ends with corrupt object file
- References: <20041118185936.18549.pschober@gmx.ch>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From h dot rind at mondial dot co dot at 2004-11-25 01:46 -------
the following might be a similar problem:
if h8300-hms-gcc 3.3.1 is called with the -save-temps option on h8300-hms it
produces
a wrong output architecture.
a call to the linker results in the following error message:
h8300-hms-ld: skipping incompatible main.o when searching for main.o
h8300-hms-ld: cannot find main.o
used call:
h8300-hms-gcc -mh -c -Wall -W -Wcast-qual -Wwrite-strings -Wno-unused -save-
temps main.cpp
i figured out that gcc creates h8300-architecture instead of h8300h, which is
why
the linker fails. this can be checked with "h8300-hms-objdump.exe -f main.o".
omitting -save-temps resolves the problem.
OS: Win2000 (tested, behaviour can be reproduced)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18549