[Bug 241944] graphics/pcl-pointclouds: fix build on powerpc64 with clang

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Nov 13 11:02:44 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241944

            Bug ID: 241944
           Summary: graphics/pcl-pointclouds: fix build on powerpc64 with
                    clang
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri at freebsd.org
          Reporter: pkubaj at FreeBSD.org
             Flags: maintainer-feedback?(yuri at freebsd.org)
          Assignee: yuri at freebsd.org

Created attachment 209128
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=209128&action=edit
patch

I'm getting the following lld failure on powerpc64:
ld: error: relocation refers to a discarded section:
.text.__clang_call_terminate
>>> defined in common/CMakeFiles/pcl_common.dir/src/pcl_base.cpp.o
>>> section group signature: __clang_call_terminate
>>> prevailing definition is in common/CMakeFiles/pcl_common.dir/src/point_types.cpp.o
>>> referenced by pcl_base.cpp
>>>               common/CMakeFiles/pcl_common.dir/src/pcl_base.cpp.o:(pcl::PCLBase<pcl::PCLPointCloud2>::initCompute())

ld: error: relocation refers to a discarded section:
.text._ZNSt3__124__put_character_sequenceIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_PKS4_m
>>> defined in common/CMakeFiles/pcl_common.dir/src/io.cpp.o
>>> section group signature: _ZNSt3__124__put_character_sequenceIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_PKS4_m
>>> prevailing definition is in common/CMakeFiles/pcl_common.dir/src/point_types.cpp.o
>>> referenced by io.cpp
>>>               common/CMakeFiles/pcl_common.dir/src/io.cpp.o:(getFieldsSizes(std::__1::vector<pcl::PCLPointField, std::__1::allocator<pcl::PCLPointField> > const&, std::__1::vector<int, std::__1::allocator<int> >&))

ld: error: relocation refers to a discarded section:
.text._ZNSt3__116__pad_and_outputIcNS_11char_traitsIcEEEENS_19ostreambuf_iteratorIT_T0_EES6_PKS4_S8_S8_RNS_8ios_baseES4_
>>> defined in common/CMakeFiles/pcl_common.dir/src/io.cpp.o
>>> section group signature: _ZNSt3__116__pad_and_outputIcNS_11char_traitsIcEEEENS_19ostreambuf_iteratorIT_T0_EES6_PKS4_S8_S8_RNS_8ios_baseES4_
>>> prevailing definition is in common/CMakeFiles/pcl_common.dir/src/point_types.cpp.o
>>> referenced by io.cpp
>>>               common/CMakeFiles/pcl_common.dir/src/io.cpp.o:(getFieldsSizes(std::__1::vector<pcl::PCLPointField, std::__1::allocator<pcl::PCLPointField> > const&, std::__1::vector<int, std::__1::allocator<int> >&))

ld: error: relocation refers to a discarded section:
.text.__clang_call_terminate
>>> defined in common/CMakeFiles/pcl_common.dir/src/io.cpp.o
>>> section group signature: __clang_call_terminate
>>> prevailing definition is in common/CMakeFiles/pcl_common.dir/src/point_types.cpp.o
>>> referenced by io.cpp
>>>               common/CMakeFiles/pcl_common.dir/src/io.cpp.o:(getFieldsSizes(std::__1::vector<pcl::PCLPointField, std::__1::allocator<pcl::PCLPointField> > const&, std::__1::vector<int, std::__1::allocator<int> >&))

ld: error: relocation refers to a discarded section:
.text._ZNSt3__120__throw_length_errorEPKc
>>> defined in common/CMakeFiles/pcl_common.dir/src/io.cpp.o
>>> section group signature: _ZNSt3__120__throw_length_errorEPKc
>>> prevailing definition is in common/CMakeFiles/pcl_common.dir/src/pcl_base.cpp.o
>>> referenced by io.cpp
>>>               common/CMakeFiles/pcl_common.dir/src/io.cpp.o:(getFieldsSizes(std::__1::vector<pcl::PCLPointField, std::__1::allocator<pcl::PCLPointField> > const&, std::__1::vector<int, std::__1::allocator<int> >&))

ld: error: relocation refers to a discarded section:
.text._ZNSt12length_errorC2EPKc
>>> defined in common/CMakeFiles/pcl_common.dir/src/io.cpp.o
>>> section group signature: _ZNSt12length_errorC2EPKc
>>> prevailing definition is in common/CMakeFiles/pcl_common.dir/src/pcl_base.cpp.o
>>> referenced by io.cpp
>>>               common/CMakeFiles/pcl_common.dir/src/io.cpp.o:(getFieldsSizes(std::__1::vector<pcl::PCLPointField, std::__1::allocator<pcl::PCLPointField> > const&, std::__1::vector<int, std::__1::allocator<int> >&))

