[GCC-XML] Facing problem to build gccxml_plus on Linux

satarupa pal satarupa.pal at gmail.com
Tue Sep 14 06:41:51 EDT 2010


Hi Brad,
>
>
> I am trying to build gccxml_plus executable for Red Hat Linux machine.
>
> My motive is to build the gccxml_plus executable and use it for GCCxml
> parsing inside my software on Linux. We had created the same exe for windows
> and used that for writing our parsing logic for the software.
>
> We had used gccxml source code with revesion ID
>
> Date:      $Date: 2006-03-28 20:00:16 $
> Version:   $Revision: 1.108 $
>
> to make the gccxml_plus.exe on windows and depending on the xml file
> generated we had written our code parsing logic.
> Now I have tried with the same source code on Linux. But It stopped in
> cmake .../gccxml command only giving some error.
>
> $ mkdir gccxml-build
> $ cd gccxml-build
> $ cmake ../gccxml
>
> "....................
>  ........................
>
> -- Configuring done
> CMake Error in GCC/gcc/CMakeLists.txt:
>   Cannot find source file ".c".  Tried extensions .c .C .c++ .cc .cpp .cxx
> .m
>   .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx
>
>
> -- Build files have been written to: /usr/local/gccxml-build
>
> "
>
>
> I have tried with some other work around -
>
> Downloaded the tar package from
> http://www.gccxml.org/files/v0.6/gccxml-0.6.0.tar.Z
> and extracted to /usr/ocal and named as gccxml. It's reviesion id is 1.73
> and and it's older than the one we had used before.
>
> Now ran the below commands
>
> $ mkdir gccxml-build
> $ cd gccxml-build
> $ cmake ../gccxml
> $ make
> 'make' command gives the error as
> "
> /usr/local/gccxml/GCC/gcc/read-rtl.c: In function ‘read_rtx’:
> /usr/local/gccxml/GCC/gcc/read-rtl.c:653: error: invalid lvalue in
> increment
> make[2]: *** [GCC/gcc/CMakeFiles/genflags.dir/read-rtl.o] Error 1
> make[1]: *** [GCC/gcc/CMakeFiles/genflags.dir/all] Error 2
> make: *** [all] Error 2
>
> "
>
>
>
> Here is the output log
>
>
> *********************************************************************************************************
>
> [root at bhdhcp13659 gccxml]# cd ..
> [root at bhdhcp13659 local]# mkdir gccxml-build
> [root at bhdhcp13659 local]# cd gccxml-build/
> [root at bhdhcp13659 gccxml-build]# cmake ../gccxml
> -- The C compiler identification is GNU
>   and other libraries with known full path:
>

  ................................
  ..................................

>
>     /usr/local/gccxml-build/GCC/gcc/libiberty.a
>
>   CMake is adding directories in the second list to the linker search path
> in
>   case they are needed to find libraries from the first list (for backwards
>   compatibility with CMake 2.4).  Set policy CMP0003 to OLD or NEW to
> enable
>   or disable this behavior explicitly.  Run "cmake --help-policy CMP0003"
> for
>   more information.
> This warning is for project developers.  Use -Wno-dev to suppress it.
>
> -- Generating done
> -- Build files have been written to: /usr/local/gccxml-build
> [root at bhdhcp13659 gccxml-build]#
>
>
>
>
> *************************************
> make command
> ------------------
>
>
> [root at bhdhcp13659 gccxml-build]# make
> Scanning dependencies of target iberty
> [  1%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/regex.o
> [  1%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/cplus-dem.o
> [  1%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/cp-demangle.o
> [  1%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/md5.o
> [  2%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/alloca.o
> [  2%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/argv.o
> [  2%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/choose-temp.o
> [  2%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/concat.o
> [  2%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/dyn-string.o
> [  3%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/fdmatch.o
> [  3%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/fibheap.o
> [  3%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/floatformat.o
> [  3%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/fnmatch.o
> [  4%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/getopt.o
> [  4%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/getopt1.o
> [  4%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/getpwd.o
> [  4%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/getruntime.o
> [  5%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/hashtab.o
> [  5%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/hex.o
> [  5%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/lbasename.o
> [  5%] Building C object
> GCC/libiberty/CMakeFiles/iberty.dir/make-relative-prefix.o
> [  5%] Building C object
> GCC/libiberty/CMakeFiles/iberty.dir/make-temp-file.o
> [  6%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/objalloc.o
> [  6%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/obstack.o
> [  6%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/partition.o
> [  6%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/physmem.o
> [  7%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/pexecute.o
> [  7%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/safe-ctype.o
> [  7%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/sort.o
> [  7%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/spaces.o
> [  8%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/splay-tree.o
> [  8%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/strerror.o
> [  8%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/strsignal.o
> [  8%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/ternary.o
> [  8%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/xatexit.o
> [  9%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/xexit.o
> [  9%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/xmalloc.o
> [  9%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/xmemdup.o
> [  9%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/xstrdup.o
> [ 10%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/xstrerror.o
> [ 10%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/copysign.o
> [ 10%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/_doprnt.o
> [ 10%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/mkstemps.o
> [ 11%] Building C object GCC/libiberty/CMakeFiles/iberty.dir/vfork.o
> Linking C static library ../gcc/libiberty.a
> [ 11%] Built target iberty
> Scanning dependencies of target gengtype
> [ 11%] Building C object GCC/gcc/CMakeFiles/gengtype.dir/gengtype.o
> [ 11%] Building C object GCC/gcc/CMakeFiles/gengtype.dir/gengtype-lex.o
> [ 12%] Building C object GCC/gcc/CMakeFiles/gengtype.dir/gengtype-yacc.o
> Linking C executable gengtype
> [ 12%] Built target gengtype
> Scanning dependencies of target gencheck
> [ 12%] Building C object GCC/gcc/CMakeFiles/gencheck.dir/gencheck.o
> Linking C executable gencheck
> [ 12%] Built target gencheck
> Scanning dependencies of target gengenrtl
> [ 12%] Building C object GCC/gcc/CMakeFiles/gengenrtl.dir/gengenrtl.o
> Linking C executable gengenrtl
> [ 12%] Built target gengenrtl
> [ 12%] Generating gtype-desc.h
> [ 13%] Generating genrtl.h
> Scanning dependencies of target genflags
> [ 14%] Building C object GCC/gcc/CMakeFiles/genflags.dir/genflags.o
> [ 14%] Building C object GCC/gcc/CMakeFiles/genflags.dir/rtl.o
> [ 14%] Building C object GCC/gcc/CMakeFiles/genflags.dir/read-rtl.o
> /usr/local/gccxml/GCC/gcc/read-rtl.c: In function ‘read_rtx’:
> /usr/local/gccxml/GCC/gcc/read-rtl.c:653: error: invalid lvalue in
> increment
> make[2]: *** [GCC/gcc/CMakeFiles/genflags.dir/read-rtl.o] Error 1
> make[1]: *** [GCC/gcc/CMakeFiles/genflags.dir/all] Error 2
> make: *** [all] Error 2
> [root at bhdhcp13659 gccxml-build]#
>
>
> *******************************************************************************************************************
> ive me same
>
> I need the gccxml_plus exe which will give the same result as windows.
>
> Please help me in this regard.
> --
>
>
> with regards,
>
> Satarupa Pal
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/gccxml/attachments/20100914/60149845/attachment.html>


More information about the gccxml mailing list