Article View: comp.unix.programmer
Article #3615Re: GCC on Solaris7: "C compiler cannot create executables"
From: Jim Tarrant
Date: Wed, 20 Oct 1999 00:00
Date: Wed, 20 Oct 1999 00:00
35 lines
2407 bytes
2407 bytes
> I'm desperately trying to install ssh onto a Solaris 7 system (SPARC).
> Since no compiler comes with Solaris, I downloaded gcc-2.95.1 from
> sunfreeware.com and installed it, together with make-3.77.
> However whenever I run configure for ssh, it stops with the following
> message:
> checking for gcc... gcc
> checking whether the C compiler (gcc -g ) works... no
> configure: error: installation or configuration problem: C compiler cannot
> create executables.
>
> When I look into the config.log file, I find a bit more info:
>
> configure:927: checking for gcc
> configure:1004: checking whether the C compiler (gcc -g ) works
> configure:1018: gcc -o conftest -g conftest.c 1>&5
> gcc: installation problem, cannot exec `as': No such file or directory
> configure: failed program was:
> #line 1014 "configure"
> #include "confdefs.h"
> main(){return(0);}
>
> Now I think the problem is that there's no such "as" file on my system. So
> I tried to install gcc-2.8.1 hoping that this would solve the problem, but
> it's exactly the same.
> Does anyone know what I can do to solve this? Thanks.
as is the assembler used by gcc to generate object code. You may or may
not have an assembler already on Solaris 7 (/usr/ccs/bin???) but there
is a GNU one available in the binutils package which will probably be
available from the same place you got gcc-2.95.1 from and will install
as where gcc expects to find it.
Good luck!
Jim.
Technical Details
Message-ID:
<380DAF9D.A20ED7E2@inri.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8E6580C9Fnospamnowherecom@news.worldonline.be>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,1172555cf79ed188 X-Google-Attributes: gid11318c,public X-Google-Thread: fc89c,1172555cf79ed188 X-Google-Attributes: gidfc89c,public X-Google-Thread: 11035d,1172555cf79ed188 X-Google-Attributes: gid11035d,public From: Jim Tarrant <jtarrant@inri.co.uk> Subject: Re: GCC on Solaris7: "C compiler cannot create executables" Date: 1999/10/20 Message-ID: <380DAF9D.A20ED7E2@inri.co.uk> X-Deja-AN: 538386285 Content-Transfer-Encoding: 7bit X-NNTP-Posting-Host: inri.demon.co.uk:158.152.21.88 References: <8E6580C9Fnospamnowherecom@news.worldonline.be> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@demon.net X-Trace: news.demon.co.uk 940421093 nnrp-08:15437 NO-IDENT inri.demon.co.uk:158.152.21.88 Organization: INRI UK Ltd MIME-Version: 1.0 Newsgroups: comp.unix.programmer,comp.unix.solaris,gnu.gcc.help