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

build: hpp-fcl/2.4.4 #25219

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft

Conversation

sun-mir
Copy link

@sun-mir sun-mir commented Sep 11, 2024

Summary

The new recipe: hpp-fcl/2.4.4

Motivation

Closes #25161
Addresses: coal-library/coal#620

Details

This PR is an attempt to put together a recipe and collaborate with the upstream team for a problem resolution:
My tested package from this recipe has issues when included in another C++ project/package. I created a conan-style recipe's test from the hpp-fcl project's README.md and it has the same failure signature:

Error details
$ conan create conan-center-index/recipes/hpp-fcl/all/conanfile.py --version 2.4.4

... 

======== Input profiles ========
Profile host:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=11
os=Linux

Profile build:
[settings]
arch=x86_64
build_type=Release
compiler=gcc
compiler.cppstd=gnu17
compiler.libcxx=libstdc++11
compiler.version=11
os=Linux

...

hpp-fcl/2.4.4: Created package revision 1050ab6cb69c04bc31b6cb232baa91b2
hpp-fcl/2.4.4: Package 'f49dd144a8e4c3491e09c7ce69467537fd0d32b8' created
hpp-fcl/2.4.4: Full package reference: hpp-fcl/2.4.4#1ed99c6ee85aa8d11495b140860dfb35:f49dd144a8e4c3491e09c7ce69467537fd0d32b8#1050ab6cb69c04bc31b6cb232baa91b2
hpp-fcl/2.4.4: Package folder /root/.conan2/p/b/hpp-f2eaeb82160379/p

...

======== Launching test_package ========

...

======== Testing the package: Building ========
hpp-fcl/2.4.4 (test package): Calling build()
hpp-fcl/2.4.4 (test package): Running CMake.configure()
hpp-fcl/2.4.4 (test package): RUN: cmake -G "Unix Makefiles" -DCMAKE_TOOLCHAIN_FILE="generators/conan_toolchain.cmake" -DCMAKE_INSTALL_PREFIX="/conan-center-index/recipes/hpp-fcl/all/test_package" -DCMAKE_POLICY_DEFAULT_CMP0091="NEW" -DCMAKE_BUILD_TYPE="Release" "/conan-center-index/recipes/hpp-fcl/all/test_package"
-- Using Conan toolchain: /conan-center-index/recipes/hpp-fcl/all/test_package/build/gcc-11-x86_64-gnu17-release/generators/conan_toolchain.cmake
-- Conan toolchain: C++ Standard 17 with extensions ON
-- The CXX compiler identification is GNU 11.4.0
-- 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
-- Conan: Target declared 'hpp-fcl::hpp-fcl'
-- Configuring done
-- Generating done
-- Build files have been written to: /conan-center-index/recipes/hpp-fcl/all/test_package/build/gcc-11-x86_64-gnu17-release

hpp-fcl/2.4.4 (test package): Running CMake.build()
hpp-fcl/2.4.4 (test package): RUN: cmake --build "/conan-center-index/recipes/hpp-fcl/all/test_package/build/gcc-11-x86_64-gnu17-release" -- -j8
[ 50%] Building CXX object CMakeFiles/test_package.dir/test_package.cpp.o
/conan-center-index/recipes/hpp-fcl/all/test_package/test_package.cpp:1:10: fatal error: hpp/fcl/math/transform.h: No such file or directory
    1 | #include "hpp/fcl/math/transform.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/test_package.dir/build.make:76: CMakeFiles/test_package.dir/test_package.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/test_package.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2

ERROR: hpp-fcl/2.4.4 (test package): Error in build() method, line 21
        cmake.build()
        ConanException: Error 2 while executing

Build environment: Dockerfile
FROM ubuntu:22.04

RUN apt-get -qq update \
    && apt-get -qq install -y --no-install-recommends --no-install-suggests -o=Dpkg::Use-Pty=0 \
       g++-multilib \
       gcc-11 \
       g++-11 \
       make \
       cmake \
       build-essential \
       clang-format \
       autoconf-archive \
       binutils \
       pkg-config \
       curl \
       wget \
       ca-certificates \
       git

