Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pdal] Build error #27131

Closed
hotasim opened this issue Oct 7, 2022 · 4 comments · Fixed by #27163
Closed

[pdal] Build error #27131

hotasim opened this issue Oct 7, 2022 · 4 comments · Fixed by #27163
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@hotasim
Copy link

hotasim commented Oct 7, 2022

Package: pdal[core,draco,e57,hdf,i3s,pgpointcloud,supported-plugins]:x64-linux -> 2.4.3

Host Environment

  • Host: x64-linux
  • Compiler: GNU 8.5.0
  • vcpkg-tool version: 2022-09-20-522aa94e9d261c7d7b2f079bf2591ca62df5c714
    vcpkg-scripts version: e2667a4 2022-10-06 (14 hours ago)

To Reproduce

vcpkg install pdal:x64-linux

Failure logs

-- Note: pdal only supports dynamic library linkage. Building dynamic library.
-- Using cached PDAL-PDAL-2.4.3.tar.gz.
-- Cleaning sources at /home/ec2-user/test_vcpkg/vcpkg/buildtrees/pdal/src/2.4.3-960ddf7f39.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/ec2-user/test_vcpkg/vcpkg/downloads/PDAL-PDAL-2.4.3.tar.gz
-- Applying patch fix-dependency.patch
-- Applying patch fix-unix-compiler-options.patch
-- Applying patch fix-find-library-suffix.patch
-- Applying patch no-pkgconfig-requires.patch
-- Applying patch no-rpath.patch
-- Using source at /home/ec2-user/test_vcpkg/vcpkg/buildtrees/pdal/src/2.4.3-960ddf7f39.clean
-- Installing: /home/ec2-user/test_vcpkg/vcpkg/buildtrees/pdal/src/2.4.3-960ddf7f39.clean/vendor/nanoflann/nanoflann.hpp
-- Installing: /home/ec2-user/test_vcpkg/vcpkg/buildtrees/pdal/src/2.4.3-960ddf7f39.clean/vendor/nlohmann/nlohmann/json.hpp
-- Installing: /home/ec2-user/test_vcpkg/vcpkg/buildtrees/pdal/src/2.4.3-960ddf7f39.clean/pdal/json_fwd.hpp
-- Configuring x64-linux
-- Building x64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_build_process.cmake:129 (message):
    Command failed: /home/ec2-user/test_vcpkg/vcpkg/downloads/tools/cmake-3.24.0-linux/cmake-3.24.0-linux-x86_64/bin/cmake --build . --config Debug --target install -- -v -j9
    Working Directory: /home/ec2-user/test_vcpkg/vcpkg/buildtrees/pdal/x64-linux-dbg
    See logs for more information:
      /home/ec2-user/test_vcpkg/vcpkg/buildtrees/pdal/install-x64-linux-dbg-out.log

Call Stack (most recent call first):
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_build.cmake:74 (vcpkg_execute_build_process)
  installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_install.cmake:16 (vcpkg_cmake_build)
  ports/pdal/portfile.cmake:68 (vcpkg_cmake_install)
  scripts/ports.cmake:147 (include)
@hotasim hotasim added the category:port-bug The issue is with a library, which is something the port should already support label Oct 7, 2022
@LilyWangLL LilyWangLL added requires:more-information This Issue requires more information to solve and removed category:port-bug The issue is with a library, which is something the port should already support labels Oct 9, 2022
@LilyWangLL
Copy link
Contributor

Please provide the error log file: /home/ec2-user/test_vcpkg/vcpkg/buildtrees/pdal/install-x64-linux-dbg-out.log.

@hotasim
Copy link
Author

hotasim commented Oct 10, 2022

@LilyWangLL Thank you!
install-x64-linux-dbg-out.log

@dg0yt
Copy link
Contributor

dg0yt commented Oct 10, 2022

lib/libpdal_util.so.14.3.0: undefined reference to `std::filesystem::__cxx11::path::parent_path() const'
lib/libpdal_util.so.14.3.0: undefined reference to `std::filesystem::__cxx11::directory_iterator::operator*() const'
lib/libpdal_util.so.14.3.0: undefined reference to `std::filesystem::remove(std::filesystem::__cxx11::path const&)'
lib/libpdal_util.so.14.3.0: undefined reference to `typeinfo for std::filesystem::__cxx11::filesystem_error'
lib/libpdal_util.so.14.3.0: undefined reference to `std::filesystem::__cxx11::path::has_root_directory() const'
lib/libpdal_util.so.14.3.0: undefined reference to `std::filesystem::file_size(std::filesystem::__cxx11::path const&, std::error_code&)'
lib/libpdal_util.so.14.3.0: undefined reference to `std::filesystem::current_path[abi:cxx11]()'
lib/libpdal_util.so.14.3.0: undefined reference to `std::filesystem::status(std::filesystem::__cxx11::path const&)'
lib/libpdal_util.so.14.3.0: undefined reference to `std::filesystem::__cxx11::path::_M_split_cmpts()'
lib/libpdal_util.so.14.3.0: undefined reference to `std::filesystem::create_directories(std::filesystem::__cxx11::path const&)'
lib/libpdal_util.so.14.3.0: undefined reference to `std::filesystem::remove_all(std::filesystem::__cxx11::path const&)'
lib/libpdal_util.so.14.3.0: undefined reference to `std::filesystem::__cxx11::directory_iterator::operator++()'
lib/libpdal_util.so.14.3.0: undefined reference to `std::filesystem::rename(std::filesystem::__cxx11::path const&, std::filesystem::__cxx11::path const&)'
lib/libpdal_util.so.14.3.0: undefined reference to `std::filesystem::create_directory(std::filesystem::__cxx11::path const&)'
lib/libpdal_util.so.14.3.0: undefined reference to `std::filesystem::__cxx11::directory_iterator::directory_iterator(std::filesystem::__cxx11::path const&, std::filesystem::directory_options, std::error_code*)'
lib/libpdal_util.so.14.3.0: undefined reference to `std::filesystem::absolute(std::filesystem::__cxx11::path const&)'
lib/libpdal_util.so.14.3.0: undefined reference to `std::filesystem::weakly_canonical(std::filesystem::__cxx11::path const&)'
lib/libpdal_util.so.14.3.0: undefined reference to `std::filesystem::__cxx11::path::has_filename() const'

PDAL/PDAL#3826

@LilyWangLL LilyWangLL added category:port-bug The issue is with a library, which is something the port should already support and removed requires:more-information This Issue requires more information to solve labels Oct 10, 2022
@LilyWangLL
Copy link
Contributor

@hotasim Could you test this solution PDAL/PDAL#3826 (comment) is useful for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants