AW: AW: gcc -m32 -dumpmachine
Warlich, Christof
christof.warlich@siemens.com
Mon May 14 10:15:00 GMT 2018
> Maybe you can try `gcc -m32 -print-multiarch`? (If GCC was
> configured with `--enable-multiarch`).
Thanks, yes, at the first glance, this looks like the right option to use. But unfortunately, while it returns the right target triplet for x86_64 and powerpc hard float, it doesn't when using the -m32 switch:
$ gcc -m32 -print-multiarch
i386-linux-gnu
As i386-support has been removed from glibc, this is no longer a valid host triplet to build glibc. Even worse, other archs like powerpc just print an empty string if the non-default is used w.r.t. the multilib-choice (i.e. -msoft-float).
-----Ursprüngliche Nachricht-----
Von: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] Im Auftrag von Xi Ruoyao
Gesendet: Donnerstag, 10. Mai 2018 06:28
An: Warlich, Christof (PD PA CI R&D 3); Jonathan Wakely
Cc: gcc-help@gcc.gnu.org
Betreff: Re: AW: gcc -m32 -dumpmachine
On 2018-05-09 12:02 +0000, Warlich, Christof wrote:
> > Oh wait, no .. x86-64 is the right value
>
> Why is that? I need the right host triplet to build the glibcs for each of the cpus being supported by my multilib-
> enabled (cross-)compiler. So I need to pass --host=x86_64-linux-gnu, and not --host=x86-64-linux-gnu. Where is x86-64
> needed?
Maybe you can try `gcc -m32 -print-multiarch`? (If GCC was configured
with `--enable-multiarch`).
--
Xi Ruoyao <ryxi@stu.xidian.edu.cn>
School of Aerospace Science and Technology, Xidian University
More information about the Gcc-help
mailing list