public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Stray characters in .o files....
@ 2002-06-19  7:55 Thomas J Amato
  2002-06-19  8:32 ` Nathan Sidwell
  2002-06-19  8:33 ` Zack Weinberg
  0 siblings, 2 replies; 5+ messages in thread
From: Thomas J Amato @ 2002-06-19  7:55 UTC (permalink / raw)
  To: gcc, gcc-help

Hi,

I'm hoping that someone has seem this. I am getting a large number of
errors when I go to link my test program (below is a snippet):

.sun_gcc_dbg/test_harness.o:222:107: warning: null character(s) ignored
.sun_gcc_dbg/test_harness.o:222:110: warning: null character(s) ignored
.sun_gcc_dbg/test_harness.o:221: stray '\20' in program
.sun_gcc_dbg/test_harness.o:222:114: warning: null character(s) ignored
.sun_gcc_dbg/test_harness.o:222:122: warning: null character(s) preserved
in literal
.sun_gcc_dbg/test_harness.o:222:203: warning: null character(s) ignored
.sun_gcc_dbg/test_harness.o:222:206: warning: null character(s) ignored
.sun_gcc_dbg/test_harness.o:221: stray '\21' in program
.sun_gcc_dbg/test_harness.o:222:210: warning: null character(s) ignored
.sun_gcc_dbg/test_harness.o:221: stray '\230' in program

I am using gcc 3.1 (configured to use binutils 2.11.2 - as, ld) on Solaris
2.7. Do I need to update my version of binutils? Is it something in the .c
files? I created another smaller test program and that seem to build fine.
What is causing this? Any help would be great.

Thanks,

Tom


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

* Re: Stray characters in .o files....
  2002-06-19  7:55 Stray characters in .o files Thomas J Amato
@ 2002-06-19  8:32 ` Nathan Sidwell
  2002-06-19  8:33 ` Zack Weinberg
  1 sibling, 0 replies; 5+ messages in thread
From: Nathan Sidwell @ 2002-06-19  8:32 UTC (permalink / raw)
  To: Thomas J Amato; +Cc: gcc-help

Thomas J Amato wrote:
> I'm hoping that someone has seem this. I am getting a large number of
> errors when I go to link my test program (below is a snippet):
> 
> .sun_gcc_dbg/test_harness.o:222:107: warning: null character(s) ignored
> .sun_gcc_dbg/test_harness.o:222:110: warning: null character(s) ignored
I'd guess that the .o file is not being recognized for what it is,
and it is being processed as source of some kind.

1) How are you invoking the linker?
2) What does the -v (verbose) flag tell you?

nathan
-- 
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
           The voices in my head told me to say this
nathan@acm.org  http://www.cs.bris.ac.uk/~nathan/  nathan@cs.bris.ac.uk

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

* Re: Stray characters in .o files....
  2002-06-19  7:55 Stray characters in .o files Thomas J Amato
  2002-06-19  8:32 ` Nathan Sidwell
@ 2002-06-19  8:33 ` Zack Weinberg
  1 sibling, 0 replies; 5+ messages in thread
From: Zack Weinberg @ 2002-06-19  8:33 UTC (permalink / raw)
  To: Thomas J Amato; +Cc: gcc, gcc-help

On Wed, Jun 19, 2002 at 10:39:22AM -0400, Thomas J Amato wrote:
> Hi,
> 
> I'm hoping that someone has seem this. I am getting a large number of
> errors when I go to link my test program (below is a snippet):
> 
> .sun_gcc_dbg/test_harness.o:222:107: warning: null character(s) ignored
> .sun_gcc_dbg/test_harness.o:222:110: warning: null character(s) ignored
> .sun_gcc_dbg/test_harness.o:221: stray '\20' in program
> .sun_gcc_dbg/test_harness.o:222:114: warning: null character(s) ignored
> .sun_gcc_dbg/test_harness.o:222:122: warning: null character(s) preserved
> in literal
> .sun_gcc_dbg/test_harness.o:222:203: warning: null character(s) ignored
> .sun_gcc_dbg/test_harness.o:222:206: warning: null character(s) ignored
> .sun_gcc_dbg/test_harness.o:221: stray '\21' in program
> .sun_gcc_dbg/test_harness.o:222:210: warning: null character(s) ignored
> .sun_gcc_dbg/test_harness.o:221: stray '\230' in program

Something has become severely confused and is attempting to parse
object files as source code.  Since you do not show the link command,
I cannot tell what happened.

zw

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

* Re: Stray characters in .o files....
@ 2002-06-19  9:16 Thomas J Amato
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas J Amato @ 2002-06-19  9:16 UTC (permalink / raw)
  To: nathan; +Cc: gcc-help, nathan


After I submitted this to the message board I realized that I had the -x
c++ (not sure how it got there ;-o ) option on the command line. Pilot
error.

Tom


                                                                                                  
                      Nathan Sidwell                                                              
                      <nathan@acm.org>          To:      Thomas J Amato                           
                      Sent by:                  <Thomas_J_Amato@raytheon.com>                     
                      nathan@compsci.br         cc:      gcc-help@gcc.gnu.org                     
                      istol.ac.uk               Subject: Re: Stray characters in .o files....     
                                                                                                  
                                                                                                  
                      06/19/02 11:30 AM                                                           
                      Please respond to                                                           
                      nathan                                                                      
                                                                                                  
                                                                                                  




Thomas J Amato wrote:
> I'm hoping that someone has seem this. I am getting a large number of
> errors when I go to link my test program (below is a snippet):
>
> .sun_gcc_dbg/test_harness.o:222:107: warning: null character(s) ignored
> .sun_gcc_dbg/test_harness.o:222:110: warning: null character(s) ignored
I'd guess that the .o file is not being recognized for what it is,
and it is being processed as source of some kind.

1) How are you invoking the linker?
2) What does the -v (verbose) flag tell you?

nathan
--
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
           The voices in my head told me to say this
nathan@acm.org  http://www.cs.bris.ac.uk/~nathan/  nathan@cs.bris.ac.uk





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

* Re: Stray characters in .o files....
@ 2002-06-19  9:06 Thomas J Amato
  0 siblings, 0 replies; 5+ messages in thread
From: Thomas J Amato @ 2002-06-19  9:06 UTC (permalink / raw)
  To: Zack Weinberg; +Cc: gcc, gcc-help


Never mind. Pilot error. I realized that I had the -x c++ (not sure how it
got there ;-o ) option on the command line.

Tom




                                                                                                 
                      Zack Weinberg                                                              
                      <zack@codesource         To:      Thomas J Amato                           
                      ry.com>                  <Thomas_J_Amato@raytheon.com>                     
                                               cc:      gcc@gcc.gnu.org, gcc-help@gcc.gnu.org    
                      06/19/02 11:33           Subject: Re: Stray characters in .o files....     
                      AM                                                                         
                                                                                                 
                                                                                                 




On Wed, Jun 19, 2002 at 10:39:22AM -0400, Thomas J Amato wrote:
> Hi,
>
> I'm hoping that someone has seem this. I am getting a large number of
> errors when I go to link my test program (below is a snippet):
>
> .sun_gcc_dbg/test_harness.o:222:107: warning: null character(s) ignored
> .sun_gcc_dbg/test_harness.o:222:110: warning: null character(s) ignored
> .sun_gcc_dbg/test_harness.o:221: stray '\20' in program
> .sun_gcc_dbg/test_harness.o:222:114: warning: null character(s) ignored
> .sun_gcc_dbg/test_harness.o:222:122: warning: null character(s) preserved
> in literal
> .sun_gcc_dbg/test_harness.o:222:203: warning: null character(s) ignored
> .sun_gcc_dbg/test_harness.o:222:206: warning: null character(s) ignored
> .sun_gcc_dbg/test_harness.o:221: stray '\21' in program
> .sun_gcc_dbg/test_harness.o:222:210: warning: null character(s) ignored
> .sun_gcc_dbg/test_harness.o:221: stray '\230' in program

Something has become severely confused and is attempting to parse
object files as source code.  Since you do not show the link command,
I cannot tell what happened.

zw





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

end of thread, other threads:[~2002-06-19 16:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-19  7:55 Stray characters in .o files Thomas J Amato
2002-06-19  8:32 ` Nathan Sidwell
2002-06-19  8:33 ` Zack Weinberg
2002-06-19  9:06 Thomas J Amato
2002-06-19  9:16 Thomas J Amato

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