[GCC-XML] Re: [Bug 1812] Changed - a 64bit mode compiler ist built on x86_64 / 32bit mode
Andreas Degert
ad at papyrus-gmbh.de
Tue May 3 04:45:31 EDT 2005
Johnny Casey <jjcasey+gccxml at pobox.com> writes:
[...]
>> So perhaps what's missing is a way to set the default target in the
>> build process (maybe there is such a way and I don't know enough
>> about cmake).
>>
>> I'll try to find out how the standard build process of gcc handles
>> this.
[...]
> My guess is that it just looks at the output of uname -m.
>
> If you are using a Redhat distro, have you tried setarch? It apparently
> changes the environment so that uname -m returns i686 instead of x86_64...
I'm using Debian and I found a package linux32 which installs the
commands linux32 and linux64. These commands can be used as prefix and
change the system personality for the process (and child processes)
via a system call. I assume setarch on Redhad does the same.
gcc has lots of bells and wistles in its configure script, but at
least this problem is easily solved for gccxml by using linux32 or
setarch.
I'll put a note into the bug report and close it.
Thank you for the tip.
ciao
Andreas
More information about the gccxml
mailing list