ld: error: relocation refers to a discarded section:
.text._ZNSt3__16vectorIiNS_9allocatorIiEEE8__appendEm
>>> defined in common/CMakeFiles/pcl_common.dir/src/io.cpp.o
>>> section group signature: _ZNSt3__16vectorIiNS_9allocatorIiEEE8__appendEm
>>> prevailing definition is in common/CMakeFiles/pcl_common.dir/src/pcl_base.cpp.o
>>> referenced by io.cpp
>>>               common/CMakeFiles/pcl_common.dir/src/io.cpp.o:(pcl::PCLException::createDetailedMessage(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, char const*, char const*, unsigned int))

ld: error: relocation refers to a discarded section:
.text._ZNSt3__124__put_character_sequenceIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_PKS4_m
>>> defined in common/CMakeFiles/pcl_common.dir/src/correspondence.cpp.o
>>> section group signature: _ZNSt3__124__put_character_sequenceIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_PKS4_m
>>> prevailing definition is in common/CMakeFiles/pcl_common.dir/src/point_types.cpp.o
>>> referenced by correspondence.cpp
>>>               common/CMakeFiles/pcl_common.dir/src/correspondence.cpp.o:(pcl::getRejectedQueryIndices(std::__1::vector<pcl::Correspondence, Eigen::aligned_allocator<pcl::Correspondence> > const&, std::__1::vector<pcl::Correspondence, Eigen::aligned_allocator<pcl::Correspondence> > const&, std::__1::vector<int, std::__1::allocator<int> >&, bool))

ld: error: relocation refers to a discarded section:
.text._ZNSt3__116__pad_and_outputIcNS_11char_traitsIcEEEENS_19ostreambuf_iteratorIT_T0_EES6_PKS4_S8_S8_RNS_8ios_baseES4_
>>> defined in common/CMakeFiles/pcl_common.dir/src/correspondence.cpp.o
>>> section group signature: _ZNSt3__116__pad_and_outputIcNS_11char_traitsIcEEEENS_19ostreambuf_iteratorIT_T0_EES6_PKS4_S8_S8_RNS_8ios_baseES4_
>>> prevailing definition is in common/CMakeFiles/pcl_common.dir/src/point_types.cpp.o
>>> referenced by correspondence.cpp
>>>               common/CMakeFiles/pcl_common.dir/src/correspondence.cpp.o:(pcl::getRejectedQueryIndices(std::__1::vector<pcl::Correspondence, Eigen::aligned_allocator<pcl::Correspondence> > const&, std::__1::vector<pcl::Correspondence, Eigen::aligned_allocator<pcl::Correspondence> > const&, std::__1::vector<int, std::__1::allocator<int> >&, bool))

ld: error: relocation refers to a discarded section:
.text.__clang_call_terminate
>>> defined in common/CMakeFiles/pcl_common.dir/src/correspondence.cpp.o
>>> section group signature: __clang_call_terminate
>>> prevailing definition is in common/CMakeFiles/pcl_common.dir/src/point_types.cpp.o
>>> referenced by correspondence.cpp
>>>               common/CMakeFiles/pcl_common.dir/src/correspondence.cpp.o:(pcl::getRejectedQueryIndices(std::__1::vector<pcl::Correspondence, Eigen::aligned_allocator<pcl::Correspondence> > const&, std::__1::vector<pcl::Correspondence, Eigen::aligned_allocator<pcl::Correspondence> > const&, std::__1::vector<int, std::__1::allocator<int> >&, bool))

ld: error: relocation refers to a discarded section:
.text._ZNSt3__120__throw_length_errorEPKc
>>> defined in common/CMakeFiles/pcl_common.dir/src/correspondence.cpp.o
>>> section group signature: _ZNSt3__120__throw_length_errorEPKc
>>> prevailing definition is in common/CMakeFiles/pcl_common.dir/src/pcl_base.cpp.o
>>> referenced by correspondence.cpp
>>>               common/CMakeFiles/pcl_common.dir/src/correspondence.cpp.o:(pcl::getRejectedQueryIndices(std::__1::vector<pcl::Correspondence, Eigen::aligned_allocator<pcl::Correspondence> > const&, std::__1::vector<pcl::Correspondence, Eigen::aligned_allocator<pcl::Correspondence> > const&, std::__1::vector<int, std::__1::allocator<int> >&, bool))

ld: error: relocation refers to a discarded section:
.text._ZNSt12length_errorC2EPKc
>>> defined in common/CMakeFiles/pcl_common.dir/src/correspondence.cpp.o
>>> section group signature: _ZNSt12length_errorC2EPKc
>>> prevailing definition is in common/CMakeFiles/pcl_common.dir/src/pcl_base.cpp.o
>>> referenced by correspondence.cpp
>>>               common/CMakeFiles/pcl_common.dir/src/correspondence.cpp.o:(pcl::getRejectedQueryIndices(std::__1::vector<pcl::Correspondence, Eigen::aligned_allocator<pcl::Correspondence> > const&, std::__1::vector<pcl::Correspondence, Eigen::aligned_allocator<pcl::Correspondence> > const&, std::__1::vector<int, std::__1::allocator<int> >&, bool))

ld: error: relocation refers to a discarded section:
.text._ZNSt3__16vectorIiNS_9allocatorIiEEE8__appendEm
>>> defined in common/CMakeFiles/pcl_common.dir/src/correspondence.cpp.o
>>> section group signature: _ZNSt3__16vectorIiNS_9allocatorIiEEE8__appendEm
>>> prevailing definition is in common/CMakeFiles/pcl_common.dir/src/pcl_base.cpp.o
>>> referenced by correspondence.cpp
>>>               common/CMakeFiles/pcl_common.dir/src/correspondence.cpp.o:(pcl::getRejectedQueryIndices(std::__1::vector<pcl::Correspondence, Eigen::aligned_allocator<pcl::Correspondence> > const&, std::__1::vector<pcl::Correspondence, Eigen::aligned_allocator<pcl::Correspondence> > const&, std::__1::vector<int, std::__1::allocator<int> >&, bool))

ld: error: relocation refers to a discarded section:
.text.__clang_call_terminate
>>> defined in common/CMakeFiles/pcl_common.dir/src/parse.cpp.o
>>> section group signature: __clang_call_terminate
>>> prevailing definition is in common/CMakeFiles/pcl_common.dir/src/point_types.cpp.o
>>> referenced by parse.cpp
>>>               common/CMakeFiles/pcl_common.dir/src/parse.cpp.o:(pcl::console::parse_x_arguments(int, char const* const*, char const*, std::__1::vector<double, std::__1::allocator<double> >&))

ld: error: relocation refers to a discarded section:
.text._ZNSt3__120__throw_length_errorEPKc
>>> defined in common/CMakeFiles/pcl_common.dir/src/parse.cpp.o
>>> section group signature: _ZNSt3__120__throw_length_errorEPKc
>>> prevailing definition is in common/CMakeFiles/pcl_common.dir/src/pcl_base.cpp.o
>>> referenced by parse.cpp
>>>               common/CMakeFiles/pcl_common.dir/src/parse.cpp.o:(pcl::console::parse_x_arguments(int, char const* const*, char const*, std::__1::vector<double, std::__1::allocator<double> >&))

ld: error: relocation refers to a discarded section:
.text._ZNSt12length_errorC2EPKc
>>> defined in common/CMakeFiles/pcl_common.dir/src/parse.cpp.o
>>> section group signature: _ZNSt12length_errorC2EPKc
>>> prevailing definition is in common/CMakeFiles/pcl_common.dir/src/pcl_base.cpp.o
>>> referenced by parse.cpp
>>>               common/CMakeFiles/pcl_common.dir/src/parse.cpp.o:(pcl::console::parse_x_arguments(int, char const* const*, char const*, std::__1::vector<double, std::__1::allocator<double> >&))

ld: error: relocation refers to a discarded section:
.text._ZNSt3__16vectorIiNS_9allocatorIiEEE8__appendEm
>>> defined in common/CMakeFiles/pcl_common.dir/src/parse.cpp.o
>>> section group signature: _ZNSt3__16vectorIiNS_9allocatorIiEEE8__appendEm
>>> prevailing definition is in common/CMakeFiles/pcl_common.dir/src/pcl_base.cpp.o
>>> referenced by parse.cpp
>>>               common/CMakeFiles/pcl_common.dir/src/parse.cpp.o:(pcl::console::parse_x_arguments(int, char const* const*, char const*, std::__1::vector<double, std::__1::allocator<double> >&))

ld: error: relocation refers to a discarded section:
.text._ZNSt3__120__throw_length_errorEPKc
>>> defined in common/CMakeFiles/pcl_common.dir/src/poses_from_matches.cpp.o
>>> section group signature: _ZNSt3__120__throw_length_errorEPKc
>>> prevailing definition is in common/CMakeFiles/pcl_common.dir/src/pcl_base.cpp.o
>>> referenced by poses_from_matches.cpp
>>>               common/CMakeFiles/pcl_common.dir/src/poses_from_matches.cpp.o:(pcl::TransformationFromCorrespondences::getTransformation())

ld: error: relocation refers to a discarded section:
.text._ZNSt12length_errorC2EPKc
>>> defined in common/CMakeFiles/pcl_common.dir/src/poses_from_matches.cpp.o
>>> section group signature: _ZNSt12length_errorC2EPKc
>>> prevailing definition is in common/CMakeFiles/pcl_common.dir/src/pcl_base.cpp.o
>>> referenced by poses_from_matches.cpp
>>>               common/CMakeFiles/pcl_common.dir/src/poses_from_matches.cpp.o:(pcl::TransformationFromCorrespondences::getTransformation())

ld: error: relocation refers to a discarded section:
.text.__clang_call_terminate
>>> defined in common/CMakeFiles/pcl_common.dir/src/time_trigger.cpp.o
>>> section group signature: __clang_call_terminate
>>> prevailing definition is in common/CMakeFiles/pcl_common.dir/src/point_types.cpp.o
>>> referenced by time_trigger.cpp
>>>               common/CMakeFiles/pcl_common.dir/src/time_trigger.cpp.o:(boost::system::error_category::default_error_condition(int) const)

Switch to linking with GNU ld to fix build.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list