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

Can't build on Asahi Fedora Remix (m1 pro) #1353

Open
1 task done
sergeycherepanov opened this issue Jun 11, 2024 · 0 comments
Open
1 task done

Can't build on Asahi Fedora Remix (m1 pro) #1353

sergeycherepanov opened this issue Jun 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sergeycherepanov
Copy link

sergeycherepanov commented Jun 11, 2024

Duplicates

  • I have searched the existing issues

Current behavior 😯

Cant build due to issue related to crc32 implementation in Apple Silicon

In file included from /home/scherepanov/.cache/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/libz-ng-sys-1.1.9/src/zlib-ng/arch/arm/crc32_acle.c:10:
  /usr/lib/gcc/aarch64-redhat-linux/14/include/arm_acle.h: In function ‘crc32_acle’:
  /usr/lib/gcc/aarch64-redhat-linux/14/include/arm_acle.h:199:1: error: inlining failed in call to ‘always_inline’ ‘__crc32b’: target specific option mismatch
    199 | __crc32b (uint32_t __a, uint8_t __b)
        | ^~~~~~~~
  /home/scherepanov/.cache/Homebrew/cargo_cache/registry/src/index.crates.io-6f17d22bba15001f/libz-ng-sys-1.1.9/src/zlib-ng/arch/arm/crc32_acle.c:21:13: note: called from here
     21 |         c = __crc32b(c, *buf++);
        |             ^~~~~~~~~~~~~~~~~~~
  /usr/lib/gcc/aarch64-redhat-linux/14/include/arm_acle.h:234:1: error: inlining failed in call to ‘always_inline’ ‘__crc32h’: target specific option mismatch
    234 | __crc32h (uint32_t __a, uint16_t __b)
        | ^~~~~~~~

Expected behavior 🤔

The binary should compile

Steps to reproduce 🕹

Install brew for arm linux by following guide https://github.com/huyz/brew-for-linux-arm on asahi remix

run:

brew install onefetch

Additional context/Screenshots 🔦

No response

Possible Solution 💡

I fixed the similar issue in the Postgress just by forcing to use software implementation of CRC32:

ENV.append "USE_SLICING_BY_8_CRC32C", "1"

@sergeycherepanov sergeycherepanov added the bug Something isn't working label Jun 11, 2024
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

1 participant