[Python-Dev] Python build trouble with the new gcc/binutils

Andrew Koenig ark@research.att.com
16 Aug 2002 12:38:24 -0400


>>>>>> "AK" == Andrew Koenig <ark@research.att.com> writes:

AK> I can build Python 2.2.1 just fine on my Solaris 2.8 machine
AK> using gcc 3.1.1 and binutils 2.12.1

AK> If I install either binutils 2.13 or the just-released gcc
AK> 3.2, I can no longer build Python -- it dumps core quite far
AK> into the build process.

Barry> Stack trace?

OK, here's what I've been able to find so far.

It fails at the point in the installation process where it is trying to do this:



$ CC='gcc' LDSHARED='gcc -shared' OPT='-DNDEBUG -g -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py build  
running build
running build_ext
skipping 'struct' extension (up-to-date)
Segmentation Fault - core dumped



Here's the back trace:




#0  __register_frame_info_bases (begin=0xfed50000, ob=0xfed50000, tbase=0x0, 
    dbase=0x0) at /tmp/build1165/gcc-3.1.1/gcc/unwind-dw2-fde.c:83
#1  0xfed517ec in frame_dummy ()
   from /export/spurr1/homes1/ark/Python-2.2.1/build/lib.solaris-2.7-sun4u-2.2/struct.so
#2  0xfed516d4 in _init ()
   from /export/spurr1/homes1/ark/Python-2.2.1/build/lib.solaris-2.7-sun4u-2.2/struct.so
#3  0xff3bc174 in ?? ()
#4  0xff3c0a8c in ?? ()
#5  0xff3c0ba8 in ?? ()
#6  0x0007b384 in _PyImport_GetDynLoadFunc (fqname=0x2 <Address 0x2 out of bounds>, 
    shortname=0x1002c8 "", 
    pathname=0xffbedbd8 "/export/spurr1/homes1/ark/Python-2.2.1/build/lib.solaris-2.7-sun4u-2.2/struct.so", fp=0xfc1d8) at Python/dynload_shlib.c:90
#7  0x0006edd8 in _PyImport_LoadDynamicModule (name=0xffbee0c8 "struct", 
    pathname=0xffbedbd8 "/export/spurr1/homes1/ark/Python-2.2.1/build/lib.solaris-2.7-sun4u-2.2/struct.so", fp=0xfc1d8) at Python/importdl.c:42
#8  0x0006b63c in load_module (name=0xffbee0c8 "struct", fp=0xfc1d8, 
    buf=0xffbedbd8 "/export/spurr1/homes1/ark/Python-2.2.1/build/lib.solaris-2.7-sun4u-2.2/struct.so", type=3) at Python/import.c:1365
#9  0x0006c4e4 in import_submodule (mod=0xe08b8, subname=0xffbee0c8 "struct", 
    fullname=0xffbee0c8 "struct") at Python/import.c:1895
#10 0x0006c008 in load_next (mod=0xe08b8, altmod=0xe08b8, p_name=0xffbee0c8, 
    buf=0xffbee0c8 "struct", p_buflen=0xffbee0c4) at Python/import.c:1751
#11 0x0006de54 in import_module_ex (name=0x0, globals=0xe08b8, locals=0x0, 
    fromlist=0x0) at Python/import.c:1602
#12 0x0006d024 in PyImport_ImportModuleEx (name=0x268cac "struct", globals=0x0, 
    locals=0x0, fromlist=0x0) at Python/import.c:1643
#13 0x000bca6c in builtin___import__ (self=0x0, args=0x268cac)
    at Python/bltinmodule.c:40
#14 0x000ba3a0 in PyCFunction_Call (func=0x101ca8, arg=0x29d638, kw=0x0)
    at Objects/methodobject.c:69
#15 0x00047ed0 in eval_frame (f=0x2c0198) at Python/ceval.c:2004
#16 0x00048b38 in PyEval_EvalCodeEx (co=0x2603a8, globals=0x2c0198, locals=0x0, 
    args=0x2a74a8, argcount=2, kws=0x2a74b0, kwcount=0, defs=0x0, defcount=0, 
    closure=0x0) at Python/ceval.c:2585
#17 0x00049f28 in fast_function (func=0x0, pp_stack=0x2a74a8, n=2782384, na=2, nk=0)
    at Python/ceval.c:3161
#18 0x00047de8 in eval_frame (f=0x2a7350) at Python/ceval.c:2024
#19 0x00048b38 in PyEval_EvalCodeEx (co=0x283138, globals=0x2a7350, locals=0x0, 
    args=0x28d124, argcount=1, kws=0x0, kwcount=0, defs=0x0, defcount=0, 
    closure=0x0) at Python/ceval.c:2585
#20 0x000aaaa4 in function_call (func=0x27bd78, arg=0x28d118, kw=0x0)
    at Objects/funcobject.c:374
#21 0x00095d08 in PyObject_Call (func=0x27bd78, arg=0x28d118, kw=0x0)
    at Objects/abstract.c:1684
#22 0x0009e64c in instancemethod_call (func=0x27bd78, arg=0x28d118, kw=0x0)
    at Objects/classobject.c:2276
#23 0x00095d08 in PyObject_Call (func=0x27bd78, arg=0x28d118, kw=0x0)
    at Objects/abstract.c:1684
#24 0x00049fec in do_call (func=0x10ffb8, pp_stack=0xffbeebe0, na=1, nk=2674968)
    at Python/ceval.c:3262
#25 0x00047d30 in eval_frame (f=0x2b3f48) at Python/ceval.c:2027
#26 0x00048b38 in PyEval_EvalCodeEx (co=0x261510, globals=0x2b3f48, locals=0x0, 
    args=0x1c5684, argcount=1, kws=0x1c5688, kwcount=0, defs=0x0, defcount=0, 
    closure=0x0) at Python/ceval.c:2585
