Opened 14 years ago

Closed 13 years ago

#23712 closed defect (worksforme)

python26 build failure

Reported by: sedwards2@… Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc: blb@…, michaelld (Michael Dickens)
Port: python26

Description

this while trying to install gtk2 on Intel macpro OS X 10.6.2:

--->  Building python26
DEBUG: Executing org.macports.build (python26)
DEBUG: Environment: MACOSX_DEPLOYMENT_TARGET='10.6'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/work/Python-2.6.4" && /usr/bin/make -j4 all MAKE="/usr/bin/make CC=/usr/bin/gcc-4.2"'
/usr/bin/install -c -d -m 755 Python.framework/Versions/2.6
if test ""; then \
		/usr/bin/gcc-4.2 -o Python.framework/Versions/2.6/Python  -dynamiclib \
			-isysroot "" \
			-all_load libpython2.6.a -Wl,-single_module \
			-install_name /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python \
			-compatibility_version 2.6 \
			-current_version 2.6; \
        else \
		/usr/bin/libtool -o Python.framework/Versions/2.6/Python -dynamic  libpython2.6.a \
			 -lSystem -lSystemStubs -arch_only x86_64 -install_name /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python -compatibility_version 2.6 -current_version 2.6 ;\
	fi
Undefined symbols:
  "__PyParser_Grammar", referenced from:
      _PyParser_SimpleParseStringFlagsFilename in libpython2.6.a(pythonrun.o)
      _PyParser_SimpleParseStringFlags in libpython2.6.a(pythonrun.o)
      _PyParser_SimpleParseFileFlags in libpython2.6.a(pythonrun.o)
      _PyParser_ASTFromFile in libpython2.6.a(pythonrun.o)
      _PyParser_ASTFromFile in libpython2.6.a(pythonrun.o)
      _PyParser_ASTFromString in libpython2.6.a(pythonrun.o)
      _PyParser_ASTFromString in libpython2.6.a(pythonrun.o)
      _Py_Finalize in libpython2.6.a(pythonrun.o)
      _PyParser_SimpleParseFile in libpython2.6.a(pythonrun.o)
      _PyParser_SimpleParseStringFilename in libpython2.6.a(pythonrun.o)
      _PyParser_SimpleParseString in libpython2.6.a(pythonrun.o)
      _PyRun_StringFlags in libpython2.6.a(pythonrun.o)
      _PyRun_StringFlags in libpython2.6.a(pythonrun.o)
      _Py_SymtableString in libpython2.6.a(pythonrun.o)
      _Py_CompileStringFlags in libpython2.6.a(pythonrun.o)
      _Py_CompileStringFlags in libpython2.6.a(pythonrun.o)
ld: symbol(s) not found
/usr/bin/libtool: internal link edit command failed
make: *** [Python.framework/Versions/2.6/Python] Error 1
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/work/Python-2.6.4" && /usr/bin/make -j4 all MAKE="/usr/bin/make CC=/usr/bin/gcc-4.2" " returned error 2
DEBUG: Backtrace: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/work/Python-2.6.4" && /usr/bin/make -j4 all MAKE="/usr/bin/make CC=/usr/bin/gcc-4.2" " returned error 2
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 9)
    invoked from within
"$procedure $targetname"
Warning: the following items did not execute (for python26): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: The following dependencies failed to build: atk gtk-doc gnome-doc-utils py26-libxml2 python26
Error: Status 1 encountered during processing.

any assistance much appreciated / Stu

Change History (7)

comment:1 Changed 14 years ago by michaelld (Michael Dickens)

Cc: michaelld@… added

Cc Me!

comment:2 Changed 14 years ago by jmroot (Joshua Root)

Cc: mcalhoun@… added
Keywords: python26 build failure removed
Owner: changed from macports-tickets@… to blb@…
Port: python26 added; gtk2 removed

Nothing to do with gtk2. Please remember to cc the maintainers.

comment:3 Changed 14 years ago by sedwards2@…

I installed 'poppler' today and python26 installed as a dependency without problem. Thanks for your time

comment:4 Changed 14 years ago by blb@…

Resolution: worksforme
Status: newclosed

comment:5 Changed 13 years ago by marcus@…

Resolution: worksforme
Status: closedreopened

I'm seeing this same error in Macports 1.9.2 on 10.6.6:

:debug:main Executing org.macports.main (python26)
:debug:main Skipping completed org.macports.fetch (python26)
:debug:main Skipping completed org.macports.checksum (python26)
:debug:main setting option extract.cmd to /usr/bin/bzip2
:debug:main Skipping completed org.macports.extract (python26)
:debug:main Skipping completed org.macports.patch (python26)
:debug:main Skipping completed org.macports.configure (python26)
:msg:main --->  Building python26
:debug:build build phase started at Thu Jan 13 08:02:16 CET 2011
:debug:build Executing org.macports.build (python26)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.6'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/work/Python-2.6.6" && /usr/bin/make -j8 all MAKE="/usr/bin/make CC=/usr/bin/gcc-4.2"'
:info:build /usr/bin/install -c -d -m 755 Python.framework/Versions/2.6
:info:build if test ""; then \
:info:build             /usr/bin/gcc-4.2 -o Python.framework/Versions/2.6/Python  -dynamiclib \
:info:build                     -isysroot "" \
:info:build                     -all_load libpython2.6.a -Wl,-single_module \
:info:build                     -install_name /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python \
:info:build                     -compatibility_version 2.6 \
:info:build                     -current_version 2.6; \
:info:build         else \
:info:build             /usr/bin/libtool -o Python.framework/Versions/2.6/Python -dynamic  libpython2.6.a \
:info:build                      -lSystem -lSystemStubs -arch_only x86_64 -install_name /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python -compatibility_version 2.6 -current_version 2.6 ;\
:info:build     fi
:info:build Undefined symbols:
:info:build   "__PyParser_Grammar", referenced from:
:info:build       _PyParser_SimpleParseStringFlagsFilename in libpython2.6.a(pythonrun.o)
:info:build       _PyParser_SimpleParseStringFlags in libpython2.6.a(pythonrun.o)
:info:build       _PyParser_SimpleParseFileFlags in libpython2.6.a(pythonrun.o)
:info:build       _PyParser_ASTFromFile in libpython2.6.a(pythonrun.o)
:info:build       _PyParser_ASTFromFile in libpython2.6.a(pythonrun.o)
:info:build       _PyParser_ASTFromString in libpython2.6.a(pythonrun.o)
:info:build       _PyParser_ASTFromString in libpython2.6.a(pythonrun.o)
:info:build       _Py_Finalize in libpython2.6.a(pythonrun.o)
:info:build       _PyParser_SimpleParseFile in libpython2.6.a(pythonrun.o)
:info:build       _PyParser_SimpleParseStringFilename in libpython2.6.a(pythonrun.o)
:info:build       _PyParser_SimpleParseString in libpython2.6.a(pythonrun.o)
:info:build       _PyRun_StringFlags in libpython2.6.a(pythonrun.o)
:info:build       _PyRun_StringFlags in libpython2.6.a(pythonrun.o)
:info:build       _Py_SymtableString in libpython2.6.a(pythonrun.o)
:info:build       _Py_CompileStringFlags in libpython2.6.a(pythonrun.o)
:info:build       _Py_CompileStringFlags in libpython2.6.a(pythonrun.o)
:info:build ld: symbol(s) not found
:info:build /usr/bin/libtool: internal link edit command failed
:info:build make: *** [Python.framework/Versions/2.6/Python] Error 1
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/work/Python-2.6.6" && /usr/bin/make -j8 all MAKE="/usr/bin/make CC=/usr/bin/gcc-4.2" " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for python26): org.macports.destroot org.macports.build
:notice:build Log for python26 is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python26/main.log

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

Cc: blb@… added; mcalhoun@… removed
Owner: changed from blb@… to mcalhoun@…
Status: reopenednew

Clean first so you can generate a complete log:

sudo port clean python26
sudo port install python26

(add main.log as an attachment rather than pasting it inline)

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

Resolution: worksforme
Status: newclosed

No response; closing.

Note: See TracTickets for help on using tickets.