[GRASS-dev] compilation of grass on AIX 7.1

Markus Metz markus.metz.giswork at gmail.com
Wed Mar 27 12:18:05 PDT 2013


On Wed, Mar 27, 2013 at 2:50 PM, Ivan Barka <ivan.barka at gmail.com> wrote:
> Hi devs,
>
> I tried again recent grass7 on AIX 7.1 with gcc.
>
> I had error in lib/gis:
>
> gcc  -lstdc++
> -I/gpfs/home/senko/dev/grass/grass7/dist.powerpc-ibm-aix7.1.0.0/include
> -I/gpfs/home/senko/dev/grass/grass7/dist.powerpc-ibm-aix7.1.0.0/include
> -D_FILE_OFFSET_BITS=64 -DGRASS_VERSION_DATE=\"'2013'\"
> -DPACKAGE=\""grasslibs"\"
> -I/gpfs/home/senko/dev/grass/grass7/dist.powerpc-ibm-aix7.1.0.0/include
> -I/gpfs/home/senko/dev/grass/grass7/dist.powerpc-ibm-aix7.1.0.0/include -o
> OBJ.powerpc-ibm-aix7.1.0.0/plot.o -c plot.c
> plot.c:34:15: error: conflicting types for 'nearest'
> /usr/opt/freeware/bin/../lib/gcc/powerpc-ibm-aix7.1.0.0/4.6.1/include-fixed/math.h:1397:21:
> note: previous declaration of 'nearest' was here
> gmake: *** [OBJ.powerpc-ibm-aix7.1.0.0/plot.o] Error 1
>
> After renaming the variable "nearest" to "nearesta" in lib/gis/plot.c it
> worked.
>
> But next strange error was in lib/vector/diglib:
>
> if [ "" != "" -a -f "".html ] ; then gmake html ; fi
> ==============TEST=============
> gmake test
> gmake[1]: Entering directory
> `/gpfs/home/senko/dev/grass/grass7/lib/vector/diglib'
> diff OBJ.powerpc-ibm-aix7.1.0.0/test.tmp test64.ok
> diff: Missing newline at the end of file
> OBJ.powerpc-ibm-aix7.1.0.0/test.tmp.
> diff: Missing newline at the end of file test64.ok.

I think this error can be ignored if gmake continues to compile the
remaining code. We can make diff happy by adding a newline to the end
of the respective files. Strangely, this error has not been reported
on any of the other platforms.

After running gmake, all folders with errors are listed after

--
Errors in:

Are there additional errors?

Markus M


> .......
> gmake[1]: *** [test] Error 1
> gmake[1]: Leaving directory
> `/gpfs/home/senko/dev/grass/grass7/lib/vector/diglib'
> gmake: *** [default] Error 2
>
> Full output is in file diglib_gmake.txt
>
> Thanks for any advice.
>
> Ivan
>
>
> 2013/3/23 Markus Neteler <neteler at osgeo.org>
>>
>>
>> However, I think that this exercise is done since we cannot gain more
>> on AIX 5.3. I hope that the code is AIX 7 ready at this point.
>>
>> I have documented the compilation steps here:
>>
>> http://grasswiki.osgeo.org/wiki/Talk:Compile_and_Install
>> -> AIX compilation hints
>>    (configuration scripts for wget, PROJ4, GDAL, GRASS 6, and GRASS 7)
>>
>> http://grasswiki.osgeo.org/wiki/Compile_and_Install#AIX
>> -> GRASS 7: Using the IBM xlc compiler
>> -> GRASS 7: Using the GNU gcc compiler
>>
>> Ivan, could you please update from GRASS 7 SVN and try again?
>>
>> Markus
>
>
>
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev


More information about the grass-dev mailing list