This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Problem with Solaris 10 / SPARC
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Amos <a dot goo0h at gmail dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Mon, 1 Jul 2013 23:34:53 +0100
- Subject: Re: Problem with Solaris 10 / SPARC
- References: <CAK2viQXS4mcTH0F+VHhQd54p9T1+sZR-WN68tpMe0tgGeFgFfA at mail dot gmail dot com> <CAK2viQVGG8ckdPMQ01SbbZN9YQWcL4iL8sKahSrYRqVuzg+Fug at mail dot gmail dot com> <51CCC7F5 dot 1080602 at wippies dot com> <51CCCA32 dot 1050600 at wippies dot com> <CAK2viQVcw=zFpnqAy+OP4ZPummSj4_E6CwZViShfmFQ4c6130A at mail dot gmail dot com> <CAKhyrx-16=azfeNTYPUCyTpAhsc-eL22s2nCKGw4j17sR8iBig at mail dot gmail dot com> <CAK2viQWOY4mTscfUHHVqzvCkPB9m0ERA_evXgNDUXnKb4Sq8sg at mail dot gmail dot com> <CAH6eHdSV0b_iMabfFC6n2xxUQuJscmLj21Caqn-iyrjJjhOadw at mail dot gmail dot com> <CAK2viQUMgoe-eoVpO02sc1SSRz-GJ4jY+DEF20Zj-Cubq6eb1g at mail dot gmail dot com>
On 1 July 2013 22:33, Amos wrote:
> On Sun, Jun 30, 2013 at 8:26 AM, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
>> Did you try building those libraries as part of the GCC build, as
>> described at http://gcc.gnu.org/wiki/InstallingGCC ? That should
>> automatically build them correctly and give you a working compiler
>> (probably 32-bit, but capable of building 64-bit objects too.)
>
> No joy with that route either:
>
> I was able to compile gcc-4.0.2 fully 64-bit, but not only did I have
> to set the various environment settings to include "-m64", but I also
> had to fiddle with the specs file to force the default of "-m64" for
> the multilib stuff to get the xgcc stage to finish compiling without
> blowing-up.
>
> Now I'm wondering if I need to somehow suggest the specs during the
> gcc build process to default to 64bit.
You shouldn't need to do any of that or set any env variables.