Package Details: castxml-git 0.3.1.r6.g861054e-1

Git Clone URL: (read-only, click to copy)
Package Base: castxml-git
Description: C-family abstract syntax tree XML output tool.
Upstream URL:
Keywords: gccxml
Licenses: Apache
Conflicts: castxml
Provides: castxml
Submitter: jgmdev
Maintainer: jgmdev
Last Packager: jgmdev
Votes: 6
Popularity: 0.188189
First Submitted: 2015-11-26 05:27
Last Updated: 2020-03-03 19:02

Required by (9)

Sources (1)

Latest Comments

1 2 Next › Last »

wushangwei commented on 2019-02-15 13:33

Unfortunately it cannot be built successfully. Here's my fix:

In the PKGBUILD file, under prepare(), add "../CastXML" after "cmake". So the cmake line should be:

cmake ../CastXML -DSPHINX_EXECUTABLE=/usr/bin/sphinx-build \ -DSPHINX_HTML=1 \ -DSPHINX_MAN=1 \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCastXML_INSTALL_DOC_DIR=share/doc/castxml \ -DCastXML_INSTALL_MAN_DIR=share/man }

then makepkg -sri

Please update the PKGBUILD, thank you!

yhfudev commented on 2019-01-02 19:05

Hi, can you please change the source to


because the hosts behind firewall can't access it.


jgmdev commented on 2018-04-04 14:51

@loh Done.

loh commented on 2018-03-28 11:09

Following the update to LLVM6 line 37 of the PKGBUILD needs to be changed to:

sed -i "s|\${llvm_libs}|LLVM|g" src/CMakeLists.txt

See for details.


LeonardK commented on 2018-01-22 14:56

At least I need to hint the Clang or the LLVM dir to CMake, eg. like this:


Otherwise LLVM_INCLUDE_DIRS only contains //include for some reason.

jgmdev commented on 2018-01-20 13:53

@Kniyl Thanks again, I was developing a php binding generator and was going to use castxml to parse c++ header files but I haven't worked on that project for a long time, so I haven't tested this PKGBUILD except for today to implement the fix that you described on github. I added a sed -i removal for the offending ${llvm_libs} as you found on github, Now that aur supports co-maintainers would you like to be one? You may have more time than me to lookup issues on this package.

Kniyl commented on 2018-01-18 13:26

@jgmdev Do you happen to still get a working castxml binary using the current PKGBUILD? What's your take on ? Should we add a patch in the PKGBUILD, should we raise the issue to LLVM?

jgmdev commented on 2018-01-16 04:44

@Kniyl Added clang-tools-extra, thank you!

Kniyl commented on 2018-01-12 11:02

I found the /usr/lib/libclangApplyReplacements.a file in the clang-tools-extra package, you may add it as a build dependency.

Kniyl commented on 2018-01-12 10:36

Build fail with the following error, do I miss a dependency or something?

==> Lancement de prepare()...
-- The C compiler identification is GNU 7.2.1
-- The CXX compiler identification is GNU 7.2.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.15.1") 
CMake Error at /usr/lib/cmake/clang/ClangTargets.cmake:456 (message):
  The imported target "clangApplyReplacements" references the file


  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained


  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib64/cmake/clang/ClangConfig.cmake:18 (include)
  CMakeLists.txt:87 (find_package)

-- Configuring incomplete, errors occurred!