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

Add ignition-math #3215

Closed
wants to merge 22 commits into from
Closed

Add ignition-math #3215

wants to merge 22 commits into from

Conversation

joxoby
Copy link
Contributor

@joxoby joxoby commented Oct 16, 2020

Specify library name and version: ignition-math/6.6.0

  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the
    conan-center hook activated.

@conan-center-bot
Copy link
Collaborator

Some configurations of 'ignition-math/6.6.0' failed in build 1 (906c4037b5d73a1fa920e0368e22e65b7c3f8766):

recipes/ignition-math/all/conanfile.py Outdated Show resolved Hide resolved
def source(self):
tools.get(**self.conan_data["sources"][self.version])
version_major = self.version.split('.')[0]
os.rename(f"ign-math-ignition-math{version_major}_{self.version}", self._source_subfolder)
Copy link
Contributor

Choose a reason for hiding this comment

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

this format is not support in the minimum python version CCI supports, we have to use "".format()

You can also use the https://docs.conan.io/en/latest/reference/tools.html#tools-version to get the major version

recipes/ignition-math/all/conanfile.py Outdated Show resolved Hide resolved
recipes/ignition-math/all/conanfile.py Outdated Show resolved Hide resolved
@@ -0,0 +1,13 @@
cmake_minimum_required(VERSION 3.1)
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe CXX_STANDARD 17 was introduced in 3.8

@conan-center-bot
Copy link
Collaborator

Some configurations of 'ignition-math/6.6.0' failed in build 2 (6edd6807a98607320b22042b72a3da4a428516bc):

@prince-chrismc prince-chrismc mentioned this pull request Oct 16, 2020
4 tasks
@prince-chrismc
Copy link
Contributor

Since the test_package requires c++17 support, I assume the main project does as well, in that case you will need to set the "minimum compiler support" this is an example that easy to copy-paste

@property
def _minimum_cpp_standard(self):
return 17
@property
def _minimum_compilers_version(self):
return {
"Visual Studio": "16",
"gcc": "7",
"clang": "5",
"apple-clang": "10",
}
def configure(self):
if self.settings.get_safe("compiler.cppstd"):
tools.check_min_cppstd(self, self._minimum_cpp_standard)
min_version = self._minimum_compilers_version.get(
str(self.settings.compiler))
if not min_version:
self.output.warn("{} recipe lacks information about the {} compiler support.".format(
self.name, self.settings.compiler))
else:
if tools.Version(self.settings.compiler.version) < min_version:
raise ConanInvalidConfiguration("{} requires c++17 support. The current compiler {} {} does not support it.".format(
self.name, self.settings.compiler, self.settings.compiler.version))

@conan-center-bot
Copy link
Collaborator

Failure in build 3 (6245a328ab78af814141866ce02549d96d7908ed):

  • Error processing recipe (ref 'ignition-math/6.6.0'): Linux x86_64, Release, gcc 4.9, libstdc++ . Options: ignition-math:shared-False
    Unexpected error happened:
ERROR: ignition-math/6.6.0: Error in configure() method, line 47
	raise ConanInvalidConfiguration(
	NameError: name 'ConanInvalidConfiguration' is not defined

@conan-center-bot
Copy link
Collaborator

Some configurations of 'ignition-math/6.6.0' failed in build 4 (6ee8253982fb7afc965cdd7629c71ad450e445aa):

  • Windows x86_64, Release, Visual Studio 16, MT. Options: ignition-math:shared-True
    • Hooks errors detected:
      • [HOOK - conan-center.py] pre_build(): ERROR: [FPIC MANAGEMENT (KB-H007)] 'fPIC' option not managed correctly. Please remove it for Windows configurations: del self.options.fpic (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H007)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs
  • Windows x86_64, Release, Visual Studio 16, MT. Options: ignition-math:shared-False
    • Hooks errors detected:
      • [HOOK - conan-center.py] pre_build(): ERROR: [FPIC MANAGEMENT (KB-H007)] 'fPIC' option not managed correctly. Please remove it for Windows configurations: del self.options.fpic (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H007)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs
  • Windows x86_64, Debug, Visual Studio 16, MDd. Options: ignition-math:shared-False
    • Hooks errors detected:
      • [HOOK - conan-center.py] pre_build(): ERROR: [FPIC MANAGEMENT (KB-H007)] 'fPIC' option not managed correctly. Please remove it for Windows configurations: del self.options.fpic (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H007)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs
  • Windows x86_64, Debug, Visual Studio 16, MTd. Options: ignition-math:shared-True
    • Hooks errors detected:
      • [HOOK - conan-center.py] pre_build(): ERROR: [FPIC MANAGEMENT (KB-H007)] 'fPIC' option not managed correctly. Please remove it for Windows configurations: del self.options.fpic (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H007)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs
  • Windows x86_64, Debug, Visual Studio 16, MDd. Options: ignition-math:shared-True
    • Hooks errors detected:
      • [HOOK - conan-center.py] pre_build(): ERROR: [FPIC MANAGEMENT (KB-H007)] 'fPIC' option not managed correctly. Please remove it for Windows configurations: del self.options.fpic (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H007)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs
  • Windows x86_64, Release, Visual Studio 16, MD. Options: ignition-math:shared-False
    • Hooks errors detected:
      • [HOOK - conan-center.py] pre_build(): ERROR: [FPIC MANAGEMENT (KB-H007)] 'fPIC' option not managed correctly. Please remove it for Windows configurations: del self.options.fpic (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H007)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs
  • Windows x86_64, Debug, Visual Studio 16, MTd. Options: ignition-math:shared-False
    • Hooks errors detected:
      • [HOOK - conan-center.py] pre_build(): ERROR: [FPIC MANAGEMENT (KB-H007)] 'fPIC' option not managed correctly. Please remove it for Windows configurations: del self.options.fpic (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H007)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs
  • Windows x86_64, Release, Visual Studio 16, MD. Options: ignition-math:shared-True
    • Hooks errors detected:
      • [HOOK - conan-center.py] pre_build(): ERROR: [FPIC MANAGEMENT (KB-H007)] 'fPIC' option not managed correctly. Please remove it for Windows configurations: del self.options.fpic (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H007)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs

@conan-center-bot
Copy link
Collaborator

Some configurations of 'ignition-math/6.6.0' failed in build 5 (629449ea1d786d57d0fcf64f3bf860a215c4fd5f):

  • Linux x86_64, Release, clang 6.0, libstdc++ . Options: ignition-math:shared-True
  • Access to all the logs
  • Windows x86_64, Release, Visual Studio 16, MT. Options: ignition-math:shared-False
    • Hooks errors detected:
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] The conan-center repository doesn't allow Microsoft Visual Studio runtime files. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] Found files: ./bin/concrt140.dll; ./bin/msvcp140.dll; ./bin/msvcp140_1.dll; ./bin/msvcp140_2.dll; ./bin/msvcp140_codecvt_ids.dll; ./bin/vcruntime140.dll; ./bin/vcruntime140_1.dll (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs
  • Windows x86_64, Release, Visual Studio 16, MD. Options: ignition-math:shared-False
    • Hooks errors detected:
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] The conan-center repository doesn't allow Microsoft Visual Studio runtime files. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] Found files: ./bin/concrt140.dll; ./bin/msvcp140.dll; ./bin/msvcp140_1.dll; ./bin/msvcp140_2.dll; ./bin/msvcp140_codecvt_ids.dll; ./bin/vcruntime140.dll; ./bin/vcruntime140_1.dll (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs
  • Windows x86_64, Debug, Visual Studio 16, MDd. Options: ignition-math:shared-False
    • Hooks errors detected:
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] The conan-center repository doesn't allow Microsoft Visual Studio runtime files. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] Found files: ./bin/concrt140.dll; ./bin/msvcp140.dll; ./bin/msvcp140_1.dll; ./bin/msvcp140_2.dll; ./bin/msvcp140_codecvt_ids.dll; ./bin/vcruntime140.dll; ./bin/vcruntime140_1.dll (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs
  • Windows x86_64, Debug, Visual Studio 16, MTd. Options: ignition-math:shared-True
    • Hooks errors detected:
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] The conan-center repository doesn't allow Microsoft Visual Studio runtime files. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] Found files: ./bin/concrt140.dll; ./bin/msvcp140.dll; ./bin/msvcp140_1.dll; ./bin/msvcp140_2.dll; ./bin/msvcp140_codecvt_ids.dll; ./bin/vcruntime140.dll; ./bin/vcruntime140_1.dll (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs
  • Windows x86_64, Debug, Visual Studio 16, MDd. Options: ignition-math:shared-True
    • Hooks errors detected:
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] The conan-center repository doesn't allow Microsoft Visual Studio runtime files. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] Found files: ./bin/concrt140.dll; ./bin/msvcp140.dll; ./bin/msvcp140_1.dll; ./bin/msvcp140_2.dll; ./bin/msvcp140_codecvt_ids.dll; ./bin/vcruntime140.dll; ./bin/vcruntime140_1.dll (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs
  • Windows x86_64, Debug, Visual Studio 16, MTd. Options: ignition-math:shared-False
    • Hooks errors detected:
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] The conan-center repository doesn't allow Microsoft Visual Studio runtime files. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] Found files: ./bin/concrt140.dll; ./bin/msvcp140.dll; ./bin/msvcp140_1.dll; ./bin/msvcp140_2.dll; ./bin/msvcp140_codecvt_ids.dll; ./bin/vcruntime140.dll; ./bin/vcruntime140_1.dll (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs

