GCC-XML - XML output for GCC
Note: GCC-XML has been succeeded by CastXML. Please use that instead. See README-GCCXML.rst for the original GCC-XML README.
Home Page: http://www.gccxml.org
License: Other
GCC-XML - XML output for GCC
Note: GCC-XML has been succeeded by CastXML. Please use that instead. See README-GCCXML.rst for the original GCC-XML README.
Compiling gccxml with gcc 5.1 raises the following error:
[ 70%] Building C object GCC/gcc/CMakeFiles/backend.dir/toplev.c.o
/home/fwagner/src/gimli/thirdParty/src/gccxml/GCC/gcc/toplev.c:546:1: Fehler: Redefinition von »floor_log2«
floor_log2 (unsigned HOST_WIDE_INT x)
^
In file included from /home/fwagner/src/gimli/thirdParty/src/gccxml/GCC/gcc/toplev.c:59:0:
/home/fwagner/src/gimli/thirdParty/src/gccxml/GCC/gcc/toplev.h:174:1: Anmerkung: Vorherige Definition von »floor_log2« war hier
floor_log2 (unsigned HOST_WIDE_INT x)
^
/home/fwagner/src/gimli/thirdParty/src/gccxml/GCC/gcc/toplev.c:581:1: Fehler: Redefinition von »exact_log2«
exact_log2 (unsigned HOST_WIDE_INT x)
^
In file included from /home/fwagner/src/gimli/thirdParty/src/gccxml/GCC/gcc/toplev.c:59:0:
/home/fwagner/src/gimli/thirdParty/src/gccxml/GCC/gcc/toplev.h:180:1: Anmerkung: Vorherige Definition von »exact_log2« war hier
exact_log2 (unsigned HOST_WIDE_INT x)
^
Hello everyone,
I am trying to use gccxml to generate XML files but when I launc gccxml from the command line I have this error: Could not determine GCCXML_EXECUTABLE setting.
I don't know how to set this setting.
Coudl anyone tell me how to set it ?
Regards,
Alexandre.
It's been 6.5 years since the last supported Visual Studio was released. It's really hard to get a MSVC10 compiler, since it can't easily be installed on a Windows 10 machine.
This commit summarizes the places where the changes should be made to support the newer versions: d958e62
I have the MSVC 11, 12 and 14 installed on my computer, so I can help with the implementation and testing, just let me know what information is needed to make it happen.
The version numbers of the different Visual Studios are described here:
https://en.wikipedia.org/wiki/Microsoft_Visual_Studio#History
I have the following C source typedef_anonymous_struct.c
:
typedef struct {
int car;
int cdr;
} pair_t;
I convert it to XML by this command:
$ gccxml typedef_anonymous_struct.c -fxml=typedef_anonymous_struct.xml
In the output I expect a Struct
node with no name and a Typedef
node with a name. But GCCXML generates a Struct
with a name:
$ echo $(xmllint --format --xpath '//Struct[@name="pair_t"]' typedef_anonymous_struct.xml)
<Struct id="_75" name="pair_t" context="_1" mangled="6pair_t" demangled="pair_t" location="f1:4" file="f1" line="4" size="64" align="32" members="_159 _160 _161 _162 _163 _164 " bases=""/>
And no Typdef
at all:
$ echo $(xmllint --format --xpath '//Typedef[@name="pair_t"]' typedef_anonymous_struct.xml)
XPath set is empty
This are two bugs. The Struct
must not have a name and the Typedef
is missing.
Hi,
Is there a plan or a workaround we can use to make gccxml work with headers from VS2012 and VS2013 ?
Thanks!
after a...
mkdir bld
cd bld
cmake ..
I get...
...
-- Checking for struct tms
-- Checking for struct tms - found
-- Checking for clock_t
-- Checking for clock_t - found
running /usr/bin/sh.exe "/usr/src/openairinterface5g/dependencies/gccxml/GCC/config_cmake/gcc_platform.sh" "/usr/src/openairinterface5g/dependencies/gccxml/bld/GCC/config_cmake/gcc_platform.cmake" "/usr/bin/cmake.exe" 2>&1
*** Configuration x86_64-unknown-cygwin not supported
CMake Error at GCC/config_cmake/CMakeLists.txt:724 (MESSAGE):
Cannot find
'/usr/src/openairinterface5g/dependencies/gccxml/bld/GCC/config_cmake/gcc_platform.cmake'
....
I think the GNU config.guess and config.sub, configure
need to be refreshed, is there a nice ibride way to do just that with autoreconf ?
thx.
GCC_XML looks for support directories for every compiler. Without them the GCC_XML can't support a specific compiler. These files are located in https://github.com/gccxml/gccxml/tree/master/GCC_XML/Support by default.
This repo doesn't contain the files for any of the MSVC compilers. VC9 is supported in code, but can't be used since the directory Support/Vc9 is not there.
If those files ever existed, please upload check them in to make the Visual C compilation possible again.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.