[fpc-devel] Building trunk on Win32

Leonardo M. Ramé martinrame at yahoo.com
Sun Nov 27 17:38:43 CET 2011


----- Original Message -----

> From: Sven Barth <pascaldragon at googlemail.com>
> To: fpc-devel at lists.freepascal.org
> Cc: 
> Sent: Sunday, November 27, 2011 1:10 PM
> Subject: Re: [fpc-devel] Building trunk on Win32
> 
> On 27.11.2011 16:45, Sergei Gorelkin wrote:
>>  The fact it works with DISABLE_TLS_DIRECTORY and fails otherwise
>>  suggests that the foreign thread raises exceptions and FPC tries to
>>  handle them. Error 255 is most likely caused by Halt(255) in
>>  rtl/inc/except.inc line 200 or 303, these are the only places where RTL
>>  can exit with code 255.
>>  This is explainable: FPC won't have ExceptObjectStack or
>>  ExceptAddressStack set up for the foreign thread, they will contain nil
>>  values.
>> 
>>  But I don't imagine how it manages to work *without* TLS callbacks. The
>>  difference is that RTL will remain in single-threaded mode, but
>>  SetUnhandledExceptionFilter that is used to intercept exceptions is
>>  AFAIK global and will still break in.
> 
> Also interesting question: why does so far only Leonardo experience that 
> problem? I myself have no problem building trunk on a Windows 7 machine using 
> 2.4.4 as a starting compiler.
> 
> Regards,
> Sven


Maybe because of my setup:

Win2003 32bits (and its updates) running on a VirtualBox machine that hosted on a Linux x86_64.

--  
Leonardo M. Ramé
http://leonardorame.blogspot.com




More information about the fpc-devel mailing list