[fpc-devel] Compiling for libgdb, and using make -j on larger SPARC systems

Mark Morgan Lloyd markMLl.fpc-devel at telemetry.co.uk
Fri Aug 9 09:17:44 CEST 2013


Pierre Free Pascal wrote:
>   Hi,
> 
> I am sorry, but Ihave no access to a sprac machine anymore.
> But I remember that we already had a problem like this coming
> from the fact that we declare somewhere an empty record
> and this lead to troubles...
>   TVectorREgss from fpregs unit might still be empty for sparc.
> 
> This was fixed in
> http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/compiler/ncgld.pas?sortby
> =date&r1=19338&r2=19337&pathrev=19338
> in May 2011...
> 
>   But I was hoping it was fixed in 2.6.2 ...
> 
>   Could you try to recompile trunk compiler and check that that one
> does not crash.

Trunk /does/ crash- that's where we started. I only reverted to 2.6.2 
since it's slightly easier to put a debugger on it to get a backtrace.

 >>> ../fpc-trunk/ide$ make GDB_V603=1 OPT='-O- -gl -Xd' all
 >>> ./fpmake compile --localunitdir=.. -...
..
 >>> Fatal: Compilation aborted
 >>> An unhandled exception occurred at $001E61C0 :
 >>> EDivByZero : Division by zero
 >>>   $001E61C0  TCGASSIGNMENTNODE__PASS_GENERATE_CODE,  line 785 of 
ncgld.pas
 >>>
 >>> At this point: what's actually running, i.e. what command should I
 >>> apply gdb to to get a decent backtrace?

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]



More information about the fpc-devel mailing list