https://bugs.llvm.org/show_bug.cgi?id=40426

            Bug ID: 40426
           Summary: Go bindings fail to compile on 32-bit ARM
           Product: new-bugs
           Version: 8.0
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: aykevanlaet...@gmail.com
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org

The Go bindings for LLVM fail to compile on a 32-bit ARM system (Raspberry Pi 3
with 32-bit Linux kernel).
On this system, the Go compiler (version 1.11) disallows [1 << 30] with an
error like the following:

    type [1073741824]_Ctype_uint larger than address space

The number of indices should never be this big anyway so can be lowered to (for
example) 1 << 16, even 1 << 8 is probably more than enough for all use cases
(it's the number of indices, not the range of them).

Note: I'm afraid I introduced this bug myself in
https://reviews.llvm.org/D53883. I can write a fix if needed, even though
fixing it is trivial.
I marked it as release-blocker as it is a clear regression, please set it as a
normal bug if that is wrong.


Offending line:
https://github.com/llvm-mirror/llvm/commit/2c000da033ca03bf8ac5aa1c1b8a5fd5bcc5ecf5#diff-bc833bc845e04ff2763e528b30c5c900R1266

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to