🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.unix.programmer
4 messages
4 total messages Started by J.V. Wed, 20 Oct 1999 00:00
GCC on Solaris7: "C compiler cannot create executables"
#3614
Author: J.V.
Date: Wed, 20 Oct 1999 00:00
28 lines
1906 bytes
Hello all,

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.
J.V.
Re: GCC on Solaris7: "C compiler cannot create executables"
#3607
Author: J.V.
Date: Wed, 20 Oct 1999 00:00
38 lines
2517 bytes
jtarrant@inri.co.uk (Jim Tarrant) wrote in
<380DAF9D.A20ED7E2@inri.co.uk>: 

>> 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.
>
Thanks for your help! Only one more question: I don't have an assembler
installed yet, and on www.sunfeeware.com there's no package for this
version of gcc yet, do you have any idea where I can find it? Apparently
it should also be included as a package on the Solaris CD-ROM, but I
can't find out which package to install... And if not available as a
package, any help on how to install it would also be very welcome :-) 

>Good luck!
>
>Jim.
Re: GCC on Solaris7: "C compiler cannot create executables"
#3608
Author: Casper H.S. Dik - Network Securi...
Date: Wed, 20 Oct 1999 00:00
51 lines
2705 bytes
[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]

fr017905@nospam.worldonline.be (J.V.) writes:

>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

/usr/ccs/bin/as is in package SUNWsprot
system      SUNWsprot      Solaris Bundled tools

The solaris FAQ says:

6.2) Which packages do I need to install to support a C compiler?

    Solaris ships with everything you need, with the exception of the
    compiler itself.  Solaris ships with the include files, make, an
    assembler, linker and libraries.  All this stuff lives in
    /usr/ccs/bin (add it to your PATH before /usr/ucb if that's in your
    PATH as well) /usr/ccs/lib and /usr/include.

    If you still can't find it, make sure you have the following
    packages installed on your system:

	for tools (sccs, lex, yacc, make, nm, truss, ld, as):
	    SUNWbtool, SUNWsprot, SUNWtoo
	for libraries & headers:
	    SUNWhea, SUNWarc, SUNWlibm, SUNWlibms
	    SUNWdfbh, SUNWcg6h, SUNWxwinc, SUNWolinc,
	    SUNWxglh
	for 64 bit development:
	    SUNWarcx, SUNWbtoox, SUNWdplx, SUNWscpux, SUNWsprox,
	    SUNWtoox, SUNWlmsx, SUNWlmx, SUNWlibCx
	for ucb compat:
	    SUNWsra, SUNWsrh

    These packages are all on the Solaris 2.x CDs, except that some
    packages may only exist in some releases and not in others.
    Some packages may be on separate CDs, such as the "Desktop/CDE"
    CD, but all are part of the Solaris "bundle".

    --- end of excerpt from the FAQ

The most recently posted version of the FAQ is available from
<http://www.wins.uva.nl/pub/solaris/solaris2/>
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
Re: GCC on Solaris7: "C compiler cannot create executables"
#3615
Author: Jim Tarrant
Date: Wed, 20 Oct 1999 00:00
35 lines
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads