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

vcpkg install pcl[cuda]:x64-windows failed with BUILD_FAILED #4357

Closed
leilaShen opened this issue Sep 27, 2018 · 5 comments
Closed

vcpkg install pcl[cuda]:x64-windows failed with BUILD_FAILED #4357

leilaShen opened this issue Sep 27, 2018 · 5 comments
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@leilaShen
Copy link

Hi folks,
when I install pcl[cuda]:x64-windows, I met the BUILD_FAILED error, the screen shot is attached as below:
error

and the log file is here:
install-x64-windows-dbg-out.log

Anyone help? Thanks a lot!

@leilaShen
Copy link
Author

The related section from the log file is
D:/software/vcpkg/buildtrees/pcl/src/pcl-1.8.1-ea5032be8f/cuda/sample_consensus/src/sac_model.cu(178): here

D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(356): warning: field of class type without a DLL interface used in a class with a DLL interface
detected during instantiation of class "pcl::cuda::SampleConsensusModel [with Storage=pcl::cuda::Device]"
D:/software/vcpkg/buildtrees/pcl/src/pcl-1.8.1-ea5032be8f/cuda/sample_consensus/src/sac_model.cu(178): here

D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(366): warning: field of class type without a DLL interface used in a class with a DLL interface
detected during instantiation of class "pcl::cuda::SampleConsensusModel [with Storage=pcl::cuda::Device]"
D:/software/vcpkg/buildtrees/pcl/src/pcl-1.8.1-ea5032be8f/cuda/sample_consensus/src/sac_model.cu(178): here

D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(350): warning: field of class type without a DLL interface used in a class with a DLL interface
detected during instantiation of class "pcl::cuda::SampleConsensusModel [with Storage=pcl::cuda::Host]"
D:/software/vcpkg/buildtrees/pcl/src/pcl-1.8.1-ea5032be8f/cuda/sample_consensus/src/sac_model.cu(179): here

D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(351): warning: field of class type without a DLL interface used in a class with a DLL interface
detected during instantiation of class "pcl::cuda::SampleConsensusModel [with Storage=pcl::cuda::Host]"
D:/software/vcpkg/buildtrees/pcl/src/pcl-1.8.1-ea5032be8f/cuda/sample_consensus/src/sac_model.cu(179): here

D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(354): warning: field of class type without a DLL interface used in a class with a DLL interface
detected during instantiation of class "pcl::cuda::SampleConsensusModel [with Storage=pcl::cuda::Host]"
D:/software/vcpkg/buildtrees/pcl/src/pcl-1.8.1-ea5032be8f/cuda/sample_consensus/src/sac_model.cu(179): here

D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(356): warning: field of class type without a DLL interface used in a class with a DLL interface
detected during instantiation of class "pcl::cuda::SampleConsensusModel [with Storage=pcl::cuda::Host]"
D:/software/vcpkg/buildtrees/pcl/src/pcl-1.8.1-ea5032be8f/cuda/sample_consensus/src/sac_model.cu(179): here

D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(366): warning: field of class type without a DLL interface used in a class with a DLL interface
detected during instantiation of class "pcl::cuda::SampleConsensusModel [with Storage=pcl::cuda::Host]"
D:/software/vcpkg/buildtrees/pcl/src/pcl-1.8.1-ea5032be8f/cuda/sample_consensus/src/sac_model.cu(179): here

sac_model.cu
D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(350): warning C4251: 'pcl::cuda::SampleConsensusModelpcl::cuda::Device::input_': class 'boost::shared_ptr<const pcl::cuda::PointCloudAOS>' needs to have dll-interface to be used by clients of class 'pcl::cuda::SampleConsensusModelpcl::cuda::Device'
with
[
Storage=pcl::cuda::Device
]
D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\common\include\pcl/cuda/point_cloud.h(202): note: see declaration of 'boost::shared_ptr<const pcl::cuda::PointCloudAOS>'
with
[
Storage=pcl::cuda::Device
]
D:/software/vcpkg/buildtrees/pcl/src/pcl-1.8.1-ea5032be8f/cuda/sample_consensus/src/sac_model.cu(178): note: see reference to class template instantiation 'pcl::cuda::SampleConsensusModelpcl::cuda::Device' being compiled
D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(351): warning C4251: 'pcl::cuda::SampleConsensusModelpcl::cuda::Device::normals_': class 'boost::shared_ptr<thrust::device_vector<T,thrust::device_malloc_allocator>>' needs to have dll-interface to be used by clients of class 'pcl::cuda::SampleConsensusModelpcl::cuda::Device'
with
[
T=float4
]
D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(336): note: see declaration of 'boost::shared_ptr<thrust::device_vector<T,thrust::device_malloc_allocator>>'
with
[
T=float4
]
D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(354): warning C4251: 'pcl::cuda::SampleConsensusModelpcl::cuda::Device::indices_': class 'boost::shared_ptr<thrust::device_vector<T,thrust::device_malloc_allocator>>' needs to have dll-interface to be used by clients of class 'pcl::cuda::SampleConsensusModelpcl::cuda::Device'
with
[
T=int
]
D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(99): note: see declaration of 'boost::shared_ptr<thrust::device_vector<T,thrust::device_malloc_allocator>>'
with
[
T=int
]
D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(356): warning C4251: 'pcl::cuda::SampleConsensusModelpcl::cuda::Device::indices_stencil_': class 'boost::shared_ptr<thrust::device_vector<T,thrust::device_malloc_allocator>>' needs to have dll-interface to be used by clients of class 'pcl::cuda::SampleConsensusModelpcl::cuda::Device'
with
[
T=int
]
D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(99): note: see declaration of 'boost::shared_ptr<thrust::device_vector<T,thrust::device_malloc_allocator>>'
with
[
T=int
]
D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(366): warning C4251: 'pcl::cuda::SampleConsensusModelpcl::cuda::Device::rngl_': class 'thrust::random::linear_congruential_engine<unsigned int,48271,0,2147483647>' needs to have dll-interface to be used by clients of class 'pcl::cuda::SampleConsensusModelpcl::cuda::Device'
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include\thrust/random/linear_congruential_engine.h(280): note: see declaration of 'thrust::random::linear_congruential_engine<unsigned int,48271,0,2147483647>'
D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(350): warning C4251: 'pcl::cuda::SampleConsensusModelpcl::cuda::Host::input_': class 'boost::shared_ptr<const pcl::cuda::PointCloudAOS>' needs to have dll-interface to be used by clients of class 'pcl::cuda::SampleConsensusModelpcl::cuda::Host'
with
[
Storage=pcl::cuda::Host
]
D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\common\include\pcl/cuda/point_cloud.h(202): note: see declaration of 'boost::shared_ptr<const pcl::cuda::PointCloudAOS>'
with
[
Storage=pcl::cuda::Host
]
D:/software/vcpkg/buildtrees/pcl/src/pcl-1.8.1-ea5032be8f/cuda/sample_consensus/src/sac_model.cu(179): note: see reference to class template instantiation 'pcl::cuda::SampleConsensusModelpcl::cuda::Host' being compiled
D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(351): warning C4251: 'pcl::cuda::SampleConsensusModelpcl::cuda::Host::normals_': class 'boost::shared_ptr<thrust::host_vector<T,std::allocator>>' needs to have dll-interface to be used by clients of class 'pcl::cuda::SampleConsensusModelpcl::cuda::Host'
with
[
T=float4
]
D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(336): note: see declaration of 'boost::shared_ptr<thrust::host_vector<T,std::allocator>>'
with
[
T=float4
]
D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(354): warning C4251: 'pcl::cuda::SampleConsensusModelpcl::cuda::Host::indices_': class 'boost::shared_ptr<thrust::host_vector<T,std::allocator>>' needs to have dll-interface to be used by clients of class 'pcl::cuda::SampleConsensusModelpcl::cuda::Host'
with
[
T=int
]
D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(99): note: see declaration of 'boost::shared_ptr<thrust::host_vector<T,std::allocator>>'
with
[
T=int
]
D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(356): warning C4251: 'pcl::cuda::SampleConsensusModelpcl::cuda::Host::indices_stencil_': class 'boost::shared_ptr<thrust::host_vector<T,std::allocator>>' needs to have dll-interface to be used by clients of class 'pcl::cuda::SampleConsensusModelpcl::cuda::Host'
with
[
T=int
]
D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(99): note: see declaration of 'boost::shared_ptr<thrust::host_vector<T,std::allocator>>'
with
[
T=int
]
D:\software\vcpkg\buildtrees\pcl\src\pcl-1.8.1-ea5032be8f\cuda\sample_consensus\include\pcl/cuda/sample_consensus/sac_model.h(366): warning C4251: 'pcl::cuda::SampleConsensusModelpcl::cuda::Host::rngl_': class 'thrust::random::linear_congruential_engine<unsigned int,48271,0,2147483647>' needs to have dll-interface to be used by clients of class 'pcl::cuda::SampleConsensusModelpcl::cuda::Host'
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include\thrust/random/linear_congruential_engine.h(280): note: see declaration of 'thrust::random::linear_congruential_engine<unsigned int,48271,0,2147483647>'
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include\thrust/system/cuda/detail/reduce.h(944): warning C4244: 'argument': conversion from 'Size' to 'int', possible loss of data
with
[
Size=__int64
]
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include\thrust/system/cuda/detail/count.h(55): note: see reference to function template instantiation 'T thrust::cuda_cub::reduce_n<thrust::cuda_cub::tag,flag_iterator_t,__int64,size_type,thrust::plus>(thrust::cuda_cub::execution_policythrust::cuda_cub::tag &,InputIt,Size,T,BinaryOp)' being compiled
with
[
T=size_type,
InputIt=flag_iterator_t,
Size=__int64,
BinaryOp=thrust::plus<__int64>
]
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include\thrust/system/cuda/detail/count.h(71): note: see reference to function template instantiation '__int64 thrust::cuda_cub::count_if<thrust::cuda_cub::tag,InputIt,thrust::detail::equal_to_value>(thrust::cuda_cub::execution_policythrust::cuda_cub::tag &,InputIt,InputIt,UnaryPred)' being compiled
with
[
InputIt=thrust::detail::normal_iterator<thrust::device_ptr>,
UnaryPred=thrust::detail::equal_to_value
]
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include\thrust/detail/count.inl(40): note: see reference to function template instantiation '__int64 thrust::cuda_cub::countthrust::cuda_cub::tag,InputIterator,EqualityComparable(thrust::cuda_cub::execution_policythrust::cuda_cub::tag &,InputIt,InputIt,const Value &)' being compiled
with
[
InputIterator=thrust::detail::normal_iterator<thrust::device_ptr>,
EqualityComparable=int,
InputIt=thrust::detail::normal_iterator<thrust::device_ptr>,
Value=int
]
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include\thrust/detail/count.inl(65): note: see reference to function template instantiation '__int64 thrust::count<DerivedPolicy,InputIterator,EqualityComparable>(const thrust::detail::execution_policy_base &,InputIterator,InputIterator,const EqualityComparable &)' being compiled
with
[
DerivedPolicy=thrust::cuda_cub::tag,
InputIterator=thrust::detail::normal_iterator<thrust::device_ptr>,
EqualityComparable=int
]
D:/software/vcpkg/buildtrees/pcl/src/pcl-1.8.1-ea5032be8f/cuda/sample_consensus/src/sac_model.cu(160): note: see reference to function template instantiation '__int64 thrust::count<thrust::detail::normal_iterator<thrust::device_ptr>,int>(InputIterator,InputIterator,const EqualityComparable &)' being compiled
with
[
InputIterator=thrust::detail::normal_iterator<thrust::device_ptr>,
EqualityComparable=int
]
D:/software/vcpkg/buildtrees/pcl/src/pcl-1.8.1-ea5032be8f/cuda/sample_consensus/src/sac_model.cu(152): note: while compiling class template member function 'int pcl::cuda::SampleConsensusModelpcl::cuda::Device::deleteIndices(const thrust::device_vector<T,thrust::device_malloc_allocator> &,int,boost::shared_ptr<thrust::device_vector<int,thrust::device_malloc_allocator>> &,const boost::shared_ptr<thrust::device_vector<int,thrust::device_malloc_allocator>> &)'
with
[
T=float4
]
D:/software/vcpkg/buildtrees/pcl/src/pcl-1.8.1-ea5032be8f/cuda/sample_consensus/src/sac_model.cu(178): note: see reference to class template instantiation 'pcl::cuda::SampleConsensusModelpcl::cuda::Device' being compiled
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include\thrust/system/cuda/detail/reduce.h(973): warning C4244: 'argument': conversion from 'Size' to 'int', possible loss of data
with
[
Size=__int64
]
ninja: build stopped: subcommand failed.

@raahilsha
Copy link

I'm getting the exact same issue when I try to build pcl[cuda]:x64-windows. From the error message above (given all the references to DLL interface), I hoped that building pcl[cuda]:x64-windows-static would work. Unfortunately, building static also fails, generating the following log: install-x64-windows-static-dbg-out.log

Doing a simple search for "error" in the logfile, I see the following:

D:/vcpkg/buildtrees/pcl/src/pcl-1.8.1-ea5032be8f/cuda/sample_consensus/src/sac_model_plane.cu(195): error: class "thrust::device_reference" has no member "x"

With similar errors for members "y" and "z". These are also found in sac_model_1point_plane.cu. I see the exact same errors in @leilaShen 's provided logfile as well - maybe that's a starting point towards resolving this issue?

@LilyWangL LilyWangL added the category:port-bug The issue is with a library, which is something the port should already support label Mar 1, 2019
@NancyLi1013
Copy link
Contributor

See #7388.

@cbezault
Copy link
Contributor

@leilaShen @raahilsha What version of CUDA do you guys have installed?

@cbezault cbezault self-assigned this Jul 24, 2019
@cbezault
Copy link
Contributor

If this is still an issue please re-open the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

No branches or pull requests

5 participants