This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug driver/18549] -save-temps option ends with corrupt object file


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]