From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: to Simon Wright, re Mac OS X builds Date: Thu, 06 Oct 2016 17:30:14 +0100 Organization: A noiseless patient Spider Message-ID: References: <4a4cee95-52e4-42c6-b4bb-a8146744bafd@googlegroups.com> <1591021727.497443716.927203.laguest-archeia.com@nntp.aioe.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="e5f31545d127a6738a4229c67d648b1c"; logging-data="7421"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+QG7L1KWDVDGZW8cZTN7PBY/5hBOoI3z4=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) Cancel-Lock: sha1:V/gJD2LrPVvZKpklD7hRkFMdkmw= sha1:ofMgSpqil54yLZcXulHdisfRcGA= Xref: news.eternal-september.org comp.lang.ada:32017 Date: 2016-10-06T17:30:14+01:00 List-Id: Luke A. Guest writes: > Simon Wright wrote: >> Lucretia writes: >> >>> I'm trying to replicate your build of 6.1.0 for mac so I get an >>> understanding of the build process on Mac. Problem is, it's >>> failing. There must be more than what you are telling going on on your >>> platform. >> >>> checking how to run the C++ preprocessor... /lib/cpp >>> configure: error: in `/Users/laguest/gcc/build/gcc-6.1.0/gmp': >>> configure: error: C++ preprocessor "/lib/cpp" fails sanity check >>> See `config.log' for more details >> I couldn't reproduce the problem; maybe I made some change which is >> still there. I don't have any notes about it, but if I did have this >> problem I would have started looking in config.log. > > Yeah I did. > >> This message comes from gmp/configure:10323. Why it's looking for >> /lib/cpp I don't know (/lib doesn't exist); it should be using "g++ -E". > > Yea, but if you look , it tries two variations of the above then > /lib/cpp. Not sure if that's a mac specific thing, I think it is, > need to check the actual configure script. If so this needs a patch i > think to call xcrun instead, but then I don't know if this is supposed > to used apple's cop or the GCC one from the cross compiler you > provided. The GMP 5.1.3 config seems not to want to use C++, and it's disabled unless you say --enable-cxx; and I doubt that's done if gmp is linked into the top-level GCC directory. > Did you build gmp, mpc, mpfr and isl with apple's tools or with GCC? > Did you just link in the firs into the GCC root dir? I've always (since I read that it was possible) linked the maths packages into the top-level GCC directory and let GCC build them. gmp-5.1.3 mpc-1.0.2 mpfr-3.1.2