Skip to content

gtest version conflict #59

@Timple

Description

@Timple

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

Gtest failure:

48.74 In file included from /app/.pixi/envs/default/src/gtest_vendor/src/gtest-all.cc:49:
48.74 /app/.pixi/envs/default/src/gtest_vendor/./src/gtest.cc:2720:1: error: no declaration matches 'testing::TestInfo::TestInfo(const std::string&, const std::string&, const char*, const char*, testing::internal::CodeLocation, testing::internal::TypeId, testing::internal::TestFactoryBase*)'
48.74  2720 | TestInfo::TestInfo(const std::string& a_test_suite_name,
48.74       | ^~~~~~~~
48.74 In file included from /app/.pixi/envs/default/src/gtest_vendor/src/gtest-all.cc:38:
48.74 /app/.pixi/envs/default/include/gtest/gtest.h:665:3: note: candidates are: 'testing::TestInfo::TestInfo(const testing::TestInfo&)'
48.74   665 |   TestInfo(const TestInfo&) = delete;
48.74       |   ^~~~~~~~
48.74 /app/.pixi/envs/default/include/gtest/gtest.h:618:3: note:                 'testing::TestInfo::TestInfo(std::string, std::string, const char*, const char*, testing::internal::CodeLocation, testing::internal::TypeId, testing::internal::TestFactoryBase*)'
48.74   618 |   TestInfo(std::string test_suite_name, std::string name,
48.74       |   ^~~~~~~~
48.74 /app/.pixi/envs/default/include/gtest/gtest.h:533:18: note: 'class testing::TestInfo' defined here
48.74   533 | class GTEST_API_ TestInfo {
48.74       |                  ^~~~~~~~

The TestInfo and TestSuite constructors changed their parameter types between 1.15 and 1.17
(from const std::string& to std::string by value). The vendored source and the installed
headers must be from the same version.

Expected Behaviour

ros-kilted-gtest-vendor should vendor gtest 1.17.x source to match the
gtest >=1.17.0 requirement declared by ros-kilted-ament-cmake-gtest.

Environment

  • robostack-kilted channel
  • ros-kilted-gtest-vendor: 1.15.1
  • ros-kilted-ament-cmake-gtest: 2.7.4
  • gtest (conda-forge): 1.17.0

Installed packages

$ mamba list
Command 'mamba' not found, did you mean:
  command 'samba' from deb samba (2:4.19.5+dfsg-4ubuntu9.4)

Environment info

https://github.com/Timple/pixi-trials/blob/main/pf_driver/pixi.toml

If cannot reproduce, try the Dockerfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions