[Bug 272164] devel/llvm-devel: Build broken on aarch64

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 23 Jun 2023 13:55:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=272164

            Bug ID: 272164
           Summary: devel/llvm-devel: Build broken on aarch64
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: brooks@FreeBSD.org
          Reporter: jfc@mit.edu
             Flags: maintainer-feedback?(brooks@FreeBSD.org)
          Assignee: brooks@FreeBSD.org

On 64 bit ARM llvm-devel fails to build with a linker error in the ubsan
library:
```
ld: error:
projects/compiler-rt/lib/ubsan/CMakeFiles/RTUbsan_standalone.aarch64.dir/ubsan_signals_standalone.cpp.o:(function
__ubsan::InitializeDeadlySignals():
.text._ZN7__ubsan23InitializeDeadlySignalsEv+0x78): improper alignment for
relocation R_AARCH64_LD64_GOT_LO12_NC: 0x5F5FC is not aligned to 8 bytes
```

I reported this at https://github.com/llvm/llvm-project/issues/63418.  A
complicated use of inline assembly results in a misaligned symbol, or use of an
8 byte load on a 4 byte object, I can't tell what the code is supposed to do.

The build of LLVM can be fixed by disabling compiler-rt but it probably won't
get packaged right as a port.

-- 
You are receiving this mail because:
You are the assignee for the bug.