Re: [PATCH] Trivial patch to allow bootstrap on MacOS

2019-11-28 Thread Keller, Rainer
Dear Iain, thanks for the quick reply. I wasn’t aware of the ticket 79885. Yes, the intent is to use the same sysroot for build & run. Hmm, the —with-sysroot is from gcc/configure option — not from the main configure. Not wanting to turn this into a bug-report, but… using —with-sysroot instead o

Re: [PATCH] Trivial patch to allow bootstrap on MacOS

2019-11-28 Thread Iain Sandoe
Hello again Rainer, Iain Sandoe wrote: GMP however is installed elsewhere (by Homebrew, MacPorts etc), so ignore any -nostdinc it also works to symlink the sources for gmp, mpfr, mpc (and isl, if you use it) into the source tree - those then get boostrapped along with the compiler and t

Re: [PATCH] Trivial patch to allow bootstrap on MacOS

2019-11-28 Thread Iain Sandoe
Hello Rainer, thanks for the patch, but I think it’s only a work-around to part of the problem and there are alternate strategies for the “usual case” on MacOS/Darwin. Keller, Rainer wrote: the following is required to allow bootstrap in libcc1 during stage3 on MacOS Catalina (10.15). l

[PATCH] Trivial patch to allow bootstrap on MacOS

2019-11-28 Thread Keller, Rainer
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'-' | c