conan-io / conan-center-index

Recipes for the ConanCenter repository
https://conan.io/center
MIT License
963 stars 1.77k forks source link

[package] libmysqlclient/any: Cross compile using M1 #11320

Open paulocoutinhox opened 2 years ago

paulocoutinhox commented 2 years ago

Package and Environment Details

Conan profile

[INFO] Building for: x86_64/Release... Configuration (profile_host): [settings] arch=x86_64 arch_build=armv8 build_type=Release compiler=apple-clang compiler.libcxx=libc++ compiler.version=13 os=Macos os.version=10.15 os_build=Macos [options] nativium_arch=x86_64 nativium_product_name=Nativium nativium_project_name=nativium nativium_target=macos nativium_version=1.0.0 nativium_version_code=1 [build_requires] [env]

Configuration (profile_build): [settings] arch=armv8 arch_build=armv8 build_type=Release compiler=apple-clang compiler.libcxx=libc++ compiler.version=13 os=Macos os_build=Macos [options] [build_requires] [env]

Steps to reproduce

Build x86_64 version of libmysqlclient on macbook m1.

Logs

Click to expand log ``` [INFO] Building for: x86_64/Release... Configuration (profile_host): [settings] arch=x86_64 arch_build=armv8 build_type=Release compiler=apple-clang compiler.libcxx=libc++ compiler.version=13 os=Macos os.version=10.15 os_build=Macos [options] nativium_arch=x86_64 nativium_product_name=Nativium nativium_project_name=nativium nativium_target=macos nativium_version=1.0.0 nativium_version_code=1 [build_requires] [env] Configuration (profile_build): [settings] arch=armv8 arch_build=armv8 build_type=Release compiler=apple-clang compiler.libcxx=libc++ compiler.version=13 os=Macos os_build=Macos [options] [build_requires] [env] [INFO] Nativium: Extending conan configuration with module http-server [INFO] Nativium: Extending conan configuration with module app-core [INFO] Nativium: Extending conan requirements with module http-server [INFO] Nativium: Extending conan requirements with module app-core drogon/1.7.5: Not found in local cache, looking in remotes... drogon/1.7.5: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.44k] Downloading conanfile.py completed [6.49k] Downloading conan_export.tgz completed [0.34k] Decompressing conan_export.tgz completed [0.00k] drogon/1.7.5: Downloaded recipe revision 0 trantor/1.5.5: Not found in local cache, looking in remotes... trantor/1.5.5: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.17k] Downloading conanfile.py completed [4.28k] Downloading conan_export.tgz completed [0.25k] Decompressing conan_export.tgz completed [0.00k] trantor/1.5.5: Downloaded recipe revision 0 openssl/1.1.1o: Not found in local cache, looking in remotes... openssl/1.1.1o: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.18k] Downloading conanfile.py completed [39.30k] Downloading conan_export.tgz completed [0.30k] Decompressing conan_export.tgz completed [0.00k] openssl/1.1.1o: Downloaded recipe revision 0 c-ares/1.18.1: Not found in local cache, looking in remotes... c-ares/1.18.1: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.17k] Downloading conanfile.py completed [4.41k] Downloading conan_export.tgz completed [0.25k] Decompressing conan_export.tgz completed [0.00k] c-ares/1.18.1: Downloaded recipe revision 0 jsoncpp/1.9.5: Not found in local cache, looking in remotes... jsoncpp/1.9.5: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.65k] Downloading conanfile.py completed [4.90k] Downloading conan_export.tgz completed [0.25k] Decompressing conan_export.tgz completed [0.00k] jsoncpp/1.9.5: Downloaded recipe revision 0 zlib/1.2.12: Not found in local cache, looking in remotes... zlib/1.2.12: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.33k] Downloading conanfile.py completed [4.19k] Downloading conan_export.tgz completed [0.31k] Decompressing conan_export.tgz completed [0.00k] zlib/1.2.12: Downloaded recipe revision 0 libmysqlclient/8.0.25: Not found in local cache, looking in remotes... libmysqlclient/8.0.25: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.35k] Downloading conanfile.py completed [11.94k] Downloading conan_export.tgz completed [0.34k] Decompressing conan_export.tgz completed [0.00k] libmysqlclient/8.0.25: Downloaded recipe revision 0 zstd/1.5.2: Not found in local cache, looking in remotes... zstd/1.5.2: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.26k] Downloading conanfile.py completed [3.85k] Downloading conan_export.tgz completed [0.31k] Decompressing conan_export.tgz completed [0.00k] zstd/1.5.2: Downloaded recipe revision 0 lz4/1.9.3: Not found in local cache, looking in remotes... lz4/1.9.3: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.17k] Downloading conanfile.py completed [3.19k] Downloading conan_export.tgz completed [0.24k] Decompressing conan_export.tgz completed [0.00k] lz4/1.9.3: Downloaded recipe revision 0 sqlite3/3.38.5: Not found in local cache, looking in remotes... sqlite3/3.38.5: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.17k] Downloading conanfile.py completed [10.50k] Downloading conan_export.tgz completed [0.24k] Decompressing conan_export.tgz completed [0.00k] sqlite3/3.38.5: Downloaded recipe revision 0 hiredis/1.0.2: Not found in local cache, looking in remotes... hiredis/1.0.2: Trying with 'conancenter'... Downloading conanmanifest.txt completed [0.30k] Downloading conanfile.py completed [4.50k] Downloading conan_export.tgz completed [0.29k] Decompressing conan_export.tgz completed [0.00k] hiredis/1.0.2: Downloaded recipe revision 0 conanfile.py (nativium/None): Installing package Requirements c-ares/1.18.1 from 'conancenter' - Downloaded drogon/1.7.5 from 'conancenter' - Downloaded hiredis/1.0.2 from 'conancenter' - Downloaded jsoncpp/1.9.5 from 'conancenter' - Downloaded libmysqlclient/8.0.25 from 'conancenter' - Downloaded lz4/1.9.3 from 'conancenter' - Downloaded openssl/1.1.1o from 'conancenter' - Downloaded sqlite3/3.38.5 from 'conancenter' - Downloaded trantor/1.5.5 from 'conancenter' - Downloaded zlib/1.2.12 from 'conancenter' - Downloaded zstd/1.5.2 from 'conancenter' - Downloaded Packages c-ares/1.18.1:872286a8c1902691d2e46af37e107a8d6fadc2cd - Build drogon/1.7.5:58ab6813e8a121cec981c7f095c78ec28c79e083 - Build hiredis/1.0.2:a043de1b4dc8f8782ae52339c91d563aeddaa48a - Build jsoncpp/1.9.5:1923d42b84216db8e811925f1908b65867cbafac - Build libmysqlclient/8.0.25:INVALID - Invalid lz4/1.9.3:a043de1b4dc8f8782ae52339c91d563aeddaa48a - Build openssl/1.1.1o:a043de1b4dc8f8782ae52339c91d563aeddaa48a - Build sqlite3/3.38.5:4877123c40c4ec3bc677337dbf83aa9760cce264 - Build trantor/1.5.5:c7279ed39d342421c3de6c4142d886a7c3e365ca - Build zlib/1.2.12:a043de1b4dc8f8782ae52339c91d563aeddaa48a - Build zstd/1.5.2:17f1cce08b897e86f4e80ed669317684665e5f7c - Build Cross-build from 'Macos:armv8' to 'Macos:x86_64' Installing (downloading, building) binaries... ERROR: There are invalid packages (packages that cannot exist for this configuration): libmysqlclient/8.0.25: Invalid ID: Cross compilation not yet supported by the recipe. contributions are welcome. COMMAND: conan install /Users/paulo/Developer/workspaces/cpp/nativium-http-server/nativium/conan/recipe/conanfile.py -pr:b default -pr:h /Users/paulo/Developer/workspaces/cpp/nativium-http-server/nativium/conan/profiles/nativium_macos_profile -s:h os.version=10.15 -s:h build_type=Release -s:h arch=x86_64 -o nativium_target=macos -o nativium_arch=x86_64 -o nativium_project_name=nativium -o nativium_product_name=Nativium -o nativium_version=1.0.0 -o nativium_version_code=1 --build=missing --update WORKING DIR: /Users/paulo/Developer/workspaces/cpp/nativium-http-server/nativium/build/macos/Release/x86_64/conan [ERROR] Command execution has failed make: *** [build-macos] Error 10 ```
perseoGI commented 1 month ago

Hi there, I was reviewing old issues and I have come across this one.

This recipe do not support cross compilation yet, see: https://github.com/conan-io/conan-center-index/blob/81168ea8adb8853ef7dddcfaf42d28c65a5cde0b/recipes/libmysqlclient/all/conanfile.py?plain=1#L79-L80

Contributions are welcome! Would you wish to collaborate? Maybe we can ping some upstream contributor!