[ https://issues.apache.org/jira/browse/ARROW-12587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17337485#comment-17337485 ]
Ian Cook edited comment on ARROW-12587 at 4/30/21, 8:45 PM: ------------------------------------------------------------ Setting {{-DARROW_RUNTIME_SIMD_LEVEL=AVX2}} in the Homebrew formula ({{apache-arrow.rb}}) stops this error As a band-aid fix, I can add this to the formula: {code:java} args << "-DARROW_RUNTIME_SIMD_LEVEL=AVX2" if MacOS.version == :big_sur {code} or to ensure it will work with older Macs that don't support AVX2 but can still run Big Sur (e.g. older Mac Pros) maybe we should set it to {{SSE4_2}}. was (Author: icook): Setting {{-DARROW_RUNTIME_SIMD_LEVEL=AVX2}} in the Homebrew formula ({{apache-arrow.rb}}) stops this error As a band-aid fix, I can add this to the formula: {code:java} args << "-DARROW_RUNTIME_SIMD_LEVEL=AVX2" if MacOS.version == :big_sur {code} > [R][C++][Packaging] Illegal opcode error on aggregate Array/ChunkedArray of > integer > ----------------------------------------------------------------------------------- > > Key: ARROW-12587 > URL: https://issues.apache.org/jira/browse/ARROW-12587 > Project: Apache Arrow > Issue Type: Bug > Components: C++, Packaging, R > Affects Versions: 4.0.0 > Reporter: Ian Cook > Assignee: Ian Cook > Priority: Major > > I see this error with the 4.0.0 version of the R package with the C++ library > from Homebrew: > {code:java} > sum(Array$create(c(1L, 2L))) > ## *** caught illegal operation *** > ## address 0x109f1b45c, cause 'illegal opcode'{code} > This is on an Intel Mac running Big Sur 11.3 with AVX2 support but no AVX512 > support. > This happens regardless of whether I build the Homebrew formula locally or > install the pre-built bottle. -- This message was sent by Atlassian Jira (v8.3.4#803005)