Bug 1992893

Summary: [FTBFS] pcl: FTBS in rawhide
Product: [Fedora] Fedora Reporter: Thomas Rodgers <trodgers>
Component: pclAssignee: Rich Mattes <richmattes>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: awilliam, besser82, richmattes, thofmann
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: pcl-1.12.0-3.fc36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-11-04 21:09:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1991887    
Attachments:
Description Flags
build.log none

Description Thomas Rodgers 2021-08-11 23:08:30 UTC
Created attachment 1813278 [details]
build.log

Description of problem:

Fails to build from source.

CMake Error at cmake/pcl_targets.cmake:305 (add_executable):
  Target "pcl_openni_face_detector" links to target "Boost::serialization"
  but the target was not found.  Perhaps a find_package() call is missing for
  an IMPORTED target, or an ALIAS target is missing?

Comment 1 Adam Williamson 2021-08-13 22:15:47 UTC
I'm working on this, but got a bit stuck.

There's an upstream 1.12.0. Using that and building against the vtk rebuild that happened recently gets past boost issues, but then we run into https://github.com/PointCloudLibrary/pcl/issues/4882 :

[ 86%] Built target pcl_obj_rec_ransac_result
CMakeFiles/pcl_surface.dir/src/mls_xyz.cpp.o: in function `pcl::MLSResult::calculatePrincipalCurvatures(double, double) const':
/builddir/build/BUILD/pcl-1.12.0/surface/include/pcl/surface/impl/mls.hpp:538: multiple definition of `pcl::MLSResult::calculatePrincipalCurvatures(double, double) const'; CMakeFiles/pcl_surface.dir/src/mls_n.cpp.o:/builddir/build/BUILD/pcl-1.12.0/surface/include/pcl/surface/impl/mls.hpp:538: first defined here
/usr/bin/ld: CMakeFiles/pcl_surface.dir/src/mls_xyzi.cpp.o: in function `Eigen::internal::handmade_aligned_malloc(unsigned int)':
/builddir/build/BUILD/pcl-1.12.0/surface/include/pcl/surface/impl/mls.hpp:493: multiple definition of `pcl::MLSResult::calculatePrincipalCurvatures(double, double) const'; CMakeFiles/pcl_surface.dir/src/mls_n.cpp.o:/builddir/build/BUILD/pcl-1.12.0/surface/include/pcl/surface/impl/mls.hpp:538: first defined here
/usr/bin/ld: CMakeFiles/pcl_surface.dir/src/mls_xyzrgba.cpp.o: in function `Eigen::internal::handmade_aligned_malloc(unsigned int)':
/builddir/build/BUILD/pcl-1.12.0/surface/include/pcl/surface/impl/mls.hpp:493: multiple definition of `pcl::MLSResult::calculatePrincipalCurvatures(double, double) const'; CMakeFiles/pcl_surface.dir/src/mls_n.cpp.o:/builddir/build/BUILD/pcl-1.12.0/surface/include/pcl/surface/impl/mls.hpp:538: first defined here
/usr/bin/ld: CMakeFiles/pcl_surface.dir/src/mls_xyzrgb.cpp.o: in function `Eigen::internal::handmade_aligned_malloc(unsigned int)':
/builddir/build/BUILD/pcl-1.12.0/surface/include/pcl/surface/impl/mls.hpp:493: multiple definition of `pcl::MLSResult::calculatePrincipalCurvatures(double, double) const'; CMakeFiles/pcl_surface.dir/src/mls_n.cpp.o:/builddir/build/BUILD/pcl-1.12.0/surface/include/pcl/surface/impl/mls.hpp:538: first defined here
/usr/bin/ld: CMakeFiles/pcl_surface.dir/src/mls_xyzrgbn.cpp.o: in function `Eigen::internal::handmade_aligned_malloc(unsigned int)':
/builddir/build/BUILD/pcl-1.12.0/surface/include/pcl/surface/impl/mls.hpp:493: multiple definition of `pcl::MLSResult::calculatePrincipalCurvatures(double, double) const'; CMakeFiles/pcl_surface.dir/src/mls_n.cpp.o:/builddir/build/BUILD/pcl-1.12.0/surface/include/pcl/surface/impl/mls.hpp:538: first defined here
collect2: error: ld returned 1 exit status
gmake[2]: *** [surface/CMakeFiles/pcl_surface.dir/build.make:592: lib/libpcl_surface.so.1.12.0] Error 1

Comment 2 Rich Mattes 2021-08-17 19:21:58 UTC
Thanks for taking a look, I had a busy last week/weekend but I should be able to resolve this this week.

That error looks like it's at least partly caused by a patch that splits up some template instantiations so that builders don't hit OOM errors, I'll try building with the patch disabled and see what happens

Comment 3 Adam Williamson 2021-08-17 19:37:07 UTC
Thanks, Rich. I did have to rebase three patches and remove another to get that far; I'll commit that work to the rawhide branch so you don't have to recreate it.

Comment 4 Fedora Update System 2021-11-04 21:24:50 UTC
FEDORA-2021-f230a6fe6a has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.