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!news.eternal-september.org!feeder.eternal-september.org!news.szaf.org!news.gnuher.de!rz.uni-karlsruhe.de!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail From: Felix Krause Newsgroups: comp.lang.ada Subject: Re: GCC 4.8.1 for Mac OS X Date: Mon, 8 Jul 2013 22:06:26 +0200 Organization: 1&1 Internet AG Message-ID: References: NNTP-Posting-Host: pd9540980.dip0.t-ipconnect.de Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: online.de 1373313986 3689 217.84.9.128 (8 Jul 2013 20:06:26 GMT) X-Complaints-To: abuse@einsundeins.com NNTP-Posting-Date: Mon, 8 Jul 2013 20:06:26 +0000 (UTC) User-Agent: Unison/2.1.10 Xref: news.eternal-september.org comp.lang.ada:16172 Date: 2013-07-08T22:06:26+02:00 List-Id: On 2013-07-07 18:37:02 +0000, Simon Wright said: > You can find this at > https://sourceforge.net/projects/gnuada/files/GNAT_GCC%20Mac%20OS%20X/4.8.1/ > > The README says: > > This is GCC 4.8.1 built for Mac OS X Mountain Lion (10.8.4, Darwin 12.4.0). > > [snip] Great! However, when I try to build any GPRBuild project with the included gprbuild, it doesn't recognize the compiler. This is from gprconfig's verbose output: Foreach compiler in /opt/gcc-4.8.1/bin regexp=TRUE extra_dir=FALSE [...] GCC is candidate: filename=gcc target: executing "gcc -dumpmachine" output= no match target: grep matched="x86_64-apple-darwin12" version: executing "gcc -v" output= no match version: grep no match Ignore compiler, since couldn't guess its version [...] GNAT is candidate: filename=gnatmake target: executing "gcc -dumpmachine" output= no match target: grep matched="x86_64-apple-darwin12" version: executing "gnatls -v" output= no match version: grep matched="4.8" variables: executing "gcc -v" output= no match variables: grep no match Ignore compiler since variable 'gcc_version' is empty Interestingly, gcc -v outputs german text, which may be the reason for the failure: Es werden eingebaute Spezifikationen verwendet. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/opt/gcc-4.8.1/libexec/gcc/x86_64-apple-darwin12/4.8.1/lto-wrapper Ziel: x86_64-apple-darwin12 Konfiguriert mit: ../gcc-4.8.1/configure --prefix=/opt/gcc-4.8.1 --disable-multilib --enable-languages=c,c++,ada,fortran,objc,obj-c++ --target=x86_64-apple-darwin12 --build=x86_64-apple-darwin12 Thread-Modell: posix gcc-Version 4.8.1 (GCC) I believe the last line is the problem; Apple's llvm-gcc gives: gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00) so if gprconfig searches for "gcc version", it will fail. I don't have a clue why gcc gives german output; I am german, but my system language is english, and other binaries usually give english output. Does anyone know how I can fix this? -- Felix Krause http://flyx.org/