[GRASS-user] Multiple errors building Grass 7.7svn

Patton, Eric (NRCan/RNCan) eric.patton at canada.ca
Wed May 22 06:32:07 PDT 2019


Hi Markus,

I noted your new installation instructions for the git repo and have used those. 

The first error in error.log occurs in /usr/local/grass/lib/proj:
 
test -d OBJ.x86_64-pc-linux-gnu || mkdir -p OBJ.x86_64-pc-linux-gnu
gcc  -g -O2  -fPIC  -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include    -I/usr/local/include -DPACKAGE=\""grasslibs"\"   -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -DRELDIR=\"lib/proj\" -o OBJ.x86_64-pc-linux-gnu/convert.o -c convert.c
gcc  -g -O2  -fPIC  -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include    -I/usr/local/include -DPACKAGE=\""grasslibs"\"   -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -DRELDIR=\"lib/proj\" -o OBJ.x86_64-pc-linux-gnu/datum.o -c datum.c
gcc  -g -O2  -fPIC  -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include    -I/usr/local/include -DPACKAGE=\""grasslibs"\"   -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -DRELDIR=\"lib/proj\" -o OBJ.x86_64-pc-linux-gnu/do_proj.o -c do_proj.c
gcc  -g -O2  -fPIC  -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include    -I/usr/local/include -DPACKAGE=\""grasslibs"\"   -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -I/usr/local/grass/dist.x86_64-pc-linux-gnu/include -DRELDIR=\"lib/proj\" -o OBJ.x86_64-pc-linux-gnu/ellipse.o -c ellipse.c
do_proj.c: In function ‘GPJ_init_transform’:
do_proj.c:136:6: error: expected ‘}’ before ‘else’
      else {
      ^~~~
do_proj.c: At top level:
do_proj.c:160:5: error: expected identifier or ‘(’ before ‘if’
     if (info_trans->pj == NULL)
     ^~
do_proj.c:162:5: error: expected identifier or ‘(’ before ‘if’
     if (info_trans->pj == NULL) {
     ^~
do_proj.c:167:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘->’ token
     info_trans->meters = 1.;
               ^~
do_proj.c:168:15: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘->’ token
     info_trans->zone = 0;
               ^~
do_proj.c:169:23: error: expected ‘)’ before ‘->’ token
     sprintf(info_trans->proj, "pipeline");
                       ^~
do_proj.c:180:5: error: expected identifier or ‘(’ before ‘return’
     return 1;
     ^~~~~~
do_proj.c:181:1: error: expected identifier or ‘(’ before ‘}’ token
 }
 ^
../../include/Make/Compile.make:32: recipe for target 'OBJ.x86_64-pc-linux-gnu/do_proj.o' failed
make: *** [OBJ.x86_64-pc-linux-gnu/do_proj.o] Error 1
make: *** Waiting for unfinished jobs....

Thanks,

~ Eric.




-----Original Message-----
From: Markus Neteler <neteler at osgeo.org> 
Sent: May 21, 2019 16:49
To: Patton, Eric (NRCan/RNCan) <eric.patton at canada.ca>
Cc: grass-user at lists.osgeo.org
Subject: Re: [GRASS-user] Multiple errors building Grass 7.7svn

Hi Eric,

On Tue, May 21, 2019 at 6:00 PM Patton, Eric (NRCan/RNCan) <eric.patton at canada.ca> wrote:
...
> I was running Grass 7.7svn (trunk) fine last week, and updated to v74509 today on Linux Mint 19.1.

We just moved to GitHub:

git clone https://github.com/OSGeo/grass.git

However, a question:

> No errors during configure, but make showed many errors of the type:
>
> Error: /usr/lib/gcc/x86_64-linux-gnu/7/include/xmmintrin.h:120: Syntax error at '{'

I guess that these error messages appear in the ctypes part which is
(unfortunately) "normal" and apparently not an issue.
...

> There’s far too many errors to list here, but the result of it is that 221 grass modules fail to build.

Which is the first one listed in
error.log
?

Can you then cd into that directory, run "make" therein and report the error?

Markus


More information about the grass-user mailing list