Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#29771 closed defect (invalid)

python install error with Xcode prerelease

Reported by: terrydemco@… Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: python Cc: jeremyhu (Jeremy Huddleston Sequoia), justin.holewinski@…, twoboxen@…
Port: python26 python27 ncurses

Description (last modified by ryandesign (Ryan Carsten Schmidt))

when trying to install python27 via MacPorts I get a Status 1 error encountered during processing. I have also attached the main.log.

Here's what I did in the Terminal:

$ sudo port install python27
--->  Computing dependencies for python27
--->  Building python27
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for python27 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27/python27/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>

Attachments (1)

main.log (19.1 KB) - added by terrydemco@… 13 years ago.
error log

Download all attachments as: .zip

Change History (19)

Changed 13 years ago by terrydemco@…

Attachment: main.log added

error log

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)
Owner: changed from macports-tickets@… to jwa@…

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Priority: HighNormal

I see you're getting a segmentation fault, which of course shouldn't happen. Then again, I see you're also on a pre-release of Mac OS X 10.7 Lion, and we can't really help with pre-release Apple software. You could clean and try again and see if that helps; the log you attached was not complete (contained lines that say "Skipping completed"). You could also try with fewer build jobs (e.g. 1 instead of the 8 that MacPorts chose based on the number of cores and amount of installed RAM).

sudo port clean python27
sudo port install python27 build.jobs=1

If that fails again, please attach that main.log.

comment:3 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

I started seeing this recently as well... been trying to narrow it down. It happnes with default variants and macports.conf. I've been investigating it on my Lion machine since it's my powerhorse, but I also see it on my SnowLeopard machine, so it's probably not OS specific ... it may be dependent on the version of XCode.

Eliminating the parallel make does not solve the problem

