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

[fastdds] build failure - file does not exist - fast-discovery-serverd-1.0.1 #43654

Open
fwae-blake opened this issue Feb 6, 2025 · 1 comment
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@fwae-blake
Copy link

Operating system

Ubuntu 22.04.5 LTS in a VM

Compiler

GCC 11.4.0

Steps to reproduce the behavior

git init
git submodule add https://github.com/microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.sh
cd ..


Create files:
- `CMakeLists.txt`:
  
  project(test)
  find_package(fastdds CONFIG REQUIRED)
  
- `vcpkg.json`:
  
  {
    "dependencies": [
      "fastdds"
    ]
  }
  


mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE="../vcpkg/scripts/buildsystems/vcpkg.cmake"

Failure logs

-- Running vcpkg install - done
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found OpenSSL: /home/devuser/code/vcpkg_troubleshoot/build/vcpkg_installed/x64-linux/debug/lib/libcrypto.a (found version "3.4.0")  
CMake Error at build/vcpkg_installed/x64-linux/share/fastdds/fast-discovery-server-targets.cmake:78 (message):
  The imported target "fastdds::fast-discovery-server" references the file

     "/home/devuser/code/vcpkg_troubleshoot/build/vcpkg_installed/x64-linux/tools/fastdds/fast-discovery-serverd-1.0.1"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/home/devuser/code/vcpkg_troubleshoot/build/vcpkg_installed/x64-linux/share/fastdds/fast-discovery-server-targets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  build/vcpkg_installed/x64-linux/share/fastdds/fastdds-config.cmake:117 (include)
  vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package)
  CMakeLists.txt:2 (find_package)


CMake Error in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 3.22)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".


-- Configuring incomplete, errors occurred!
See also "/home/devuser/code/vcpkg_troubleshoot/build/CMakeFiles/CMakeOutput.log".

CMakeOutput.log

Additional context

The issue has been reported before but on the prior port (fastrtps) before rename to fastdds: #39375. There is a PR here #39482 for that old port however it stalled in July 2024.

I had a look at changes on that PR and it applies also to latest port. Patch attached. Is there a port maintainer who can look at this (e.g. consider what is the best approach) or should I attempt a PR?

Changes-On-cf035d.patch

@fwae-blake fwae-blake added the category:port-bug The issue is with a library, which is something the port should already support label Feb 6, 2025
@fwae-blake
Copy link
Author

Previous patch I attached just fixed windows build. This one includes windows and linux. It is only a small modification (rtps -> dds) on PR #39482.

fastdds-port.patch

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

No branches or pull requests

2 participants