Opened 2 years ago

Last modified 4 weeks ago

#66168 assigned defect

mariadb-10.1 @10.1.48: error: expected unqualified-id

Reported by: RonnieRocket147 Owned by: michaelld (Michael Dickens)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: Cc:
Port: mariadb-10.1

Description

--->  Building mariadb-10.1
Error: Failed to build mariadb-10.1: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mariadb-10.1/mariadb-10.1/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port mariadb-10.1 failed

mariadb-10.9 has no issues, however I needed 10.1 to access an older MariaDB server.

Any help is much appreciated!

Attachments (1)

main.log.zip (59.9 KB) - added by RonnieRocket147 2 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 2 years ago by RonnieRocket147

The log file shows this:

:info:build /usr/bin/ranlib libxtradb.a
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mariadb-10.1/mariadb-10.1/work/build'
:info:build [ 34%] Built target xtradb
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mariadb-10.1/mariadb-10.1/work/build'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mariadb-10.1/mariadb-10.1/work/build'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mariadb-10.1/mariadb-10.1/work/build" && /usr/bin/make -j10 -w all VERBOSE=ON 
:info:build Exit code: 2
:error:build Failed to build mariadb-10.1: command execution failed
:debug:build Error code: CHILDSTATUS 12328 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 8)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_databases_mariadb-10.1/mariadb-10.1/main.log for details.

comment:2 Changed 2 years ago by RonnieRocket147

Port: mariadb-10.1 added; mariadb-10.1-server removed

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

Owner: set to michaelld
Status: newassigned

Please attach the whole log (compressed if it's large).

Changed 2 years ago by RonnieRocket147

Attachment: main.log.zip added

comment:4 Changed 4 weeks ago by ryandesign (Ryan Carsten Schmidt)

Summary: mariadb-10.1 fails to build on macOS Ventura 13.0 (MacBook Pro M1)mariadb-10.1 @10.1.48: error: expected unqualified-id

The error in the log is actually:

mariadb-10.1.48/version:1:1: error: expected unqualified-id
MYSQL_VERSION_MAJOR=10
^

This is an incompatibility between this project and C++20-capable compilers on case-insensitive filesystems. This project's VERSION file is being misinterpreted as the C++ <version> header. Solutions that the port could employ include not adding an -I flag that points to the directory that contains the VERSION file, or deleting or renaming the VERSION file and updating any essential references to it elsewhere in the project.

Note: See TracTickets for help on using tickets.