Opened 2 months ago

Last modified 3 hours ago

#70345 new defect

ICE while building google/highway with Apple Clang >= 16 and LLVM Clang >= 16

Reported by: thelastlin (Xavier Hsinyuan) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: Cc: i0ntempest, aslakr (Aslak Raanes)
Port: highway

Description

Reproduce steps:

  1. Install Xcode 16.0 beta 3 (16A5202i) from Apple;
  2. Install port clang-16, clang-17, clang-18;
  3. Run port build highway, and got Crash Report from clang.
  4. Change compiler, rebuild highway, crash again.

Workaround:

  1. Use port clang-15, or
  2. Disable dynamic dispatch (upstream PR) entirely or just for clang-16 and later before Apple (or LLVM) fixes the ICE.

Change History (5)

comment:1 in reply to:  description ; Changed 2 months ago by jmroot (Joshua Root)

Replying to thelastlin:

  1. Install port clang-16, clang-17, clang-18;

From binaries, or build from source with the beta toolchain?

comment:2 in reply to:  1 Changed 2 months ago by thelastlin (Xavier Hsinyuan)

Replying to jmroot:

From binaries, or build from source with the beta toolchain?

Build from source with the beta toolchain.

Notice that this issue can be reproduced on clang-17(amd64) from LLVM's Debian/Ubuntu Packages Repo, with preprocessed source and associated run script generated by crash reproducer.

comment:3 Changed 32 hours ago by i0ntempest

There's a patch here: https://github.com/google/highway/issues/2317 that disables SVE compilation and fixes this. SVE isn't supported on ASi for now anyways.

Maybe we can take that patch before they have a new version?

comment:4 Changed 32 hours ago by i0ntempest

Cc: i0ntempest added

comment:5 Changed 3 hours ago by aslakr (Aslak Raanes)

Cc: aslakr added
Note: See TracTickets for help on using tickets.