So close, but I'm afraid I need a hand here :-/
I've got 0.9.22 and 0.9.23 (version of 20070706) installed in conjunction with
FPC 2.1.4 on x86 and SPARC systems (PIII and Ultra-10 respectively). Both
systems have Linux 2.6, the x86 is Debian 3.1 "Sarge" and the SPARC is Debian
4.0 "Etch".
On both systems Lazarus builds without significant trouble and runs. A simple
"Hello World!" with output to a TMemo behaves as expected.
Moving a realistic demo program from Delphi/Lazarus on Win-32 compiles and
runs on the x86 system. Moving it onto the SPARC system allows it to compile
OK but results in a bus error when it tries to run. Stepping through, the
problem appears to be here:
constructor TCustomStringGrid.Create(AOwner: TComponent);
begin
inherited Create(AOwner);
with DefaultTextStyle do begin
Alignment := taLeftJustify; // <===== bus error here
Layout := tlCenter;
Clipping := True;
//WordBreak := False
end;
ExtendedSelect := True;
end;
It turns out to be easy to get Lazarus on SPARC to fail: start out with a
virgin project and drop a TStringGrid onto the form. However this appears to
be a designer issue and using forms etc. built on a different system is more
robust- it doesn't fail until runtime.
Being aware of previous discussion e.g. thread at
http://lists.freepascal.org/lists/fpc-devel/2004-October/004022.html and
assuming that this is an byte/word alignment or packing issue I have spent the
afternoon tinkering but can't get simple Pascal (i.e. not relying on the
behavior of Lazarus components) to fail.
I can put a bit more time into this, but I don't know SPARC very well at the
machine level and my experience with gdb is limited.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives