Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 664126

Summary: sci-libs/pcl-1.8.1 : /.../plane_coefficient_comparator.h:144:17: error: invalid initialization of reference of type const std::vector<float>& from expression of type const boost::shared_ptr<std::vector<float> >
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Alexis Ballier <aballier>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 654766    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
sci-libs:pcl-1.8.1:20180820-091032.log
temp.tbz2
Patch for gcc 8

Description Toralf Förster gentoo-dev 2018-08-20 17:26:36 UTC
                 from /var/tmp/portage/sci-libs/pcl-1.8.1/work/pcl-pcl-1.8.1/segmentation/src/organized_multi_plane_segmentation.cpp:42:
/var/tmp/portage/sci-libs/pcl-1.8.1/work/pcl-pcl-1.8.1/segmentation/include/pcl/segmentation/plane_coefficient_comparator.h: In member function ‘const std::vector<float>& pcl::PlaneCoefficientComparator<PointT, PointNT>::getPlaneCoeffD() const’:
/var/tmp/portage/sci-libs/pcl-1.8.1/work/pcl-pcl-1.8.1/segmentation/include/pcl/segmentation/plane_coefficient_comparator.h:144:17: error: invalid initialization of reference of type ‘const std::vector<float>&’ from expression of type ‘const boost::shared_ptr<std::vector<float> >’
         return (plane_coeff_d_);
                ~^~~~~~~~~~~~~~~
make[2]: *** [segmentation/CMakeFiles/pcl_segmentation.dir/build.make:167: segmentation/CMakeFiles/pcl_segmentation.dir/src/organized_multi_plane_segmentation.cpp.o] Error 1

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-no-multilib_libressl_20180811-095734

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-7.3.0
 [2] x86_64-pc-linux-gnu-7.3.1
 [3] x86_64-pc-linux-gnu-8.2.0 *

Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python2.7 (fallback)
  [4]   pypy3 (fallback)
Available Ruby profiles:
  [1]   ruby23 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
java-config:
The following VMs are available for generation-2:


emerge -qpv sci-libs/pcl
[ebuild  N    ] sci-libs/pcl-1.8.1  USE="qhull -cuda -doc -opengl -openni -openni2 -pcap -png -qt5 -test -tutorials -usb -vtk" CPU_FLAGS_X86="sse"
Comment 1 Toralf Förster gentoo-dev 2018-08-20 17:26:39 UTC
Created attachment 544148 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-08-20 17:26:42 UTC
Created attachment 544150 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2018-08-20 17:26:45 UTC
Created attachment 544152 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2018-08-20 17:26:47 UTC
Created attachment 544154 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2018-08-20 17:26:50 UTC
Created attachment 544156 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-08-20 17:26:53 UTC
Created attachment 544158 [details]
sci-libs:pcl-1.8.1:20180820-091032.log
Comment 7 Toralf Förster gentoo-dev 2018-08-20 17:26:56 UTC
Created attachment 544160 [details]
temp.tbz2
Comment 8 concavemail 2018-08-29 16:33:36 UTC
Created attachment 545428 [details, diff]
Patch for gcc 8

The attached patch applies https://github.com/PointCloudLibrary/pcl/pull/2299, which works for me. The patch was generated by `git format-patch -1 a0b3ce9`, and placed in `/etc/portage/patches/sci-libs/pcl-1.8.1/gcc8.patch`.
Comment 9 Juergen Rose 2018-09-13 09:59:36 UTC
(In reply to concavemail from comment #8)
> Created attachment 545428 [details, diff] [details, diff]
> Patch for gcc 8
> 
> The attached patch applies
> https://github.com/PointCloudLibrary/pcl/pull/2299, which works for me. The
> patch was generated by `git format-patch -1 a0b3ce9`, and placed in
> `/etc/portage/patches/sci-libs/pcl-1.8.1/gcc8.patch`.

The patch worked here.
Comment 10 David Seifert gentoo-dev 2019-04-15 10:37:42 UTC
Fixed in 1.9.0
https://github.com/PointCloudLibrary/pcl/releases/tag/pcl-1.9.0