All of lore.kernel.org
 help / color / mirror / Atom feed
From: Seth Goldberg <Seth.Goldberg@Sun.COM>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: configure does not honor CC when testing for -mcmodel=large
Date: Fri, 25 Sep 2009 15:29:47 -0700 (PDT)	[thread overview]
Message-ID: <alpine.GSO.2.00.0909251527250.1162@oretfbsg.Jrfg.Fha.PBZ> (raw)
In-Reply-To: <alpine.GSO.2.00.0909251410330.1162@oretfbsg.Jrfg.Fha.PBZ>

Hi,

  Setting $CC to another gcc (not in the path) fails when attempting to 
configure for 64-bit EFI if the installed gcc cannot handle -mcmodel=large. 
configure.in should be changed to honor $CC.  I'm horrible at m4 / autoconf, 
so I'm not sure what needs to be changed (otherwise, I'd provide a patch :)).

  From config.log after running ( setenv CC gcc-4.3.2; ./configure --with-platform=efi --target=x86_64):

configure:6612: result: no
configure:6617: WARNING: -mcmodel=large not supported. You won't be able to use the memory over 4GiB. Upgrade your gcc
configure:6624: checking whether option -mno-red-zone works
configure:6652: gcc -c -Os -m64 -DMCMODEL_SMALL=1 -m64 -mno-red-zone  conftest.c >&5
conftest.c:1: sorry, unimplemented: 64-bit mode not compiled in


  --S



  parent reply	other threads:[~2009-09-25 22:32 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-25 21:07 16bit x86 assembler/disassembler James Courtier-Dutton
2009-09-25 21:10 ` Seth Goldberg
2009-09-25 21:25   ` James Courtier-Dutton
2009-09-26  9:21     ` Felix Zielcke
2009-09-25 22:29   ` Seth Goldberg [this message]
2009-09-25 22:35     ` configure does not honor CC when testing for -mcmodel=large Seth Goldberg
2009-09-25 23:01       ` Colin Watson
2009-09-26 14:28         ` Vladimir 'phcoder' Serbinenko
2009-09-25 22:37     ` Colin Watson

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=alpine.GSO.2.00.0909251527250.1162@oretfbsg.Jrfg.Fha.PBZ \
    --to=seth.goldberg@sun.com \
    --cc=grub-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.