google / google/or-tools

pywraplp broken on Linux void musl

Open
#4,736 5 comments 0 reactions 1 assignee Claimed by @Mizux View on GitHub
Bug Help Needed Lang: Python OS: Linux
Dominant language
C++
Stars
14.1k
Forks
2.5k
Avg merge
8h 39m
Merged PRs (30d)
72

Description

**What version of OR-Tools and what language are you using?**
Version: 9.14 (`ortools-9.14.6206-cp313-cp313-musllinux_1_2_x86_64.whl`)
Language: Python

**Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)**
N/A

**What operating system (Linux, Windows, ...) and version?**
Void Linux x86_64-musl

**What did you do?**
Steps to reproduce the behavior:

1. `pip install --ortools==9.14.6206`
2. `python`
3. `>>> from ortools.linear_solver import pywraplp`

**What did you expect to see**

Successful module importation

**What did you see instead?**

The following protobuf error:

```
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1752892068.348568 24377 descriptor_database.cc:595] Invalid file descriptor data passed to EncodedDescriptorDatabase::Add().
F0000 00:00:1752892068.348612 24377 descriptor.cc:2519] Check failed: GeneratedDatabase()->Add(encoded_file_descriptor, size)
*** Check failure stack trace: ***
Aborted
```

**Anything else we should know about your project / environment**

- The problem doesn't occur when `ortools==9.12.4544` is used
- The problem doesn't occur on a glibc Void Linux chroot (`ortools-9.14.6206-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl`)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.