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

[question] libavif package is not availabe for arm #13001

Closed
HappySeaFox opened this issue Sep 18, 2022 · 2 comments · Fixed by #13007
Closed

[question] libavif package is not availabe for arm #13001

HappySeaFox opened this issue Sep 18, 2022 · 2 comments · Fixed by #13007
Labels
question Further information is requested

Comments

@HappySeaFox
Copy link
Contributor

HappySeaFox commented Sep 18, 2022

Hi!

libavif package is not available for arm:

libavif/0.9.3: WARN: Can't find a 'libavif/0.9.3' package for the specified settings, options and dependencies:
- Settings: arch=armv8, build_type=Release, compiler=apple-clang, compiler.version=12.0, os=Macos
- Options: fPIC=True, shared=False, with_decoder=dav1d, dav1d:assembly=True, dav1d:bit_depth=all, dav1d:fPIC=True, dav1d:shared=False, dav1d:with_tools=True, libaom-av1:fPIC=True, libaom-av1:shared=False, libjpeg:fPIC=True, libjpeg:shared=False, libyuv:fPIC=True, libyuv:shared=False, libyuv:with_jpeg=libjpeg
- Dependencies: libaom-av1/3.1.2, libyuv/cci.20201106, dav1d/0.9.1
- Requirements: dav1d/0.9.1, libaom-av1/3.Y.Z, libyuv/cci.20201106
- Package ID: 17961342dca26aa438063ee09e8a8555babdeda7

I'm trying to update the recipe for SAIL (#13000) which depends on libavif and fails to be built by the CI on arm because of that.

Q:

  1. Why does libavif have no arm packages?
  2. How can I address this in my recipe?
@HappySeaFox HappySeaFox added the question Further information is requested label Sep 18, 2022
@HappySeaFox
Copy link
Contributor Author

HappySeaFox commented Sep 19, 2022

Well, it seems that libavif depends on dav1d which doesn't support cross-compilation:

    # dav1d conanfile
    def validate(self):
        if hasattr(self, "settings_build") and tools.cross_building(self):
            raise ConanInvalidConfiguration("Cross-building not implemented")

This is why there are no arm packages for dav1d and obviously for libavif.

Is there a way to handle this automatically in my recipe? Automatically = mark the current recipe configuration as invalid if one of its dependencies is invalid.

@SpaceIm
Copy link
Contributor

SpaceIm commented Sep 19, 2022

dav1d recipe support cross-compilation since #12300, but last time libavif has been built by c3i it was not the case, thus these missing binaries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants