On Mon, 2004-06-07 at 15:48, Colin Marquardt wrote:
Now, with the following error, I assume it happens because the Makefile is using Solaris' as instead of GNU's "gas":
In file included from style.h:19, from sp-typeset-kplayout.cpp:26: sp-marker.h: In member function `SPMarker* SPMarkerReference::getObject() const ': sp-marker.h:94: warning: cast from `SPObject*' to `SPMarker*' increases required alignment of target type In file included from sp-typeset-kplayout.cpp:30: sp-use.h: In member function `SPItem* SPUseReference::getObject() const': sp-use.h:25: warning: cast from `SPObject*' to `SPItem*' increases required alignment of target type sp-typeset-kplayout.cpp: In function `void sp_typeset_rekplayout(SPTypeset*)': sp-typeset-kplayout.cpp:325: warning: cast from `GTypeInstance*' to `SPTypeset* ' increases required alignment of target type
Egh. Alignment issues on Sparc could be a pain. Hopefully e.g. SPObject and SPItem do not really have such different alignment requirements (for individually allocated structures).
(it might be instructive to see what Glib/Gtk has to do in order to compile cleanly on this platform, since I would naively expect it to generate the same warnings)
Those warnings are not the result of the choice of assembler, anyway.
/usr/ccs/bin/as: "/var/tmp//ccUeTaeq.s", line 5631: error: constant value must be between -4096 and 4095 gmake: *** [sp-typeset-kplayout.o] Error 1
This one likely is, though I've no clue about its specifics. Can you paste some of the generated assembly?
I have stopped here for today since I didn't find the "as" call immediately; I hope the above is helpful for portabilty. Hints about the as/gas problem are appreciated.
Can you force it to use gas and see if things work otherwise?
-mental