public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Earnshaw <rearnsha@arm.com>
To: Bradley Lucier <lucier@math.purdue.edu>
Cc: GCC Mailing List <gcc@gcc.gnu.org>
Subject: Re: Why no strings in error messages?
Date: Wed, 26 Aug 2009 17:48:00 -0000	[thread overview]
Message-ID: <1251293554.24085.2.camel@e200601-lin.cambridge.arm.com> (raw)
In-Reply-To: <DEE925A1-D6D6-4423-B174-69FA6B7DD29F@math.purdue.edu>


On Wed, 2009-08-26 at 09:00 -0400, Bradley Lucier wrote:
> I've never seen the answer to the following question:  Why do some  
> versions of gcc that I build not have string substitutions in error  
> messages?
> 
> I get things like this:
> 
> [lucier@lambda-head lib]$ /pkgs/gcc-mainline/bin/gcc -mcpu=970 -m64 - 
> fschedule-insns -Wno-unused -O1 -fno-math-errno -fschedule-insns2 - 
> fno-trapping-math -fno-strict-aliasing -fwrapv -fomit-frame-pointer - 
> fPIC -fno-common -I"../include" -c _thread-test.i -save-temps
> _thread.c: In function â:
> _thread.c:10035:146: error: â undeclared (first use in this function)
> _thread.c:10035:146: error: (Each undeclared identifier is reported  
> only once
> _thread.c:10035:146: error: for each function it appears in.)

Your locale is set up to generate something your terminal can't display
properly (I've seen this myself).

Either fix your terminal to display the extended char-set properly, or
run your compiler with a simpler locale, eg:

export LANG=c
gcc ...

should do the trick.

If you want to prove to yourself that the variables are there pass the
output through 'od -c'

R.

      parent reply	other threads:[~2009-08-26 13:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-26 17:08 Bradley Lucier
2009-08-26 17:37 ` Ian Lance Taylor
2009-08-26 18:23   ` Michael Meissner
2009-08-26 20:48     ` Paolo Bonzini
2009-08-26 21:28       ` Paolo Bonzini
2009-08-26 21:37       ` Bradley Lucier
2009-08-27  2:54         ` Ian Lance Taylor
2009-08-27 10:05           ` Bradley Lucier
2009-08-27 18:40         ` Andi Kleen
2009-09-01 12:11         ` Gabriel Paubert
2009-08-26 17:48 ` Richard Earnshaw [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1251293554.24085.2.camel@e200601-lin.cambridge.arm.com \
    --to=rearnsha@arm.com \
    --cc=gcc@gcc.gnu.org \
    --cc=lucier@math.purdue.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).