Re: [fpc-devel] Building trunk on Win32

2011-11-27 Thread Sven Barth
On 27.11.2011 18:48, Sergei Gorelkin wrote: 27.11.2011 19:10, Sven Barth пишет: 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

Re: [fpc-devel] Building trunk on Win32

2011-11-27 Thread Sergei Gorelkin
27.11.2011 19:10, Sven Barth пишет: 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 lin

Re: [fpc-devel] Building trunk on Win32

2011-11-27 Thread Leonardo M . Ramé
- Original Message - > From: Sven Barth > To: fpc-devel@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 DISA

Re: [fpc-devel] Building trunk on Win32

2011-11-27 Thread Sven Barth
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 plac

Re: [fpc-devel] Building trunk on Win32

2011-11-27 Thread Sergei Gorelkin
27.11.2011 16:45, Leonardo M. Ramé пишет: Well, I found I had an e:\pp directory containing an fpc 2.5.1, and my PATH was pointing to it, so my previous tests could have been influenced by some files from that directory. After deleting it, I compiled from top level directory using: e:\fpc-bi

Re: [fpc-devel] Building trunk on Win32

2011-11-27 Thread Leonardo M . Ramé
- Original Message - > From: Sergei Gorelkin > To: fpc-devel@lists.freepascal.org > Cc: > Sent: Sunday, November 27, 2011 9:07 AM > Subject: Re: [fpc-devel] Building trunk on Win32 > > 27.11.2011 13:26, Jonas Maebe пишет: >> >> On 27 Nov 2011

Re: [fpc-devel] Building trunk on Win32

2011-11-27 Thread Sergei Gorelkin
27.11.2011 13:26, Jonas Maebe пишет: On 27 Nov 2011, at 12:19, Sergei Gorelkin wrote: 27.11.2011 13:09, Jonas Maebe пишет: I regularly use OPT at the top level myself and I've never seen it being ignored in that situation. Earlier in this thread Leonardo wrote: Sven, I added OPT="-gl" b

Re: [fpc-devel] Building trunk on Win32

2011-11-27 Thread Jonas Maebe
On 27 Nov 2011, at 12:19, Sergei Gorelkin wrote: > 27.11.2011 13:09, Jonas Maebe пишет: >> >> I regularly use OPT at the top level myself and I've never seen it being >> ignored in that situation. >> > Earlier in this thread Leonardo wrote: > > >> Sven, I added OPT="-gl" but I got exactly the

Re: [fpc-devel] Building trunk on Win32

2011-11-27 Thread Sergei Gorelkin
27.11.2011 13:09, Jonas Maebe пишет: On 27 Nov 2011, at 12:05, Sergei Gorelkin wrote: But don't execute 'make clean all OPT=-dDISABLE_TLS_DIRECTORY' at the top-level directory, as in this case OPT is apparently ignored. I regularly use OPT at the top level myself and I've never seen it bein

Re: [fpc-devel] Building trunk on Win32

2011-11-27 Thread Jonas Maebe
On 27 Nov 2011, at 12:05, Sergei Gorelkin wrote: > But don't execute 'make clean all OPT=-dDISABLE_TLS_DIRECTORY' at the > top-level directory, as in this case OPT is apparently ignored. I regularly use OPT at the top level myself and I've never seen it being ignored in that situation. Jonas

Re: [fpc-devel] Building trunk on Win32

2011-11-27 Thread Sergei Gorelkin
27.11.2011 0:41, Leonardo M. Ramé пишет: This is the output I get after update: ... Well, now ppc2.exe at least starts. Can you further try to build with OPT=-dDISABLE_TLS_DIRECTORY ? But don't execute 'make clean all OPT=-dDISABLE_TLS_DIRECTORY' at the top-level directory, as in this case OP

Re: [fpc-devel] Building trunk on Win32

2011-11-26 Thread Leonardo M . Ramé
From: Sergei Gorelkin >To: fpc-devel@lists.freepascal.org >Sent: Saturday, November 26, 2011 6:55 PM >Subject: Re: [fpc-devel] Building trunk on Win32 > >26.11.2011 23:10, Leonardo M. Ramé пишет: > >> This machine is running Win2003 32bits as Guest on VirtualBox 4.1.2 on

Re: [fpc-devel] Building trunk on Win32

2011-11-26 Thread Sergei Gorelkin
26.11.2011 23:10, Leonardo M. Ramé пишет: This machine is running Win2003 32bits as Guest on VirtualBox 4.1.2 on Ubuntu 11.10 x86_64. On Windows it is not running any antivirus and I enabled only the default services, disabled firewall/updates/antivirus/etc. I did a test with processexplorer

