Skip to content

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

Open
@sergeycherepanov

Description

@sergeycherepanov

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions