This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Compiling GCC 7.2.0 on sparc-sun-solaris2.10
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Luigi30 <luigi30 at gmail dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Sat, 13 Jan 2018 10:01:45 +0000
- Subject: Re: Compiling GCC 7.2.0 on sparc-sun-solaris2.10
- Authentication-results: sourceware.org; auth=none
- References: <CAOjgqxgUR+dzmjyx=v-++jDm1ndsj++PkwBEgqGQpVxkqLHddA@mail.gmail.com>
On 13 January 2018 at 05:48, Luigi30 wrote:
> Hi,
>
> I'm trying to compile GCC 7.2.0 on a machine running Solaris 10. I
> currently have the tgcware GCC 5.5 package installed, binutils 2.29, and
> I'm using the GNU linker and assembler.
>
> My compile gets as far as:
>
> Checking multilib configuration for libgcc...
> Configuring stage 1 in sparc-sun-solaris2.10/libgcc
> [...]
> checking for suffix of object files... configure: error: in
> `/home/luigi/gcc/gcc-obj/sparc-sun-solaris2.10/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
>
> (I've pasted the rest here: https://pastebin.com/fL8W0gwC)
>
> config.log says xgcc failed to compile a file containing "int main() {
> return 0; }".
How did it fail? You needto tell us the error, not just that it
failed. We already know it failed.
Did you read https://gcc.gnu.org/wiki/InstallingGCC and the FAQs it links to?
> If I try to compile a file with xgcc that just contains a
> return 0, I get the following error:
>
> xgcc: error trying to exec 'cc1': execvp: No such file or directory
>
> What am I doing wrong?
>
> Thank you.