From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 21158 invoked from network); 13 Mar 2000 19:57:55 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 13 Mar 2000 19:57:55 -0000 Received: from iol.unh.edu (mars.iol.unh.edu [132.177.121.222]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id OAA05659 for ; Mon, 13 Mar 2000 14:57:55 -0500 Received: from pluto (pluto.iol.unh.edu [132.177.126.134]) by iol.unh.edu (8.9.3/8.9.3) with SMTP id OAA13412 for ; Mon, 13 Mar 2000 14:57:47 -0500 (EST) Message-ID: <006901bf8d26$e00d39a0$867eb184@iol.unh.edu> Reply-To: "Feng Jiang" From: "Feng Jiang" To: References: Subject: Re: Compiling with ccc and gcc snapshot installed. config errors (fwd) Date: Mon, 13 Mar 2000 15:01:09 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To discuss compiler stuff, there is another discussion group set up by Compaq and UNH. You can find how to subscribe at URL: http://www.iol.unh.edu/linux/C/discussion.html > > I just found out the hard way that ccc depends alot upon your exsiting > installation of egcs. I have a gcc cvs grab install to /usr/local/. ccc > has dependances and symlinks to where egcs used to be. I fixed all of them > , correctly I don't know. It sure wont compile anything. It bails on > Xfree 4.0 > > ccc -o ccimake -O -I../../include -I../../imports/x11/include/X11 > ccimake.c > cc: Info: ccimake.c, line 40: In this statement, for the function "exit", > the implicit return type of "int" is not consistent with the expected type > of "void". It will be treated as an ordinary implicitly defined external > function. (bltinimplret) > exit(0); > --------^ > ccc -c -O -I../../include -I../../imports/x11/include/X11 `./ccimake` > imake.c > ccc -o imake -O -I../../include -I../../imports/x11/include/X11 imake.o > make[2]: Leaving directory `/usr/src/xc/config/imake' > rm -f ./config/makedepend/Makefile.proto > ./config/imake/imake -I./config/cf -s ./config/makedepend/Makefile.proto > -f ./config/makedepend/Imakefile -DTOPDIR=../.. > -DCURDIR=./config/makedepend > cc: Error: > /usr/local/lib/gcc-lib/alpha-unknown-linux-gnu/2.96/include/stdarg.h, line > 43: Missing ";". (nosemi) > typedef __builtin_va_list __gnuc_va_list; > cc: Error: /usr/include/libio.h, line 363: Ill-formed parameter type list. > (parmtyplist) > extern int _IO_vfscanf __P ((_IO_FILE * __restrict, const char * > __restrict, > nosemi) > typedef __builtin_va_list __gnuc_va_list; > --------------------------^ > cc: Error: /usr/include/libio.h, line 363: Ill-formed parameter type list. > (parmtyplist) > extern int _IO_vfscanf __P ((_IO_FILE * __restrict, const char * > __restrict, > -----------------------^ > cc: Error: /usr/include/libio.h, line 365: Ill-formed parameter type list. > (parmtyplist) > extern int _IO_vfprintf __P ((_IO_FILE *__restrict, const char > *__restrict, > ------------------------^ > cc: Error: /usr/include/stdio.h, line 256: Ill-formed parameter type list. > (parmtyplist) > extern int vfprintf __P ((FILE *__restrict __s, > --------------------^ > cc: Error: /usr/include/stdio.h, line 260: Ill-formed parameter type list. > (parmtyplist) > extern int vprintf __P ((__const char *__restrict __format, > -------------------^ > cc: Error: /usr/include/stdio.h, line 263: Ill-formed parameter type list. > (parmtyplist) > extern int vsprintf __P ((char *__restrict __s, > --------------------^ > cc: Error: /usr/include/stdio.h, line 273: Ill-formed parameter type list. > (parmtyplist) > extern int __vsnprintf __P ((char *__restrict __s, size_t __maxlen, > -----------------------^ > cc: Error: /usr/include/stdio.h, line 277: Ill-formed parameter type list. > (parmtyplist) > extern int vsnprintf __P ((char *__restrict __s, size_t __maxlen, > ---------------------^ > make[1]: *** [config/makedepend/Makefile.proto] Aborted (core dumped) > make[1]: *** Deleting file `config/makedepend/Makefile.proto' > make[1]: Leaving directory `/usr/src/xc' > make: *** [World] Error 2 > > Here's how I tweaked ccc. > First my compiler version, > Reading specs from > /usr/local/lib/gcc-lib/alpha-unknown-linux-gnu/2.96/specs > gcc version 2.96 20000221 (experimental) > > now for ccc > /usr/lib/compaq/ccc-6.2.9.002-2/alpha-linux/bin/ > > -rw-r--r-- 1 root root 160 Dec 13 14:28 > __DECC_include_epilogue.h > -rw-r--r-- 1 root root 370 Dec 13 14:28 > __DECC_include_prologue.h > lrwxrwxrwx 1 root root 11 Mar 11 15:18 as -> /usr/bin/as > lrwxrwxrwx 1 root root 12 Mar 11 15:18 ccc -> lnxcc_driver > -rw-r--r-- 1 root root 360 Mar 11 15:34 comp.config > -rw-r--r-- 1 root root 342 Mar 11 15:30 comp.config.mine > -rw-r--r-- 1 root root 422 Mar 11 15:17 comp.config.rpmsave > -rw-r--r-- 1 root root 342 Dec 13 14:28 comp.config~ > lrwxrwxrwx 1 root root 55 Mar 11 15:29 cpp -> > /usr/local/lib/gcc-lib/alpha-unknown-linux-gnu/2.96/cpp > -rwxr-xr-x 1 root root 8022 Dec 13 14:27 > create-comp-config.sh > lrwxrwxrwx 1 root root 15 Mar 11 15:18 crt1.o -> > /usr/lib/crt1.o > lrwxrwxrwx 1 root root 19 Mar 11 15:18 crtbegin.o -> > /usr/lib/crtbegin.o > lrwxrwxrwx 1 root root 17 Mar 11 15:18 crtend.o -> > /usr/lib/crtend.o > lrwxrwxrwx 1 root root 15 Mar 11 15:18 crti.o -> > /usr/lib/crti.o > lrwxrwxrwx 1 root root 15 Mar 11 15:18 crtn.o -> > /usr/lib/crtn.o > lrwxrwxrwx 1 root root 16 Mar 11 15:18 gcrt1.o -> > /usr/lib/gcrt1.o > lrwxrwxrwx 1 root root 11 Mar 11 15:24 ld -> /usr/bin/ld > lrwxrwxrwx 1 root root 51 Jan 30 22:12 ld.bak -> > /usr/lib/gcc-lib/alpha-redhat-linux/egcs-2.90.29/ld > -rwxr-xr-x 1 root root 34755146 Dec 13 14:27 lnxcc > -rwxr-xr-x 1 root root 1570531 Dec 13 14:28 lnxcc_driver > -rwxr-xr-x 1 root root 9502 Dec 13 14:27 > protect_headers_setup.sh > > I tried to find an ld that pointed to the same place as my stock egcs. I > could not find it. I also edited the comp.config file. > > | -SysIncDir /usr/lib/compaq/ccc-6.2/alpha-linux/include -SysIncDir > /usr/local/include -SysIncDir /usr/local/alpha-redhat-linux/include > -SysIncDir /usr/local/lib/gcc-lib/alpha-unknown-linux-gnu/2.96/include > -L/usr/lib/compaq/ccc-6.2/alpha-linux/lib -L/usr/local/lib > -L/usr/alpha-unknown-linux-gnu/lib > -L/usr/local/lib/gcc-lib/alpha-unknown-linux-gnu/2.96 > > did I miss something or is this just unsupported by ccc? > Thanks. > > Peter > -- > www.alphalinux.org > Peter Petrakis Warrior/Engineer ppetrakis@alphalinux.org > "Oh my God! They killed Xena! You bastards!!" > " Who the hell are you!? Name's Ash Housewares..." > > > -- > To unsubscribe: send e-mail to axp-list-request@redhat.com with > 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com