@conan-center-bot
Copy link
Collaborator

Some configurations of 'ignition-math/6.6.0' failed in build 6 (c56041eb5888fbbf2918c67cd0f30150b78861a7):

  • Macos x86_64, Debug, apple-clang 10.0, libc++ . Options: ignition-math:shared-True
  • Access to all the logs
  • Linux x86_64, Release, clang 5.0, libstdc++ . Options: ignition-math:shared-True
  • Access to all the logs
  • Macos x86_64, Debug, apple-clang 11.0, libc++ . Options: ignition-math:shared-True
  • Access to all the logs
  • Linux x86_64, Release, gcc 8, libstdc++11 . Options: ignition-math:shared-True
  • Access to all the logs
  • Linux x86_64, Release, gcc 7, libstdc++11 . Options: ignition-math:shared-True
  • Access to all the logs
  • Windows x86_64, Release, Visual Studio 16, MT. Options: ignition-math:shared-True
  • Access to all the logs
  • Windows x86_64, Debug, Visual Studio 16, MTd. Options: ignition-math:shared-True
  • Access to all the logs
  • Windows x86_64, Debug, Visual Studio 16, MDd. Options: ignition-math:shared-True
  • Access to all the logs
  • Windows x86_64, Release, Visual Studio 16, MD. Options: ignition-math:shared-True
  • Access to all the logs
  • Windows x86_64, Debug, Visual Studio 16, MDd. Options: ignition-math:shared-False
    • Hooks errors detected:
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] The conan-center repository doesn't allow Microsoft Visual Studio runtime files. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] Found files: ./bin/concrt140.dll; ./bin/msvcp140.dll; ./bin/msvcp140_1.dll; ./bin/msvcp140_2.dll; ./bin/msvcp140_codecvt_ids.dll; ./bin/vcruntime140.dll; ./bin/vcruntime140_1.dll (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs
  • Windows x86_64, Release, Visual Studio 16, MD. Options: ignition-math:shared-False
    • Hooks errors detected:
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] The conan-center repository doesn't allow Microsoft Visual Studio runtime files. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] Found files: ./bin/concrt140.dll; ./bin/msvcp140.dll; ./bin/msvcp140_1.dll; ./bin/msvcp140_2.dll; ./bin/msvcp140_codecvt_ids.dll; ./bin/vcruntime140.dll; ./bin/vcruntime140_1.dll (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs
  • Windows x86_64, Release, Visual Studio 16, MT. Options: ignition-math:shared-False
    • Hooks errors detected:
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] The conan-center repository doesn't allow Microsoft Visual Studio runtime files. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] Found files: ./bin/concrt140.dll; ./bin/msvcp140.dll; ./bin/msvcp140_1.dll; ./bin/msvcp140_2.dll; ./bin/msvcp140_codecvt_ids.dll; ./bin/vcruntime140.dll; ./bin/vcruntime140_1.dll (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs
  • Windows x86_64, Debug, Visual Studio 16, MTd. Options: ignition-math:shared-False
    • Hooks errors detected:
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] The conan-center repository doesn't allow Microsoft Visual Studio runtime files. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] Found files: ./bin/concrt140.dll; ./bin/msvcp140.dll; ./bin/msvcp140_1.dll; ./bin/msvcp140_2.dll; ./bin/msvcp140_codecvt_ids.dll; ./bin/vcruntime140.dll; ./bin/vcruntime140_1.dll (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs

