[GRASS-dev] Compiler error in /lib/calc
Michael Barton
Michael.Barton at asu.edu
Fri Jul 6 09:45:58 PDT 2018
Thanks Markus,
Include/defs/calc.h did update too. But perhaps the problem lies in that piece of code somehow?
Michael
______________________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University
Tempe, AZ 85287-2402
USA
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671(SHESC), 480-727-0709 (CSDC)
www: http://csdc.asu.edu, http://shesc.asu.edu
http://www.public.asu.edu/~cmbarton
From: Markus Metz <markus.metz.giswork at gmail.com>
Date: Thursday, July 5, 2018 at 11:16 PM
To: Michael Barton <Michael.Barton at asu.edu>
Cc: Vaclav Petras <wenzeslaus at gmail.com>, GRASS developers list <grass-dev at lists.osgeo.org>
Subject: Re: [GRASS-dev] Compiler error in /lib/calc
Michael,
the includes changed with trunk r72940, you also need to update include/ because f_ceil and f_floor are declared in include/defs/calc.h
Markus M
On Fri, Jul 6, 2018 at 12:06 AM, Michael Barton <Michael.Barton at asu.edu<mailto:Michael.Barton at asu.edu>> wrote:
PS: The errors are undeclared identifiers. Is there something missing that needs to be there on the Mac? Or do these need to be declared in a different place in function.c to be recognized?
function.c
function.c:14:22: error: use of undeclared identifier 'f_ceil'
{"ceil", c_unop, f_ceil},
^
function.c:15:23: error: use of undeclared identifier 'f_floor'; did you
mean 'f_float'?
{"floor", c_unop, f_floor},
Thanks Vaclav,
I tried this first with a make distclean and svn update.
Then, to be sure, I deleted all files and trunk and restored them fresh.
Same problem.
This all compiled with no errors a week or two back.
When I did the svn up, the items that had changed in lib/calc since my last update are
U lib/calc/function.c
A lib/calc/xceil.c
A lib/calc/xfloor.c
Michael
______________________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Head, Graduate Faculty in Complex Adaptive Systems Science
Arizona State University
Tempe, AZ 85287-2402
USA
voice: 480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
fax: 480-965-7671(SHESC), 480-727-0709 (CSDC)
www: http://csdc.asu.edu<https://urldefense.proofpoint.com/v2/url?u=http-3A__csdc.asu.edu&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=hHikQicGl6t48Jqqxi9dz917Qrb1kz1-9ovZI57-JF0&s=JFHCY8yzcWpjyMriH6OIOD8Gp6uqqFOoNqksKBgSDuc&e=>, http://shesc.asu.edu<https://urldefense.proofpoint.com/v2/url?u=http-3A__shesc.asu.edu&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=hHikQicGl6t48Jqqxi9dz917Qrb1kz1-9ovZI57-JF0&s=vlGFh0qvy9SqddC-VR6ZGJN6vOeso9MI_ZmzmSllf94&e=>
http://www.public.asu.edu/~cmbarton<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.public.asu.edu_-7Ecmbarton&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=hHikQicGl6t48Jqqxi9dz917Qrb1kz1-9ovZI57-JF0&s=_AbSfNfwZvHjuQ9Gov4mR1azDDcms9ytXxXznfCImZo&e=>
On 7/5/18, 2:54 PM, "grass-dev on behalf of grass-dev-request at lists.osgeo.org<mailto:grass-dev-request at lists.osgeo.org>" <grass-dev-bounces at lists.osgeo.org<mailto:grass-dev-bounces at lists.osgeo.org> on behalf of grass-dev-request at lists.osgeo.org<mailto:grass-dev-request at lists.osgeo.org>> wrote:
Date: Thu, 5 Jul 2018 17:54:24 -0400
From: Vaclav Petras <wenzeslaus at gmail.com<mailto:wenzeslaus at gmail.com>>
To: Michael Barton <Michael.Barton at asu.edu<mailto:Michael.Barton at asu.edu>>
Cc: "grass-dev at lists.osgeo.org<mailto:grass-dev at lists.osgeo.org>" <grass-dev at lists.osgeo.org<mailto:grass-dev at lists.osgeo.org>>
Subject: [GRASS-dev] Compiler error in /lib/calc
Message-ID:
<CABo5uVsCZT=Vz3odmBD76zsNF_V9t09PvcVi1GhwiT85HVncZQ at mail.gmail.com<mailto:Vz3odmBD76zsNF_V9t09PvcVi1GhwiT85HVncZQ at mail.gmail.com>>
Content-Type: text/plain; charset="utf-8"
[Response to Re: [GRASS-dev] grass-dev Digest, Vol 149, Issue 11]
Hi Michael,
I'm not able to reproduce this issue on Linux with clang (which is used on
Mac) even with more strict compiler settings:
clang -O2 -fno-common -Wall -pedantic -Wextra ...
Since both "installation/dist" and source paths appear in the command line,
even the error message says the function is there (actually, already in the
installed/dist path), the includes were not changed (in r72940), and the
errors are only related to the newly added functions (f_ceil, f_floor), I
suggest just updating and recompiling again and making sure that two source
codes or installations are not tangled together.
For the record, this is not related to m.nviz.image changes. It might be
related to r72940 r.mapcalc: +ceil, +floor (fixes #769).
Best,
Vaclav
On Thu, Jul 5, 2018 at 5:14 PM, Michael Barton <Michael.Barton at asu.edu<mailto:Michael.Barton at asu.edu>>
wrote:
>To try and test the fix to m.nviz.image, I just now did for trunk:
>
>Make distclean
>Svn update
>Configure (no problem)
>Compile
>
>I got a compiler error in /lib/calc (error below)
>Is this due to the recent fix?
>
>I also tried it with a completely new version of trunk downloaded and got
>the same errors.
>
>Michael
>
_______________________________________________
grass-dev mailing list
grass-dev at lists.osgeo.org<mailto:grass-dev at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/grass-dev<https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.osgeo.org_mailman_listinfo_grass-2Ddev&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=hHikQicGl6t48Jqqxi9dz917Qrb1kz1-9ovZI57-JF0&s=euppTD184bxico_IDC2sRYIrUcRPBoSlmOT3gUgdYcQ&e=>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20180706/21085042/attachment-0001.html>
More information about the grass-dev
mailing list