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 20:08:55 +0100 Organization: A noiseless patient Spider Message-ID: References: <4a4cee95-52e4-42c6-b4bb-a8146744bafd@googlegroups.com> <9f2f108e-9f8d-4ba2-86ad-ca5baae7c771@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="e5f31545d127a6738a4229c67d648b1c"; logging-data="13845"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19avjzAR3KUWAeuMQiXyL/K2cAlNqbRIEw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (darwin) Cancel-Lock: sha1:7ZtQVWsLjiDO6YqFgDIfY9W466Y= sha1:A/iatnjVLnoLWJgkkf29eaoiQNQ= Xref: news.eternal-september.org comp.lang.ada:32023 Date: 2016-10-06T20:08:55+01:00 List-Id: Lucretia writes: > On Thursday, 6 October 2016 18:14:28 UTC+1, Lucretia wrote: > >> Aaaaand, that seems to be working. Thanks! Should be able to build an >> iPhone compiler once this is done, Fun times! > > I do wonder whether it should use the system libstdc++ rather than > build the gcc one. Building against the gcc one causes problems when some of the symbols aren't defined in the system one. build/genpreds -h ../../gcc-6.1.0/gcc/common.md ../../gcc-6.1.0/gcc/config/i386/i386.md > tmp-preds.h dyld: Symbol not found: __ZdlPvm Referenced from: /Users/simon/tmp/gcc-6.1.0-build/gcc/build/genpreds (which was built for Mac OS X 10.11) Expected in: /usr/lib/libstdc++.6.dylib in /Users/simon/tmp/gcc-6.1.0-build/gcc/build/genpreds which I fixed by moving the just-built GCC libstdc++.6.dylib to the place it's expected to be, in my case /opt/gcc-6.1.0/lib, and then carrying on with the build. I haven't reported this; perhaps -static-libstdc++ needed in --with-boot-ldflags? This is a complicated and timeconsuming area to investigate.