Compiling gcc with -mcmodel=large fails

Adrian Smith
Tue Jul 3 13:54:00 GMT 2012

On 3 July 2012 14:54, Andrew Haley <> wrote:
> On 07/03/2012 01:53 PM, Adrian Smith wrote:
> > I'm sort-of worried by the "/32/" in that path there. Do I have
> > to specify something to make sure I'm building a 64-bit compiler? I
> > assume not, as my OS is 64-bit, the installed gcc which will be used
> > to build the first phase of bootstrapping is 64-bit, and the compiler
> > I built which worked outputted a 64-bit executable (at least according
> > to "file").
> It's applying -mcmodel=medium to the 32-bit build.
> --disable-multilib

Thanks for the response, that fixed it!

Now I run into

which seems to be

So I think, from what I gather, this prevents gcc from being compiled
(or the libraries at least), therefore it's not possible to compile a
compiler capable of compiling programs generating >2GB executables, at
this time?

Thanks for your help,

More information about the Gcc-help mailing list