Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 949710 - dev-lang/pypy-3.11.7.3.18_p1: Generating CFFI modules fails
Summary: dev-lang/pypy-3.11.7.3.18_p1: Generating CFFI modules fails
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-13 16:06 UTC by Andy
Modified: 2025-02-16 03:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,5.92 KB, text/plain)
2025-02-13 16:07 UTC, Andy
Details
build.log (build.log,9.34 KB, application/octet-stream)
2025-02-13 16:08 UTC, Andy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andy 2025-02-13 16:06:35 UTC
I run a llvm profile on my home server and wanted to switch to pypy.
Emerge breaks when generating CFFI modules, during the first module pypy_util already.
I copied the build to a local overlay and put a die command before the actual generation process. When running the commands manually, it generates without error, in the ebuild it always fails.

Reproducible: Always

Steps to Reproduce:
1. emerge pypy
Actual Results:  
Breaks with error message ./_pypy_util_cffi_inner.o: file not recognized: file format not recognized

Expected Results:  
Generating all CFFI modules properly
Comment 1 Andy 2025-02-13 16:07:52 UTC
Created attachment 918893 [details]
emerge --info
Comment 2 Andy 2025-02-13 16:08:04 UTC
Created attachment 918894 [details]
build.log
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-13 17:38:38 UTC
When you run it manually, CC and so on probably isn't set. You can try sourcing `/var/tmp/portage/dev-lang/pypy-3.11.7.3.18_p1/temp/environment` in the shell and I bet it'll fail, then you can try narrow down what is making it fail.
Comment 4 Andy 2025-02-14 01:10:08 UTC
You were so right, setting me on the correct course to continue looking.
Eventually, it turned out my CLFAGS were causing the issue, more specific `-flto=thin`

I suggest changing the ebuild to filter out unsupported CFLAGS.