Re: pg_crc32c_armv8.c:35:9: error: implicit declaration of function '__crc32cb' is invalid in C99

From: Markur Sens <markursens(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: pg_crc32c_armv8.c:35:9: error: implicit declaration of function '__crc32cb' is invalid in C99
Date: 2023-02-20 16:05:40
Message-ID: 3EAA2A7F-1453-424C-9998-5B5AFD9F10F0@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On 20 Feb 2023, at 5:47 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> Markur Sens <markursens(at)gmail(dot)com <mailto:markursens(at)gmail(dot)com>> writes:
>> I suddenly (?, IIRC a few days ago this worked fine) started getting the following error while trying to following while building from source on Apple M1
>> This is on REL_13_9 but happens to all other releases too.
>
>> In file included from pg_crc32c_armv8.c:17:
>> /Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/arm_acle.h:14:2: error: "ACLE intrinsics support not enabled."
>> #error "ACLE intrinsics support not enabled."
>> ^
>> pg_crc32c_armv8.c:35:9: error: implicit declaration of function '__crc32cb' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
>> crc = __crc32cb(crc, *p);
>
> Hmph. Not seeing that here, on either my M1 laptop or sifaka's M1-mini
> host (both running up-to-date Ventura). Nobody else has reported it
> either. What configure options are you using?

The output above is from plain ./configure

> Any non-default
> software involved (e.g. from MacPorts or Homebrew)?

Most of the packages involved are installed through Homebrew , but I don’t see smoothing special

>
> regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dean Rasheed 2023-02-20 16:18:19 Assert failure with MERGE into partitioned table with RLS
Previous Message Dean Rasheed 2023-02-20 15:56:27 Incorrect command tag row count for MERGE with a cross-partition update