Dear all,
the following is required to allow bootstrap in libcc1 during stage3 on MacOS 
Catalina (10.15). libcc1 invokes g++ with —nostdinc++

MacOS Catalina doesn’t provide /usr/include anymore, instead one builds with:
OSX_SDK_VERSION=`xcodebuild -showsdks | grep 'macOS\ 10' | cut -f2- -d'-' | cut 
-f2 -d' '`
OSX_SDK_PATH=`xcodebuild -sdk $OSX_SDK_VERSION -version | grep -E '^Path: ' | 
cut -f2 -d' '`

configure … --with-build-sysroot=$OSX_SDK_PATH

GMP however is installed elsewhere (by Homebrew, MacPorts etc), so ignore any 
-nostdinc

Please note, I am not subscribed to the list.

Best regards,
Rainer Keller

gcc/Changelog:
        * Have gmp.h be found outside of sysroot

--
Index: gcc/system.h
===================================================================
--- gcc/system.h        (revision 278783)
+++ gcc/system.h        (working copy)
@@ -684,7 +684,7 @@
 
 /* Do not introduce a gmp.h dependency on the build system.  */
 #ifndef GENERATOR_FILE
-#include <gmp.h>
+#include "gmp.h"
 #endif
 
 /* Get libiberty declarations.  */

Reply via email to