Compiling gcc with -mcmodel=large fails
Jonathan Wakely
jwakely.gcc@gmail.com
Thu Jul 5 14:31:00 GMT 2012
On 3 July 2012 09:28, Adrian Smith wrote:
> When I try to compile gcc using "-mcmodel=large" it fails with:
>
> configure: error: cannot compute suffix of object files:
> cannot compile. See `config.log' for more details.
>
> I have, however, successfully downloaded and compiled gcc without
> using the "-mcmodel=large" option. gcc compiles, and the resulting
> compiler compiles a simple "hello world" and the program runs
> successfully.
>
> Introducing the "-mcmodel=large" parameters into the CFLAGS_FOR_TARGET
> parameter in following command, however, causes it to fail:
>
> make \
> BOOT_CFLAGS='-g -O2 -mcmodel=large' \
> CFLAGS_FOR_TARGET='-g -O2 -mcmodel=large' \
> bootstrap
>
> The "config.log" is identical between the successful and
> non-successful runs (attached).
That's not possible, since the error you get is during the configure stage.
Thre are multiple config.log files in sub-directories, I assume you
were only comparing the top-level ones. The error was presumably in
some sub-directory you didn't look in.
More information about the Gcc-help
mailing list