RUN wget https://github.com/conan-io/conan/releases/download/2.7.0/conan-2.7.0-amd64.deb -O /tmp/conan-2.7.0-amd64.deb \
    && dpkg -i /tmp/conan-2.7.0-amd64.deb

RUN  rm -rf /var/cache/apt/* \
    && rm -rf /tmp/*


@CLAassistant
Copy link

CLAassistant commented Sep 11, 2024

CLA assistant check
All committers have signed the CLA.

@conan-center-bot

This comment has been minimized.

recipes/hpp-fcl/all/conandata.yml Show resolved Hide resolved
recipes/hpp-fcl/all/test_package/CMakeLists.txt Outdated Show resolved Hide resolved
recipes/hpp-fcl/all/test_package/CMakeLists.txt Outdated Show resolved Hide resolved
recipes/hpp-fcl/all/conanfile.py Outdated Show resolved Hide resolved
recipes/hpp-fcl/all/conanfile.py Outdated Show resolved Hide resolved
copy(self, "LICENSE", src=self.source_folder, dst=os.path.join(self.package_folder, "licenses"))
cmake = CMake(self)
cmake.install()
rmdir(self, os.path.join(self.package_folder, "lib", "cmake"))
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

upstream is providing a lot of things in this lib/cmake dir.

Choosing to drop this is fine, but please understand that it will be your responsibility to ensure that nothing is broken following that.

In other words, upstream will not like to receive bug reports from conan users because of this choice.

Ref. "best practices" note in https://docs.conan.io/2/reference/conanfile/methods/package_info.html

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I decided to remove this line since it was shamelessly copied from other examples 😑

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not removing it is not enough for it to be used I guess. I think you should either:

  1. keep that rmdir, but then you need to teach conan how to generate properly hpp-fcl-config.cmake with all required dependencies ;
  2. or keep that directory, but then you need to teach conan not to generate any hpp-fcl-config.cmake, and use the upstream-generated lib/cmake/hpp-fclConfig.cmake file instead, as it already contains the right dependencies.

For now, I can't build your package:

/home/gsaurel/.conan2/p/b/hpp-fba0c52d2f5443/p/include/hpp/fcl/data_types.h:41:10: fatal error: 'Eigen/Core' file not found
   41 | #include <Eigen/Core>
      |          ^~~~~~~~~~~~

This is because a not-good-enough hpp-fcl-config.cmake file was generated by conan. You can see this by adding :

--- a/recipes/hpp-fcl/all/test_package/CMakeLists.txt
+++ b/recipes/hpp-fcl/all/test_package/CMakeLists.txt
@@ -2,6 +2,7 @@ cmake_minimum_required(VERSION 3.10)
 project(test_package LANGUAGES CXX)
 
 find_package(hpp-fcl REQUIRED CONFIG)
+message(STATUS "hpp-cfcl config file was found on ${hpp-fcl_DIR}")
 
 add_executable(${PROJECT_NAME} test_package.cpp)
 target_link_libraries(${PROJECT_NAME} PRIVATE hpp-fcl::hpp-fcl)

Which display: -- hpp-cfcl config file was found on /tmp/conan-center-index/recipes/hpp-fcl/all/test_package/build/gcc-13-x86_64-gnu17-release/generators

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😞
I'm sorry...

I have to give up on this since even after reading up on the docs and trying things, I wasn't able to pull this out 😕
https://docs.conan.io/2/examples/tools/cmake/cmake_toolchain/use_package_config_cmake.html

@conan-center-bot

This comment has been minimized.

@sun-mir sun-mir force-pushed the 25161-hpp-fcl-package branch from 9ba4a53 to 6abcc1d Compare September 13, 2024 01:19
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

Copy link
Contributor

Hooks produced the following warnings for commit 069ef81
hpp-fcl/2.4.4@#f7e7f20a83db79e957e1b6a35e0f0cf5
post_package(): WARN: [SHORT_PATHS USAGE (KB-H066)] The file './share/jrl-cmakemodules/doxygen/MathJax/jax/output/SVG/fonts/TeX/SansSerif/Regular/BasicLatin.js' has a very long path and may exceed Windows max path length. Add 'short_paths = True' in your recipe.
post_package(): WARN: [SHORT_PATHS USAGE (KB-H066)] The file './share/jrl-cmakemodules/doxygen/MathJax/jax/output/SVG/fonts/TeX/SansSerif/Italic/BasicLatin.js' has a very long path and may exceed Windows max path length. Add 'short_paths = True' in your recipe.
post_package(): WARN: [SHORT_PATHS USAGE (KB-H066)] The file './share/jrl-cmakemodules/doxygen/MathJax/jax/output/SVG/fonts/TeX/SansSerif/Bold/CombDiacritMarks.js' has a very long path and may exceed Windows max path length. Add 'short_paths = True' in your recipe.
post_package(): WARN: [SHORT_PATHS USAGE (KB-H066)] The file './share/jrl-cmakemodules/doxygen/MathJax/jax/output/SVG/fonts/TeX/Main/Regular/SuppMathOperators.js' has a very long path and may exceed Windows max path length. Add 'short_paths = True' in your recipe.
post_package(): WARN: [SHORT_PATHS USAGE (KB-H066)] The file './share/jrl-cmakemodules/doxygen/MathJax/jax/output/SVG/fonts/TeX/Main/Italic/LetterlikeSymbols.js' has a very long path and may exceed Windows max path length. Add 'short_paths = True' in your recipe.
post_package(): WARN: [SHORT_PATHS USAGE (KB-H066)] The file './share/jrl-cmakemodules/doxygen/MathJax/jax/output/SVG/fonts/TeX/Main/Bold/SuppMathOperators.js' has a very long path and may exceed Windows max path length. Add 'short_paths = True' in your recipe.
post_package(): WARN: [SHORT_PATHS USAGE (KB-H066)] The file './share/jrl-cmakemodules/doxygen/MathJax/jax/output/SVG/fonts/TeX/AMS/Regular/SuppMathOperators.js' has a very long path and may exceed Windows max path length. Add 'short_paths = True' in your recipe.
post_package(): WARN: [SHORT_PATHS USAGE (KB-H066)] The file './share/jrl-cmakemodules/doxygen/MathJax/jax/output/SVG/fonts/TeX/Typewriter/Regular/BasicLatin.js' has a very long path and may exceed Windows max path length. Add 'short_paths = True' in your recipe.

@sun-mir
Copy link
Author

sun-mir commented Sep 13, 2024

@nim65s, thanks a lot for your in-depth review!
I've addressed and resolved some of your in-line comments. If you notice anything wrong - feel free to reopen 👌

@nim65s
Copy link

nim65s commented Sep 13, 2024

(it might not be easy to find my latest comment on a message based on a deleted line, so here it is: #25219 (comment))

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 5 (8cad98d8db00f32ee4e10c34fd080b1de58bdb27):

  • hpp-fcl/2.4.5:
    Didn't run or was cancelled before finishing

  • hpp-fcl/2.4.4:
    CI failed to create some packages (All logs)

    Logs for packageID 6b98afc7dfb342440997c75246828fa83e897d43:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=9
    os=Linux
    [options]
    hpp-fcl:shared=False
    
    [...]
    /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/include/hpp/fcl/internal/traversal_node_hfield_shape.h: In instantiation of ‘void hpp::fcl::details::buildConvexTriangles(const hpp::fcl::HFNode<BV>&, const hpp::fcl::HeightField<BV>&, hpp::fcl::Convex<hpp::fcl::Triangle>&, hpp::fcl::Convex<hpp::fcl::Triangle>&) [with BV = hpp::fcl::OBBRSS]’:
    /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/include/hpp/fcl/internal/traversal_node_hfield_shape.h:364:34:   required from ‘void hpp::fcl::HeightFieldShapeCollisionTraversalNode<BV, S, _Options>::leafCollides(unsigned int, unsigned int, hpp::fcl::FCL_REAL&) const [with BV = hpp::fcl::OBBRSS; S = hpp::fcl::Ellipsoid; int _Options = 0; hpp::fcl::FCL_REAL = double]’
    /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/include/hpp/fcl/internal/traversal_node_hfield_shape.h:350:8:   required from here
    /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/include/hpp/fcl/internal/traversal_node_hfield_shape.h:154:11: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘hpp::fcl::Vec3f’ {aka ‘class Eigen::Matrix<double, 3, 1>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
      154 |     memcpy(pts, convex1.points, 8 * sizeof(Vec3f));
          |     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Core:295,
                     from /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/include/hpp/fcl/data_types.h:41,
                     from /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/include/hpp/fcl/BV/AABB.h:41,
                     from /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/include/hpp/fcl/collision_object.h:46,
                     from /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/include/hpp/fcl/collision_func_matrix.h:41,
                     from /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/src/collision_func_matrix.cpp:38:
    /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/Matrix.h:178:7: note: ‘hpp::fcl::Vec3f’ {aka ‘class Eigen::Matrix<double, 3, 1>’} declared here
      178 | class Matrix
          |       ^~~~~~
    In file included from /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/include/hpp/fcl/internal/traversal_node_setup.h:50,
                     from /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/src/collision_func_matrix.cpp:40:
    /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/include/hpp/fcl/internal/traversal_node_hfield_shape.h: In instantiation of ‘void hpp::fcl::details::buildConvexTriangles(const hpp::fcl::HFNode<BV>&, const hpp::fcl::HeightField<BV>&, hpp::fcl::Convex<hpp::fcl::Triangle>&, hpp::fcl::Convex<hpp::fcl::Triangle>&) [with BV = hpp::fcl::AABB]’:
    /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/include/hpp/fcl/internal/traversal_node_hfield_shape.h:364:34:   required from ‘void hpp::fcl::HeightFieldShapeCollisionTraversalNode<BV, S, _Options>::leafCollides(unsigned int, unsigned int, hpp::fcl::FCL_REAL&) const [with BV = hpp::fcl::AABB; S = hpp::fcl::Ellipsoid; int _Options = 0; hpp::fcl::FCL_REAL = double]’
    /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/include/hpp/fcl/internal/traversal_node_hfield_shape.h:350:8:   required from here
    /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/include/hpp/fcl/internal/traversal_node_hfield_shape.h:154:11: warning: ‘void* memcpy(void*, const void*, size_t)’ writing to an object of type ‘hpp::fcl::Vec3f’ {aka ‘class Eigen::Matrix<double, 3, 1>’} with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess]
      154 |     memcpy(pts, convex1.points, 8 * sizeof(Vec3f));
          |     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/Core:295,
                     from /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/include/hpp/fcl/data_types.h:41,
                     from /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/include/hpp/fcl/BV/AABB.h:41,
                     from /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/include/hpp/fcl/collision_object.h:46,
                     from /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/include/hpp/fcl/collision_func_matrix.h:41,
                     from /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/src/collision_func_matrix.cpp:38:
    /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/eigen/3.4.0/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3/Eigen/src/Core/Matrix.h:178:7: note: ‘hpp::fcl::Vec3f’ {aka ‘class Eigen::Matrix<double, 3, 1>’} declared here
      178 | class Matrix
          |       ^~~~~~
    /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/src/mesh_loader/loader.cpp: In member function ‘virtual hpp::fcl::CollisionGeometryPtr_t hpp::fcl::MeshLoader::loadOctree(const string&)’:
    /home/conan/workspace/prod-v1/bsr/101154/ebdcc/.conan/data/hpp-fcl/2.4.4/_/_/build/6b98afc7dfb342440997c75246828fa83e897d43/src/src/mesh_loader/loader.cpp:92:66: warning: unused parameter ‘filename’ [-Wunused-parameter]
       92 | CollisionGeometryPtr_t MeshLoader::loadOctree(const std::string& filename) {
          |                                               ~~~~~~~~~~~~~~~~~~~^~~~~~~~
    WARN: **************************************************
    WARN: *** Conan 1 is legacy and on a deprecation path **
    WARN: *********** Please upgrade to Conan 2 ************
    WARN: **************************************************
    WARN: minizip/1.2.13: requirement zlib/[>=1.2.11 <2] overridden by assimp/5.4.1 to zlib/1.3.1 
    hpp-fcl/2.4.4: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    hpp-fcl/2.4.4: WARN: Using the new toolchains and generators without specifying a build profile (e.g: -pr:b=default) is discouraged and might cause failures and unexpected behavior
    [HOOK - conan-center.py] post_package(): ERROR: [DEFAULT PACKAGE LAYOUT (KB-H013)] Unknown folder 'share' in the package (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H013-DEFAULT-PACKAGE-LAYOUT) 
    [HOOK - conan-center.py] post_package(): ERROR: [STATIC ARTIFACTS (KB-H074)] Package with 'shared=False' option did not contain any static artifact (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H074-STATIC-ARTIFACTS) 
    [HOOK - conan-center.py] post_package(): ERROR: [PC-FILES (KB-H020)] The conan-center repository doesn't allow the packages to contain `pc` files. The packages have to be located using generators and the declared `cpp_info` information (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H020-PC-FILES) 
    [HOOK - conan-center.py] post_package(): ERROR: [PC-FILES (KB-H020)] Found files: ./lib/pkgconfig/hpp-fcl.pc (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H020-PC-FILES) 
    [HOOK - conan-center.py] post_package(): ERROR: [CMAKE-MODULES-CONFIG-FILES (KB-H016)] The conan-center repository doesn't allow the packages to contain CMake find modules or config files. The packages have to be located using generators and the declared `cpp_info` information (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H016-CMAKE-MODULES-CONFIG-FILES) 
    [HOOK - conan-center.py] post_package(): ERROR: [CMAKE-MODULES-CONFIG-FILES (KB-H016)] Found files: ./lib/cmake/hpp-fcl/hpp-fclConfig.cmake; ./lib/cmake/jrl-cmakemodules/jrl-cmakemodulesConfig.cmake; ./share/jrl-cmakemodules/_unittests/test_pkg-config.cmake; ./share/jrl-cmakemodules/boost/FindBoost.cmake; ./share/jrl-cmakemodules/cython/python/FindPython.cmake; ./share/jrl-cmakemodules/cython/python/FindPython2.cmake; ./share/jrl-cmakemodules/cython/python/FindPython3.cmake; ./share/jrl-cmakemodules/find-external/Accelerate/FindAccelerate.cmake; ./share/jrl-cmakemodules/find-external/CDD/FindCDD.cmake; ./share/jrl-cmakemodules/find-external/CHOLMOD/FindCHOLMOD.cmake; ./share/jrl-cmakemodules/find-external/CLP/FindCLP.cmake; ./share/jrl-cmakemodules/find-external/CoinUtils/FindCoinUtils.cmake; ./share/jrl-cmakemodules/find-external/CppAD/Findcppad.cmake; ./share/jrl-cmakemodules/find-external/CppAD/Findcppadcg.cmake; ./share/jrl-cmakemodules/find-external/GMP/FindGMP.cmake; ./share/jrl-cmakemodules/find-external/Julia/FindJulia.cmake; ./share/jrl-cmakemodules/find-external/MPFR/FindMPFR.cmake; ./share/jrl-cmakemodules/find-external/OpenMP/FindOpenMP.cmake; ./share/jrl-cmakemodules/find-external/OpenRTM/FindOpenRTM.cmake; ./share/jrl-cmakemodules/find-external/Qhull/FindQhull.cmake; ./share/jrl-cmakemodules/find-external/Simde/FindSimde.cmake; ./share/jrl-cmakemodules/find-external/TinyXML/FindTinyXML.cmake; ./share/jrl-cmakemodules/find-external/TinyXML/FindTinyXML2.cmake; ./share/jrl-cmakemodules/find-external/assimp/Findassimp.cmake; ./share/jrl-cmakemodules/find-external/glpk/Findglpk.cmake; ./share/jrl-cmakemodules/find-external/qpOASES/FindqpOASES.cmake; ./share/jrl-cmakemodules/package-config.cmake; ./share/jrl-cmakemodules/pkg-config.cmake (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H016-CMAKE-MODULES-CONFIG-FILES) 
    ERROR: [HOOK - conan-center.py] post_package(): Some checks failed running the hook, check the output
    

Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.


Conan v2 pipeline ❌

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping @conan-io/barbarians on the PR and we will help you.

Failure in build 5 (8cad98d8db00f32ee4e10c34fd080b1de58bdb27):

  • hpp-fcl/2.4.5:
    CI failed to create some packages (All logs)

    Logs for packageID 91d300e21d0b1774eddd9c98c369461873e2ffa0:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.cppstd=17
    compiler.libcxx=libstdc++11
    compiler.version=11
    os=Linux
    [options]
    */*:shared=False
    
    [...]
    -- Conan: Component target declared 'Boost::thread'
    -- Conan: Component target declared 'Boost::timer'
    -- Conan: Component target declared 'Boost::wave'
    -- Conan: Component target declared 'Boost::context'
    -- Conan: Component target declared 'Boost::contract'
    -- Conan: Component target declared 'Boost::locale'
    -- Conan: Component target declared 'Boost::type_erasure'
    -- Conan: Component target declared 'Boost::unit_test_framework'
    -- Conan: Component target declared 'Boost::coroutine'
    -- Conan: Component target declared 'Boost::fiber'
    -- Conan: Component target declared 'Boost::log'
    -- Conan: Component target declared 'Boost::fiber_numa'
    -- Conan: Component target declared 'Boost::log_setup'
    -- Conan: Target declared 'boost::boost'
    -- Conan: Target declared 'libbacktrace::libbacktrace'
    -- Conan: Target declared 'BZip2::BZip2'
    -- Conan: Including build module from '/home/conan/workspace/prod-v2/bsr/90146/bffab/p/bzip23c098e896e3ea/p/lib/cmake/conan-official-bzip2-variables.cmake'
    -- Conan: Target declared 'ZLIB::ZLIB'
    -- Conan: Target declared 'assimp::assimp'
    -- Conan: Target declared 'minizip::minizip'
    -- Conan: Target declared 'pugixml::pugixml'
    -- Conan: Target declared 'zip::zip'
    -- Conan: Target declared 'poly2tri::poly2tri'
    -- Conan: Target declared 'draco::draco'
    -- Conan: Target declared 'clipper::clipper'
    -- Conan: Target declared 'openddlparser::openddlparser'
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/conan/workspace/prod-v2/bsr/cci-a05fa698/recipes/hpp-fcl/all/test_package/build/gcc-11-x86_64-17-release
    
    hpp-fcl/2.4.5 (test package): Running CMake.build()
    hpp-fcl/2.4.5 (test package): RUN: cmake --build "/home/conan/workspace/prod-v2/bsr/cci-a05fa698/recipes/hpp-fcl/all/test_package/build/gcc-11-x86_64-17-release" -- -j3
    Scanning dependencies of target test_package
    [ 50%] Building CXX object CMakeFiles/test_package.dir/test_package.cpp.o
    In file included from /home/conan/workspace/prod-v2/bsr/90146/bffab/p/b/hpp-f3725257d60dd6/p/include/hpp/fcl/math/transform.h:41,
                     from /home/conan/workspace/prod-v2/bsr/cci-a05fa698/recipes/hpp-fcl/all/test_package/test_package.cpp:1:
    /home/conan/workspace/prod-v2/bsr/90146/bffab/p/b/hpp-f3725257d60dd6/p/include/hpp/fcl/data_types.h:41:10: fatal error: Eigen/Core: No such file or directory
       41 | #include <Eigen/Core>
          |          ^~~~~~~~~~~~
    compilation terminated.
    CMakeFiles/test_package.dir/build.make:62: recipe for target 'CMakeFiles/test_package.dir/test_package.cpp.o' failed
    make[2]: *** [CMakeFiles/test_package.dir/test_package.cpp.o] Error 1
    CMakeFiles/Makefile2:75: recipe for target 'CMakeFiles/test_package.dir/all' failed
    make[1]: *** [CMakeFiles/test_package.dir/all] Error 2
    Makefile:83: recipe for target 'all' failed
    make: *** [all] Error 2
    
    ERROR: hpp-fcl/2.4.5 (test package): Error in build() method, line 21
    	cmake.build()
    	ConanException: Error 2 while executing
    
  • hpp-fcl/2.4.4:
    Didn't run or was cancelled before finishing


Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability.

@sun-mir
Copy link
Author

sun-mir commented Sep 24, 2024

Unfortunately, I overestimated my skills to put the recipe together for this package... Not being able to make it work, I had to use a workaround with a manually pre-compiled *.so package for my needs.

I encourage anyone who can/wants to finish this recipe - to either start with a new PR or to continue the work here...
Thanks in advance!

@jcar87 jcar87 self-assigned this Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[request] hpp-fcl/2.4.4
5 participants