tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: can't build poppler(-utils); c++ standard / compiler trouble?



On Mon, Apr 22, 2024 at 06:10:06PM +0200, Ignatios Souvatzis wrote:
> Hi,
> 
> I'm trying to build, in a pkgcomp1 chroot on a 9.3_STABLE amd64 system,
> 2024Q1 poppler-utils
> 
> I get the errors below. I spot

You didn't quote them.

> GCC_REQD=8 in Makefile.common and =7 in  buildlink3.mk;
> USE_LANGUAGES=          c c++17
> 
> gcc 8.5.0 has actually been built first as dependency.
> 
> I tried staring at https://gcc.gnu.org/projects/cxx-status.html to
> spot some of the symbols mentioned in the error messages, but didn't
> find them.
> 
> Where do I go from here? (With enough time, I could try incrementing
> GCC_REQD until success.)

In -current, I added
USE_CXX_FEATURES+=     filesystem
to the Makefile because of reports like

http://shadow.netbsd.org/pub/pkgsrc/packages/reports/HEAD/NetBSD-9.0-i386/20240418.1308//poppler-utils-24.03.0nb1/build.log

[ 81%] Linking CXX executable pdfinfo
/usr/bin/ld: CMakeFiles/pdfdetach.dir/pdfdetach.cc.o: in function `std::filesystem::__cxx11::path::operator=(std::filesystem::__cxx11::path&&) [clone .part.72]':
/usr/pkg/gcc8/include/c++/bits/fs_path.h:310: undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: CMakeFiles/pdfdetach.dir/pdfdetach.cc.o: in function `std::enable_if<std::__and_<std::__not_<std::is_same<std::remove_cv<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::type, std::filesystem::__cxx11::path> >, std::__not_<std::is_void<std::remove_pointer<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >::type> >, std::filesystem::__cxx11::path::__constructible_from<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, void> >::value, std::filesystem::__cxx11::path>::type& std::filesystem::__cxx11::path::append<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
/usr/pkg/gcc8/include/c++/bits/fs_path.h:185: undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: /usr/pkg/gcc8/include/c++/bits/fs_path.h:381: undefined reference to `std::filesystem::__cxx11::path::has_root_directory() const'
/usr/bin/ld: /usr/pkg/gcc8/include/c++/bits/fs_path.h:310: undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: /usr/pkg/gcc8/include/c++/bits/fs_path.h:381: undefined reference to `std::filesystem::__cxx11::path::has_root_directory() const'
/usr/bin/ld: /usr/pkg/gcc8/include/c++/bits/fs_path.h:258: undefined reference to `std::filesystem::__cxx11::path::has_filename() const'
/usr/bin/ld: /usr/pkg/gcc8/include/c++/bits/fs_path.h:261: undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: CMakeFiles/pdfdetach.dir/pdfdetach.cc.o: in function `main':
/usr/pkg/gcc8/include/c++/bits/fs_path.h:185: undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
/usr/bin/ld: CMakeFiles/pdfdetach.dir/pdfdetach.cc.o: in function `main':
/pbulk/work/print/poppler-utils/work/poppler-24.03.0/utils/pdfdetach.cc:201: undefined reference to `std::filesystem::__cxx11::path::lexically_normal() const'
/usr/bin/ld: /pbulk/work/print/poppler-utils/work/poppler-24.03.0/utils/pdfdetach.cc:234: undefined reference to `std::filesystem::__cxx11::path::lexically_normal() const'
/usr/bin/ld: /pbulk/work/print/poppler-utils/work/poppler-24.03.0/utils/pdfdetach.cc:295: undefined reference to `std::filesystem::current_path[abi:cxx11]()'
/usr/bin/ld: /pbulk/work/print/poppler-utils/work/poppler-24.03.0/utils/pdfdetach.cc:295: undefined reference to `std::filesystem::__cxx11::path::lexically_normal() const'
/usr/bin/ld: /pbulk/work/print/poppler-utils/work/poppler-24.03.0/utils/pdfdetach.cc:297: undefined reference to `std::filesystem::__cxx11::path::lexically_normal() const'
/usr/bin/ld: /pbulk/work/print/poppler-utils/work/poppler-24.03.0/utils/pdfdetach.cc:199: undefined reference to `std::filesystem::current_path[abi:cxx11]()'
collect2: error: ld returned 1 exit status
--- utils/pdfdetach ---

You could try that.
 Thomas


Home | Main Index | Thread Index | Old Index