[GRASS-dev] r.viewshed does not compile in GRASS 7 either

Michael Barton Michael.Barton at asu.edu
Mon Sep 3 14:53:59 PDT 2012


On Sep 3, 2012, at 2:42 PM, William Kyngesburye <woklist at kyngchaos.com>
 wrote:

> Just tried something - it's definitely a clang problem.  Probably more strict, as I thought, about some C++ stuff by default.
> 
> It was working for me because of how Apple has the dev tools set up and how GRASS configure detects cc/c++.  For me, on Lion/Xcode 4.3, I have a bunch of symlinks:
> 
> /usr/bin/cc -> /usr/bin/clang
> /usr/bin/c++ -> /usr/bin/clang
> /usr/bin/gcc -> /usr/llvm-gcc-4.2/bin/llvm-gcc-4.2
> /usr/bin/g++ -> /usr/llvm-gcc-4.2/bin/llvm-g++-4.2
> 
> And it appears that GRASS is preferring gcc/g++ in configuration.  llvm, as I understand, is more of an intermediate compiler made to closely emulate gcc behavior.
> 
> Maybe on Mt Lion, those symlinks are different so that GRASS uses clang instead of llvm.  It's possible I have leftovers from a previous Xcode.
> 
> What did GRASS find for CC and CXX?  (see include/make/platform.make)


CC                  = gcc [could this be a problem???]
CXX                 = c++

Here's my Platform.make in case you want to check other things

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Platform.make
Type: application/octet-stream
Size: 9367 bytes
Desc: Platform.make
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20120903/3f2600ed/attachment-0001.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT00001.txt
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20120903/3f2600ed/attachment-0001.txt>


More information about the grass-dev mailing list