@conan-center-bot
Copy link
Collaborator

Some configurations of 'ignition-math/6.6.0' failed in build 7 (ba824b6d3fe050ac1e04c6c28bb8e6809b4f37ed):

  • Linux x86_64, Release, clang 5.0, libstdc++ . Options: ignition-math:shared-True
  • Access to all the logs
  • Linux x86_64, Release, clang 6.0, libstdc++ . Options: ignition-math:shared-True
  • Access to all the logs
  • Windows x86_64, Release, Visual Studio 16, MD. Options: ignition-math:shared-False
    • Hooks errors detected:
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] The conan-center repository doesn't allow Microsoft Visual Studio runtime files. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] Found files: ./bin/concrt140.dll; ./bin/msvcp140.dll; ./bin/msvcp140_1.dll; ./bin/msvcp140_2.dll; ./bin/msvcp140_codecvt_ids.dll; ./bin/vcruntime140.dll; ./bin/vcruntime140_1.dll (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs
  • Windows x86_64, Release, Visual Studio 16, MT. Options: ignition-math:shared-False
    • Hooks errors detected:
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] The conan-center repository doesn't allow Microsoft Visual Studio runtime files. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] Found files: ./bin/concrt140.dll; ./bin/msvcp140.dll; ./bin/msvcp140_1.dll; ./bin/msvcp140_2.dll; ./bin/msvcp140_codecvt_ids.dll; ./bin/vcruntime140.dll; ./bin/vcruntime140_1.dll (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs
  • Windows x86_64, Debug, Visual Studio 16, MTd. Options: ignition-math:shared-False
    • Hooks errors detected:
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] The conan-center repository doesn't allow Microsoft Visual Studio runtime files. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] Found files: ./bin/concrt140.dll; ./bin/msvcp140.dll; ./bin/msvcp140_1.dll; ./bin/msvcp140_2.dll; ./bin/msvcp140_codecvt_ids.dll; ./bin/vcruntime140.dll; ./bin/vcruntime140_1.dll (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs
  • Windows x86_64, Debug, Visual Studio 16, MDd. Options: ignition-math:shared-False
    • Hooks errors detected:
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] The conan-center repository doesn't allow Microsoft Visual Studio runtime files. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
      • [HOOK - conan-center.py] post_package(): ERROR: [MS RUNTIME FILES (KB-H021)] Found files: ./bin/concrt140.dll; ./bin/msvcp140.dll; ./bin/msvcp140_1.dll; ./bin/msvcp140_2.dll; ./bin/msvcp140_codecvt_ids.dll; ./bin/vcruntime140.dll; ./bin/vcruntime140_1.dll (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H021)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs

@conan-center-bot
Copy link
Collaborator

Some configurations of 'ignition-math/6.6.0' failed in build 8 (a95413fba931c8686a0779e93aa6f562fa66fc4f):

@conan-center-bot
Copy link
Collaborator

Some configurations of 'ignition-math/6.6.0' failed in build 9 (5525dccadee44c8478e9126d497b19a907a4def0):

@conan-center-bot
Copy link
Collaborator

Some configurations of 'ignition-math/6.6.0' failed in build 10 (e41fc7555ec978a11b485d87e7ef6a00a5cd83b9):

@joxoby
Copy link
Contributor Author

joxoby commented Oct 19, 2020

The error that I'm getting:

/usr/bin/ld: /home/conan/.conan/data/ignition-math/6.6.0/_/_/package/3e4f7a83e79f6843d5f85d632d92d31bee9e4ef5/lib/libignition-math6.a(Angle.cc.o): in function `_GLOBAL__sub_I_Angle.cc':
Angle.cc:(.text.startup+0xc): undefined reference to `std::ios_base::Init::Init()'
/usr/bin/ld: Angle.cc:(.text.startup+0x13): undefined reference to `std::ios_base::Init::~Init()'

seems to be a bug in libc++: https://bugs.llvm.org/show_bug.cgi?id=28954.

So basically the problem is when using libc++ with static libraries that use static initialization of basic streams.

What would be the best way to avoid a specific configuration, in this case, static libraries with clang and libc++ ?

@conan-center-bot
Copy link
Collaborator

Some configurations of 'ignition-math/6.6.0' failed in build 17 (9630d6cb7a832dd1909ca75ba06e777933893c16):

@madebr
Copy link
Contributor

madebr commented Oct 19, 2020

I haven't looked into the clang problem yet, but please consider joxoby#1

@madebr
Copy link
Contributor

madebr commented Oct 19, 2020

What would be the best way to avoid a specific configuration, in this case, static libraries with clang and libc++ ?

That can be done in configure:

def configure(self):
    if not self.options.shared and self.settings.compiler == "clang" and self.settings.compiler.libcxx = "libc++":
        raise ConanInvalidConfiguration("Due to a clang bug, this package cannot be used as a static library with libcxx==libc++.")

Eventually, you can filter finer by using self.settings.compiler.version.

@conan-center-bot
Copy link
Collaborator

Some configurations of 'ignition-math/6.6.0' failed in build 18 (8607d3e3d115f3d9068668a4af60b968d178562e):

@madebr
Copy link
Contributor

madebr commented Oct 19, 2020

I forgot to add the wrapper cmake script... oops

See joxoby#2
I don't know why the github gui displays both patches instead of only the last one.

@madebr
Copy link
Contributor

madebr commented Oct 19, 2020

I cannot reproduce the libc++ error when running the following command (from the recipe folder):

docker run -v $PWD:/recipe:z -ti conanio/clang50 /bin/sh -c "conan create /recipe ignition-math/6.6.0@ -s compiler.libcxx=libc++"

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
@conan-center-bot
Copy link
Collaborator

All green in build 20 (cdee7888ec4633a91d66bd279f57e695e726e48c)! 😊

@madebr
Copy link
Contributor

madebr commented Oct 19, 2020

Right now, it downloads both ignition-math and ignition-cmake.
The ignition-cmake is a collection of cmake scripts, would it make sense to create a ignition-cmake recipe and use it as a (build) requirement?
If there are other ignition package, then it would make sense to create a proper ignition-cmake recipe.

@joxoby
Copy link
Contributor Author

joxoby commented Oct 19, 2020

Ok wow!

This is super interesting. What ended up fixing the problems was the CMake wrapper script. The wrapper added some linker flags to the compilation of the source code that were not passed in previously. For example, during the build of Angle.cc, the compiler is passing the -stdlib=libc++ flag, which wasn't there before:

cd /home/conan/.conan/data/ignition-math/6.6.0/_/_/build/a3f2021885d1ab995129d41676fe7b8357771c06/source_subfolder/src && /usr/bin/clang++   -I/home/conan/.conan/data/pkgconf/1.7.3/_/_/package/961755854760682044d37dabfc2d998658edf961/include -I/home/conan/.conan/data/pkgconf/1.7.3/_/_/package/961755854760682044d37dabfc2d998658edf961/include/libpkgconf -I/home/conan/.conan/data/eigen/3.3.7/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include -I/home/conan/.conan/data/eigen/3.3.7/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include/eigen3 -I/home/conan/.conan/data/ignition-math/6.6.0/_/_/build/a3f2021885d1ab995129d41676fe7b8357771c06/source_subfolder/include -I/home/conan/.conan/data/ignition-math/6.6.0/_/_/build/a3f2021885d1ab995129d41676fe7b8357771c06/source_subfolder/core/include  -m64 -stdlib=libc++ -O3 -DNDEBUG   -Wall -Wextra -Wno-long-long -Wno-unused-value -Wfloat-equal -Wshadow -Winit-self -Wswitch-default -Wmissing-include-dirs -pedantic  -fPIC   -DPKGCONFIG_IS_STATIC -msse -msse2 -mfpmath=sse -msse3 -mssse3 -msse4.1 -msse4.2 -std=c++17 -o CMakeFiles/ignition-math6.dir/Angle.cc.o -c /home/conan/.conan/data/ignition-math/6.6.0/_/_/build/a3f2021885d1ab995129d41676fe7b8357771c06/source_subfolder/src/Angle.cc

Thanks @madebr !

@joxoby
Copy link
Contributor Author

joxoby commented Oct 19, 2020

Right now, it downloads both ignition-math and ignition-cmake.
The ignition-cmake is a collection of cmake scripts, would it make sense to create a ignition-cmake recipe and use it as a (build) requirement?
If there are other ignition package, then it would make sense to create a proper ignition-cmake recipe.

Yes, there will be more ignition packages coming, but I failed at making an ignition-cmake recipe when I tried. We can give it another shot.

@madebr
Copy link
Contributor

madebr commented Oct 19, 2020

Currently, conanbuildinfo.cmake, generated by the cmake generator acts as the cmake toolchain.
That's why it is important to add cmake to the generators.
If it is not added, the cmake defaults are used (/usr/bin/cc;/usr/bin/c++;CFLAGS=;CXXFLAGS=;LDFLAGS).
So before, the static ignition-math.a library required libstdc++ symbols, but the test_package only provides libc++ symbols.

@madebr
Copy link
Contributor

madebr commented Oct 19, 2020

Right now, it downloads both ignition-math and ignition-cmake.
The ignition-cmake is a collection of cmake scripts, would it make sense to create a ignition-cmake recipe and use it as a (build) requirement?
If there are other ignition package, then it would make sense to create a proper ignition-cmake recipe.

Yes, there will be more ignition packages coming, but I failed at making an ignition-cmake recipe when I tried. We can give it another shot.

Please create one, the conan hooks will probably fail because it does not allow cmake scripts in the package.
But an exception can be added.

@joxoby
Copy link
Contributor Author

joxoby commented Oct 19, 2020

Please create one, the conan hooks will probably fail because it does not allow cmake scripts in the package.
But an exception can be added.

Ok, working on it now.

@joxoby
Copy link
Contributor Author

joxoby commented Oct 19, 2020

Draft PR for ignition-cmake: #3268

@madebr
Copy link
Contributor

madebr commented Oct 19, 2020

See joxoby#2,
it will fail because ignition-cmake is not available on cci yet

@conan-center-bot
Copy link
Collaborator

Some configurations of 'ignition-math/6.6.0' failed in build 21 (8dadd87e7e46a3119758d90632224c1dc51fe853):

  • Macos x86_64, Release, apple-clang 10.0, libc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Macos x86_64, Debug, apple-clang 10.0, libc++ . Options: ignition-math:shared-True
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Macos x86_64, Debug, apple-clang 11.0, libc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Macos x86_64, Release, apple-clang 11.0, libc++ . Options: ignition-math:shared-True
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Macos x86_64, Release, apple-clang 11.0, libc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Macos x86_64, Debug, apple-clang 10.0, libc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Macos x86_64, Debug, apple-clang 11.0, libc++ . Options: ignition-math:shared-True
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Macos x86_64, Release, apple-clang 10.0, libc++ . Options: ignition-math:shared-True
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Windows x86_64, Release, Visual Studio 16, MT. Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Windows x86_64, Debug, Visual Studio 16, MDd. Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Windows x86_64, Release, Visual Studio 16, MD. Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Windows x86_64, Debug, Visual Studio 16, MTd. Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Windows x86_64, Release, Visual Studio 16, MT. Options: ignition-math:shared-True
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Windows x86_64, Debug, Visual Studio 16, MTd. Options: ignition-math:shared-True
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Windows x86_64, Release, Visual Studio 16, MD. Options: ignition-math:shared-True
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Windows x86_64, Debug, Visual Studio 16, MDd. Options: ignition-math:shared-True
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, gcc 7, libstdc++11 . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, gcc 9, libstdc++11 . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, gcc 9, libstdc++11 . Options: ignition-math:shared-True
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, gcc 8, libstdc++11 . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Debug, gcc 7, libstdc++11 . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, gcc 7, libstdc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Debug, gcc 7, libstdc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, gcc 8, libstdc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Debug, gcc 8, libstdc++11 . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, gcc 7, libstdc++ . Options: ignition-math:shared-True
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, gcc 7, libstdc++11 . Options: ignition-math:shared-True
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Debug, gcc 7, libstdc++ . Options: ignition-math:shared-True
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, clang 7.0, libstdc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, clang 8, libstdc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, clang 6.0, libstdc++ . Options: ignition-math:shared-True
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Debug, clang 6.0, libstdc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Debug, clang 8, libc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, clang 9, libc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, clang 9, libstdc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, clang 8, libc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, clang 6.0, libc++ . Options: ignition-math:shared-True
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Debug, clang 9, libstdc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Debug, clang 8, libstdc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, clang 5.0, libstdc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Debug, clang 7.0, libstdc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Debug, clang 5.0, libstdc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Debug, clang 5.0, libc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, clang 5.0, libstdc++ . Options: ignition-math:shared-True
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Debug, clang 9, libc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, clang 5.0, libc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, clang 5.0, libc++ . Options: ignition-math:shared-True
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Debug, gcc 8, libstdc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, gcc 9, libstdc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Release, gcc 8, libstdc++ . Options: ignition-math:shared-True
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Debug, gcc 8, libstdc++11 . Options: ignition-math:shared-True
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Debug, gcc 9, libstdc++11 . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Debug, gcc 9, libstdc++ . Options: ignition-math:shared-False
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Debug, gcc 9, libstdc++11 . Options: ignition-math:shared-True
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository
  • Linux x86_64, Debug, gcc 9, libstdc++ . Options: ignition-math:shared-True
    You are depending on 'ignition-cmake/2.5.0' but it is not in the repository

@joxoby joxoby mentioned this pull request Oct 20, 2020
4 tasks
@stale
Copy link

stale bot commented Dec 1, 2020

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 1, 2020
@stale
Copy link

stale bot commented Dec 31, 2020

This pull request has been automatically closed because it has not had recent activity. Thank you for your contributions.

@stale stale bot closed this Dec 31, 2020
@prince-chrismc prince-chrismc mentioned this pull request Dec 31, 2020
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants