[GRASS-user] compiling i.rotate add-on on OSX

William Kyngesburye woklist at kyngchaos.com
Sun Dec 2 11:09:13 PST 2012


Nothing to do with python here.  And I don't see any architecture problem (what you see is just what generally happens with a compilation error on OS X).

Also note that I removed the modbuild stuff from GRASS 7, in favor of g.extension (though g.extension has its own problems), and I don't know if the old modbuild will work properly with GRASS 7.

On Dec 2, 2012, at 12:35 PM, Carlos Grohmann wrote:

> Hi there
> 
> After successfully compiling grass7 svn on OSX, I'm trying to compile the add-on i.rotate.
> 
> My problem seems to be with python not recognizing 32/64 bits:
> 
> make GRASS_HOME='/Volumes/HDD/Users/guano/Documents/installs/GIS/grass/modbuild/module/i.rotate' GRASS_APP='/Applications/GRASS-7.0.app/'
> gcc -I/Volumes/HDD/Users/guano/Documents/installs/GIS/grass/modbuild/module/i.rotate/dist.i386-apple-darwin10.7.0/include -I/Applications/GRASS-7.0.app//Contents/MacOS/include  -Os -fexceptions   -arch i386 -arch x86_64      -DPACKAGE=\""grassmods"\"  -I/Volumes/HDD/Users/guano/Documents/installs/GIS/grass/modbuild/module/i.rotate/dist.i386-apple-darwin10.7.0/include -I/Applications/GRASS-7.0.app//Contents/MacOS/include -o OBJ.i386-apple-darwin10.7.0/main.o -c main.c
> main.c: In function ‘main’:
> main.c:87: error: subscripted value is neither array nor pointer
> main.c:89: error: subscripted value is neither array nor pointer
> main.c:103: error: subscripted value is neither array nor pointer
> main.c:103: error: subscripted value is neither array nor pointer
> main.c:111: error: subscripted value is neither array nor pointer
> main.c: In function ‘main’:
> main.c:87: error: subscripted value is neither array nor pointer
> main.c:89: error: subscripted value is neither array nor pointer
> main.c:103: error: subscripted value is neither array nor pointer
> main.c:103: error: subscripted value is neither array nor pointer
> main.c:111: error: subscripted value is neither array nor pointer
> lipo: can't figure out the architecture type of: /var/folders/gf/8bwpz0412gs7706j57hdyb4h0000gn/T//ccVKHaGQ.out
> make: *** [OBJ.i386-apple-darwin10.7.0/main.o] Error 1
> 
> any hints are welcome
> 
> best
> 
> Carlos

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"We are at war with them. Neither in hatred nor revenge and with no particular pleasure I shall kill every ___ I can until the war is over. That is my duty."

"Don't you even hate 'em?"

"What good would it do if I did? If all the many millions of people of the allied nations devoted an entire year exclusively to hating the ____ it wouldn't kill one ___ nor shorten the war one day."

<Ha, ha> "And it might give 'em all stomach ulcers."

- Tarzan, on war



More information about the grass-user mailing list