Comments (7)
I've got this problem on RHEL8.
- It works after downgrading samba to
4.17.5-3
- It also works on samba
4.18.6-3
when restricting thepasswd
entry in/etc/nsswitch.conf
to justfiles
.
from pyenv.
Looks like you have compiler-affecting envvars set with shell special characters (like newlines) that mess up the command lines.
configure:5108: checking whether the C compiler works
configure:5130: gcc -I/mnt/storage/home/schmeing/.pyenv/versions/3.12.1/include -L/mnt/storage/home/schmeing/.pyenv/versions/3.12.1/lib -Wl,-rpath,/mnt/storage/home/schmeing/.pyenv/versions/3.12.1/lib conftest.c -L/mnt/storage/home/schmeing/.pyenv/versions/3.12.1/lib -Wl,-rpath,/mnt/storage/home/schmeing/.pyenv/versions/3.12.1/lib >&5
configure:5134: $? = 1
configure:5174: result: no
configure: failed program was:
configure:5179: error: in `/mnt/storage/home/schmeing/src/python-build.20240205143045.381288/Python-3.12.1':
configure:5181: error: C compiler cannot create executables
See `config.log' for more details
from pyenv.
Hi,
I'm a co-worker with the same problem and I doubt it's an environmental variable. Since running the ./configure script with the same arguments from the same shell works fine it looks something is different in the invocation of the ./configure script, which makes our python build fail.
I'm concentrating on the "bad file descriptor" error and quickly made a patch which modifies the configure script to show it's file descriptors right at the beginning by adding ls -l /proc/$$/fd
. If I run it through a shell directly it shows
lrwx------ 1 pytest test 64 6. Feb 08:20 0 -> /dev/pts/0
lrwx------ 1 pytest test 64 6. Feb 08:20 1 -> /dev/pts/0
lrwx------ 1 pytest test 64 6. Feb 08:20 2 -> /dev/pts/0
lr-x------ 1 pytest test 64 6. Feb 08:20 255 -> /tmp/python-build.20240206081830.419504/Python-3.10.13/configure
while running it through pyenv gives me
lr-x------ 1 pytest test 64 6. Feb 08:30 0 -> pipe:[1211642]
lrwx------ 1 pytest test 64 6. Feb 08:30 1 -> /tmp/python-build.20240206083036.421464.log
lrwx------ 1 pytest test 64 6. Feb 08:30 2 -> /tmp/python-build.20240206083036.421464.log
lr-x------ 1 pytest test 64 6. Feb 08:30 255 -> /tmp/python-build.20240206083036.421464/Python-3.10.13/configure
lrwx------ 1 pytest test 64 6. Feb 08:30 3 -> /dev/pts/0
lrwx------ 1 pytest test 64 6. Feb 08:30 4 -> /tmp/python-build.20240206083036.421464.log
Marius
from pyenv.
I'm concentrating on the "bad file descriptor" error and quickly made a patch which modifies the configure script to show it's file descriptors
That should help!
Descriptor 5 is supposed to point to config.log
. Something probably goes wrong while opening it.
Seeing descriptors before and after the code line on the link should help to understand what's happening. As should adding set -x
to configure
.
So far, this seems to be something unconnected to Pyenv's logic -- something like system permissions and/or resource limits.
from pyenv.
https://bugzilla.samba.org/show_bug.cgi?id=15464 looks terribly suspicious. Should be fixed in samba-4.18.7 and samba-4.19.1.
from pyenv.
I've got this problem on RHEL9, but Im not really in a position to downgrade samba.
Is there another workaround?
from pyenv.
I've got this problem on RHEL9, but Im not really in a position to downgrade samba.
Is there another workaround?
Build the codebase with the fix and UPgrade it?
from pyenv.
Related Issues (20)
- pyenv uninstall fails with version that is listed by pyenv version HOT 6
- PyEnv should offer a "latest" tag HOT 3
- Stuck while installing Python 3.12.2 using pyenv on WSL2 HOT 3
- `pip install` behaves differently from `python -m pip install`
- Better quickstart guide/opening picture HOT 8
- pyenv macOS `No module named '_curses'` (bogus header files in `/usr/local/include` and MATLAB's `ldd` disrupting `setup.py`) HOT 4
- Add /usr/etc/pyenv.d as additional directory for hooks HOT 5
- Unable to include tkinter in python 3.12.5 (or 3.11.9) on MacOS Sonoma HOT 5
- Compilation error while installing Python: "ModuleNotFoundError: No module named '_curses', 'readline' and '_sqlite3'" HOT 1
- “ld: symbol(s) not found for architecture x86_64” when installing 3.14t-dev over a previous snapshot HOT 8
- docs(style): Use `--verbose` flag with optimized CPython build instructions
- The auto-resolution of latest versions feature doesn't work with `python-` prefixes (eg `python-3.12`) HOT 9
- python-build never seems to finish when using linuxbrew: "undefined reference to `pthread_key_delete@GLIBC_2.34" under Ubuntu 20.04 HOT 11
- Python 3.9.20 checksum mismatch HOT 1
- CI: check the tgz version
- pyenv install 3.11.10 failed,please help HOT 2
- Document "python-" prefix
- Missing the ncurses lib? Missing the GNU readline lib? Missing the OpenSSL lib? despite having installed dependencies using homebrew, and python-build says using those dependencies from homebrew.
- Cannot install Python 3.10.12 under CLT for XCode 16, but can install under CLT for XCode 15
- Confusion about the post-installation on zsh
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.