Opened 2 years ago

Closed 21 months ago

#66169 closed defect (fixed)

mariadb @5.5.68 build failure on ARM64 MacbookPro Max

Reported by: wvalenzuela (Waldo) Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: chrstphrchvz (Christopher Chavez)
Port: mariadb

Description (last modified by wvalenzuela (Waldo))

Dear all,

I run the command sudo port install qt5-mysql-plugin

And I have an error during installation of mariadb dependency.

waldo@MacBook-Pro-3 ~ % sudo port install qt5-mysql-plugin     
--->  Computing dependencies for qt5-mysql-plugin
The following dependencies will be installed:  mariadb
Continue? [Y/n]: y
--->  Fetching archive for mariadb
--->  Attempting to fetch mariadb-5.5.68_0.darwin_22.arm64.tbz2 from https://packages.macports.org/mariadb
--->  Attempting to fetch mariadb-5.5.68_0.darwin_22.arm64.tbz2 from https://nue.de.packages.macports.org/mariadb
--->  Attempting to fetch mariadb-5.5.68_0.darwin_22.arm64.tbz2 from https://fra.de.packages.macports.org/mariadb
--->  Verifying checksums for mariadb
Error: Failed to checksum mariadb: mariadb-5.5.68.tar.gz does not exist in /opt/local/var/macports/distfiles/mariadb

Any ideas what I am doing wrong

Thanks in advance for your help.

Best Waldo

Change History (9)

comment:1 Changed 2 years ago by wvalenzuela (Waldo)

I run also,

sudo port clean --all mariadb
sudo port patch mariadb

But error as well.

--->  Configuring mariadb
Warning: Configuration logfiles contain indications of -Wimplicit-function-declaration; check that features were not accidentally disabled:
  select: found in build/CMakeFiles/CMakeError.log
  finite: found in build/CMakeFiles/CMakeError.log
--->  Building mariadb
Error: Failed to build mariadb: command execution failed 
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mariadb/mariadb/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port qt5-mysql-plugin failed

Looking the internal CMake error there is a missing configuration for the ARM64 architecture

:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_mariadb/mariadb/work/mariadb-5.5.68/include/my_global.h:181:6: error: Building FAT binary for an unknown architecture.
:info:build #    error Building FAT binary for an unknown architecture.

comment:2 Changed 2 years ago by wvalenzuela (Waldo)

Description: modified (diff)

comment:3 Changed 2 years ago by wvalenzuela (Waldo)

Port: qt5-mysql-plugin added

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

Owner: set to michaelld
Port: mariadb added; qt5-mysql-plugin removed
Status: newassigned
Summary: Error installing qt5-mysql-plugin in ARM64 MacbookPro Maxmariadb @5.5.68 build failure on ARM64 MacbookPro Max

comment:5 Changed 2 years ago by chrstphrchvz (Christopher Chavez)

From what I can tell, only MariaDB version 10.5 and later support Apple Silicon. As I said previously on ticket:65848#comment:2, if you do not need MariaDB 5.5 specifically, then I suggest using a different variant of qt5-mysql-plugin; presumably the ones which support Apple Silicon are mariadb10_5, mysql57, and mysql8.

comment:6 Changed 2 years ago by chrstphrchvz (Christopher Chavez)

Cc: chrstphrchvz added

comment:7 Changed 2 years ago by wvalenzuela (Waldo)

Thanks for your comment, the problem is that if I run qt5-mysql-plugin it calls the 5.8 of mariadb, and I don't know how to point a port installation to use other dependency, and this is the only port for t5-mysql-plugin, I modified the error on 5.8 source code to compiled into ARM64, but I cannot tell the port installation that use a modified version because is checking the checksum... therefore I am stuck on that issue... thanks anyway for you comment... if you have another solution I will really appreciated

comment:8 Changed 2 years ago by chrstphrchvz (Christopher Chavez)

Modifying the port for older MariaDB to work on ARM64 will require some familiarity with portfiles, whereas installing a different qt5-mysql-plugin variant I would hope is as simple as e.g. sudo port install qt5-mysql-plugin +mysql8 (I suggest reading https://guide.macports.org/chunked/using.variants.html if you are not familiar with port variants).

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

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.