[GCC-XML] build errors on Windows XP with Visual Studio 2005

David Backeberg daveb at case.edu
Tue Jun 27 12:12:23 EDT 2006


Hi there:

Has anybody successfully compiled a recent version of gccxml with
Visual Studio 2005? There's an open bug report number 2163, asking for
MSVC8 support, but MSVC8 support is implied in
http://www.gccxml.org/HTML/Running.html
Furthermore, the cmake step seems to know I have MSVC8.

I get lots of problems. I'm using a CVS checkout from June 25th or so.
I'm using the Windows version of cmake, version 2.4.2. I have cl.exe
from Visual Studio 2005 (VS8) properly setup so cmake can reach it. I
use the cmake gui to put the build files in a different directory from
the source, and this completes successfully, leaving one .sln file,
and a few .vcproj files in the top level of the source-build
directory.

I load the .sln file in Visual Studio, and press F6 to build-all. I
get 75 errors. From a glance at the errors, they seem to be mostly
from gcc itself. Is there a way to build gccxml in such a way that it
will make calls to cl.exe / MSVC8 in such a way as to not need gcc
anyway? All I really want to do is use gccxml to call MSVC8 to markup
some Windows source code, and do some string parsing on the xml
augmentation to analyze the code.

Error	1	error C2373: '__sys_errlist' : redefinition; different type
modifiers	c:\gccxml\GCC\libiberty\strerror.c	474
Error	2	error C2106: '=' : left operand must be
l-value	c:\gccxml\GCC\libiberty\strerror.c	556
Error	3	fatal error LNK1104: cannot open file 'iberty.lib'	gengenrtl	
Error	4	fatal error LNK1104: cannot open file 'iberty.lib'	gengtype	
Error	5	error PRJ0019: A tool returned an error code from "Generating
gtype-desc.c"	genconstants
Error	6	fatal error LNK1104: cannot open file 'iberty.lib'	gencheck	
Error	7	error PRJ0019: A tool returned an error code from "Generating
gtype-desc.c"	genflags
Error	8	error PRJ0019: A tool returned an error code from "Generating
tree-check.h"	genattr
Error	9	fatal error LNK1104: cannot open file 'iberty.lib'	genpreds	
Error	10	error PRJ0019: A tool returned an error code from "Generating
gtype-desc.c"	gencodes
Error	11	error PRJ0019: A tool returned an error code from "Generating
gtype-desc.c"	genconfig
Error	12	error PRJ0019: A tool returned an error code from "Generating
insn-flags.h"	genoutput
Error	13	error PRJ0019: A tool returned an error code from "Generating
insn-constants.h"	genextract
Error	14	error PRJ0019: A tool returned an error code from "Generating
gtype-desc.c"	genpeep
Error	15	error PRJ0019: A tool returned an error code from "Generating
gtype-desc.c"	genemit
Error	16	error PRJ0019: A tool returned an error code from "Generating
gtype-desc.c"	genrecog
Warning	17	warning C4996: 'strdup' was declared
deprecated	c:\gccxml\GCC_XML\KWSys\SystemTools.cxx	405
Warning	18	warning C4996: 'unlink' was declared
deprecated	c:\gccxml\GCC_XML\KWSys\SystemTools.cxx	1876
Warning	19	warning C4996: 'chmod' was declared
deprecated	c:\gccxml\GCC_XML\KWSys\SystemTools.cxx	3456
Warning	20	Command line warning D9025 : overriding '/TP' with '/TC'	cl	
Error	21	error PRJ0019: A tool returned an error code from "Generating
gtype-desc.c"	genopinit
Error	22	error PRJ0019: A tool returned an error code from "Generating
gtype-desc.c"	genattrtab
Error	23	error PRJ0019: A tool returned an error code from "Generating
tm-preds.h"	cpp
Error	24	error PRJ0019: A tool returned an error code from "Generating
gtype-desc.c"	backend
Error	25	fatal error C1083: Cannot open include file: 'genrtl.h': No
such file or directory	C:\gccxml\GCC\gcc\rtl.h	1783
Error	26	error C2223: left of '->vec' must point to
struct/union	c:\gccxml\GCC\gcc\cp\cp-lang.c	231
Error	27	fatal error C1083: Cannot open include file: 'gtype-desc.h':
No such file or directory	C:\gccxml\GCC\gcc\ggc.h	22
Error	28	fatal error C1083: Cannot open include file: 'genrtl.h': No
such file or directory	C:\gccxml\GCC\gcc\rtl.h	1783
Error	29	error C2223: left of '->vec' must point to
struct/union	c:\gccxml\GCC\gcc\cp\dump.c	282
Error	30	fatal error C1903: unable to recover from previous error(s);
stopping compilation	c:\gccxml\GCC\gcc\cp\dump.c	282
Error	31	fatal error C1083: Cannot open include file: 'gtype-desc.h':
No such file or directory	C:\gccxml\GCC\gcc\ggc.h	22
Error	32	fatal error C1083: Cannot open include file: 'genrtl.h': No
such file or directory	C:\gccxml\GCC\gcc\rtl.h	1783
Error	33	fatal error C1083: Cannot open include file: 'gtype-desc.h':
No such file or directory	C:\gccxml\GCC\gcc\ggc.h	22
Error	34	fatal error C1083: Cannot open include file: 'genrtl.h': No
such file or directory	C:\gccxml\GCC\gcc\rtl.h	1783
Error	35	fatal error C1083: Cannot open include file: 'genrtl.h': No
such file or directory	C:\gccxml\GCC\gcc\rtl.h	1783
Error	36	fatal error C1083: Cannot open include file: 'genrtl.h': No
such file or directory	C:\gccxml\GCC\gcc\rtl.h	1783
Error	37	fatal error C1083: Cannot open include file: 'genrtl.h': No
such file or directory	C:\gccxml\GCC\gcc\rtl.h	1783
Error	38	fatal error C1083: Cannot open include file: 'genrtl.h': No
such file or directory	C:\gccxml\GCC\gcc\rtl.h	1783
Error	39	error C2223: left of '->list' must point to
struct/union	c:\gccxml\GCC\gcc\cp\cvt.c	1084
Error	40	fatal error C1083: Cannot open include file: 'genrtl.h': No
such file or directory	C:\gccxml\GCC\gcc\rtl.h	1783
Error	41	fatal error C1083: Cannot open include file: 'gtype-desc.h':
No such file or directory	C:\gccxml\GCC\gcc\ggc.h	22
Error	42	error C2223: left of '->list' must point to
struct/union	c:\gccxml\GCC\gcc\cp\rtti.c	773
Error	43	error C2223: left of '->list' must point to
struct/union	c:\gccxml\GCC\gcc\cp\rtti.c	779
Error	44	error C2198: 'xref_tag' : too few arguments for
call	c:\gccxml\GCC\gcc\cp\rtti.c	780
Error	45	error C2223: left of '->list' must point to
struct/union	c:\gccxml\GCC\gcc\cp\rtti.c	803
Error	46	error C2223: left of '->vec' must point to
struct/union	c:\gccxml\GCC\gcc\cp\rtti.c	961
Error	47	fatal error C1903: unable to recover from previous error(s);
stopping compilation	c:\gccxml\GCC\gcc\cp\rtti.c	961
Error	48	error C2223: left of '->decl' must point to
struct/union	c:\gccxml\GCC\gcc\cp\ptree.c	55
Error	49	error C2223: left of '->decl' must point to
struct/union	c:\gccxml\GCC\gcc\cp\ptree.c	58
Error	50	error C2223: left of '->vec' must point to
struct/union	c:\gccxml\GCC\gcc\cp\ptree.c	149
Error	51	fatal error C1903: unable to recover from previous error(s);
stopping compilation	c:\gccxml\GCC\gcc\cp\ptree.c	149
Error	52	fatal error C1083: Cannot open include file: 'gtype-desc.h':
No such file or directory	C:\gccxml\GCC\gcc\ggc.h	22
Error	53	fatal error C1083: Cannot open include file: 'gtype-desc.h':
No such file or directory	C:\gccxml\GCC\gcc\ggc.h	22
Error	54	error C2223: left of '->vec' must point to
struct/union	c:\gccxml\GCC\gcc\cp\error.c	220
Error	55	error C2223: left of '->list' must point to
struct/union	c:\gccxml\GCC\gcc\cp\error.c	240
Error	56	error C2223: left of '->list' must point to
struct/union	c:\gccxml\GCC\gcc\cp\error.c	241
Error	57	error C2223: left of '->identifier' must point to
struct/union	c:\gccxml\GCC\gcc\cp\error.c	251
Error	58	error C2198: 'output_add_string' : too few arguments for
call	c:\gccxml\GCC\gcc\cp\error.c	251
Error	59	error C2223: left of '->identifier' must point to
struct/union	c:\gccxml\GCC\gcc\cp\error.c	255
Error	60	error C2198: 'output_add_string' : too few arguments for
call	c:\gccxml\GCC\gcc\cp\error.c	255
Error	61	error C2223: left of '->list' must point to
struct/union	c:\gccxml\GCC\gcc\cp\error.c	284
Error	62	error C2223: left of '->list' must point to
struct/union	c:\gccxml\GCC\gcc\cp\error.c	285
Error	63	error C2223: left of '->int_cst' must point to
struct/union	c:\gccxml\GCC\gcc\cp\error.c	285
Error	64	error C2223: left of '->vec' must point to
struct/union	c:\gccxml\GCC\gcc\cp\error.c	289
Error	65	error C2223: left of '->vec' must point to
struct/union	c:\gccxml\GCC\gcc\cp\error.c	294
Error	66	error C2223: left of '->vec' must point to
struct/union	c:\gccxml\GCC\gcc\cp\error.c	294
Error	67	fatal error C1903: unable to recover from previous error(s);
stopping compilation	c:\gccxml\GCC\gcc\cp\error.c	294
Error	68	fatal error C1083: Cannot open include file: 'genrtl.h': No
such file or directory	C:\gccxml\GCC\gcc\rtl.h	1783
Error	69	fatal error C1083: Cannot open include file: 'genrtl.h': No
such file or directory	C:\gccxml\GCC\gcc\rtl.h	1783
Error	70	error C2223: left of '->list' must point to
struct/union	c:\gccxml\GCC\gcc\cp\typeck2.c	175
Error	71	error C2223: left of '->list' must point to
struct/union	c:\gccxml\GCC\gcc\cp\typeck2.c	177
Error	72	error C2223: left of '->list' must point to
struct/union	c:\gccxml\GCC\gcc\cp\typeck2.c	181
Error	73	error C2223: left of '->type' must point to
struct/union	c:\gccxml\GCC\gcc\cp\typeck2.c	242
Error	74	fatal error C1903: unable to recover from previous error(s);
stopping compilation	c:\gccxml\GCC\gcc\cp\typeck2.c	242
Error	75	fatal error C1083: Cannot open include file: 'genrtl.h': No
such file or directory	C:\gccxml\GCC\gcc\rtl.h	1783
Error	76	fatal error C1083: Cannot open include file: 'genrtl.h': No
such file or directory	C:\gccxml\GCC\gcc\rtl.h	1783
Error	77	fatal error C1083: Cannot open include file: 'genrtl.h': No
such file or directory	C:\gccxml\GCC\gcc\rtl.h	1783
Error	78	fatal error C1083: Cannot open include file: 'genrtl.h': No
such file or directory	C:\gccxml\GCC\gcc\rtl.h	1783
Error	79	error PRJ0019: A tool returned an error code from "Generating
gtype-desc.c"	genconditions



More information about the gccxml mailing list