/bin/sh: line 1: 17484 Segmentation fault: 11  DYLD_FRAMEWORK_PATH=/opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1: CC='/Developer/usr/bin/llvm-gcc-4.2' LDSHARED='/Developer/usr/bin/llvm-gcc-4.2 -L/opt/local/lib -arch x86_64 -bundle -undefined dynamic_lookup -L/opt/local/lib -arch x86_64' OPT='-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes' ./python.exe -E ./setup.py -q --no-user-cfg build
make: *** [sharedmods] Error 139
(gdb) set env DYLD_FRAMEWORK_PATH /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1:
(gdb) set env CC /Developer/usr/bin/llvm-gcc-4.2
(gdb) set env LDSHARED /Developer/usr/bin/llvm-gcc-4.2 -L/opt/local/lib -arch x86_64 -bundle -undefined dynamic_lookup -L/opt/local/lib -arch x86_64
(gdb) set env OPT -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes
(gdb) set args -E ./setup.py -q --no-user-cfg build
(gdb) run
...
(gdb) bt
#0  0x0000000101650e50 in _nc_trim_sgr0 ()
#1  0x0000000101649750 in tgetent ()
#2  0x00000001015d0f7c in _rl_init_terminal_io ()
#3  0x00000001015aea5e in readline_initialize_everything ()
#4  0x00000001015ae8f7 in rl_initialize ()
#5  0x00000001015a4119 in setup_readline [inlined] () at /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/Modules/readline.c:899
#6  0x00000001015a4119 in initreadline () at readline.c:1130
#7  0x00000001000bd42a in _PyImport_LoadDynamicModule (name=0x100256b94 "readline", pathname=0x7fff5fbfdb10 "@ۿ_?", fp=0x1015a3fa0) at importdl.c:53
#8  0x00000001000b9456 in imp_load_dynamic (self=0x7fff5fbffa4b, args=0x7fff5fbffa4b) at import.c:2999
#9  0x00000001000a3f8b in PyEval_EvalFrameEx (f=0x7fff5fbfdcc0, throwflag=1606409408) at ceval.c:4012
#10 0x00000001000a7323 in fast_function (func=0x101314bc0, pp_stack=0x0, n=2, na=23503775, nk=10) at ceval.c:4098
#11 0x00000001000a403d in PyEval_EvalFrameEx (f=0x7fff5fbfde90, throwflag=1606409872) at ceval.c:4033
#12 0x00000001000a71e7 in PyEval_EvalCodeEx (co=0x100643c30, globals=0x0, locals=0x0, args=0x7fff5fbfdf20, argcount=1606410016, kws=0x7fff5fbfdf20, kwcount=0, defs=0x0, defcount=0, closure=0x0) at ceval.c:3252
#13 0x0000000100034beb in function_call (func=0x101313b70, arg=0x7fff5fbfdfb0, kw=0x0) at funcobject.c:526
#14 0x000000010000c521 in PyObject_Call (func=0x10066ed70, arg=0x100661210, kw=0x0) at abstract.c:2529
#15 0x000000010001e1d7 in instancemethod_call (func=0x10066ed70, arg=0x100661210, kw=0x7fff5fbfe230) at classobject.c:2578
#16 0x000000010000c521 in PyObject_Call (func=0x1006ac410, arg=0x100661210, kw=0x0) at abstract.c:2529
#17 0x00000001000a4255 in do_call [inlined] () at /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/Python/ceval.c:4230
#18 0x00000001000a4255 in PyEval_EvalFrameEx (f=0x7fff5fbfe3e0, throwflag=1606411232) at ceval.c:4035
#19 0x00000001000a71e7 in PyEval_EvalCodeEx (co=0x1004771b0, globals=0x0, locals=0x100000000, args=0x7fff5fbfe470, argcount=1606411376, kws=0x7fff5fbfe470, kwcount=0, defs=0x0, defcount=0, closure=0x0) at ceval.c:3252
#20 0x00000001000a7398 in fast_function (func=0x1003e6ca0, pp_stack=0x7fff5fbfe5a8, n=1, na=23503775, nk=10) at ceval.c:4108
#21 0x00000001000a403d in PyEval_EvalFrameEx (f=0x7fff5fbfe640, throwflag=1606411840) at ceval.c:4033
#22 0x00000001000a7323 in fast_function (func=0x1003e0c40, pp_stack=0x0, n=1, na=23503775, nk=10) at ceval.c:4098
#23 0x00000001000a403d in PyEval_EvalFrameEx (f=0x7fff5fbfe810, throwflag=1606412304) at ceval.c:4033
#24 0x00000001000a7323 in fast_function (func=0x1003dfa70, pp_stack=0x0, n=2, na=23503775, nk=10) at ceval.c:4098
#25 0x00000001000a403d in PyEval_EvalFrameEx (f=0x7fff5fbfe9e0, throwflag=1606412768) at ceval.c:4033
#26 0x00000001000a7323 in fast_function (func=0x1003df8b0, pp_stack=0x0, n=2, na=23503775, nk=10) at ceval.c:4098
#27 0x00000001000a403d in PyEval_EvalFrameEx (f=0x7fff5fbfebb0, throwflag=1606413232) at ceval.c:4033
#28 0x00000001000a7323 in fast_function (func=0x1003de6f0, pp_stack=0x0, n=1, na=23503775, nk=10) at ceval.c:4098
#29 0x00000001000a403d in PyEval_EvalFrameEx (f=0x7fff5fbfed80, throwflag=1606413696) at ceval.c:4033
#30 0x00000001000a7323 in fast_function (func=0x1003dcd10, pp_stack=0x0, n=2, na=23503775, nk=10) at ceval.c:4098
#31 0x00000001000a403d in PyEval_EvalFrameEx (f=0x7fff5fbfef50, throwflag=1606414160) at ceval.c:4033
#32 0x00000001000a7323 in fast_function (func=0x1003d9960, pp_stack=0x0, n=1, na=23503775, nk=10) at ceval.c:4098
#33 0x00000001000a403d in PyEval_EvalFrameEx (f=0x7fff5fbff120, throwflag=1606414624) at ceval.c:4033
#34 0x00000001000a71e7 in PyEval_EvalCodeEx (co=0x100681b30, globals=0x0, locals=0x100000000, args=0x7fff5fbff1b0, argcount=1606414768, kws=0x7fff5fbff1b0, kwcount=13, defs=0x0, defcount=0, closure=0x0) at ceval.c:3252
#35 0x00000001000a7398 in fast_function (func=0x1003d6270, pp_stack=0x7fff5fbff2e8, n=26, na=23503775, nk=10) at ceval.c:4108
#36 0x00000001000a403d in PyEval_EvalFrameEx (f=0x7fff5fbff380, throwflag=1606415232) at ceval.c:4033
#37 0x00000001000a7323 in fast_function (func=0x1003d4ee0, pp_stack=0x7fff5fbff4b8, n=0, na=23503775, nk=10) at ceval.c:4098
#38 0x00000001000a403d in PyEval_EvalFrameEx (f=0x7fff5fbff550, throwflag=1606415696) at ceval.c:4033
#39 0x00000001000a71e7 in PyEval_EvalCodeEx (co=0x100477eb0, globals=0x0, locals=0x10000001a, args=0x7fff5fbff5e0, argcount=1606415840, kws=0x7fff5fbff5e0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at ceval.c:3252
#40 0x00000001000a7266 in PyEval_EvalCode (co=0x10037de00, globals=0x1006037d0, locals=0x0) at ceval.c:666
#41 0x00000001000c5704 in run_mod [inlined] () at /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/Python/pythonrun.c:1346
#42 0x00000001000c5704 in PyRun_FileExFlags (fp=0x7fff719c9ee0, filename=0x100477eb0 "\002", start=0, globals=0x1006037d0, locals=0x0, closeit=1, flags=0x7fff5fbff7a0) at pythonrun.c:1332
#43 0x00000001000c69b8 in PyRun_SimpleFileExFlags (fp=0x7fff719c9ee0, filename=0x7fff5fbffa24 "./setup.py", closeit=1606416080, flags=0x7fff5fbff6d0) at pythonrun.c:936
#44 0x00000001000d9a39 in Py_Main (argc=1606416336, argv=0x7fff5fbff7d0) at main.c:599
#45 0x0000000100000f14 in start ()
(gdb) info sharedlibrary
The DYLD shared library state has been initialized from the executable's shared library information.  All symbols should be present, but the addresses of some symbols may move when the program is executed, as DYLD may relocate library load addresses if necessary.
                                                 Requested State Current State
