Opened 21 months ago

Closed 21 months ago

Last modified 21 months ago

#66917 closed defect (duplicate)

python310 fails to build on arm64: missing apacke_utils.h

Reported by: ednl (Ewoud Dronkert) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: python310

Description

On Apple Silicon M1 with macports 2.8.1, python310 is outdated 3.10.9_0 < 3.10.10_0. When trying to update, there is no precompiled package, so source downloads. Configure succeeds, build fails:

:info:build error: [Errno 2] No such file or directory: '/opt/local/include/lapacke_utils.h'

Change History (6)

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

Resolution: fixed
Status: newclosed

since fixed, please update your ports and try again.

If still broken after that pls reopen with a new log.

comment:2 Changed 21 months ago by ednl (Ewoud Dronkert)

Obviously I did update, multiple times, last time just before I submitted the ticket. I tried again now:

ewoud@macmini:~$ sudo port clean --all python310
Password:
--->  Cleaning python310
ewoud@macmini:~$ sudo port -d sync
Password:
DEBUG: Copying /Users/ewoud/Library/Preferences/com.apple.dt.Xcode.plist to /opt/local/var/macports/home/Library/Preferences
--->  Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/macports/release/tarballs/ports.tar
DEBUG: system: /usr/bin/rsync -rtzvl --delete-after --include=/ports.tar --include=/ports.tar.rmd160 --exclude=* rsync://rsync.macports.org/macports/release/tarballs/ /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs

Willkommen auf dem RSYNC-server auf ftp.fau.de.
Nicht all unsere Mirror sind per rsync verfuegbar.

Welcome to the RSYNC daemon on ftp.fau.de.
Not all of our mirrors are available through rsync.


receiving file list ... done
./

sent 68 bytes  received 99 bytes  334.00 bytes/sec
total size is 102811136  speedup is 615635.54
DEBUG: successful verification with key /opt/local/share/macports/macports-pubkey.pem
DEBUG: system: /usr/bin/tar -C /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/tmp -xf /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports.tar
DEBUG: system: chmod -R a+r /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs
DEBUG: system: /opt/local/bin/portindex /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports
Creating port index in /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports

Total number of ports parsed:	0 
Ports successfully parsed:	0 
Ports failed:			0 
Up-to-date ports skipped:	31338

ewoud@macmini:~$ 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
ewoud@macmini:~$ sudo port upgrade python310
--->  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://fra.de.packages.macports.org/python310
--->  Attempting to fetch python310-3.10.10_0+lto+optimizations.darwin_22.arm64.tbz2 from https://ema.uk.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.
ewoud@macmini:~$ LANG=C date
Tue Feb 14 10:15:08 CET 2023
ewoud@macmini:~$ 
Last edited 21 months ago by ednl (Ewoud Dronkert) (previous) (diff)

comment:3 Changed 21 months ago by ednl (Ewoud Dronkert)

Resolution: fixed
Status: closedreopened

comment:4 Changed 21 months ago by ednl (Ewoud Dronkert)

So maybe ftp.fau.de is not up-to-date.

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

Resolution: duplicate
Status: reopenedclosed

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

You probably need to upgrade OpenBLAS first; the broken symlinks that it installed have been fixed but the general problem in python's build system remains.

Note: See TracTickets for help on using tickets.