Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Package request: include-what-you-use #5382

Closed
davemackintosh opened this issue Jun 9, 2020 · 5 comments · Fixed by #5642
Closed

Package request: include-what-you-use #5382

davemackintosh opened this issue Jun 9, 2020 · 5 comments · Fixed by #5642
Labels
package request A new package was requested

Comments

@davemackintosh
Copy link

Package description
IWYU is another static analysis tool for C/C++ languages where it examines every symbol and adds the appropriate #include directives for you.

Link to home page and sources

  1. Home page:
  2. Source code:

Additional information
Have you compiled or tried to compile the package on device?

  • If it didn't work then please provide the error you ran into.
 ~/www/cpp/include-what-you-use/build   master  cmake -G "Unix Makefiles" -DIWYU_LLVM_ROOT_PATH=/usr/lib/llvm-6.0 ../                                                                                   127 ↵
-- IWYU: out-of-tree configuration
CMake Error at /data/data/com.termux/files/usr/lib/cmake/llvm/LLVMExports.cmake:1265 (message):
  The imported target "LLVMDemangle" references the file

     "/data/data/com.termux/files/usr/lib/libLLVMDemangle.a"

  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

     "/data/data/com.termux/files/usr/lib/cmake/llvm/LLVMExports.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /data/data/com.termux/files/usr/lib/cmake/llvm/LLVMConfig.cmake:243 (include)
  CMakeLists.txt:19 (find_package)


-- Configuring incomplete, errors occurred!
See also "/data/data/com.termux/files/home/www/cpp/include-what-you-use/build/CMakeFiles/CMakeOutput.log".

Latest clang, cmake, llvm and libllvm installed.

  • If it did work then please share any patches that you had to apply.
@ghost
Copy link

ghost commented Jun 9, 2020

The imported target "LLVMDemangle" references the file
"/data/data/com.termux/files/usr/lib/libLLVMDemangle.a"
but this file does not exist. Possible reasons include:

pkg install libllvm-static

@ghost ghost added the package request A new package was requested label Jun 9, 2020
@davemackintosh
Copy link
Author

Thanks, that got me past the original error but

Setting up libllvm-static (9.0.1-6) ...
 ~/www/cpp/include-what-you-use/build   master  cmake -G "Unix Makefiles" -DIWYU_LLVM_ROOT_PATH=/usr/lib/llvm-6.0 ../                                                                                       ✔
-- IWYU: out-of-tree configuration
CMake Error at /data/data/com.termux/files/usr/lib/cmake/clang/ClangTargets.cmake:327 (message):
  The imported target "clang-import-test" references the file

     "/data/data/com.termux/files/usr/bin/clang-import-test"

  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

     "/data/data/com.termux/files/usr/lib/cmake/clang/ClangTargets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /data/data/com.termux/files/usr/lib/cmake/clang/ClangConfig.cmake:18 (include)
  CMakeLists.txt:20 (find_package)


-- Configuring incomplete, errors occurred!
See also "/data/data/com.termux/files/home/www/cpp/include-what-you-use/build/CMakeFiles/CMakeOutput.log".

@ghost
Copy link

ghost commented Jun 10, 2020

@davemackintosh Run pkg upgrade, missing tools like clang-import-test should be now available.

$ clang-import-test --version
LLVM (http://llvm.org/):
  LLVM version 9.0.1
  Optimized build.
  Default target: aarch64-linux-android
  Host CPU: exynos-m1

@davemackintosh
Copy link
Author

Thanks @xeffyr, I'll try to recompile later.

@ifurther
Copy link
Contributor

ifurther commented Aug 3, 2020

The new version is remove.

bin/clang-import-test

@ghost ghost closed this as completed in #5642 Aug 3, 2020
ghost pushed a commit that referenced this issue Aug 3, 2020
Harshiv-Patel pushed a commit to Harshiv-Patel/termux-packages that referenced this issue May 13, 2021
Harshiv-Patel pushed a commit to Harshiv-Patel/termux-packages that referenced this issue May 13, 2021
@ghost ghost locked and limited conversation to collaborators Oct 9, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package request A new package was requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants