Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion repos/spack_repo/builtin/packages/arrow/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ class Arrow(CMakePackage, CudaPackage):
variant("ipc", default=True, description="Build the Arrow IPC extensions")
variant("jemalloc", default=False, description="Build the Arrow jemalloc-based allocator")
variant("lz4", default=False, description="Build support for lz4 compression")
variant(
"mimalloc",
default=True,
description="Build the Arrow mimalloc-based allocator",
)
variant("orc", default=False, description="Build integration with Apache ORC")
variant("parquet", default=False, description="Build Parquet interface")
variant("python", default=False, description="Build Python interface")
Expand Down Expand Up @@ -174,8 +179,14 @@ def cmake_args(self):
args.append(self.define("ARROW_USE_SSE", "ON"))

# https://github.com/apache/arrow/issues/47790
if self.spec.satisfies("%oneapi@2025:"):
# mimalloc is always vendored (no system lookup); Arrow downloads its source
# via FetchContent at build time, which fails on air-gapped compute nodes.
# The ~mimalloc variant allows disabling it for such environments.
# Note: oneapi@2025: also has a compiler bug requiring MIMALLOC=OFF regardless.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could a link to the relevant issue or PR be added to this comment?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be one line above (was already there):

apache/arrow#47790

if self.spec.satisfies("%oneapi@2025:") or self.spec.satisfies("~mimalloc"):
args.append(self.define("ARROW_MIMALLOC", "OFF"))
else:
args.append(self.define_from_variant("ARROW_MIMALLOC", "mimalloc"))

args.append(self.define_from_variant("ARROW_COMPUTE", "compute"))
args.append(self.define_from_variant("ARROW_CSV", "csv"))
Expand Down
Loading