Num Basename                       Type Address         Reason | | Source     
  | |                                 | |                    | | | |          
  1 dyld                              - 0x7fff5fc00000        dyld Y Y /usr/lib/dyld at 0x7fff5fc00000 (offset 0x0) with prefix "__dyld_"
  2 python.exe                        - 0x100000000        exec Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/python.exe (offset 0x0)
  3 Python                            F 0x100003000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/Python.framework/Versions/2.7/Python at 0x100003000 (offset 0x100003000)
  4 libSystem.B.dylib                 - 0x7fff8361e000        dyld Y Y /usr/lib/libSystem.B.dylib at 0x7fff8361e000 (offset 0x7fff8361e000)
  5 CoreFoundation                    F 0x7fff86bba000        dyld Y Y /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation at 0x7fff86bba000 (offset 0x7fff86bba000)
  6 libcache.dylib                    - 0x7fff882fd000        dyld Y Y /usr/lib/system/libcache.dylib at 0x7fff882fd000 (offset 0x7fff882fd000)
  7 libcommonCrypto.dylib             - 0x7fff83d5a000        dyld Y Y /usr/lib/system/libcommonCrypto.dylib at 0x7fff83d5a000 (offset 0x7fff83d5a000)
  8 libcompiler_rt.dylib              - 0x7fff86bb4000        dyld Y Y /usr/lib/system/libcompiler_rt.dylib at 0x7fff86bb4000 (offset 0x7fff86bb4000)
  9 libcopyfile.dylib                 - 0x7fff86809000        dyld Y Y /usr/lib/system/libcopyfile.dylib at 0x7fff86809000 (offset 0x7fff86809000)
 10 libdispatch.dylib                 - 0x7fff8a91f000        dyld Y Y /usr/lib/system/libdispatch.dylib at 0x7fff8a91f000 (offset 0x7fff8a91f000)
 11 libdnsinfo.dylib                  - 0x7fff85f71000        dyld Y Y /usr/lib/system/libdnsinfo.dylib at 0x7fff85f71000 (offset 0x7fff85f71000)
 12 libdyld.dylib                     - 0x7fff813f6000        dyld Y Y /usr/lib/system/libdyld.dylib at 0x7fff813f6000 (offset 0x7fff813f6000)
 13 libkeymgr.dylib                   - 0x7fff85f54000        dyld Y Y /usr/lib/system/libkeymgr.dylib at 0x7fff85f54000 (offset 0x7fff85f54000)
 14 liblaunch.dylib                   - 0x7fff86245000        dyld Y Y /usr/lib/system/liblaunch.dylib at 0x7fff86245000 (offset 0x7fff86245000)
 15 libmacho.dylib                    - 0x7fff86ba2000        dyld Y Y /usr/lib/system/libmacho.dylib at 0x7fff86ba2000 (offset 0x7fff86ba2000)
 16 libmathCommon.A.dylib             - 0x7fff8bb66000        dyld Y Y /usr/lib/system/libmathCommon.A.dylib at 0x7fff8bb66000 (offset 0x7fff8bb66000)
 17 libnotify.dylib                   - 0x7fff83614000        dyld Y Y /usr/lib/system/libnotify.dylib at 0x7fff83614000 (offset 0x7fff83614000)
 18 libquarantine.dylib               - 0x7fff8bc7c000        dyld Y Y /usr/lib/system/libquarantine.dylib at 0x7fff8bc7c000 (offset 0x7fff8bc7c000)
 19 libremovefile.dylib               - 0x7fff86876000        dyld Y Y /usr/lib/system/libremovefile.dylib at 0x7fff86876000 (offset 0x7fff86876000)
 20 libsystem_blocks.dylib            - 0x7fff845eb000        dyld Y Y /usr/lib/system/libsystem_blocks.dylib at 0x7fff845eb000 (offset 0x7fff845eb000)
 21 libsystem_c.dylib                 - 0x7fff856cb000        dyld Y Y /usr/lib/system/libsystem_c.dylib at 0x7fff856cb000 (offset 0x7fff856cb000)
 22 libsystem_dnssd.dylib             - 0x7fff84da8000        dyld Y Y /usr/lib/system/libsystem_dnssd.dylib at 0x7fff84da8000 (offset 0x7fff84da8000)
 23 libsystem_info.dylib              - 0x7fff8baf5000        dyld Y Y /usr/lib/system/libsystem_info.dylib at 0x7fff8baf5000 (offset 0x7fff8baf5000)
 24 libsystem_kernel.dylib            - 0x7fff841d9000        dyld Y Y /usr/lib/system/libsystem_kernel.dylib at 0x7fff841d9000 (offset 0x7fff841d9000)
 25 libsystem_network.dylib           - 0x7fff8be4c000        dyld Y Y /usr/lib/system/libsystem_network.dylib at 0x7fff8be4c000 (offset 0x7fff8be4c000)
 26 libsystem_sandbox.dylib           - 0x7fff8da29000        dyld Y Y /usr/lib/system/libsystem_sandbox.dylib at 0x7fff8da29000 (offset 0x7fff8da29000)
 27 libunc.dylib                      - 0x7fff8a86b000        dyld Y Y /usr/lib/system/libunc.dylib at 0x7fff8a86b000 (offset 0x7fff8a86b000)
 28 libunwind.dylib                   - 0x7fff87e7e000        dyld Y Y /usr/lib/system/libunwind.dylib at 0x7fff87e7e000 (offset 0x7fff87e7e000)
 29 libxpc.dylib                      - 0x7fff86a26000        dyld Y Y /usr/lib/system/libxpc.dylib at 0x7fff86a26000 (offset 0x7fff86a26000)
 30 libauto.dylib                     - 0x7fff8a8d0000        dyld Y Y /usr/lib/libauto.dylib at 0x7fff8a8d0000 (offset 0x7fff8a8d0000)
 31 libDiagnosticMessagesClient.dylib - 0x7fff83075000        dyld Y Y /usr/lib/libDiagnosticMessagesClient.dylib at 0x7fff83075000 (offset 0x7fff83075000)
 32 libicucore.A.dylib                - 0x7fff85256000        dyld Y Y /usr/lib/libicucore.A.dylib at 0x7fff85256000 (offset 0x7fff85256000)
 33 libobjc.A.dylib                   - 0x7fff86878000        dyld Y Y /usr/lib/libobjc.A.dylib at 0x7fff86878000 (offset 0x7fff86878000)
 34 libz.1.2.5.dylib                  - 0x7fff8c27c000        dyld Y Y /usr/lib/libz.1.2.5.dylib at 0x7fff8c27c000 (offset 0x7fff8c27c000)
 35 libc++.1.dylib                    - 0x7fff81d03000        dyld Y Y /usr/lib/libc++.1.dylib at 0x7fff81d03000 (offset 0x7fff81d03000)
 36 libstdc++.6.0.9.dylib             - 0x7fff85d3f000        dyld Y Y /usr/lib/libstdc++.6.0.9.dylib at 0x7fff85d3f000 (offset 0x7fff85d3f000)
 37 libc++abi.dylib                   - 0x7fff880f5000        dyld Y Y /usr/lib/libc++abi.dylib at 0x7fff880f5000 (offset 0x7fff880f5000)
 38 strop.so                          - 0x1002f3000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/strop.so at 0x1002f3000 (offset 0x1002f3000)
 39 operator.so                       - 0x1004ee000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/operator.so at 0x1004ee000 (offset 0x1004ee000)
 40 _functools.so                     - 0x1002fb000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/_functools.so at 0x1002fb000 (offset 0x1002fb000)
 41 _locale.so                        - 0x1004f9000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/_locale.so at 0x1004f9000 (offset 0x1004f9000)
 42 libintl.8.dylib                   - 0x101080000        dyld Y Y /opt/local/lib/libintl.8.dylib at 0x101080000 (offset 0x101080000)
 43 libiconv.2.dylib                  - 0x10109b000        dyld Y Y /opt/local/lib/libiconv.2.dylib at 0x10109b000 (offset 0x10109b000)
 44 _struct.so                        - 0x1011cc000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/_struct.so at 0x1011cc000 (offset 0x1011cc000)
 45 grp.so                            - 0x1011d7000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/grp.so at 0x1011d7000 (offset 0x1011d7000)
 46 _collections.so                   - 0x1011da000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/_collections.so at 0x1011da000 (offset 0x1011da000)
 47 itertools.so                      - 0x1011e3000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/itertools.so at 0x1011e3000 (offset 0x1011e3000)
 48 _bisect.so                        - 0x1012b4000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/_bisect.so at 0x1012b4000 (offset 0x1012b4000)
 49 _heapq.so                         - 0x1012b7000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/_heapq.so at 0x1012b7000 (offset 0x1012b7000)
 50 _ctypes_test.so                   - 0x1012bc000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/_ctypes_test.so at 0x1012bc000 (offset 0x1012bc000)
 51 array.so                          - 0x1012c3000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/array.so at 0x1012c3000 (offset 0x1012c3000)
 52 cmath.so                          - 0x1012d0000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/cmath.so at 0x1012d0000 (offset 0x1012d0000)
 53 math.so                           - 0x1012de000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/math.so at 0x1012de000 (offset 0x1012de000)
 54 time.so                           - 0x1012eb000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/time.so at 0x1012eb000 (offset 0x1012eb000)
 55 datetime.so                       - 0x10144b000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/datetime.so at 0x10144b000 (offset 0x10144b000)
 56 future_builtins.so                - 0x1012f2000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/future_builtins.so at 0x1012f2000 (offset 0x1012f2000)
 57 _random.so                        - 0x1012f5000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/_random.so at 0x1012f5000 (offset 0x1012f5000)
 58 _io.so                            - 0x101464000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/_io.so at 0x101464000 (offset 0x101464000)
 59 _json.so                          - 0x10148d000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/_json.so at 0x10148d000 (offset 0x10148d000)
 60 _testcapi.so                      - 0x101496000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/_testcapi.so at 0x101496000 (offset 0x101496000)
 61 _hotshot.so                       - 0x1014a4000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/_hotshot.so at 0x1014a4000 (offset 0x1014a4000)
 62 _lsprof.so                        - 0x1012fa000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/_lsprof.so at 0x1012fa000 (offset 0x1012fa000)
 63 unicodedata.so                    - 0x1014ad000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/unicodedata.so at 0x1014ad000 (offset 0x1014ad000)
 64 fcntl.so                          - 0x101558000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/fcntl.so at 0x101558000 (offset 0x101558000)
 65 select.so                         - 0x10155c000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/select.so at 0x10155c000 (offset 0x10155c000)
 66 parser.so                         - 0x101563000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/parser.so at 0x101563000 (offset 0x101563000)
 67 cStringIO.so                      - 0x101575000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/cStringIO.so at 0x101575000 (offset 0x101575000)
 68 cPickle.so                        - 0x10157b000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/cPickle.so at 0x10157b000 (offset 0x10157b000)
 69 mmap.so                           - 0x101591000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/mmap.so at 0x101591000 (offset 0x101591000)
 70 syslog.so                         - 0x101597000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/syslog.so at 0x101597000 (offset 0x101597000)
 71 audioop.so                        - 0x10159b000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/audioop.so at 0x10159b000 (offset 0x10159b000)
 72 readline.so                       - 0x1015a3000        dyld Y Y /opt/local/var/macports/build/_Volumes_Home_jeremy_src_macports_trunk_dports_lang_python27/python27/work/Python-2.7.1/build/lib.macosx-10.7-x86_64-2.7/readline.so at 0x1015a3000 (offset 0x1015a3000)
 73 libreadline.6.2.dylib             - 0x1015ac000        dyld Y Y /opt/local/lib/libreadline.6.2.dylib at 0x1015ac000 (offset 0x1015ac000)
 74 libncurses.5.dylib                - 0x101614000        dyld Y Y /opt/local/lib/libncurses.5.dylib at 0x101614000 (offset 0x101614000)

Looks like an issue in readline

comment:4 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Cc: jeremyhu@… added

Cc Me!

comment:5 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Owner: changed from jwa@… to mcalhoun@…
Port: python26 readline added

python26 also bombs at the same spot

comment:6 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

(note: this was the reason I submitted the compiler patch to macports-dev ... I reproduced the problem with both llvm-gcc-4.2 and gcc-4.2, so it's not an llvm issue either...

comment:7 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: invalid
Status: newclosed

Yeah, this looks like an issue with DevTools ... XCode 3.2.6 works fine, XCode 4.0.2 works fine, unreleased versions barf. I'm closing this and will work inside Apple to try to resolve the issue.

comment:8 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Note to anyone that hits this, the problem seems to be with the ncurses bits, not readline. Replacing ncurses with one generated by XCode4.0 gets past the issue.

comment:9 Changed 13 years ago by terrydemco@…

Are these the correct ncurses files need to be replaced?

/usr/lib/libncurses.5.4.dylib /usr/lib/libncurses.5.dylib

Thanks!

comment:10 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

No, you need to reinstall the entire ncurses port.

comment:11 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

(doing just those will get you past the segfault, but the other ncurses libs will have unresolved symbols and other failures)

comment:12 Changed 13 years ago by justin.holewinski@…

I was hit by this issue when I first tried Lion DP4 and Xcode 4.2, but I was able to get around it by installing python27 with its +universal variant.

$ sudo port install python27
<fail when building python27>
$ sudo port uninstall -f all
$ sudo port clean python27
$ sudo port install python27 +universal
<success!>
$ /opt/local/bin/python2.7
Python 2.7.1 (r271:86832, Jun 15 2011, 12:13:27) 
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

I'm not sure if uninstalling the previous ports is strictly necessary; they will probably be rebuilt as +universal anyway.

Just some food for thought...

comment:13 Changed 13 years ago by justin.holewinski@…

Cc: justin.holewinski@… added

Cc Me!

comment:14 Changed 13 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Justin, it looks like you hit a different issue. Please open a new ticket for the issue you saw and provide a full build log.

comment:15 Changed 13 years ago by ralfmarcel@…

Had the same problem and Justins voodoo worked for me: I am on Lion DP4/Xcode4.2 and Python27 failed. But building with the +universal variant succeeded. Curious I cleaned it again and tried again a normal install… which also succeeded. Meh.

comment:16 Changed 13 years ago by jmroot (Joshua Root)

Summary: python27 install errorpython install error with Xcode prerelease

comment:17 Changed 13 years ago by twoboxen@…

Cc: twoboxen@… added

Cc Me!

comment:18 Changed 13 years ago by jmroot (Joshua Root)

Port: ncurses added; readline removed
Note: See TracTickets for help on using tickets.