Package Details: flann 1.9.1-4

Git Clone URL: https://aur.archlinux.org/flann.git (read-only)
Package Base: flann
Description: FLANN is a library for performing fast approximate nearest neighbor searches in high dimensional spaces
Upstream URL: https://www.cs.ubc.ca/research/flann
Licenses: BSD
Submitter: None
Maintainer: acxz
Last Packager: acxz
Votes: 42
Popularity: 0.901036
First Submitted: 2011-04-05 02:06
Last Updated: 2019-06-27 20:29

Dependencies (7)

Required by (11)

Sources (1)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

Svenstaro commented on 2012-05-17 23:40

Package fixed.

pallegro commented on 2012-05-03 19:09

The gcc error is reported at https://bugs.archlinux.org/task/29359 and there's a workaround.
flann built fine for me with standard gcc (4.7) by adding

#undef _GLIBCXX_ATOMIC_BUILTINS
#undef _GLIBCXX_USE_INT128

at the beginning of src/cpp/flann/algorithms/kdtree_cuda_3d_index.cu

cuda_gcc47.patch
0a1,3
> #undef _GLIBCXX_ATOMIC_BUILTINS
> #undef _GLIBCXX_USE_INT128
>

PKGBUILD edit before running make:
patch src/cpp/flann/algorithms/kdtree_cuda_3d_index.cu ../cuda_gcc47.patch

erwinkendo commented on 2012-04-29 01:13

Hello
Fixed the problem installing gcc 4.4 from AUR and adding this line to the PKGBUILD.

cd $srcdir/flann-${pkgver}-src

sed -i 's|;--compiler-bindir=${NVCC_COMPILER_BINDIR}|;--compiler-bindir=/opt/gcc-4.4/|' src/cpp/CMakeLists.txt

erwinkendo commented on 2012-04-27 05:42

Already commented, but not very popular
http://forums.developer.nvidia.com/devforum/discussion/7501/pcl-flann-compilation-troubles-due-to-nvcc

In PCL forum, someone suggested me to use gcc4.4 because NVCC only works with up until GCC-4.4, but forcing it in nvcc.profile pointing a symbolic link in my home folder gives this error:

Linking CXX static library ../../lib/libflann_cpp_s-gd.a
[ 44%] Built target flann_cpp_s-gd
[ 55%] Building NVCC (Device) object src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o
/home/erwin/gcc44/: Permission denied
CMake Error at flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o.cmake:198 (message):
Error generating
/tmp/yaourt-tmp-erwin/aur-flann/src/flann-1.7.1-src/build/src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o


make[2]: *** [src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o] Error 1
make[1]: *** [src/cpp/CMakeFiles/flann_cuda_s.dir/all] Error 2
make: *** [all] Error 2

Svenstaro commented on 2012-04-24 21:36

See http://forums.developer.nvidia.com/devforum/discussion/146/how-to-report-a-cuda-bug/p1

erwinkendo commented on 2012-04-24 21:33

Can we report this? a bug tracer? As mentioned, is a CUDA NVCC related issue. Does anyone know where to report this? Is there a way to get PCL without this package?

Svenstaro commented on 2012-04-23 01:19

Yeah we pretty much gotta wait for nvidia to fix this.

erwinkendo commented on 2012-04-23 01:18

Greetings

Having some troubles for compilation in x86_64. First, there was a error originated in src/cpp/CMakeLists.txt, because no ${NVCC_COMPILER_BINDIR} was pointing to a folder with a gcc instalation. After fixing this, the following errors happen:


[ 55%] Building NVCC (Device) object src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o
/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/ext/atomicity.h(48): error: identifier "__atomic_fetch_add" is undefined

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/ext/atomicity.h(52): error: identifier "__atomic_fetch_add" is undefined

/tmp/yaourt-tmp-erwin/aur-flann/src/flann-1.7.1-src/src/cpp/flann/general.h(54): warning: statement is unreachable

/tmp/yaourt-tmp-erwin/aur-flann/src/flann-1.7.1-src/src/cpp/flann/general.h(57): warning: statement is unreachable

/tmp/yaourt-tmp-erwin/aur-flann/src/flann-1.7.1-src/src/cpp/flann/general.h(60): warning: statement is unreachable

/tmp/yaourt-tmp-erwin/aur-flann/src/flann-1.7.1-src/src/cpp/flann/general.h(63): warning: statement is unreachable

/tmp/yaourt-tmp-erwin/aur-flann/src/flann-1.7.1-src/src/cpp/flann/general.h(66): warning: statement is unreachable

/tmp/yaourt-tmp-erwin/aur-flann/src/flann-1.7.1-src/src/cpp/flann/general.h(69): warning: statement is unreachable

/tmp/yaourt-tmp-erwin/aur-flann/src/flann-1.7.1-src/src/cpp/flann/general.h(72): warning: statement is unreachable

/tmp/yaourt-tmp-erwin/aur-flann/src/flann-1.7.1-src/src/cpp/flann/general.h(75): warning: statement is unreachable

/tmp/yaourt-tmp-erwin/aur-flann/src/flann-1.7.1-src/src/cpp/flann/general.h(78): warning: statement is unreachable

/tmp/yaourt-tmp-erwin/aur-flann/src/flann-1.7.1-src/src/cpp/flann/general.h(81): warning: statement is unreachable

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1405): error: identifier "__int128" is undefined

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1409): error: identifier "__int128" is undefined

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1412): error: identifier "__int128" is undefined

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1421): error: identifier "__int128" is undefined

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1421): error: function call is not allowed in a constant expression

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1423): error: function call is not allowed in a constant expression

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1432): error: "__int128" is not a type name

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1435): error: "__int128" is not a type name

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1450): error: "__int128" is not a type name

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1454): error: "__int128" is not a type name

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1458): error: "__int128" is not a type name

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1462): error: "__int128" is not a type name

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1410): error: expected a ")"

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1410): error: expected a ")"

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1410): error: expected a ")"

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1413): error: expected a ")"

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1413): error: expected a ")"

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1452): error: "__int128" is not a type name

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1456): error: "__int128" is not a type name

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1460): error: "__int128" is not a type name

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1464): error: "__int128" is not a type name

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1479): error: expected a ">"

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1484): error: expected a ";"

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1497): error: expected a ")"

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1497): error: expected a ")"

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1506): error: "__int128" has already been declared in the current scope

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1507): error: expected a ";"

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1524): error: "__int128" has already been declared in the current scope

/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/limits(1525): error: expected a ";"

/tmp/yaourt-tmp-erwin/aur-flann/src/flann-1.7.1-src/src/cpp/flann/algorithms/dist.h(540): warning: integer conversion resulted in a change of sign

31 errors detected in the compilation of "/tmp/tmpxft_000046d7_00000000-4_kdtree_cuda_3d_index.cpp1.ii".
CMake Error at flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o.cmake:256 (message):
Error generating file
/tmp/yaourt-tmp-erwin/aur-flann/src/flann-1.7.1-src/build/src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o


make[2]: *** [src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o] Error 1
make[1]: *** [src/cpp/CMakeFiles/flann_cuda_s.dir/all] Error 2
make: *** [all] Error 2

Do you have any idea why? It seems a gcc4.7 related issue, but if trying to compile with gcc 4.5 builded from AUR it doesn't even beging the compilation due to other problems.

chubtuff commented on 2011-12-21 13:40

hauptmech has created a new package called libflann

chubtuff commented on 2011-12-18 09:59

Modified from the PKGBUILD by lubosz: https://gist.github.com/6537bd55d716d5c7fdbf Now the python bindings work but it's a dirty hackjob. Can someone get the bindings to work with `make install'?