Package Details: oclint 21.10-0

Git Clone URL: https://aur.archlinux.org/oclint.git (read-only, click to copy)
Package Base: oclint
Description: A static source code analysis tool to improve quality and reduce defects for C, C++ and Objective-C
Upstream URL: http://oclint.org/
Licenses: BSD
Conflicts: oclint-git
Provides: oclint
Submitter: mlq
Maintainer: mlq (thodnev)
Last Packager: mlq
Votes: 14
Popularity: 0.000000
First Submitted: 2013-05-28 15:40 (UTC)
Last Updated: 2022-01-10 14:43 (UTC)

Latest Comments

1 2 Next › Last »

Ordoviz commented on 2024-03-19 20:53 (UTC)

This fails to build with lots of compiler errors. Here's an extract:

  385 | get_hashable_data(const T &value) {
      | ^~~~~~~~~~~~~~~~~
/usr/include/llvm/ADT/Hashing.h:385:1: note:   template argument deduction/substitution failed:
/usr/include/llvm/ADT/Hashing.h: In substitution of ‘template<class T> std::enable_if_t<(! llvm::hashing::detail::is_hashable_data<T>::value), long unsigned int> llvm::hashing::detail::get_hashable_data(const T&) [with T = long unsigned int]’:
/usr/include/llvm/ADT/Hashing.h:433:64:   required from ‘llvm::hash_code llvm::hashing::detail::hash_combine_range_impl(InputIteratorT, InputIteratorT) [with InputIteratorT = const long unsigned int*]’
/usr/include/llvm/ADT/Hashing.h:492:58:   required from ‘llvm::hash_code llvm::hash_combine_range(InputIteratorT, InputIteratorT) [with InputIteratorT = const long unsigned int*]’
/usr/include/llvm/ADT/ArrayRef.h:692:30:   required from ‘llvm::hash_code llvm::hash_value(ArrayRef<T>) [with T = long unsigned int]’
/usr/include/llvm/ADT/ArrayRef.h:712:35:   required from ‘static unsigned int llvm::DenseMapInfo<llvm::ArrayRef<T>, void>::getHashValue(llvm::ArrayRef<T>) [with T = long unsigned int]’
/usr/include/llvm/ADT/DenseMapInfo.h:233:61:   required from ‘static unsigned int llvm::DenseMapInfo<std::pair<_T1, _T2> >::getHashValue(const Pair&) [with T = unsigned int; U = llvm::ArrayRef<long unsigned int>; Pair = std::pair<unsigned int, llvm::ArrayRef<long unsigned int> >]’
/usr/include/llvm/ADT/BitVector.h:848:21:   required from here
/usr/include/llvm/ADT/Hashing.h:384:40: error: ‘value’ is not a member of ‘llvm::hashing::detail::is_hashable_data<long unsigned int>’
  384 | std::enable_if_t<!is_hashable_data<T>::value, size_t>
      |  

xihh commented on 2021-10-07 01:27 (UTC)

llvm is required as makedepends, otherwise llvm-config --prefix command fails.

thodnev commented on 2020-12-17 20:46 (UTC)

Bumped version to v20.11. Also made it build with system (arch official) version of LLVM PKGBUILD with everything needed is on GitHub repo: https://github.com/thodnev/oclint-arch

Would be nice, if someone will update current AUR repo (I'll write the maintainer too, of course)

thodnev commented on 2018-07-11 22:45 (UTC)

I've fixed it and uploaded PKGBUILD (and the patch) for latest OCLint release version to github: https://github.com/thodnev/oclint-aur

spider-mario commented on 2017-11-04 15:27 (UTC) (edited on 2017-11-05 11:22 (UTC) by spider-mario)

This package has stopped building for me: [15/15] Linking CXX executable bin/oclint-0.13 FAILED: bin/oclint-0.13 [big command] /usr/lib/libLLVMSupport.a(Process.cpp.o): In function `llvm::sys::Process::FileDescriptorHasColors(int)': (.text._ZN4llvm3sys7Process23FileDescriptorHasColorsEi+0x92): undefined reference to `setupterm' (.text._ZN4llvm3sys7Process23FileDescriptorHasColorsEi+0xb9): undefined reference to `tigetnum' (.text._ZN4llvm3sys7Process23FileDescriptorHasColorsEi+0xc3): undefined reference to `set_curterm' (.text._ZN4llvm3sys7Process23FileDescriptorHasColorsEi+0xcc): undefined reference to `del_curterm Edit: the last update to ncurses (https://git.archlinux.org/svntogit/packages.git/commit/trunk?h=packages/ncurses&id=987faeb8442d44e76a7a58642e8e6432eb220c25 ) seems to have fixed it.

peperunas commented on 2017-06-07 17:17 (UTC)

Fails to build. -- The C compiler identification is Clang 4.0.0 -- The CXX compiler identification is Clang 4.0.0 -- Check for working C compiler: /usr/bin/clang -- Check for working C compiler: /usr/bin/clang -- 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/clang++ -- Check for working CXX compiler: /usr/bin/clang++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done LLVM_ROOT: /usr CMake Error at cmake/OCLintConfig.cmake:49 (INCLUDE): include could not find load file: LLVMConfig Call Stack (most recent call first): CMakeLists.txt:9 (INCLUDE) CMake Error at cmake/OCLintConfig.cmake:58 (STRING): string sub-command REGEX, mode MATCH needs at least 5 arguments total to command. Call Stack (most recent call first): CMakeLists.txt:9 (INCLUDE) -- Found LLVM LLVM_PACKAGE_VERSION: - LLVM_VERSION_RELEASE: -- Using LLVMConfig.cmake in: /usr/share/llvm/cmake CMake Error at cmake/OCLintConfig.cmake:62 (LLVM_MAP_COMPONENTS_TO_LIBNAMES): Unknown CMake command "LLVM_MAP_COMPONENTS_TO_LIBNAMES". Call Stack (most recent call first): CMakeLists.txt:9 (INCLUDE)

<deleted-account> commented on 2016-05-03 05:14 (UTC)

Please update to OCLint 0.10.2 and fix the PKGBUILD script to something like this one: http://cjbayliss.com/public/oclint/PKGBUILD @orestisf the PKGBUILD script I provide above should solve your problem. :)

orestisf commented on 2015-11-30 11:41 (UTC)

I am getting: -- The C compiler identification is Clang 3.7.0 -- The CXX compiler identification is Clang 3.7.0 -- Check for working C compiler: /usr/bin/clang -- Check for working C compiler: /usr/bin/clang -- 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/clang++ -- Check for working CXX compiler: /usr/bin/clang++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Error at cmake/OCLintConfig.cmake:42 (MESSAGE): LLVM_ROOT (/usr) is not a valid LLVM install. Could not find /usr/include/llvm Call Stack (most recent call first): CMakeLists.txt:9 (INCLUDE)

axper commented on 2014-04-09 18:30 (UTC)

Still fails to build: [100%] Building CXX object CMakeFiles/oclint-0.7.dir/main.cpp.o /media/storage/packages/makepkg/oclint/src/oclint-0.7-src/oclint-clang-tooling/main.cpp:21:10: fatal error: 'clang/Driver/OptTable.h' file not found #include <clang/Driver/OptTable.h> ^ 1 error generated. CMakeFiles/oclint-0.7.dir/build.make:57: recipe for target 'CMakeFiles/oclint-0.7.dir/main.cpp.o' failed make[2]: *** [CMakeFiles/oclint-0.7.dir/main.cpp.o] Error 1 CMakeFiles/Makefile2:63: recipe for target 'CMakeFiles/oclint-0.7.dir/all' failed make[1]: *** [CMakeFiles/oclint-0.7.dir/all] Error 2 Makefile:75: recipe for target 'all' failed make: *** [all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

justinzane commented on 2013-10-21 18:05 (UTC)

Fails to build as is. Also, I would appreciate the inclusion of the patches by aljen.