Re: [fpc-devel] Building trunk on Win32

2011-11-26 Thread Leonardo M . Ramé
- Original Message - > From: Sven Barth > To: fpc-devel@lists.freepascal.org > Cc: > Sent: Saturday, November 26, 2011 3:40 PM > Subject: Re: [fpc-devel] Building trunk on Win32 > > On 26.11.2011 19:50, Sergei Gorelkin wrote: >> 26.11.2011 17

Re: [fpc-devel] Building trunk on Win32

2011-11-26 Thread Sergei Gorelkin
26.11.2011 21:40, Sven Barth пишет: On 26.11.2011 19:50, Sergei Gorelkin wrote: 26.11.2011 17:18, Leonardo M. Ramé пишет: $0040C776 is systhrd.inc line 125 "if TLSKey=$ then RunError(226) $0040FB59 is syswin.inc line 356, DLL_THREAD_ATTACH branch of exec_tls_callback This is TLS callb

Re: [fpc-devel] Building trunk on Win32

2011-11-26 Thread Sven Barth
On 26.11.2011 19:50, Sergei Gorelkin wrote: 26.11.2011 17:18, Leonardo M. Ramé пишет: Runtime error 226 at $0040C776 $0040C776 $0040FB59 $7C81A1C2 $7C845A7C $7C83FE59 $7C82EB2F $7C828355 $0040C776 is systhrd.inc line 125 "if TLSKey=$ then RunError(226) $0040FB59 is syswin.inc line 3

Re: [fpc-devel] Building trunk on Win32

2011-11-26 Thread Sergei Gorelkin
26.11.2011 17:18, Leonardo M. Ramé пишет: Runtime error 226 at $0040C776 $0040C776 $0040FB59 $7C81A1C2 $7C845A7C $7C83FE59 $7C82EB2F $7C828355 $0040C776 is systhrd.inc line 125"if TLSKey=$ then RunError(226) $0040FB59 is syswin.inc line 356,

Re: [fpc-devel] Building trunk on Win32

2011-11-26 Thread Leonardo M . Ramé
- Original Message - > From: Sven Barth > To: fpc-devel@lists.freepascal.org > Cc: > Sent: Saturday, November 26, 2011 11:07 AM > Subject: Re: [fpc-devel] Building trunk on Win32 > > On 26.11.2011 14:50, Leonardo M. Ramé wrote: >> ... >> make[4]: En

Re: [fpc-devel] Building trunk on Win32

2011-11-26 Thread Sven Barth
On 26.11.2011 14:50, Leonardo M. Ramé wrote: ... make[4]: Entering directory `E:/fpc/compiler' e:/fpc-bin/bin/i386-win32/make rtlclean rtl make[5]: Entering directory `E:/fpc/compiler' e:/fpc-bin/bin/i386-win32/make -C E:/fpc/rtl clean make[6]: Entering directory `E:/fpc/rtl' e:/FPC-bin/bin/i386-

Re: [fpc-devel] Building trunk on Win32

2011-11-26 Thread Leonardo M . Ramé
- Original Message - > From: Leonardo M. Ramé > To: FPC developers' list > Cc: > Sent: Saturday, November 26, 2011 10:17 AM > Subject: Re: [fpc-devel] Building trunk on Win32 > >> > >> From: Pierre Free Pa

Re: [fpc-devel] Building trunk on Win32

2011-11-26 Thread Sven Barth
On 26.11.2011 14:17, Leonardo M. Ramé wrote: Hi Pierre, I uninstalled my 2.4.4 release then downloaded it again from the fpc site, and installed, to be sure I'm using the release version. Then, went to my fpc-svn trunk directory, then "cd compiler" and did a "e:\fpc-bin\bin\i386-win32\make clea

Re: [fpc-devel] Building trunk on Win32

2011-11-26 Thread Leonardo M . Ramé
> > From: Pierre Free Pascal >To: 'Leonardo M. Ramé' ; 'FPC developers' list' > >Sent: Friday, November 25, 2011 6:40 PM >Subject: RE: [fpc-devel] Building trunk on Win32 > > >I tired to reproduce your probl

RE: [fpc-devel] Building trunk on Win32

2011-11-25 Thread Pierre Free Pascal
I tired to reproduce your problem starting from release 2.4.4 compiler, but got no error. Then I tried to find where error code 226 could be generated: it is in rtl/win/systhrd.inc function SysAllocateThreadVars most probably because your system returned nil for a LocalAlloc call. Could y