Summary: | dev-python/cython-3.0.8 fails to compile on MUSL+LTO | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Python Gentoo Team <python> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | sam |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build log
stacktrace |
dmesg reports: [Fri Feb 23 09:51:31 2024] python3.10[23773]: segfault at 7f2adce8dfd0 ip 00007f2ade263526 sp 00007f2adce8dfc0 error 6 in libpython3.10.so.1.0[7f2ade25d000+1d8000] likely on CPU 2 (core 0, socket 0) [Fri Feb 23 09:51:31 2024] Code: ec 38 01 00 00 48 85 ff 0f 84 be 75 00 00 8b 47 20 48 89 f5 48 8b 77 10 49 89 fc 48 c7 44 24 78 00 00 00 00 41 89 d5 83 c0 01 <48> 89 74 24 10 89 47 20 3b 46 40 0f 8f 21 06 00 00 49 8b 54 24 30 Created attachment 886134 [details]
stacktrace
I can get it working by compiling python with LDFLAGS="${LDFLAGS} -Wl,-z,stack-size=2097152" as suggested by sam.
|
Created attachment 885803 [details] build log I'm setting up a new environment with speed in mind. I'm using musl + lto and I have disabled all (security) flags that add slowness (see CFLAGS from emerge --info) cython fails without a particular reason, attached build log and emerge --info