Opened 12 years ago
Closed 5 years ago
#39044 closed defect (fixed)
python33 @3.3.1: build failure
Reported by: | fabiograetz@… | Owned by: | jyrkiwahlstedt |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.3 |
Keywords: | Cc: | cooljeanius (Eric Gallager), petrrr | |
Port: | python33 |
Description
Hi,
i tried to install python3.3 but the installation failed, I have no idea why.
I use OS 10.7.5 and Xcode Version 4.1
Please help me :)
F
Attachments (2)
Change History (11)
Changed 12 years ago by fabiograetz@…
comment:1 Changed 12 years ago by larryv (Lawrence Velázquez)
Owner: | changed from macports-tickets@… to jwa@… |
---|---|
Port: | python33 added |
Summary: | [python33] [3.3.1] [Processing of port python33 failed] → python33 @3.3.1: build failure |
comment:2 Changed 12 years ago by cooljeanius (Eric Gallager)
Huh, this looks odd: relevant error from the log:
:info:build /usr/bin/llvm-gcc-4.2 -arch x86_64 -arch i386 -isysroot / -L/opt/local/lib -arch x86_64 -arch i386 -framework CoreFoundation Python.framework/Versions/3.3/Python -o python.exe Modules/python.o -lintl -ldl -framework CoreFoundation :info:build /usr/bin/llvm-gcc-4.2 -arch x86_64 -arch i386 -isysroot / -L/opt/local/lib -arch x86_64 -arch i386 -framework CoreFoundation Python.framework/Versions/3.3/Python -o Modules/_testembed Modules/_testembed.o -lintl -ldl -framework CoreFoundation :info:build DYLD_FRAMEWORK_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python33/python33/work/Python-3.3.1: ./python.exe -E -S -m sysconfig --generate-posix-vars :info:build Could not find platform dependent libraries <exec_prefix> :info:build Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] :info:build python.exe(13684) malloc: *** mmap(size=7310873954244194304) failed (error code=12) :info:build *** error: can't allocate region :info:build *** set a breakpoint in malloc_error_break to debug :info:build Fatal Python error: Py_Initialize: can't initialize sys standard streams :info:build Traceback (most recent call last): :info:build File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python33/python33/work/Python-3.3.1/Lib/locale.py", line 17, in <module> :info:build import re :info:build File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python33/python33/work/Python-3.3.1/Lib/re.py", line 124, in <module> :info:build import functools :info:build File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python33/python33/work/Python-3.3.1/Lib/functools.py", line 15, in <module> :info:build from collections import namedtuple :info:build File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python33/python33/work/Python-3.3.1/Lib/collections/__init__.py", line 14, in <module> :info:build import heapq as _heapq :info:build File "<frozen importlib._bootstrap>", line 1564, in _find_and_load :info:build File "<frozen importlib._bootstrap>", line 1531, in _find_and_load_unlocked :info:build File "<frozen importlib._bootstrap>", line 586, in _check_name_wrapper :info:build File "<frozen importlib._bootstrap>", line 1023, in load_module :info:build File "<frozen importlib._bootstrap>", line 1004, in load_module :info:build File "<frozen importlib._bootstrap>", line 562, in module_for_loader_wrapper :info:build File "<frozen importlib._bootstrap>", line 854, in _load_module :info:build File "<frozen importlib._bootstrap>", line 988, in get_code :info:build ValueError: unmarshallable object :info:build make: *** [pybuilddir.txt] Segmentation fault: 11 :info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python33/python33/work/Python-3.3.1' :info:build Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python33/python33/work/Python-3.3.1" && /usr/bin/make -j2 -w all MAKE="/usr/bin/make CC=/usr/bin/llvm-gcc-4.2" :info:build Exit code: 2
Not sure how that happened... OP, could you attach your config.log
, too? It should be in your build directory for this port.
Changed 12 years ago by fabiograetz@…
Attachment: | config.log added |
---|
comment:4 Changed 12 years ago by fabiograetz@…
I attached the requested file. I had the 3.3.1 version installed from http://www.python.org/download/ but I deleted it because I couldn't find out how to install SciPhy without macports and decided to install python3.3 over macports as well. Could it be that some remaining files block the macports installation?
comment:5 Changed 12 years ago by cooljeanius (Eric Gallager)
Actually looking at the OP again, Xcode 4.1 is outdated, please update to Xcode 4.6, make sure your Command-Line Tools are up to date, and then try again.
comment:7 Changed 10 years ago by petrrr
Python 3.3 is now @3.3.5_1. Does this build failure still occur?
comment:8 Changed 10 years ago by ned-deily (Ned Deily)
Judging from the traceback, this could be an another instance of the bootstrap problem in http://bugs.python.org/issue21166. Another possibility might be the use of the llvm-gcc
compiler which upstream python-dev had various problems with apparently producing bad code for Python 3.3+ builds and was blacklisted in favor of either newer versions of clang
or Apple's old gcc-4.2
.
comment:9 Changed 5 years ago by jmroot (Joshua Root)
Resolution: | → fixed |
---|---|
Status: | new → closed |
Presumably fixed by blacklisting llvm-gcc in r127592.
Thanks. In the future, please Cc relevant port maintainers.