[GRASS-dev] possible problem with r.terraflow
William Kyngesburye
woklist at kyngchaos.com
Fri Aug 31 06:43:07 PDT 2012
C++ compiler is clang starting with Lion. It's a little more strict in some cases, I noticed, and maybe Mt Lion more so. bug somewhere.
On Aug 30, 2012, at 11:07 PM, Michael Barton wrote:
> I just tried updating and compiling GRASS 6.4 svn and got an error compiling r.terraflow. It could be because I am still working out how to compile on Apple OSX 10.8 (Mt. Lion), but the rest of 6.4.3 compiled without errors. I'll list the error here. If this is really a bug, I can file a report.
>
> Michael
>
> =========== r.terraflow error ============
>
> Michaels-MacBook-Air:r.terraflow cmbarton$ make
> c++ -c -I/Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include -arch i386 -isysroot /Developer/SDKs/MacOSX10.6.sdk -DUSER=\"cmbarton\" -DNODATA_FIX -D_FILE_OFFSET_BITS=64 -DPACKAGE=\""grassmods"\" -DELEV_FLOAT main.cc -o OBJ.x86_64-apple-darwin12.1.0/FLOAT/main.o
> In file included from main.cc:39:
> In file included from ./common.h:27:
> In file included from /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/iostream/ami.h:39:
> In file included from /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/iostream/empq_impl.h:26:
> In file included from /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/iostream/empq.h:33:
> /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/iostream/embuffer.h:1123:56: error:
> default arguments cannot be added to an out-of-line definition of a member
> of a class template
> long em_buffer<T,Key>::insert(AMI_STREAM<T>* str, long bos=0) {
> ^ ~
> In file included from main.cc:39:
> In file included from ./common.h:27:
> In file included from /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/iostream/ami.h:39:
> In file included from /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/iostream/empq_impl.h:26:
> In file included from /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/iostream/empq.h:35:
> /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/iostream/minmaxheap.h:494:7: error:
> reference to non-static member function must be called; did you mean to
> call it with no arguments?
> if (size) {
> ^~~~
> ()
> main.cc:181:16: warning: format string is not a string literal
> (potentially insecure) [-Wformat-security]
> G_fatal_error(_("Unable to create temp dir"));
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/glocale.h:10:16: note:
> expanded from macro '_'
> #define _(str) G_gettext(PACKAGE,(str))
> ^~~~~~~~~~~~~~~~~~~~~~~~
> main.cc:191:15: warning: format string is not a string literal
> (potentially insecure) [-Wformat-security]
> G_warning(_("The '-q' flag is superseded and will be removed "
> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/glocale.h:10:16: note:
> expanded from macro '_'
> #define _(str) G_gettext(PACKAGE,(str))
> ^~~~~~~~~~~~~~~~~~~~~~~~
> main.cc:367:19: warning: format string is not a string literal
> (potentially insecure) [-Wformat-security]
> G_fatal_error(_("cannot read range"));
> ^~~~~~~~~~~~~~~~~~~~~~
> /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/glocale.h:10:16: note:
> expanded from macro '_'
> #define _(str) G_gettext(PACKAGE,(str))
> ^~~~~~~~~~~~~~~~~~~~~~~~
> main.cc:389:19: warning: format string is not a string literal
> (potentially insecure) [-Wformat-security]
> G_fatal_error(_("cannot write colors"));
> ^~~~~~~~~~~~~~~~~~~~~~~~
> /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/glocale.h:10:16: note:
> expanded from macro '_'
> #define _(str) G_gettext(PACKAGE,(str))
> ^~~~~~~~~~~~~~~~~~~~~~~~
> main.cc:407:19: warning: format string is not a string literal
> (potentially insecure) [-Wformat-security]
> G_fatal_error(_("cannot read range"));
> ^~~~~~~~~~~~~~~~~~~~~~
> /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/glocale.h:10:16: note:
> expanded from macro '_'
> #define _(str) G_gettext(PACKAGE,(str))
> ^~~~~~~~~~~~~~~~~~~~~~~~
> main.cc:414:19: warning: format string is not a string literal
> (potentially insecure) [-Wformat-security]
> G_fatal_error(_("cannot write colors"));
> ^~~~~~~~~~~~~~~~~~~~~~~~
> /Users/Shared/grass_dev/grass64_rb/dist.x86_64-apple-darwin12.1.0/include/grass/glocale.h:10:16: note:
> expanded from macro '_'
> #define _(str) G_gettext(PACKAGE,(str))
> ^~~~~~~~~~~~~~~~~~~~~~~~
> main.cc:434:44: warning: format specifies type 'int' but the argument has type
> 'unsigned long' [-Wformat]
> G_message( "\t\t FILL: %s [%d elements, %dB each]",
> ~^
> %ld
> main.cc:437:45: warning: format specifies type 'int' but the argument has type
> 'unsigned long' [-Wformat]
> G_message( "\t\t FLOW: %s [%ld elements, %dB each]",
> ~^
> %ld
> 8 warnings and 2 errors generated.
> make: *** [OBJ.x86_64-apple-darwin12.1.0/FLOAT/main.o] Error 1
>
>
>
> ____________________
> C. Michael Barton
> Director, Center for Social Dynamics & Complexity
> Professor of Anthropology, School of Human Evolution & Social Change
> Arizona State University
>
> voice: 480-965-6262 (SHESC), 480-727-9746 (CSDC)
> fax: 480-965-7671 (SHESC), 480-727-0709 (CSDC)
> www: http://www.public.asu.edu/~cmbarton, http://csdc.asu.edu
>
>
>
>
>
>
>
>
>
>
>
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
"Time is an illusion - lunchtime doubly so."
- Ford Prefect
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
[Trillian] What are you supposed to do WITH a maniacally depressed robot?
[Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer...
- HitchHiker's Guide to the Galaxy
More information about the grass-dev
mailing list