[MacPorts] #65132: spatialite: gcc-4.x has to be blacklisted on PPC: configure: error: C compiler cannot create executables
MacPorts
noreply at macports.org
Thu May 12 02:44:22 UTC 2022
#65132: spatialite: gcc-4.x has to be blacklisted on PPC: configure: error: C
compiler cannot create executables
---------------------------+-----------------------------------------
Reporter: barracuda156 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords: powerpc, tiger, snowleopard
Port: spatialite |
---------------------------+-----------------------------------------
Comment (by kencu):
MacPorts is adding it, it appears, not the build itself:
{{{
---> Configuring spatialite
DEBUG: Preferred compilers: clang macports-clang-14 macports-clang-13
macports-clang-12 macports-clang-11 macports-clang-10 macports-clang-9.0
DEBUG: Using compiler 'Xcode Clang'
DEBUG: Executing org.macports.configure (spatialite)
DEBUG: Environment:
CC='/usr/bin/clang'
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_spatialite/spatialite/work/.CC_PRINT_OPTIONS'
CFLAGS='-pipe -Os -mtune=native
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch
x86_64'
CPATH='/opt/local/include'
CPPFLAGS='-mtune=native -I/opt/local/lib/proj8/include
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
CXX='/usr/bin/clang++'
CXXFLAGS='-pipe -Os -mtune=native -stdlib=libc++
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch
x86_64'
DEVELOPER_DIR='/Library/Developer/CommandLineTools'
F90FLAGS='-pipe -Os -mtune=native -m64'
FCFLAGS='-pipe -Os -mtune=native -m64'
FFLAGS='-pipe -Os -mtune=native -m64'
INSTALL='/usr/bin/install -c'
LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names
-L/opt/local/lib/proj8/lib
-Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk
-arch x86_64'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='12.0'
OBJC='/usr/bin/clang'
OBJCFLAGS='-pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch
x86_64'
OBJCXX='/usr/bin/clang++'
OBJCXXFLAGS='-pipe -Os -mtune=native -stdlib=libc++
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch
x86_64'
SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk'
Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_spatialite/spatialite/work/libspatialite-5.0.1"
&& ./configure --prefix=/opt/local --enable-rttopo --enable-libxml2
--disable-freexl
DEBUG: system: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_spatialite/spatialite/work/libspatialite-5.0.1"
&& ./configure --prefix=/opt/local --enable-rttopo --enable-libxml2
--disable-freexl
}}}
And I think maybe something called the {{{debug-1.0}}} PortGroup is adding
it:
{{{
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c
-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
#
# This PortGroup sets up default variants for projects that want m
#
# Usage:
#
# PortGroup debug 1.0
configure.cflags-append -mtune=native
configure.cxxflags-append -mtune=native
configure.fflags-append -mtune=native
configure.f90flags-append -mtune=native
configure.fcflags-append -mtune=native
configure.cppflags-append -mtune=native
ui_debug "adding the default debug variant"
variant debug description {Enable debug flags and symbols} {
configure.cflags-delete -O1 -O2 -O3 -Os -mtune=native -DNDEBUG
-DNDEBUG=1
configure.cxxflags-delete -O1 -O2 -O3 -Os -mtune=native -DNDEBUG
-DNDEBUG=1
configure.cppflags-delete -O1 -O2 -O3 -Os -mtune=native -DNDEBUG
-DNDEBUG=1
configure.fflags-delete -O1 -O2 -O3 -Os -mtune=native -DNDEBUG
-DNDEBUG=1
configure.f90flags-delete -O1 -O2 -O3 -Os -mtune=native -DNDEBUG
-DNDEBUG=1
configure.fcflags-delete -O1 -O2 -O3 -Os -mtune=native -DNDEBUG
-DNDEBUG=1
# certain options break the way cmake configures, so test for cmake
variable
if {[info exists cmake_share_module_dir]} {
configure.args-delete -DCMAKE_BUILD_TYPE=Release
configure.args-append -DCMAKE_BUILD_TYPE=debugFull
} else {
configure.args-delete --disable-debug
configure.args-append --enable-debug
}
configure.cflags-append -g -O0
configure.cxxflags-append -g -O0
configure.fflags-append -g -O0
configure.f90flags-append -g -O0
configure.fcflags-append -g -O0
}
post-destroot {
if {[variant_isset debug]} {
ui_debug "Generating the .dSYM bundles because of +debug: find
${destroot}${prefix} -type f '(' -name '*.dylib' -or -name '*.so' ')'
-exec dsymutil {} +"
system -W ${destroot}${prefix} "find . -type f '(' -name '*.dylib'
-or -name '*.so' ')' -exec dsymutil {} +"
}
}
}}}
although why that portgroup exists, what it is for, and how to stop it
from doing that is presently a mystery.
--
Ticket URL: <https://trac.macports.org/ticket/65132#comment:11>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list