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

Feature/onnxruntime #16842

Closed
wants to merge 3 commits into from
Closed

Conversation

gmeeker
Copy link
Contributor

@gmeeker gmeeker commented Apr 1, 2023

Specify library name and version: onnxruntime/1.14.1

Implements #4806 and #16699

Unfortunately the #5180 recipe is quite outdated. Onnxruntime stopped using onnxruntime_PREFER_SYSTEM_LIB and now uses cmake's FetchContent.

I don't really have time to finish this recipe, so any help is appreciated. I've built macOS, Windows, and Linux, but have I haven't looked at iOS or Android. It should also provide the options in #5180 for additional execution providers.

The dependencies are mostly solved except:

  • onnx is still downloaded (protoc fails if we use the conan onnx package)
  • boost should use conan package
  • Microsoft's wil is not in CCI and is downloaded
  • Eigen is still downloaded (I might have missed some FetchContext patches)

The patches are quite extensive. Not sure how to handle that. Maybe some of it can get merged upstream in onnxruntime, like the package name calls to FetchContext.


@conan-center-bot

This comment has been minimized.

@mayeut mayeut mentioned this pull request Apr 1, 2023
3 tasks
@ghost
Copy link

ghost commented Apr 1, 2023

I detected other pull requests that are modifying onnxruntime/all recipe:

This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ❌

Failure in build 2 (a7fed5e4aa7a0190d34eb96d2b958abe6d836107):

  • onnxruntime/1.14.1@:
    CI failed to create some packages (All logs)

    Logs for packageID a308271050c07826fe64296a15c9428d4bc734f5:
    [settings]
    arch=x86_64
    build_type=Release
    compiler=gcc
    compiler.libcxx=libstdc++11
    compiler.version=9
    os=Linux
    [options]
    onnxruntime:shared=False
    
    [...]
        pybind11/2.10.1 from 'conan-center' - Downloaded
        re2/20230201 from 'conan-center' - Downloaded
        safeint/3.24 from 'conan-center' - Downloaded
        xnnpack/cci.20220801 from 'conan-center' - Downloaded
        zlib/1.2.13 from 'conan-center' - Downloaded
    Packages
        abseil/20230125.1:b911f48570f9bb2902d9e83b2b9ebf9d376c8c56 - Download
        cpuinfo/cci.20220228:68e6d7e93c8e2d1ca7d95689466cf63505529801 - Download
        cxxopts/3.0.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download
        date/3.0.1:6d7f427b0a49d9e765b3b743d71913e4724553e0 - Missing
        dlpack/0.4:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download
        eigen/3.4.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download
        flatbuffers/1.12.0:b911f48570f9bb2902d9e83b2b9ebf9d376c8c56 - Download
        fp16/cci.20210320:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download
        fxdiv/cci.20200417:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download
        ms-gsl/4.0.0:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download
        nlohmann_json/3.11.2:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download
        nsync/1.25.0:b911f48570f9bb2902d9e83b2b9ebf9d376c8c56 - Download
        onnxruntime/1.14.1:a308271050c07826fe64296a15c9428d4bc734f5 - Build
        protobuf/3.21.9:be0ed5ec3b18a82733ab6330b9326d2e52db314b - Missing
        psimd/cci.20200517:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download
        pthreadpool/cci.20210218:230d0568dc589260c1341c574b7f0317ebdabdd9 - Download
        pybind11/2.10.1:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download
        re2/20230201:b911f48570f9bb2902d9e83b2b9ebf9d376c8c56 - Download
        safeint/3.24:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9 - Download
        xnnpack/cci.20220801:8db574757f47eec81c5b770ac979e908134c42dd - Download
        zlib/1.2.13:6af9cc7cb931c5ad942174fd7838eb655717c709 - Download
    Build requirements
        benchmark/1.7.1 from 'conan-center' - Downloaded
        gtest/1.13.0 from 'conan-center' - Downloaded
    Build requirements packages
        benchmark/1.7.1:5ec0d92690b5eb14475279e2f5fcb8678ecbca46 - Download
        gtest/1.13.0:7320405f83ec32d8556b524cdda87ee295bb7b84 - Download
    
    Installing (downloading, building) binaries...
    
    ERROR: Missing binary: date/3.0.1:6d7f427b0a49d9e765b3b743d71913e4724553e0
    ERROR: Missing binary: protobuf/3.21.9:be0ed5ec3b18a82733ab6330b9326d2e52db314b
    date/3.0.1: WARN: Can't find a 'date/3.0.1' package for the specified settings, options and dependencies:
    - Settings: arch=x86_64, build_type=Release, compiler=gcc, compiler.libcxx=libstdc++11, compiler.version=9, os=Linux
    - Options: fPIC=True, header_only=False, shared=False, use_system_tz_db=True, use_tz_db_in_dot=False
    - Dependencies: 
    - Requirements: 
    - Package ID: 6d7f427b0a49d9e765b3b743d71913e4724553e0
    
    ERROR: Missing prebuilt package for 'date/3.0.1', 'protobuf/3.21.9'
    Use 'conan search date/3.0.1@ --table=table.html -r=remote' and open the table.html file to see available packages
    Or try to build locally from sources with '--build=date --build=protobuf'
    
    More Info at 'https://docs.conan.io/en/latest/faq/troubleshooting.html#error-missing-prebuilt-package'
    

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 (informative, not required for merge) ❌

Note: Conan v2 builds are informative and they are not required for the PR to be merged.

The v2 pipeline failed. Please, review the errors and note this will be required for pull requests to be merged in the near future.

See details:

Failure in build 2 (a7fed5e4aa7a0190d34eb96d2b958abe6d836107):

  • onnxruntime/1.14.1@:
    Error running command conan graph info --requires onnxruntime/1.14.1@#5a94d6f93619175cefa4005c0c99dcb4 -f json -pr:h /home/conan/w/prod-v2_cci_PR-16842/2/37b4caa2-bbc4-4aa1-a2da-e63fb6bbc5f9/profile_linux_11_libstdcpp11_gnu17_gcc_release_64.-shared-False.txt -pr:b /home/conan/w/prod-v2_cci_PR-16842/2/37b4caa2-bbc4-4aa1-a2da-e63fb6bbc5f9/profile_linux_11_libstdcpp11_gnu17_gcc_release_64.-shared-False.txt:
    ======== Computing dependency graph ========
    ERROR: onnxruntime/1.14.1: Error in requirements() method, line 76
    	self.requires("cxxopts/3.0.0", private=True)
    	TypeError: __init__() got an unexpected keyword argument 'private'
    

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.

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.

2 participants