Skip to content

[CI][C++] We can't use the simdjson package in Alpine Linux #50585

Closed

Description

@kou

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

The simdjson package in Alpine Linux has a problem in its CMake package: https://gitlab.alpinelinux.org/alpine/aports/-/work_items/18353

We can use libsimdjson.a but can't use libsimdjson.so.

We can use libsimdjson.a but we can't use it with our .so because libsimdjson.a isn't built with -fPIC:

https://github.com/apache/arrow/actions/runs/29871041625/job/88770995837?pr=50583#step:6:3619

/usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libsimdjson.a(simdjson.cpp.o): warning: relocation against `_ZSt7nothrow' in read-only section `.text._ZN8simdjson7haswell25dom_parser_implementation12set_capacityEm[_ZN8simdjson7haswell25dom_parser_implementation12set_capacityEm]'
/usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: /usr/lib/libsimdjson.a(simdjson.cpp.o): relocation R_X86_64_PC32 against symbol `_ZSt7nothrow' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/../../../../x86_64-alpine-linux-musl/bin/ld: final link failed: bad value

Component(s)

C++, Continuous Integration

Activity

  1. added a commit that references this issue on Jul 22, 2026
  2. added a commit that references this issue on Jul 22, 2026
  3. added this to the 26.0.0 milestone on Jul 22, 2026
  4. kou commented on Jul 22, 2026

    @kou
    MemberAuthor

    Issue resolved by pull request 50586
    #50586

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

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions