[MacPorts] #54893: python35: fails to build due to "dyld: Symbol not found: _utimensat"

MacPorts noreply at macports.org
Sun Sep 24 09:48:01 UTC 2017


#54893: python35: fails to build due to "dyld: Symbol not found: _utimensat"
------------------------+----------------------
 Reporter:  lbschenkel  |      Owner:
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.4.1
 Keywords:              |       Port:  python35
------------------------+----------------------
 Since I use LibreSSL, Python needs to be rebuilt from source on my
 machine. In the latest version, 3.5.4_2, I started experiencing the
 following issue:

 {{{
 running install
 running build
 running build_ext
 INFO: Can't locate Tcl/Tk libs and/or headers

 Python build finished successfully!
 The necessary bits to build these optional modules were not found:
 _dbm                  _tkinter              nis
 ossaudiodev           spwd
 To find the necessary bits, look in setup.py in detect_modules() for the
 module's name.

 The following modules found by detect_modules() in setup.py, have been
 built by the Makefile instead, as configured by the Setup files:
 atexit                pwd                   time
 running build_scripts
 copying and adjusting
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python35/python35/work/Python-3.5.4/Tools/scripts/pydoc3
 -> build/scripts-3.5
 copying and adjusting
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python35/python35/work/Python-3.5.4/Tools/scripts/idle3
 -> build/scripts-3.5
 copying and adjusting
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python35/python35/work/Python-3.5.4/Tools/scripts/2to3
 -> build/scripts-3.5
 copying and adjusting
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python35/python35/work/Python-3.5.4/Tools/scripts/pyvenv
 -> build/scripts-3.5
 changing mode of build/scripts-3.5/pydoc3 from 644 to 755
 changing mode of build/scripts-3.5/idle3 from 644 to 755
 changing mode of build/scripts-3.5/2to3 from 644 to 755
 changing mode of build/scripts-3.5/pyvenv from 644 to 755
 renaming build/scripts-3.5/pydoc3 to build/scripts-3.5/pydoc3.5
 renaming build/scripts-3.5/idle3 to build/scripts-3.5/idle3.5
 renaming build/scripts-3.5/2to3 to build/scripts-3.5/2to3-3.5
 renaming build/scripts-3.5/pyvenv to build/scripts-3.5/pyvenv-3.5
 running install_lib
 creating
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python35/python35/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
 /lib-dynload
 creating
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python35/python35/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
 /lib-dynload/__pycache__
 copying
 build/lib.macosx-10.12-x86_64-3.5/__pycache__/_sysconfigdata.cpython-35.opt-1.pyc
 ->
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python35/python35/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5
 /lib-dynload/__pycache__
 dyld: lazy symbol binding failed: Symbol not found: _utimensat
   Referenced from:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python35/python35/work/Python-3.5.4/Python.framework/Versions/3.5/Python
   Expected in: /usr/lib/libSystem.B.dylib

 dyld: Symbol not found: _utimensat
   Referenced from:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python35/python35/work/Python-3.5.4/Python.framework/Versions/3.5/Python
   Expected in: /usr/lib/libSystem.B.dylib

 make: *** [sharedinstall] Abort trap: 6
 make: Leaving directory
 `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python35/python35/work/Python-3.5.4'
 Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python35/python35/work/Python-3.5.4"
 && /usr/bin/make -w frameworkinstall maninstall MAKE="/usr/bin/make
 CC=/usr/bin/clang"
 DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python35/python35/work/destroot
 Exit code: 2
 Error: Failed to destroot python35: command execution failed
 Error: See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python35/python35/main.log
 for details.
 Error: rev-upgrade failed: Error rebuilding python35
 Error: Follow https://guide.macports.org/#project.tickets to report a bug.
 }}}

 By searching in Trac I believe that this is actually related to a recent
 upgrade of Xcode (Xcode 9.0 9A235 on macOS 10.12.6 16G29), because I saw
 similar recent reports for other ports.

--
Ticket URL: <https://trac.macports.org/ticket/54893>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list