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

[package] mbits-utfconv/1.0.4: Not supports Conan 2 #26600

Closed
xiaoshenxian opened this issue Feb 14, 2025 · 2 comments
Closed

[package] mbits-utfconv/1.0.4: Not supports Conan 2 #26600

xiaoshenxian opened this issue Feb 14, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@xiaoshenxian
Copy link

Description

Seems mbits-utfconv/1.0.4 do not support Conan 2. I can download and compile it with Conan 1.66.0.

Package and Environment Details

  • Package Name/Version: mbits-utfconv/1.0.4
  • Operating System+version: windows 10
  • Compiler+version: MSVC 19.42.34436
  • Conan version: conan 2.12.2
  • Python version: Python 3.11.4

Conan profile

[settings]
arch=x86_64
build_type=Release
compiler=msvc
compiler.cppstd=23
compiler.runtime=dynamic
compiler.runtime_type=Release
compiler.version=194
os=Windows

[conf]

Steps to reproduce

conan install . --output-folder=build --build=missing --settings=build_type=Debug

Logs

Click to expand log
*********************************************************
Recipe 'mbits-utfconv/1.0.4' seems broken.
It is possible that this recipe is not Conan 2.0 ready
If it is your recipe, check if it is updated to 2.0
*********************************************************

ERROR: Package 'mbits-utfconv/1.0.4' not resolved: mbits-utfconv/1.0.4: Cannot load recipe.
@xiaoshenxian xiaoshenxian added the bug Something isn't working label Feb 14, 2025
@jcar87
Copy link
Contributor

jcar87 commented Feb 14, 2025

HI @xiaoshenxian thanks for reporting this - could you provide the entire log, so that we can see exactly which revision is used, to check if it matches the published revision in Conan Center?

The recipe is currently compatible with Conan 2, and it has published packages:

$conan list "mbits-utfconv/1.0.4:*" -r conancenter
Connecting to remote 'conancenter' anonymously
conancenter
  mbits-utfconv
    mbits-utfconv/1.0.4
      revisions
        4ef392fc71dc1e8db9d7e3e16356edd8 (2024-04-06 21:02:50 UTC)
          packages
            8456907a06f5eea583c440e0ea41293d32631df4
              info
                settings
                  arch: x86_64
                  build_type: Release
                  compiler: msvc
                  compiler.cppstd: 17
                  compiler.runtime: dynamic
                  compiler.runtime_type: Release
                  compiler.version: 192
                  os: Windows
                requires
                  mbits-semver/0.1.1
            91ac1a78cf06e0f6c1da78080642c029773524c0
              info
                settings
                  arch: armv8
                  build_type: Release
                  compiler: apple-clang
                  compiler.cppstd: 17
                  compiler.libcxx: libc++
                  compiler.version: 13
                  os: Macos
                options
                  fPIC: True
                requires
                  mbits-semver/0.1.1
            fb2d81877098892db3476731192b9cc11ed3d4d1
              info
                settings
                  arch: x86_64
                  build_type: Release
                  compiler: gcc
                  compiler.cppstd: 17
                  compiler.libcxx: libstdc++11
                  compiler.version: 11
                  os: Linux
                options
                  fPIC: True
                requires
                  mbits-semver/0.1.1
            3a9ac878e362483f1499c582f5eb5867b48cffcd
              info
                settings
                  arch: x86_64
                  build_type: Release
                  compiler: apple-clang
                  compiler.cppstd: 17
                  compiler.libcxx: libc++
                  compiler.version: 13
                  os: Macos
                options
                  fPIC: True
                requires
                  mbits-semver/0.1.1
            281432146c43e9ef616877d507da9cf7ab3fa044
              info
                settings
                  arch: x86_64
                  build_type: Release
                  compiler: msvc
                  compiler.cppstd: 17
                  compiler.runtime: dynamic
                  compiler.runtime_type: Release
                  compiler.version: 193
                  os: Windows
                requires
                  mbits-semver/0.1.1

@xiaoshenxian
Copy link
Author

Hi @jcar87 , thank you for your help to exclude this reason.

I then tried to reinstall conan, and remove local cache by conan remove "mbits-*/*", and then got it work.

By the way, I found the mbits-semver/0.1.1, which the mbits-utfconv/1.0.4 depends on, has a bug and can not be compiled. One should add an #include <string> to the <path_to_conan_cache>\p\mbits56d853a92dac8\s\src\include\semver\semver.hh to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants