From: Peter Petrakis <ppetrakis@firestorm.tzo.org>
To: axp-list@redhat.com
Subject: Compiling with ccc and gcc snapshot installed. config errors (fwd)
Date: Sat, 11 Mar 2000 15:52:30 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.10.10003111552090.32028-100000@voodoo.alphalinux.org> (raw)
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!!"
"<BLAM!!> Who the hell are you!? Name's Ash <click clock> Housewares..."
next reply other threads:[~2000-03-10 22:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-03-11 20:52 Peter Petrakis [this message]
2000-03-13 20:01 ` Compiling with ccc and gcc snapshot installed. config errors (fwd) Feng Jiang
-- strict thread matches above, loose matches on Subject: below --
2000-03-12 5:49 Designer Seven
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox