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

Fix broken core on darwin #85

Merged
merged 5 commits into from
Dec 7, 2024
Merged

Conversation

omeryusufyagci
Copy link
Owner

@omeryusufyagci omeryusufyagci commented Dec 7, 2024

This PR addresses compatibility issues on Apple Silicon macOS machines when using Docker to emulate x86_64. The issue arose due to the libdf.so being compiled with AVX2 instructions for x86_64, which are apparently not supported by Docker's QEMU-based emulation on these systems. See the related discussion here for details.
Unfortunately, the QEMU limitation is still here, and removing this optimization from the library fixed this issue for us.

Additionally few minor updates to core, to fix a deprecation error with clang and a few other warnings.

This fixes an issue on macOS where the AVX2 insruction set for x86_64
cannot be properly emulated on docker containters on darwinOS.
See: docker/for-mac#6620 for details
The rust lib was compiled without the vectorized optimizations and
this commit updates this file as well as the cmake files/
@omeryusufyagci omeryusufyagci added platform core Media processing component, the core C++ binary. labels Dec 7, 2024
@omeryusufyagci omeryusufyagci merged commit 427a6bc into main Dec 7, 2024
4 checks passed
omeryusufyagci added a commit that referenced this pull request Dec 7, 2024
…86)

This PR fixes #84 by providing a separate release for arm macOS machines.
The underlying problem was determined to be a known (not to us, at the time) limitation of the QEMU-based Docker emulation on these machines.
See: docker/for-mac#6620 for details with similar issues.
This completes the work started by #85.
@omeryusufyagci omeryusufyagci deleted the fix-broken-core-on-darwin branch December 26, 2024 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Media processing component, the core C++ binary. platform
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant