gcc/g++ help needed

Dick jiao dick@ccorporate.com
Thu Feb 24 00:18:00 GMT 2000


Hello  :
    Thanks for your quick reply !!!
the whole story is that , I want gcc/g++ compiler on my 
Solaris2.5.1(Sparc5),
I got many freeware packages form ftp://ftp.GNU.org , at that moment,
It seemed that there were tow choices i had to take. 
First one was use winzip on .gz file to produce .tar file
,then ftp it to Solaris2.5.1 for "tar xvf gcc-2.95.tar", at last follows 
happened:
 
$ ./configure loading cache ./config.cache checking host system 
type... sparc-sun-solaris2.5.1 checking target system type... 
sparc-sun-solaris2.5.1 checking build system type... 
sparc-sun-solaris2.5.1 checking for gcc... no checking for cc... 
no configure: error: no acceptable cc found in $PATH $ uname -a SunOS 
Apache 5.5.1 Generic_103640-12 sun4m sparc SUNW,SPARCstation-5 $ 
set CC=/usr/ucb/cc HOME=/export/home0/test HZ=100 IFS=
 
LOGNAME=test MAIL=/var/mail/test MAILCHECK=600 OPTIND=1 PATH=/usr/bin:/bin:/usr/proc/bin:/usr/ccs/bin:/usr/ucb:.:../usr/sadm/sysadm/bin PS1=$ PS2=> SHELL=/bin/sh TERM=vt100 TZ=PRC 

 
because my O.S. is system V release 4.0, I set /usr/bin precede /usr/ucb 
(/usr/ucb/cc's bug) according to what mentioned by INSTALL file. For my 
Solaris2.5.1 was install few days ago by myself, there was ONLY one cc 
compiler locates in /usr/ucb, no matter how to
set CC environment variable, the result was same as above.
 
Second choice was I have had to make gzip work 
first, but after got pre-compiled gzip from http://www.sunfreeware.com/ ,
when I used  " gzip -d < 
gcc-2.95.tar.gz | tar xf -"  , error message as follows
 syntax error at line 1: `(' unexpected 
,
 
if what i took is NOT pre-compiled  gzip, but 
gzip-1.2.4.tar from ftp://ftp.GNU.org , I 
excuted "tar xvf gzip-1.2.4.tar", and then
" ./configure" , i got as follows
$ ./configure checking for gcc ./configure: 
conftest.c: cannot create ./configure: conftest.out: cannot 
create checking how to run the C preprocessor ./configure: conftest.c: 
cannot create checking for underline in external names ./configure: 
conftest.c: cannot create nm: conftest.o: No such file or 
directory checking for assembler ./configure: _match.s: cannot 
create checking for install checking for AIX ./configure: conftest.c: 
cannot create ./configure: conftest.out: cannot create checking for 
minix/config.h ./configure: conftest.c: cannot create checking for 
POSIXized ISC checking for DYNIX/ptx libseq ./configure: conftest.c: 
cannot create ./configure: conftest.out: cannot create checking for ANSI C 
header files ./configure: conftest.c: cannot create ./configure: 
conftest.c: cannot create
 
 
 
what is problem??? 
As I remembered, I should only use "pkgadd -d 
."  for gcc installation after "make install" phase (I have ever 
succeded same thing half year ago ), is that right ??
 
I'm looking forward to get your reply 
!
 
thanks!
 
dick



More information about the Gcc-bugs mailing list