public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mrs at apple dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/41180] can not build gcc 4.4.1 on Snow Leopard Mac OS X 10.6
Date: Thu, 03 Sep 2009 00:20:00 -0000	[thread overview]
Message-ID: <20090903002026.16450.qmail@sourceware.org> (raw)
In-Reply-To: <bug-41180-13994@http.gcc.gnu.org/bugzilla/>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2906 bytes --]



------- Comment #26 from mrs at apple dot com  2009-09-03 00:20 -------
First, config.guess is orthogonal to the entire discussion, because of that, we
never need to mention it again.

Next, we do a case analysis of every combination of host/target and build…  We
engineer each case to work as desired.  Once that is done, you'll discover that
we absolutely do need the i386 case to set -m32.  If that isn't done, the
compiler defaults to 64-bit, and that runs counter to the command implied by
the i386, which is to generate 32-bit code.  So, the fragment I sent is
absolutely required, unchanged.  You can know this is true by configure
--build=i386-apple-darwin10 on a 64-bit SL box and running file on gcc/expr.o. 
If it is 64-bit, it is wrong.

-m32 should never be set because the x86_64 case.  x86_64 means 64-bit, so, the
most it implies is -m64.  For this reason, #19 must be wrong.  x86_64 implying
-m64 is useful for gcc's that default to 32-bit code-gen.  I don't have that in
my tree, as I don't have to worry much about older systems and older compilers.
 For the FSF tree, it would be nice to have that.  You can know this is true by
configuring --build=x86_64-apple-darwin on a Leopard box (where gcc defaults to
32-bit) and running file on gcc/expr.o.  If it is 32-bit, it is wrong.

darwin10 supports and runs on 32-bit only processors.  In that case, x86_64
isn't the default code-gen, contrary to your statement in #22.

It is improper to test target in #20, as target has no influence. 
--host=i386-apple-darwin --target=arm-elf implies -m32.  Build one, then run
file gcc/expr.o.  If that file is 64-bit, it is wrong.

The changes to configure.ac are independent of config.guess, so your assertion
that the changes are only appropriate after config.guess is accepted, is wrong.
 You can see this by configure --build=i386-apple-darwin10 and running file
gcc/expr.o and noticing it is wrong currently on SL.  It is says 64-bit, it is
wrong.

For the comment in #24, no, that isn't its only purpose.  The purpose of it
would be to allow one to configure --host=i386-apple-darwin10
--build=i386-apple-darwin10, and have gcc do what it is told to do, which is to
generate 32-bit binaries.

Now, all that aside, you only need to change the patches I suggested, if there
is an error in them.  You've not identified one error, therefore you don't need
to change them.  If you want to change them, please explain the error.

Lastly, tentative_cc won't work as well as setting CC.  My comment in #15 is
wrong, CC must be used.

As for the libraries.  You have to build them appropriately, and give to gcc,
the appropriate libs.  I build them universal, so what I give gcc is trivially,
always good.  If you build just one architecture, you have to build the
libraries with the same 32/64-bitness as you want to build the compiler.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41180


  parent reply	other threads:[~2009-09-03  0:20 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-28  3:13 [Bug c++/41180] New: " dmarkman at mac dot com
2009-08-28  3:17 ` [Bug c++/41180] " dmarkman at mac dot com
2009-08-28 10:19 ` redi at gcc dot gnu dot org
2009-08-28 10:23 ` [Bug bootstrap/41180] " redi at gcc dot gnu dot org
2009-08-28 13:28 ` howarth at nitro dot med dot uc dot edu
2009-08-28 14:36 ` dmarkman at mac dot com
2009-08-28 14:37 ` dmarkman at mac dot com
2009-08-28 15:02 ` redi at gcc dot gnu dot org
2009-08-28 15:12 ` howarth at nitro dot med dot uc dot edu
2009-08-28 15:32 ` howarth at nitro dot med dot uc dot edu
2009-08-28 16:14 ` mrs at gcc dot gnu dot org
2009-08-28 17:28 ` dmarkman at mac dot com
2009-08-29  1:32 ` howarth at nitro dot med dot uc dot edu
2009-08-29  1:41 ` howarth at nitro dot med dot uc dot edu
2009-08-29  2:19 ` howarth at nitro dot med dot uc dot edu
2009-08-31 17:36 ` mrs at apple dot com
2009-08-31 17:38 ` mrs at apple dot com
2009-08-31 18:04 ` howarth at nitro dot med dot uc dot edu
2009-08-31 20:37 ` mrs at apple dot com
2009-09-01  4:00 ` howarth at nitro dot med dot uc dot edu
2009-09-01  4:23 ` howarth at nitro dot med dot uc dot edu
2009-09-02 20:37 ` mrs at apple dot com
2009-09-02 21:41 ` howarth at nitro dot med dot uc dot edu
2009-09-02 21:44 ` howarth at nitro dot med dot uc dot edu
2009-09-02 22:22 ` howarth at nitro dot med dot uc dot edu
2009-09-02 23:37 ` howarth at nitro dot med dot uc dot edu
2009-09-03  0:20 ` mrs at apple dot com [this message]
2009-09-03  0:56 ` howarth at nitro dot med dot uc dot edu
2009-09-03 11:04 ` joseph at codesourcery dot com
2009-09-03 13:00 ` howarth at nitro dot med dot uc dot edu
2009-09-04  1:50 ` mrs at apple dot com
2009-09-09  8:15 ` fxcoudert at gcc dot gnu dot org
2009-09-09  8:47 ` fxcoudert at gcc dot gnu dot org
2009-09-30 19:40 ` pinskia at gcc dot gnu dot org
2009-09-30 19:41 ` pinskia at gcc dot gnu dot org
     [not found] <bug-41180-4@http.gcc.gnu.org/bugzilla/>
2014-02-16 13:14 ` jackie.rosen at hushmail dot com

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=20090903002026.16450.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).