Opened 4 hours ago
Last modified 3 hours ago
#71367 new defect
mariadb-10.6 @10.6.19 does not build on PPC Tiger, Mac OS X 10.4.11, because of missing C header file spawn.h
Reported by: | ballapete (Peter "Pete" Dyballa) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.10.4 |
Keywords: | tiger ppc | Cc: | michaelld@… |
Port: | mariadb-10.6 |
Description
[ 24%] Building CXX object sql/CMakeFiles/wsrep.dir/wsrep_utils.cc.o cd /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/build/sql && /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/compwrap/cxx/opt/local/bin/g++-mp-7 -DHAVE_CONFIG_H -DHAVE_EVENT_SCHEDULER -DHAVE_POOL_OF_THREADS -DMYSQL_SERVER -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/mariadb-10.6.19/wsrep-lib/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/mariadb-10.6.19/wsrep-lib/wsrep-API/v26 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/build/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/mariadb-10.6.19/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/mariadb-10.6.19/sql -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/build/sql -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/mariadb-10.6.19/tpool -I/opt/local/include -I/opt/local/libexec/openssl3/include -pipe -I/opt/local/libexec/openssl3/include -I/opt/local/libexec/boost/1.78/include -Os -D_GLIBCXX_USE_CXX11_ABI=0 -pie -fPIC -fstack-protector --param=ssp-buffer-size=4 -DNDEBUG -D_FORTIFY_SOURCE=2 -DDBUG_OFF -std=gnu++11 -arch ppc -mmacosx-version-min=10.4 -I/opt/local/libexec/openssl3/include -I/opt/local/libexec/boost/1.78/include -isystem/opt/local/include/LegacySupport -isystem/opt/local/include -DHAVE_OPENSSL -DOPENSSL_API_COMPAT=0x10100000L -MD -MT sql/CMakeFiles/wsrep.dir/wsrep_utils.cc.o -MF CMakeFiles/wsrep.dir/wsrep_utils.cc.o.d -o CMakeFiles/wsrep.dir/wsrep_utils.cc.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/mariadb-10.6.19/sql/wsrep_utils.cc /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/mariadb-10.6.19/sql/wsrep_utils.cc:32:10: fatal error: spawn.h: No such file or directory #include <spawn.h> // posix_spawn() ^~~~~~~~~ compilation terminated. make[2]: *** [sql/CMakeFiles/wsrep.dir/wsrep_utils.cc.o] Error 1 make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/build' make[1]: *** [sql/CMakeFiles/wsrep.dir/all] Error 2 make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/build' make: *** [all] Error 2 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/build' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/build" && /usr/bin/make -w all VERBOSE=ON
Attachments (1)
Change History (4)
Changed 4 hours ago by ballapete (Peter "Pete" Dyballa)
comment:1 Changed 3 hours ago by ballapete (Peter "Pete" Dyballa)
Possibly the problem should not exist (from main.log):
1843 :debug:extract MACPORTS_LEGACY_SUPPORT_CPPFLAGS='-isystem/opt/local/include/LegacySupport' 2105 :debug:configure MACPORTS_LEGACY_SUPPORT_CPPFLAGS='-isystem/opt/local/include/LegacySupport' 2113 :debug:configure OBJC_INCLUDE_PATH='/opt/local/include/LegacySupport' 2118 :info:configure Executing: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/build" && /opt/local/bin/cmake ... **without mentioning Legacy Support on the command line**
The actual invocation of MariaDB's C++ compiler
is:
4844 :info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/build/sql && /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/compwrap/cxx/opt/local/bin/g++-mp-7 -DHAVE_CONFIG_H -DHAVE_EVENT_SCHEDULER -DHAVE_POOL_OF_THREADS -DMYSQL_SERVER -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/mariadb-10.6.19/wsrep-lib/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/mariadb-10.6.19/wsrep-lib/wsrep-API/v26 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/build/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/mariadb-10.6.19/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/mariadb-10.6.19/sql -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/build/sql -I/opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/mariadb-10.6.19/tpool -I/opt/local/include -I/opt/local/libexec/openssl3/include -pipe -I/opt/local/libexec/openssl3/include -I/opt/local/libexec/boost/1.78/include -Os -D_GLIBCXX_USE_CXX11_ABI=0 -pie -fPIC -fstack-protector --param=ssp-buffer-size=4 -DNDEBUG -D_FORTIFY_SOURCE=2 -DDBUG_OFF -std=gnu++11 -arch ppc -mmacosx-version-min=10.4 -I/opt/local/libexec/openssl3/include -I/opt/local/libexec/boost/1.78/include -isystem/opt/local/include/LegacySupport -isystem/opt/local/include -DHAVE_OPENSSL -DOPENSSL_API_COMPAT=0x10100000L -MD -MT sql/CMakeFiles/wsrep.dir/wsrep_utils.cc.o -MF CMakeFiles/wsrep.dir/wsrep_utils.cc.o.d -o CMakeFiles/wsrep.dir/wsrep_utils.cc.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_nue.de.rsync.macports.org_macports_release_tarballs_ports_databases_mariadb-10.6/mariadb-10.6/work/mariadb-10.6.19/sql/wsrep_utils.cc
which ought to work?
My Mac has:
pete 244 /\ port contents legacy-support | ggrep spawn /opt/local/include/LegacySupport/sys/spawn.h pete 246 /\ l /opt/local/include/LegacySupport/sys/spawn.h -rw-r--r-- 1 root admin 1316 24. Sep 16:06 /opt/local/include/LegacySupport/sys/spawn.h pete 248 /\ port installed -v legacy-support The following ports are currently installed: legacy-support @1.3.0_0 (active) requested_variants='' platform='darwin 8' archs='ppc' date='2024-09-24T16:06:07+0200'
comment:2 Changed 3 hours ago by ballapete (Peter "Pete" Dyballa)
The source file has:
#include <spawn.h> // posix_spawn()
while legacy's C header file is in sys/spawn.h
…
comment:3 Changed 3 hours ago by ballapete (Peter "Pete" Dyballa)
PPC Leopard
has
-r--r--r-- 1 root wheel 4841 19. Feb 2008 /usr/include/spawn.h -r--r--r-- 1 root wheel 2524 25. Mär 2008 /usr/include/sys/spawn.h
which is complete.
Note: See
TracTickets for help on using
tickets.
Main.log from PPC Tiger, Mac OS X 10.4.11