homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rdbisme
Recipients ned.deily, rdbisme, ronaldoussoren
Date 2020年04月12日.11:04:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1586689461.86.0.934526151918.issue40261@roundup.psfhosted.org>
In-reply-to
Content
This problem is driving me crazy. I'm working with a library (python-for-android) that builds python during a build process. 
Now, during this process, the classical workflow with `./configure` and `make` is being called from a subprocess. To try to isolate the issue, I call `make` to build Python from a file, let's call it `make.py`, in the source tree, where I simply do (after running `./configure`, manually or from a subprocess):
```
import subprocess; 
subprocess.run(["make", "-j8"])
```
I get the following error: 
```
/opt/local/bin/ranlib: file: libpython3.8.a(dynamic_annotations.o) has no symbols
/opt/local/bin/ranlib: file: libpython3.8.a(pymath.o) has no symbols
gcc -Wl,-stack_size,1000000 -framework CoreFoundation -o python.exe Programs/python.o libpython3.8.a -ldl -framework CoreFoundation
gcc -Wl,-stack_size,1000000 -framework CoreFoundation -o Programs/_testembed Programs/_testembed.o libpython3.8.a -ldl -framework CoreFoundation
./python.exe -E -S -m sysconfig --generate-posix-vars ;\
 if test $? -ne 0 ; then \
 echo "generate-posix-vars failed" ; \
 rm -f ./pybuilddir.txt ; \
 exit 1 ; \
 fi
 CC='gcc' LDSHARED='gcc -bundle -undefined dynamic_lookup ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall' _TCLTK_INCLUDES='' _TCLTK_LIBS='' ./python.exe -E ./setup.py build
```
Is this a bug of my OS, my env configuration, venv/virtualenv, Python makefile or, most probably, myself? 
I attached the log files from the following runs: 
- make from the shell without virtualenv (`make.log`)
- make from shell within virtualenv (`make.venv.log`)
- make from python subprocess without virtualenv (`make.py.log`)
- make from python subprocess within a virtualenv creted with pew (`make.py.venv.log)
- make from python subprocess within a virtualenv created with venv (`make.py.venv2.log`)
My system details:
macOS 10.15.4
Steps to reproduce: 
1. Download Python-3.8.2
2. Extract the tgz
3. Run ./configure
4. cat `make.py` in the source tree where `make.py` is:
```
import subprocess
subprocess.run(["env"])
subprocess.run(["make", "-j8"])
```
5. Run python make.py
History
Date User Action Args
2020年04月12日 11:04:21rdbismesetrecipients: + rdbisme, ronaldoussoren, ned.deily
2020年04月12日 11:04:21rdbismesetmessageid: <1586689461.86.0.934526151918.issue40261@roundup.psfhosted.org>
2020年04月12日 11:04:21rdbismelinkissue40261 messages
2020年04月12日 11:04:21rdbismecreate

AltStyle によって変換されたページ (->オリジナル) /