Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664126 - 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> >
Summary: sci-libs/pcl-1.8.1 : /.../plane_coefficient_comparator.h:144:17: error: inval...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alexis Ballier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-8
  Show dependency tree
 
Reported: 2018-08-20 17:26 UTC by Toralf Förster
Modified: 2019-04-15 10:37 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.43 KB, text/plain)
2018-08-20 17:26 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,311.50 KB, text/plain)
2018-08-20 17:26 UTC, Toralf Förster
Details
environment (environment,106.19 KB, text/plain)
2018-08-20 17:26 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,21.41 KB, application/x-bzip)
2018-08-20 17:26 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,7.67 KB, application/x-bzip)
2018-08-20 17:26 UTC, Toralf Förster
Details
sci-libs:pcl-1.8.1:20180820-091032.log (sci-libs:pcl-1.8.1:20180820-091032.log,249.84 KB, text/plain)
2018-08-20 17:26 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,34.06 KB, application/x-bzip)
2018-08-20 17:26 UTC, Toralf Förster
Details
Patch for gcc 8 (gcc8.patch,1.71 KB, patch)
2018-08-29 16:33 UTC, concavemail
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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