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)
- BUILD FAILED with or without using brew on WSL2 HOT 3
- Rehashing is not applied after pip install in venv
- pyenv init slows down the shell startup a bunch (by about ~100 ms!) HOT 3
- Python 3.12.2 support HOT 1
- VSCode Jupyter not working with Pyenv: solution
- pyenv fails to install Python 3.12.1/3.12.2 on Raspberry Pi Zero 2W running Bullseye Lite 64-Bit HOT 5
- "pyenv: python3.11: command not found" despite having selected a global version HOT 5
- Add PACKAGE_LDFLAGS to python-build
- Installing Pyenv on Ubuntu 20.04 (Azure ML instance) fails HOT 4
- `_curses` fails to build on Ubuntu 22: "error: implicit declaration of function ‘setcchar’; did you mean ‘getwchar’?" HOT 3
- ginstall: cannot stat 'Modules/readline.cpython-312-darwin.so': No such file or directory HOT 4
- [Workaround] Debian/Ubuntu - TKInter module fails to build even if tk-dev is installed HOT 1
- New release? (2.3.37) HOT 4
- Anaconda 2024.02-1
- Build failed at interpreteridobject.c:109:40 (macOS / arm64 / clang) HOT 2
- persistent SSL_get_peer_certificate when building Python 2.7 HOT 9
- running a python script in a pyenv environment with sudo or withing a systemd service HOT 2
- Custom manual installation within a dedicated 'build' directory, in a proot-distro alias of Debian chroot, in a Termux host environment: require `make install` instructions, post-successful BAT test, and successful custom make HOT 1
- PyPy 7.3.16? HOT 4
- /usr/bin/env: ‘bash\r’: Permission denied HOT 3
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.