On Wed, 2004-06-09 at 14:42, Colin Marquardt wrote:
/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?
The assembly seems to be generated only temporary, I haven't succeeded in capturing it.
Try the -save-temps option; it should preserve all of the intermediate files (the assembly should be in sp-typeset-kplayout.s).
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?
The assembler executable seems to be a compile time option for gcc, and gcc was provided by the system, so I couldn't easily change that (maybe it's a run time option for gcc as well though, I didn't check).
I just checked; there is apparently no commandline option for it. :/
We will have to see what we can do to make 'as' work.
Well, I got this file to compile, and that was by running the gcc invocation by hand, with the "-O2" option removed - this made the error go away.
Hmm. I guess gcc tries something too clever for 'as' when optimization is enabled. It's probably a specific optimzation that we can turn off if we can determine which one is triggering the problem.
My current state of affairs is documented in the Wiki: http://inkscape.org/cgi-bin/wiki.pl?CompilingInkscape at the end.
It lists some more necessary changes in addition to the ones from my first mail (that you fixed in CVS as you wrote).
Could you please prepare a patch for the various floating-point things?
In file included from /home/foo/Tools/include/X11/extensions/Xrender.h:33, from /home/foo/Tools/include/X11/Xft/Xft.h:47, from libnrtype/nr-type-xft.cpp:16: /usr/openwin/include/X11/Xutil.h:56: warning: ignoring #pragma ident /usr/openwin/include/X11/Xutil.h:117: error: 'Bool' is used as a type, but is not defined as a type. /usr/openwin/include/X11/Xutil.h:120: error: 'Pixmap' is used as a type, but is not defined as a type. /usr/openwin/include/X11/Xutil.h:121: error: 'Window' is used as a type, but is not defined as a type. [...]
I'm not an admin on that machine, and I guess me switching to XFree86 is out of the question. Any other possibilities?
Most likely you will need to include another X11 header before including Xft.h (XFree86's Xutil.h probably includes it automatically, whereas Solaris' does not).
So, that one should simply be a matter of adding the right #includes.
I am guessing X11/X.h and X11/Xdefs.h should be sufficient.
-mental