[MacPorts] #32940: flann 1.7.1 Portfile doesn't build headers. Changeset 88262
MacPorts
noreply at macports.org
Wed Mar 7 04:38:26 PST 2012
#32940: flann 1.7.1 Portfile doesn't build headers. Changeset 88262
-------------------------------------+--------------------------------------
Reporter: shinko.cheng@… | Owner: mmoll@…
Type: defect | Status: reopened
Priority: Normal | Milestone:
Component: ports | Version: 2.0.3
Resolution: | Keywords:
Port: flann |
-------------------------------------+--------------------------------------
Comment(by shinko.cheng@…):
Okay. Incrementing the revision to 2 makes it retrieve the source and
build from that. Finally, the headers appear after the port installed. I
had an issue with CUDA so i had to disable that manually. Then, the second
call to sudo port install completed the it. I changed the sha sum and
added -DBUILD_CUDA_LIB=OFF because that caused a problem on my system. I
haven't touched the CUDA installation in my computer for over a year, so I
think flann probably requires a newer version of CUDA. In any case, CUDA
support probably should be a variant, rather than part of the default.
{{{
[ 83%] Building NVCC (Device) object
src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o
cd
/opt/local/var/macports/build/_Users_sycheng_ports_science/flann/work/flann-1.7.1-src/src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms
&& /opt/local/bin/cmake -E make_directory
/opt/local/var/macports/build/_Users_sycheng_ports_science/flann/work/flann-1.7.1-src/src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/.
cd
/opt/local/var/macports/build/_Users_sycheng_ports_science/flann/work/flann-1.7.1-src/src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms
&& /opt/local/bin/cmake -D verbose:BOOL=1 -D
build_configuration:STRING=Release -D
generated_file:STRING=/opt/local/var/macports/build/_Users_sycheng_ports_science/flann/work/flann-1.7.1-src/src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o
-D
generated_cubin_file:STRING=/opt/local/var/macports/build/_Users_sycheng_ports_science/flann/work/flann-1.7.1-src/src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o.cubin.txt
-P
/opt/local/var/macports/build/_Users_sycheng_ports_science/flann/work/flann-1.7.1-src/src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o.cmake
-- Removing
/opt/local/var/macports/build/_Users_sycheng_ports_science/flann/work/flann-1.7.1-src/src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o
/opt/local/bin/cmake -E remove
/opt/local/var/macports/build/_Users_sycheng_ports_science/flann/work/flann-1.7.1-src/src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o
-- Generating dependency file:
/opt/local/var/macports/build/_Users_sycheng_ports_science/flann/work/flann-1.7.1-src/src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o
.NVCC-depend
/usr/local/cuda/bin/nvcc -M -D__CUDACC__
/opt/local/var/macports/build/_Users_sycheng_ports_science/flann/work/flann-1.7.1-src/flann-1.7.1-src/src/cpp/flann/algorithms/kdtree_cuda_3d_index.cu
-o
/opt/local/var/macports/build/_Users_sycheng_ports_science/flann/work/flann-1.7.1-src/src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o
.NVCC-depend -m64 -D_FLANN_VERSION=1.7.1 -Xcompiler
,\"-pipe\",\"-O2\",\"-arch\",\"x86_64\",\"-O3\",\"-DNDEBUG\" -Xcompiler
-fPIC -arch=sm_13 --compiler-bindir=/usr/local/cuda/bin -DNVCC
-I/usr/local/cuda/include -I/usr/local/cuda/include
-I/opt/local/var/macports/build/_Users_sycheng_ports_science/flann/work/flann-1.7.1-src/flann-1.7.1-src/src/cpp
/usr/local/cuda/bin/gcc: No such file or directory
CMake Error at flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o.cmake:198
(message):
Error generating
/opt/local/var/macports/build/_Users_sycheng_ports_science/flann/work/flann-1.7.1-src/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
}}}
Portfile attached:
{{{
# $Id: Portfile 90105 2012-02-22 00:58:08Z mmoll at macports.org $
PortSystem 1.0
PortGroup cmake 1.0
name flann
version 1.7.1
revision 2
categories science devel
maintainers mmoll
description Fast Library for Approximate Nearest Neighbors
long_description FLANN is a library for performing fast approximate \
nearest neighbor searches in high dimensional spaces.
\
It contains a collection of algorithms we found to \
work best for nearest neighbor search and a system \
for automatically choosing the best algorithm and \
optimum parameters depending on the dataset.
homepage http://people.cs.ubc.ca/~mariusm/index.php/FLANN/FLANN
platforms darwin
license BSD
master_sites http://people.cs.ubc.ca/~mariusm/uploads/FLANN/
distname ${name}-${version}-src
use_zip yes
extract.mkdir yes
checksums sha256
eafb8c07cf59ff050be149b15d620ca3dd162e3fce9cb6748cde5d92e0dac775
depends_lib port:hdf5-18
patchfiles patch-src-python-CMakeLists.txt.diff
patch.dir ${worksrcpath}/${worksrcdir}
# CUDA support disabled for now.
# MPI support is automatically disabled if hdf5-18 is installed without
the +openmpi variant
configure.args-append ${distname} \
-DBUILD_CUDA_LIB=OFF \
-DBUILD_MATLAB_BINDINGS=OFF -DUSE_MPI=ON \
-DMPIEXEC=${prefix}/lib/openmpi/bin/mpiexec \
-DMPI_COMPILER=${prefix}/lib/openmpi/bin/mpic++
variant python26 description {Use python2.6 for python bindings} conflicts
python27 python31 python32 {
depends_lib-append port:python26
configure.args-append -DPYTHON_EXECUTABLE=${prefix}/bin/python2.6
post-patch {
reinplace "s|@@PREFIX@@|${destroot}${prefix}|g"
${patch.dir}/src/python/CMakeLists.txt
reinplace
"s|@@PYTHON_LIB@@|${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6|g"
${patch.dir}/src/python/CMakeLists.txt
}
}
variant python27 description {Use python2.7 for python bindings} conflicts
python26 python31 python32 {
depends_lib-append port:python27
configure.args-append -DPYTHON_EXECUTABLE=${prefix}/bin/python2.7
post-patch {
reinplace "s|@@PREFIX@@|${destroot}${prefix}|g"
${patch.dir}/src/python/CMakeLists.txt
reinplace
"s|@@PYTHON_LIB@@|${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7|g"
${patch.dir}/src/python/CMakeLists.txt
}
}
variant python31 description {Use python3.1 for python bindings} conflicts
python26 python27 python32 {
depends_lib-append port:python31
configure.args-append -DPYTHON_EXECUTABLE=${prefix}/bin/python3.1
post-patch {
reinplace "s|@@PREFIX@@|${destroot}${prefix}|g"
${patch.dir}/src/python/CMakeLists.txt
reinplace
"s|@@PYTHON_LIB@@|${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1|g"
${patch.dir}/src/python/CMakeLists.txt
}
}
variant python32 description {Use python3.2 for python bindings} conflicts
python26 python27 python31 {
depends_lib-append port:python32
configure.args-append -DPYTHON_EXECUTABLE=${prefix}/bin/python3.2
post-patch {
reinplace "s|@@PREFIX@@|${destroot}${prefix}|g"
${patch.dir}/src/python/CMakeLists.txt
reinplace
"s|@@PYTHON_LIB@@|${destroot}${prefix}/Library/Frameworks/Python.framework/Versions/3.2/lib/python3.2|g"
${patch.dir}/src/python/CMakeLists.txt
}
}
livecheck.type regex
livecheck.url ${homepage}
livecheck.regex Version (\[0-9.\]+)
}}}
--
Ticket URL: <https://trac.macports.org/ticket/32940#comment:7>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list