public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jim Wilson <wilson@specifixinc.com>
To: DJ Delorie <dj@redhat.com>
Cc: gcc@gcc.gnu.org
Subject: Re: fixing vs WARN_CFLAGS vs cross builds
Date: Wed, 31 Mar 2004 06:38:00 -0000	[thread overview]
Message-ID: <406A1FA1.1090602@specifixinc.com> (raw)
In-Reply-To: <200403292112.i2TLC2xB002927@greed.delorie.com>

DJ Delorie wrote:
> I'm trying to cross-build a native DJGPP.  It tries to build fixinc,
> but uses "gcc" as the compiler.  It passes a full WARN_CFLAGS, which
> includes options that the system gcc doesn't understand, and so fails.
> Should we just not pass WARN_CFLAGS when cross compiling that way?

The gcc Makefile does not directly call "gcc" anywhere.  From a brief 
glance, I think you mean CC_FOR_BUILD, which you have set to gcc.

It isn't exactly clear why you have a problem though.  WARN_CFLAGS is 
set for a stage1 build only if the build (host?) compiler is gcc, and 
your compiler is gcc, so why is there a problem?  Is there a particular 
option which is the problem?  If so, which one?  Is this a versioning 
problem?  I.e. an option is in WARN_CFLAGS that is not supported by an 
old gcc version you are using for the bootstrap?  Or is the problem 
confusion between the host and build compiler, which may be different 
gcc versions?  Maybe we need a BUILD_WARN_CFLAGS separate from WARN_CFLAGS?

You haven't provided enough info here to see what the problem is.

It may be reasonable to remove the WARN_CFLAGS setting in the fixinc.sh 
rule.  We don't use WARN_CFLAGS anyplace else where we use CC_FOR_BUILD. 
  This can work in stage2 etc builds, but this is probably not important 
enough to worry about.

It would be nice to have a proper bug report though.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com

  reply	other threads:[~2004-03-31  1:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-30  0:29 DJ Delorie
2004-03-31  6:38 ` Jim Wilson [this message]
2004-03-31  6:40   ` DJ Delorie
2004-03-31  7:53     ` Jim Wilson
2004-03-31  7:55       ` DJ Delorie
2004-03-31  8:09         ` Jim Wilson
2004-03-31  8:03 Nathanael Nerode
2004-03-31 10:52 ` Jim Wilson
2004-03-31 12:43   ` Zack Weinberg

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=406A1FA1.1090602@specifixinc.com \
    --to=wilson@specifixinc.com \
    --cc=dj@redhat.com \
    --cc=gcc@gcc.gnu.org \
    /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).