#66964 closed defect (duplicate)

python310 @3.10.10 +lto+optimizations: Can not find OpenBLAS-provided header file

Reported by: amagela (Anthony M. Agelastos) Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: python310

Description

Greetings:

I am unable to build Python 3.10 port (with lto and optimizations turned on). It looks like the OpenBLAS port provides the file it cannot find (lapacke_utils.h) however it is a symlink rather than a file and, if I had to guess, it wants a normal file (or something else is wrong). Relevant output is below. Thank you for any support you can provide.

$ sudo port provides /opt/local/include/lapacke_utils.h
/opt/local/include/lapacke_utils.h is provided by: OpenBLAS
$ ls -l /opt/local/include/lapacke_utils.h
lrwxr-xr-x 1 root 21 Feb  6 11:23 /opt/local/include/lapacke_utils.h -> cblas/lapacke_utils.h
--->  Computing dependencies for python310
--->  Fetching archive for python310
--->  Attempting to fetch python310-3.10.10_0+lto+optimizations.darwin_22.arm64.tbz2 from https://packages.macports.org/python310
--->  Attempting to fetch python310-3.10.10_0+lto+optimizations.darwin_22.arm64.tbz2 from https://nue.de.packages.macports.org/python310
--->  Attempting to fetch python310-3.10.10_0+lto+optimizations.darwin_22.arm64.tbz2 from http://atl.us.packages.macports.org/python310
--->  Fetching distfiles for python310
--->  Attempting to fetch Python-3.10.10.tar.xz from https://www.python.org/ftp/python/3.10.10/
--->  Verifying checksums for python310
--->  Extracting python310
--->  Applying patches to python310
--->  Configuring python310
--->  Building python310
Error: Failed to build python310: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python310/python310/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
:info:build DYLD_FRAMEWORK_PATH=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python310/python310/work/Python-3.10.10 CC='/usr/bin/clang' LDSHARED='/usr/bin/clang -bundle -undefined dynamic_lookup -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch arm64  -flto -Wl,-export_dynamic -g -fprofile-instr-generate' OPT='-DNDEBUG -g -fwrapv -O3 -Wall'    _TCLTK_INCLUDES='-I/opt/local/include' _TCLTK_LIBS='-L/opt/local/lib -ltk8.6 -ltkstub8.6 -ltcl8.6 -ltclstub8.6'     ./python.exe -E ./setup.py --no-user-cfg  build                                                             :info:build running build
:info:build running build_ext
:info:build error: [Errno 2] No such file or directory: '/opt/local/include/lapacke_utils.h'
:info:build make[3]: *** [sharedmods] Error 1
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python310/python310/work/Python-3.10.10'
:info:build make[2]: *** [build_all_generate_profile] Error 2
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python310/python310/work/Python-3.10.10'
:info:build make[1]: *** [profile-gen-stamp] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python310/python310/work/Python-3.10.10'
:info:build make: *** [profile-run-stamp] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python310/python310/work/Python-3.10.10'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_python310/python310/work/Python-3.10.10" && /usr/bin/make -j10 -w all
:info:build Exit code: 2
:error:build Failed to build python310: command execution failed

Attachments (1)

python310-output.log (129.9 KB) - added by amagela (Anthony M. Agelastos) 21 months ago.
This is the full output from updating python310.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 21 months ago by amagela (Anthony M. Agelastos)

Cc: amagela added

comment:2 Changed 21 months ago by amagela (Anthony M. Agelastos)

Owner: set to jmroot
Status: newassigned

comment:3 Changed 21 months ago by amagela (Anthony M. Agelastos)

Cc: amagela removed

comment:4 Changed 21 months ago by kencu (Ken)

this was indeed an error, but it was fixed a while ago.

https://github.com/macports/macports-ports/commit/8ccc6f7e88f61676e870192bf91d26beb8a458c7

can you clean this build and try again after updating?

sudo port clean python310
sudo port selfupdate
sudo port -v install python310

comment:5 Changed 21 months ago by amagela (Anthony M. Agelastos)

I observed the same error. I have attached the full log file and commands I used.

$ clear                                                                                               $ sudo port clean python310
--->  Cleaning python310
$ sudo port selfupdate
--->  Updating MacPorts base sources using rsync
MacPorts base version 2.8.1 installed,
MacPorts base version 2.8.1 downloaded.                                                                                 --->  Updating the ports tree
--->  MacPorts base is already the latest version
                                                                                                                        The ports tree has been updated. To upgrade your installed ports, you should run
  port upgrade outdated
$ sudo port -v upgrade python310 2>&1 | tee ~/Desktop/python310-output.log
Version 0, edited 21 months ago by amagela (Anthony M. Agelastos) (next)

Changed 21 months ago by amagela (Anthony M. Agelastos)

Attachment: python310-output.log added

This is the full output from updating python310.

comment:6 Changed 21 months ago by jmroot (Joshua Root)

Keywords: python python310 openblas removed
Resolution: duplicate
Status: assignedclosed

This is #66242. The problem in the python build system remains, where it will fail if dangling symlinks are present in the include path. But if you get rid of the dangling symlinks by upgrading openblas, the problem will be avoided.

Note: See TracTickets for help on using tickets.