comp.lang.ada
 help / color / mirror / Atom feed
From: Felix Krause <flyx@isobeef.org>
Subject: Re: GCC 4.8.1 for Mac OS X
Date: Mon, 8 Jul 2013 22:06:26 +0200
Date: 2013-07-08T22:06:26+02:00	[thread overview]
Message-ID: <krf642$3j9$1@online.de> (raw)
In-Reply-To: lya9lyz06p.fsf@pushface.org

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=<use -v -v> no match
      target: grep matched="x86_64-apple-darwin12"
      version: executing "gcc -v" output=<use -v -v> no match
      version: grep no match
      Ignore compiler, since couldn't guess its version

    [...]

    GNAT is candidate: filename=gnatmake
      target: executing "gcc -dumpmachine" output=<use -v -v> no match
      target: grep matched="x86_64-apple-darwin12"
      version: executing "gnatls -v" output=<use -v -v> no match
      version: grep matched="4.8"
      variables: executing "gcc -v" output=<use -v -v> 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/

  parent reply	other threads:[~2013-07-08 20:06 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-07 18:37 GCC 4.8.1 for Mac OS X Simon Wright
2013-07-07 22:02 ` Bill Findlay
2013-07-08  7:25   ` Simon Wright
2013-07-08 17:57     ` Bill Findlay
2013-07-08 20:06 ` Felix Krause [this message]
2013-07-08 22:37   ` Simon Wright
2013-07-09 15:31     ` Felix Krause
2013-07-09 19:35       ` Simon Wright
2013-07-17 19:57 ` Felix Krause
2013-07-17 21:00   ` Simon Wright
2013-07-18 20:23     ` Simon Wright
2013-07-21  0:59 ` Michael Rohan
2013-07-21  1:06   ` Bill Findlay
2013-07-21  1:19     ` Michael Rohan
2013-07-21  3:57     ` Dennis Lee Bieber
2013-07-21 11:55   ` Simon Wright
2013-07-21 18:01     ` Michael Rohan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox