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