[GRASS-dev] g.extension, svn, and Mac

Steven Pawley dr.stevenpawley at gmail.com
Thu Aug 6 12:49:04 PDT 2020


Hi Michael,

Yes, the 7.8.4.dev binary has the same issue in that it is also looking for the /Users/cmbarton/SDKs/MacOSX10.14.sdk SDK.

Steve

> On Aug 6, 2020, at 11:22 AM, Michael Barton <Michael.Barton at asu.edu> wrote:
> 
> Steven,
> 
> Can you try this with the GRASS 7.8.4dev binary I have on the Mac site? I'd like to know if this affects all binaries or just 7.9
> 
> Thanks
> Michael
> ____________________
> C. Michael Barton
> Director, Center for Social Dynamics & Complexity 
> Director, Network for Computational Modeling in Social & Ecological Sciences
> Professor of Anthropology, School of Human Evolution & Social Change
> Head, Graduate Faculty in Complex Adaptive Systems Science
> Arizona State University
> 
> voice:  480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
> fax: 480-965-7671 (SHESC),  480-727-0709 (CSDC)
> www: 'http://www.public.asu.edu/~cmbarton <http://www.public.asu.edu/~cmbarton>, https://complexity.asu.edu/csdc' <https://complexity.asu.edu/csdc'>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>> On Aug 5, 2020, at 2:39 PM, Steven Pawley <dr.stevenpawley at gmail.com <mailto:dr.stevenpawley at gmail.com>> wrote:
>> 
>> Hi Michael,
>> 
>> Thanks for updating. I can still install python-based extensions without any error, however I still get the same error for compiled code:
>> 
>> g.extension extension=r.fill.gaps                                               
>> Fetching <r.fill.gaps> from GRASS GIS Addons repository (be patient)...
>> Compiling...
>> clang-10: warning: no such sysroot directory:
>> '/Users/cmbarton/SDKs/MacOSX10.14.sdk' [-Wmissing-sysroot]
>> cell_funcs.c:21:10: fatal error: 'math.h' file not found
>> #include <math.h>
>>          ^~~~~~~~
>> 1 error generated.
>> make: *** [OBJ.x86_64-apple-darwin19.6.0/cell_funcs.o] Error
>> 1
>> ERROR: Compilation failed, sorry. Please check above error messages.
>> 
>> Steve
>> 
>>> On Aug 5, 2020, at 2:00 PM, Michael Barton <Michael.Barton at asu.edu <mailto:Michael.Barton at asu.edu>> wrote:
>>> 
>>> Steve,
>>> 
>>> I just now posted a new updated GRASS 7.9dev that includes svn in the app. It solved the g.extension problem for me. Can you test and see if it solves it for you too? 
>>> 
>>> Michael
>>> ____________________
>>> C. Michael Barton
>>> Director, Center for Social Dynamics & Complexity 
>>> Director, Network for Computational Modeling in Social & Ecological Sciences
>>> Professor of Anthropology, School of Human Evolution & Social Change
>>> Head, Graduate Faculty in Complex Adaptive Systems Science
>>> Arizona State University
>>> 
>>> voice:  480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
>>> fax: 480-965-7671 (SHESC),  480-727-0709 (CSDC)
>>> www: '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=2Gr42Gr6-mCS6vSIKkL1gNxGKhgP9akeCkWc5-eOGZ8&s=bm8GNsnlGrRMgk5Aw-PILxKCHgti6ue1ipDNLN5bS8o&e=>, https://complexity.asu.edu/csdc' <https://urldefense.proofpoint.com/v2/url?u=https-3A__complexity.asu.edu_csdc-27&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=2Gr42Gr6-mCS6vSIKkL1gNxGKhgP9akeCkWc5-eOGZ8&s=h-op3BcIQNfbjiQKiuUA4VsQRB09LrvWPs0cx0vmmAc&e=>
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>>> On Aug 4, 2020, at 11:59 AM, Michael Barton <Michael.Barton at asu.edu <mailto:Michael.Barton at asu.edu>> wrote:
>>>> 
>>>> I'm pretty sure this happened when I installed developer tools 11.5 
>>>> 
>>>> I want to make sure that anyone using the binaries can do so without having to separately install any dependencies. So I'll see what happens if I just include svn in the app. I will need to test on a system that suffers from this lack. 
>>>> 
>>>> Michael
>>>> ____________________
>>>> C. Michael Barton
>>>> Director, Center for Social Dynamics & Complexity 
>>>> Director, Network for Computational Modeling in Social & Ecological Sciences
>>>> Professor of Anthropology, School of Human Evolution & Social Change
>>>> Head, Graduate Faculty in Complex Adaptive Systems Science
>>>> Arizona State University
>>>> 
>>>> voice:  480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
>>>> fax: 480-965-7671 (SHESC),  480-727-0709 (CSDC)
>>>> www: '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=2Gr42Gr6-mCS6vSIKkL1gNxGKhgP9akeCkWc5-eOGZ8&s=bm8GNsnlGrRMgk5Aw-PILxKCHgti6ue1ipDNLN5bS8o&e=>, https://complexity.asu.edu/csdc' <https://urldefense.proofpoint.com/v2/url?u=https-3A__complexity.asu.edu_csdc-27&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=2Gr42Gr6-mCS6vSIKkL1gNxGKhgP9akeCkWc5-eOGZ8&s=h-op3BcIQNfbjiQKiuUA4VsQRB09LrvWPs0cx0vmmAc&e=>
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 
>>>>> On Aug 4, 2020, at 11:56 AM, Steven Pawley <dr.stevenpawley at gmail.com <mailto:dr.stevenpawley at gmail.com>> wrote:
>>>>> 
>>>>> Hi Michael,
>>>>> 
>>>>> Right, I do have svn installed via Homebrew (I get  'Type 'svn help' for usage.’), so that probably explains why g.extension works for me overall, apart from the issue with finding the MacOS SDK.
>>>>> 
>>>>> Steve
>>>>> 
>>>>>> On Aug 4, 2020, at 11:27 AM, Michael Barton <Michael.Barton at asu.edu <mailto:Michael.Barton at asu.edu>> wrote:
>>>>>> 
>>>>>> Steven,
>>>>>> 
>>>>>> What happens if you open a terminal window and type 'svn' followed by a return? 
>>>>>> 
>>>>>> Michael
>>>>>> ____________________
>>>>>> C. Michael Barton
>>>>>> Director, Center for Social Dynamics & Complexity 
>>>>>> Director, Network for Computational Modeling in Social & Ecological Sciences
>>>>>> Professor of Anthropology, School of Human Evolution & Social Change
>>>>>> Head, Graduate Faculty in Complex Adaptive Systems Science
>>>>>> Arizona State University
>>>>>> 
>>>>>> voice:  480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
>>>>>> fax: 480-965-7671 (SHESC),  480-727-0709 (CSDC)
>>>>>> www: '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=3OtUJxnVDVfConnURZzc-TyoKzTbZWrxoF7zL8E2qZ0&s=6KybHpYJMo7V86xk_1VxAmD-_UolxXaQfLvYShRFgpk&e=>, https://complexity.asu.edu/csdc' <https://urldefense.proofpoint.com/v2/url?u=https-3A__complexity.asu.edu_csdc-27&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=3OtUJxnVDVfConnURZzc-TyoKzTbZWrxoF7zL8E2qZ0&s=abWZQP3dzmM5KTmBUXPwvqbzQUlMgfhQzUGEr0HevTo&e=>
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>> On Aug 3, 2020, at 6:53 PM, Steven Pawley <dr.stevenpawley at gmail.com <mailto:dr.stevenpawley at gmail.com>> wrote:
>>>>>>> 
>>>>>>> Perhaps a different issue,  but I can install extensions, but only pure python-based extensions. Anything that requires compilation of C code fails.
>>>>>>> 
>>>>>>> For example, when using the latest GRASS GIS binary (7.9, 25th July 2020 build), this works with r.texture.tiled:
>>>>>>> 
>>>>>>> Fetching <r.texture.tiled> from GRASS GIS Addons repository (be patient)...
>>>>>>> Compiling...
>>>>>>> Installing...
>>>>>>> Updating extensions metadata file...
>>>>>>> Updating extension modules metadata file...
>>>>>>> Installation of <r.texture.tiled> successfully finished
>>>>>>> 
>>>>>>> But for example, r.fill.gaps does not:
>>>>>>> 
>>>>>>> g.extension extension=r.fill.gaps                                               
>>>>>>> Fetching <r.fill.gaps> from GRASS GIS Addons repository (be patient)...
>>>>>>> Compiling...
>>>>>>> clang-10: warning: no such sysroot directory:
>>>>>>> '/Users/cmbarton/SDKs/MacOSX10.14.sdk' [-Wmissing-sysroot]
>>>>>>> cell_funcs.c:21:10: fatal error: 'math.h' file not found
>>>>>>> #include <math.h>
>>>>>>>          ^~~~~~~~
>>>>>>> 1 error generated.
>>>>>>> make: *** [OBJ.x86_64-apple-darwin19.5.0/cell_funcs.o] Error
>>>>>>> 1
>>>>>>> ERROR: Compilation failed, sorry. Please check above error messages.
>>>>>>> 
>>>>>>> The 7.9-dev build throws an error because it appears to be still looking for components based on your system, specifically.,The 7.8.4 binary (16th July 2020 build) also throws the same error. I’m running the MacOS 10.15.6.
>>>>>>> 
>>>>>>> Steve 
>>>>>>> 
>>>>>>> 
>>>>>>>> On Aug 2, 2020, at 4:44 PM, Michael Barton <Michael.Barton at asu.edu <mailto:Michael.Barton at asu.edu>> wrote:
>>>>>>>> 
>>>>>>>> I just learned yesterday, when I tried to install something from g.extension that:
>>>>>>>> 
>>>>>>>> 1. g.extension uses svn to download packages, and
>>>>>>>> 2. Apple stopped including svn with the current OS (10.15.x) and its developer tools
>>>>>>>> 
>>>>>>>> I don't know if anyone else has run into this yet, but it could be an increasingly sticky issue going forward. Unless there are plans to change how g.extension gets packages, I suppose I need to include it in the Mac app bundle. 
>>>>>>>> 
>>>>>>>> Has anyone else hit this yet?
>>>>>>>> 
>>>>>>>> Michael 
>>>>>>>> ____________________
>>>>>>>> C. Michael Barton
>>>>>>>> Director, Center for Social Dynamics & Complexity 
>>>>>>>> Director, Network for Computational Modeling in Social & Ecological Sciences
>>>>>>>> Professor of Anthropology, School of Human Evolution & Social Change
>>>>>>>> Head, Graduate Faculty in Complex Adaptive Systems Science
>>>>>>>> Arizona State University
>>>>>>>> 
>>>>>>>> voice:  480-965-6262 (SHESC), 480-965-8130/727-9746 (CSDC)
>>>>>>>> fax: 480-965-7671 (SHESC),  480-727-0709 (CSDC)
>>>>>>>> www: '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=esHRRZODAbgeKk6vYVpJkYSszGdc2vYZgvM7W5jtUjk&s=wLo54OaOggTCfa9dMnza-vU7d8tllnb8G9z7MW3tF38&e=>, https://complexity.asu.edu/csdc' <https://urldefense.proofpoint.com/v2/url?u=https-3A__complexity.asu.edu_csdc-27&d=DwMFaQ&c=l45AxH-kUV29SRQusp9vYR0n1GycN4_2jInuKy6zbqQ&r=lk-7X7CEOMDN8GaGVhiDsuO6gEp1wbG6nfT1XEEEtR0&m=esHRRZODAbgeKk6vYVpJkYSszGdc2vYZgvM7W5jtUjk&s=-cLS2YOXOnAMIbnQqtJQAbmXsjh9CVUVr2PzI6yj6FE&e=>
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> 
>>>>>>>> _______________________________________________
>>>>>>>> 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=3OtUJxnVDVfConnURZzc-TyoKzTbZWrxoF7zL8E2qZ0&s=4UVbmUdiztW2twuvUPIEUWiez0RLGyHRTdL0TV5DVfw&e=>
>>>>>> 
>>>>> 
>>>> 
>>> 
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20200806/bd551dc6/attachment-0001.html>


More information about the grass-dev mailing list