#27 0x00049f28 in fast_function (func=0x0, pp_stack=0x1c5684, n=1857160, na=1, nk=0)
    at Python/ceval.c:3161
#28 0x00047de8 in eval_frame (f=0x1c5520) at Python/ceval.c:2024
#29 0x00048b38 in PyEval_EvalCodeEx (co=0x2821d0, globals=0x1c5520, locals=0x0, 
    args=0x175fa8, argcount=1, kws=0x175fac, kwcount=0, defs=0x0, defcount=0, 
    closure=0x0) at Python/ceval.c:2585
#30 0x00049f28 in fast_function (func=0x0, pp_stack=0x175fa8, n=1531820, na=1, nk=0)
    at Python/ceval.c:3161
#31 0x00047de8 in eval_frame (f=0x175e50) at Python/ceval.c:2024
#32 0x00048b38 in PyEval_EvalCodeEx (co=0x2495c0, globals=0x175e50, locals=0x0, 
    args=0x1762fc, argcount=2, kws=0x176304, kwcount=0, defs=0x0, defcount=0, 
    closure=0x0) at Python/ceval.c:2585
#33 0x00049f28 in fast_function (func=0x0, pp_stack=0x1762fc, n=1532676, na=2, nk=0)
    at Python/ceval.c:3161
#34 0x00047de8 in eval_frame (f=0x1761a8) at Python/ceval.c:2024
#35 0x00048b38 in PyEval_EvalCodeEx (co=0x20c908, globals=0x1761a8, locals=0x0, 
    args=0x1734b8, argcount=2, kws=0x1734c0, kwcount=0, defs=0x0, defcount=0, 
    closure=0x0) at Python/ceval.c:2585
#36 0x00049f28 in fast_function (func=0x0, pp_stack=0x1734b8, n=1520832, na=2, nk=0)
    at Python/ceval.c:3161
#37 0x00047de8 in eval_frame (f=0x173360) at Python/ceval.c:2024
#38 0x00048b38 in PyEval_EvalCodeEx (co=0x293e50, globals=0x173360, locals=0x0, 
    args=0x298c00, argcount=1, kws=0x298c04, kwcount=0, defs=0x0, defcount=0, 
    closure=0x0) at Python/ceval.c:2585
#39 0x00049f28 in fast_function (func=0x0, pp_stack=0x298c00, n=2722820, na=1, nk=0)
    at Python/ceval.c:3161
#40 0x00047de8 in eval_frame (f=0x298aa8) at Python/ceval.c:2024
#41 0x00048b38 in PyEval_EvalCodeEx (co=0x2495c0, globals=0x298aa8, locals=0x0, 
    args=0x15e008, argcount=2, kws=0x15e010, kwcount=0, defs=0x0, defcount=0, 
    closure=0x0) at Python/ceval.c:2585
#42 0x00049f28 in fast_function (func=0x0, pp_stack=0x15e008, n=1433616, na=2, nk=0)
    at Python/ceval.c:3161
#43 0x00047de8 in eval_frame (f=0x15deb0) at Python/ceval.c:2024
#44 0x00048b38 in PyEval_EvalCodeEx (co=0x233e28, globals=0x15deb0, locals=0x0, 
    args=0x1325f4, argcount=1, kws=0x1325f8, kwcount=0, defs=0x0, defcount=0, 
    closure=0x0) at Python/ceval.c:2585
#45 0x00049f28 in fast_function (func=0x0, pp_stack=0x1325f4, n=1254904, na=1, nk=0)
    at Python/ceval.c:3161
#46 0x00047de8 in eval_frame (f=0x132488) at Python/ceval.c:2024
#47 0x00048b38 in PyEval_EvalCodeEx (co=0x25d8a8, globals=0x132488, locals=0x0, 
    args=0x28, argcount=0, kws=0x273fd4, kwcount=5, defs=0x0, defcount=0, 
    closure=0x0) at Python/ceval.c:2585
#48 0x00049f28 in fast_function (func=0x0, pp_stack=0x28, n=2572284, na=0, nk=5)
    at Python/ceval.c:3161
#49 0x00047de8 in eval_frame (f=0x273e80) at Python/ceval.c:2024
#50 0x00048b38 in PyEval_EvalCodeEx (co=0x2618a8, globals=0x273e80, locals=0x0, 
    args=0x1130b0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, 
    closure=0x0) at Python/ceval.c:2585
#51 0x00049f28 in fast_function (func=0x0, pp_stack=0x1130b0, n=1126576, na=0, nk=0)
    at Python/ceval.c:3161
#52 0x00047de8 in eval_frame (f=0x112f60) at Python/ceval.c:2024
#53 0x00048b38 in PyEval_EvalCodeEx (co=0x267978, globals=0x112f60, locals=0x0, 
    args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0)
    at Python/ceval.c:2585
#54 0x0004b79c in PyEval_EvalCode (co=0x267978, globals=0x1114b8, locals=0x0)
    at Python/ceval.c:483
#55 0x00076fe8 in run_node (n=0xffe20, filename=0x1114b8 "", globals=0x1114b8, 
    locals=0x1114b8, flags=0x1114b8) at Python/pythonrun.c:1079
#56 0x000766e8 in PyRun_SimpleFileExFlags (fp=0xfc1d8, 
    filename=0xffbefe48 "./setup.py", closeit=1, flags=0xffbefcec)
    at Python/pythonrun.c:685
#57 0x0001c544 in Py_Main (argc=0, argv=0x1) at Modules/main.c:364

-- 
Andrew Koenig, ark@research.att.com, http://www.research.att.com/info/ark