Skip to content

[R] Install with prebuilt libarrow binary fails at link time when libxml2 is missing #55252

Open

Description

@thisisnic

Describe the bug, including details regarding any error messages, version, and platform.

Since 26.0.0 the prebuilt Linux libarrow binaries have Azure on, so configure adds -lxml2 to the link line:

arrow/r/configure

Lines 366 to 369 in 2c800e6

if arrow_built_with ARROW_AZURE; then
PKG_CFLAGS_FEATURES="$PKG_CFLAGS_FEATURES -DARROW_R_WITH_AZURE"
PKG_LIBS_FEATURES="$PKG_LIBS_FEATURES -lxml2"
fi

The binary pre-check in nixlibs.R only tests for curl and openssl headers, so a machine without libxml2-dev downloads the binary and then fails linking arrow.so with cannot find -lxml2, rather than falling back to a source build. Reported by the r2u maintainer after clean Docker builds of 26.0.0 failed.

SystemRequirements in DESCRIPTION calls libxml2 "(optional)", which is only true for source builds.

Component(s)

R

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions