Comments (7)
./Modules/fcntlmodule.c:632:33: error: ‘I_PUSH’ undeclared (first use in this function)
632 | if (PyModule_AddIntMacro(m, I_PUSH)) return -1;
| ^~~~~~
Your stropts.h
(where this macro is supposed to be defined) is broken or bogus.
Probably the latter since at my machine (Ubuntu 22.04), it's missing altogether and online search shows that it's not supposed to be present in Linux.
Check if you have such a file outside of the compiler's toolchain but on the compiler's search path (e.g. in /usr/local
).
from pyenv.
./Modules/fcntlmodule.c:632:33: error: ‘I_PUSH’ undeclared (first use in this function) 632 | if (PyModule_AddIntMacro(m, I_PUSH)) return -1; | ^~~~~~
Your
stropts.h
(where this macro is supposed to be defined) is broken or bogus.Probably the latter since at my machine (Ubuntu 22.04), it's missing altogether and online search shows that it's not supposed to be present in Linux.
Check if you have such a file outside of the compiler's toolchain but on the compiler's search path (e.g. in
/usr/local
).
I find it. but /usr/include/stropts.h is an empty file, with 0 size.
from pyenv.
I find it. but /usr/include/stropts.h is an empty file, with 0 size.
Delete it.
from pyenv.
I find it. but /usr/include/stropts.h is an empty file, with 0 size.
Delete it.
Just in case, you can use dpkg -S <full path>
to check if this file belongs to any package (see https://www.cyberciti.biz/faq/equivalent-of-rpm-qf-command/).
from pyenv.
hgc@hgc-H410M-H-V3:~$ dpkg -S /usr/include/stropts.h
dpkg-query: no path found matching pattern /usr/include/stropts.h
hgc@hgc-H410M-H-V3:~$
from pyenv.
hgc@hgc-H410M-H-V3:~$ dpkg -S /usr/include/stropts.h dpkg-query: no path found matching pattern /usr/include/stropts.h hgc@hgc-H410M-H-V3:~$
As I thought, looks like an accidentally created bogus file, should be safe to delete.
from pyenv.
hgc@hgc-H410M-H-V3:~$ dpkg -S /usr/include/stropts.h dpkg-query: no path found matching pattern /usr/include/stropts.h hgc@hgc-H410M-H-V3:~$
As I thought, looks like an accidentally created bogus file, should be safe to delete.
yes, you are right.
from pyenv.
Related Issues (20)
- Python 3.12 cannon install on arch linux, please advise: "/usr/include/asm/sigcontext.h:77:2: error: unknown type name '__uint128_t'" HOT 10
- Python 3.12.3 not available in install list HOT 1
- latest python version not listed on Pyenv for mac os HOT 5
- Documentation improvement suggestion: Add a brief note about how to install PyPy, or link to a list of available Python distributions from the Readme HOT 5
- Trivy scan errors with pyenv installation in Dockerfile HOT 4
- support mainland-china network env HOT 10
- Python-build not in sync with cpython releases HOT 2
- Feature request: when uninstalling python version the patch version could be not specified HOT 7
- Python 2.7.18 install fails on Mac OS X Sonoma (14.5) HOT 11
- Adapt to executable naming in the free-threaded build HOT 4
- pyenv versions not working HOT 1
- Long running instance of pyenv-exec sed HOT 3
- arch -x86_64 pyenv install 3.8.5 errors when I run the command HOT 1
- Please add support for authenticating with the address specified in the environment variable PYTHON_BUILD_MIRROR_URL HOT 4
- Consider support for uv in `pip-rehash` HOT 5
- Automate making releases after a version is added
- Cannot build a thing on a new M3: "ld: library 'System' not found" HOT 17
- Add a nicer way to select a free-threaded build HOT 4
- pyenv install 3.9.16 not working on MBP M3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyenv.