<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">My employer automatically installs the latest versions of MacOS software, including now Xcode 11.2. I have been seeing several suggestions that we should go back to Xcode 10.3, which I tried a few weeks ago
 when I was on Xcode 11.1. That was OK and all my ports were working until they upgraded my machine to Xcode 11.2. At first, there was an incompatibility between the version of the Swift library from my 10.3 installation that was still in the Xcode directories
 and the system Swift library so nothing in the compiler would work. I deleted my whole Xcode.app directory and reinstalled Xcode 11.2. Now that I have a clean Xcode 11.2, it does not have the MacOSX10.14.sdk installed and the gcc7 and gcc9 installations from
 MacPorts are still depending on that. I tried reinstalling the command-line tools, as someone suggested yesterday, but it tells me that they are already installed.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I uninstalled my gcc7 port and reinstalled it to see if it would update the libraries. The port install command installed the precompiled binaries that are linked to the MacOSX10.14.sdk, so it won’t run correctly.
 Can I force MacPorts to recompile gcc7 instead of using the precompiled binaries?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">This is the output of ‘cpp -v’ from gcc7 (it is similar if I select gcc9):<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Using built-in specs.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">COLLECT_GCC=cpp<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Target: x86_64-apple-darwin18<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Configured with: /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_gcc7/gcc7/work/gcc-7.4.0/configure --prefix=/opt/local --build=x86_64-apple-darwin18 --enable-languages=c,c++,objc,obj-c++,lto,fortran
 --libdir=/opt/local/lib/gcc7 --includedir=/opt/local/include/gcc7 --infodir=/opt/local/share/info --mandir=/opt/local/share/man --datarootdir=/opt/local/share/gcc-7 --with-local-prefix=/opt/local --with-system-zlib --disable-nls --program-suffix=-mp-7 --with-gxx-include-dir=/opt/local/include/gcc7/c++/
 --with-gmp=/opt/local --with-mpfr=/opt/local --with-mpc=/opt/local --with-isl=/opt/local --enable-stage1-checking --disable-multilib --enable-lto --enable-libstdcxx-time --with-build-config=bootstrap-debug --with-as=/opt/local/bin/as --with-ld=/opt/local/bin/ld
 --with-ar=/opt/local/bin/ar --with-bugurl=https://trac.macports.org/newticket --disable-tls --with-pkgversion='MacPorts gcc7 7.4.0_3' --with-sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thread model: posix<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">gcc version 7.4.0 (MacPorts gcc7 7.4.0_3)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">COLLECT_GCC_OPTIONS='-E' '-v' '-mmacosx-version-min=10.14.7' '-asm_macosx_version_min=10.14' '-mtune=core2'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">/opt/local/libexec/gcc/x86_64-apple-darwin18/7.4.0/cc1 -E -quiet -v -D__DYNAMIC__ - -fPIC -mmacosx-version-min=10.14.7 -mtune=core2<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/opt/local/include"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">ignoring nonexistent directory "/opt/local/lib/gcc7/gcc/x86_64-apple-darwin18/7.4.0/../../../../../x86_64-apple-darwin18/include"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">ignoring nonexistent directory "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/Library/Frameworks"<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">#include "..." search starts here:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">#include <...> search starts here:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">/opt/local/lib/gcc7/gcc/x86_64-apple-darwin18/7.4.0/include<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">/opt/local/lib/gcc7/gcc/x86_64-apple-darwin18/7.4.0/include-fixed<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">End of search list.<o:p></o:p></span></p>
</div>
</body>
</html>