[fpc-devel] Patch for resource loading

2014-10-13 Thread Reinier Olislagers
Uploaded patch based on reporter's suggestion http://bugs.freepascal.org/view.php?id=25682 [FPC] Exception parsing resourcestream in unit versionresource:TVersionResource.ReadVarFileInfo which fixes the issue as demonstrated by the test program. Would appreciate an fpc dev to have a look...

[fpc-devel] [SOLVED] MIPS big-endian program starts but does nothing

2014-09-26 Thread Reinier Olislagers
On 06/09/2014 11:26, Reinier Olislagers wrote: Periodically I try to cross-compile a simple program [1] for my router with fpc trunk. Recap: mips big endian, no FPU (openwrt router). Test program hung. Thanks to commits in trunk between my last test and now, the sample program below works

Re: [fpc-devel] Signals

2014-09-26 Thread Reinier Olislagers
On 26/09/2014 12:08, Michael Schnell wrote: On 09/26/2014 11:36 AM, Mark Morgan Lloyd wrote: Of course the colleague was not able to clearly distinguish between fpc and Lazarus. But we obviously are in the wrong forum here, as the culprit seems to be the inability of Lazarus LCL to do event

Re: [fpc-devel] Signals

2014-09-26 Thread Reinier Olislagers
On 26/09/2014 13:52, Michael Schnell wrote: On 09/26/2014 01:41 PM, Reinier Olislagers wrote: As I already pointed out multiple times it works just fine for me, but can't be included in the LCL as it needs TThread.Queue and same is not in the released version of fpc and hence not usable

Re: [fpc-devel] Signals

2014-09-26 Thread Reinier Olislagers
On 26/09/2014 14:04, Michael Schnell wrote: On 09/26/2014 01:57 PM, Reinier Olislagers wrote: Moreover I did not find that anybody besides myself has been interested in this issue. I seem to remember that I once posted a zip file with a current testing version (either here or in the Lazarus

[fpc-devel] [SOLVED] MIPS big-endian program starts but does nothing

2014-09-24 Thread Reinier Olislagers
On 06/09/2014 11:26, Reinier Olislagers wrote: Periodically I try to cross-compile a simple program [1] for my router with fpc trunk. Recap: mips big endian, no FPU (openwrt router). Test program hung. Thanks to commits in trunk between my last test and now, the sample program below works

[fpc-devel] The mysterious case of the double TOC

2014-09-23 Thread Reinier Olislagers
Did some digging related to Lazarus bug http://bugs.freepascal.org/view.php?id=26681 F1 (context sensitive help) gives chooser with duplicate entries Marco suggested a possible cause for the error: there is only one article but two entries in the CHM index/toc Had a look at a TOC from a

Re: [fpc-devel] The mysterious case of the double TOC

2014-09-23 Thread Reinier Olislagers
On 23/09/2014 14:28, Michael Thompson wrote: Nicely found. I potentially see benefit from the multiple entries in the TOC as show above (presuming those categories are available elsewhere in the viewer). Perhaps all that's required is adding that Category as a new column in the ListView?

Re: [fpc-devel] The mysterious case of the double TOC

2014-09-23 Thread Reinier Olislagers
On 23/09/2014 15:57, Marco van de Voort wrote: Double entry in the TOC seems logical. TOC is like a home page for the html, not meant as searchable index. The bugreport I mentioned it because the TOC might be processed and added to Index or fulltextsearch, thus poluting it. Ah, now I get you.

Re: [fpc-devel] MIPS big-endian program starts but does nothing

2014-09-09 Thread Reinier Olislagers
Applied a similar patch [1]; progress, thanks! gdb bt now shows: ^C Program received signal SIGINT, Interrupt. fpc_setjmp (S= {RA = 4398704, SP = 2139211400, S0 = 2130823600, S1 = 5034972, S2 = 5035028, S3 = 4571000, S4 = 2000557128, S5 = 4587520, S6 = 4589204, S7 = 5034940, FP =

Re: [fpc-devel] MIPS big-endian program starts but does nothing

2014-09-09 Thread Reinier Olislagers
On 09/09/2014 12:08, Michael Ring wrote: This problem also looks similar, there are two procedures in setjump.inc and they both address the fpu: Thanks. Patched [1] setjump.inc and now get #0 fpc_setjmp (S= {RA = 4398696, SP = 2143770920, S0 = 2135383120, S1 = 12489692, S2 = 12489748, S3

Re: [fpc-devel] MIPS big-endian program starts but does nothing

2014-09-08 Thread Reinier Olislagers
On 07/09/2014 23:12, Nikolai Zhubr wrote: 07.09.2014 15:50, Florian Klämpfl: Is gdb or strace available on this system? Yes. Both strace and gdb packages are available in openwrt (at least in the latest official release), Yes, I've got both of them installed as well as binutils. strace

Re: [fpc-devel] MIPS big-endian program starts but does nothing

2014-09-08 Thread Reinier Olislagers
On 08/09/2014 18:01, Joost van der Sluis wrote: On 09/08/2014 10:25 AM, Reinier Olislagers wrote: gdb ./hellomips dlopen failed on 'libthread_db.so.1' - File not found GDB will not be able to debug pthreads. GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3

Re: [fpc-devel] MIPS big-endian program starts but does nothing

2014-09-08 Thread Reinier Olislagers
On 08/09/2014 20:05, Sven Barth wrote: Could you please recompile FPC with OPT=-gl (maybe also -O-) and compile your test program with that options as well and then retest the GDB run? Compiled cross-compiler: opt=-O- -gl crossopt=-CpMIPS32R2 -CfSOFT Compiled program: fpc -Tlinux -Pmips

Re: [fpc-devel] MIPS big-endian program starts but does nothing

2014-09-07 Thread Reinier Olislagers
On 06/09/2014 22:38, Sven Barth wrote: Am 06.09.2014 11:27 schrieb Reinier Olislagers reinierolislag...@gmail.com mailto:reinierolislag...@gmail.com: Would you please as a test remove the Classes unit as well? It does some rather heavyweight initialization (which I noticed during getting m68k

Re: [fpc-devel] MIPS big-endian program starts but does nothing

2014-09-07 Thread Reinier Olislagers
On 07/09/2014 11:24, Reinier Olislagers wrote: On 06/09/2014 22:38, Sven Barth wrote: objdump -x hellomips hellomips_objdump.txt The output is not that big so repeated below hellomips: file format elf32-tradbigmips hellomips architecture: mips:isa32r2, flags 0x0102: EXEC_P, D_PAGED

[fpc-devel] Which platforms have internal linkers

2014-09-07 Thread Reinier Olislagers
Hi, AFAIU at least x86/x64 Windows and Linux use an internal linker. Any others? (Related: how can one find out/is there a list somewhere?) (Helps me update my ego-boosting fpcup cross compiler conversion table :) ) Thanks, Reinier ___ fpc-devel

Re: [fpc-devel] Which platforms have internal linkers

2014-09-07 Thread Reinier Olislagers
Thanks guys! ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

[fpc-devel] MIPS big-endian program starts but does nothing

2014-09-06 Thread Reinier Olislagers
Hi, Periodically I try to cross-compile a simple program [1] for my router with fpc trunk. It starts but does nothing (does not return to command prompt). Noticed an earlier mail from Dennis Poon where he described the same behaviour. Any suggestions? Thanks, Reinier cat /proc/cpuinfo system

[fpc-devel] MIPS big-endian program starts but does nothing

2014-09-06 Thread Reinier Olislagers
Hi, Periodically I try to cross-compile a simple program [1] for my router with fpc trunk. It starts but does nothing (does not return to command prompt). Noticed an earlier mail from Dennis Poon where he described the same behaviour. Any suggestions? Thanks, Reinier cat /proc/cpuinfo system

Re: [fpc-devel] MIPS big-endian program starts but does nothing

2014-09-06 Thread Reinier Olislagers
On 06/09/2014 12:20, Mark Morgan Lloyd wrote: I think the previous discussion wound down with the consensus that the distro had custom libraries, possibly derived from ulibc, and that the compiler etc. would have to be specially built for those. I was hoping to set a Qemu-based system to

Re: [fpc-devel] MIPS big-endian program starts but does nothing

2014-09-06 Thread Reinier Olislagers
Arggghhh. Ok, thanks, Sergei! ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] MIPS big-endian program starts but does nothing

2014-09-06 Thread Reinier Olislagers
On 06/09/2014 18:40, Nikolai Zhubr wrote: Prebuilt/preflashed openwrt images most definitely do not have normal glibc, which is supposedly expected by normal linux rtl. Although I haven't checked myself, I think you could either try to somehow remove glibc dependancy for your test, or rebuild

[fpc-devel] [Slightly off-topic]Mark Morgan Lloyd: Burroughs emulator

2014-08-08 Thread Reinier Olislagers
Hi Mark ( all), Just wanted to know how you're doing with that conversion of the Javascript Burroughs B5500 emulator that you said you were looking at... Wonder if you have interesting stories about performance to tell us ;) Regards, Reinier ___

Re: [fpc-devel] [Slightly off-topic]Mark Morgan Lloyd: Burroughs emulator

2014-08-08 Thread Reinier Olislagers
On 08/08/2014 12:45, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: snip Interesting - sounds like a huge job you're tackling there thanks a lot! I keep wanting to give the javascript emulator a go but each time manage to tell myself that I already have more than enough projects that I can

[fpc-devel] Extentions/extensions in fpmimetypes.pp

2014-04-07 Thread Reinier Olislagers
Noticed this in fpmimetypes.pp: Type TMimeType = Class(TObject) private FExtensions: String; FExtentions: String; ... Public ... Property Extensions : String Read FExtensions Write FExtentions; end; I wonder if this is correct? If it is really meant to read from one variable

Re: [fpc-devel] minor spelling glitch in FPImage.pp

2014-04-07 Thread Reinier Olislagers
On 06/04/2014 12:32, Reinier Olislagers wrote: ... patch for spelling glitch attached to issue; it keeps old spelling as deprecated. FPC/RTL/FCL compiles fine with it. Haven't tested it with applications. Went through the rest of the FPC code tree; patch in issue 25979 Regards, Reinier

Re: [fpc-devel] minor spelling glitch in FPImage.pp

2014-04-06 Thread Reinier Olislagers
... patch for spelling glitch attached to issue; it keeps old spelling as deprecated. FPC/RTL/FCL compiles fine with it. Haven't tested it with applications. ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

[fpc-devel] Missing bucketlist.pp in \tests\test\units\fpcunit

2014-03-26 Thread Reinier Olislagers
Just tried to open \tests\test\units\fpcunit\tbucketlist.lpi in Lazarus which gave an error: \tests\test\units\fpcunit\bucketlist.pp not found This file indeed doesn't exist anywhere in fpc - should it be added to svn or removed from the lpi file? Thanks, Reinier

Re: [fpc-devel] make -j for windows, number of cores?

2014-03-17 Thread Reinier Olislagers
On 16/03/2014 19:45, Marco van de Voort wrote: In our previous episode, Reinier Olislagers said: The build faq (that I have) states: 1. Does make -j work reliably on Windows, too? 2. I intend to detect the number of logical cores as per http://wiki.lazarus.freepascal.org/Example_of_multi

Re: [fpc-devel] make -j for windows, number of cores?

2014-03-17 Thread Reinier Olislagers
On 17/03/2014 10:36, Marco van de Voort wrote: In our previous episode, Reinier Olislagers said: No. Even not on Windows. You need the number of physical cores, not logical ones. This will return the duplicate number of cores on systems with hyperthreading. (I tested on my system and indeed

[fpc-devel] make -j for windows, number of cores?

2014-03-16 Thread Reinier Olislagers
The build faq (that I have) states: Due to some new developments with parallel compiling using the FPC makefiles, make 3.80 is strongly recommended as of FPC 2.1.1 (januari 2007 and later). Unix people with dual cores and up to date source trees might want to try ?make -j 2?. With an eye on

Re: [fpc-devel] make -j for windows, number of cores?

2014-03-16 Thread Reinier Olislagers
On 16/03/2014 10:22, Mark Morgan Lloyd wrote: Reinier Olislagers wrote: 2. I intend to detect the number of logical cores as per http://wiki.lazarus.freepascal.org/Example_of_multi-threaded_application:_array_of_threads#1._Detect_number_of_cores_available. and run that many jobs

Re: [fpc-devel] odbcconn.pas

2014-03-14 Thread Reinier Olislagers
On 13/03/2014 14:20, Nathan Wild wrote: Nothing I do in databound controls seems to commit anything to the underlying dataset. It seems you're mixing GUI databound controls (dbgrid) with programmatic editing of the query... The GUI controls are provided by Lazarus, not FPC. As this list only

Re: [fpc-devel] odbcconn.pas

2014-03-14 Thread Reinier Olislagers
On 13/03/2014 14:20, Nathan Wild wrote: Thanks so much for responding! I am extremely excited about the prospect of getting this working. Nothing I do in databound controls seems to commit anything to the underlying dataset. Responding privately - I read the Lazarus forum mailing list, so

Re: [fpc-devel] odbcconn.pas

2014-03-13 Thread Reinier Olislagers
On 13/03/2014 00:06, Nathan Wild wrote: I have been transitioning my work over from Delphi to Lazarus. For the most part it has been smooth and satisfying experience. I'm loving Lazarus and FPC and being unburdened by closed source proprietary stuff in general. Good to hear that ;) The

[fpc-devel] MS SQL tests: fix for string settings invalid dates

2014-03-07 Thread Reinier Olislagers
Ran dbtestframework on trunk, Windows x86 against MS SQL Server 2008R2 (also earlier revision Linux x64 against MS SQL Server 2005) 1) Committed adding SET ANSI_PADDING to test setup http://msdn.microsoft.com/en-us/library/ms187403%28v=sql.105%29.aspx In fact, MS recommends this be always on and

[fpc-devel] Request review of proposed index test

2014-03-07 Thread Reinier Olislagers
See uploaded patch in bug http://bugs.freepascal.org/view.php?id=25533 I've checked the original tdbf pdf documentation which states indexes on expressions should work. Could you guys please check 1. The code is ok 2. The expression used should work I wouldn't want to end up with a test that

Re: [fpc-devel] Request review of proposed index test

2014-03-07 Thread Reinier Olislagers
On 07/03/2014 14:54, Reinier Olislagers wrote: See uploaded patch in bug http://bugs.freepascal.org/view.php?id=25533 I've checked the original tdbf pdf documentation which states indexes on expressions should work. Could you guys please check 1. The code is ok 2. The expression used

Re: [fpc-devel] MS SQL tests: fix for string settings invalid dates

2014-03-07 Thread Reinier Olislagers
On 07/03/2014 11:38, Reinier Olislagers wrote: Ran dbtestframework on trunk, Windows x86 against MS SQL Server 2008R2 (also earlier revision Linux x64 against MS SQL Server 2005) snip Sorry for the noise, yet another mail destined for the fpc db list

Re: [fpc-devel] Smarter way of generating ARMHF fpc trunk installation?

2014-03-04 Thread Reinier Olislagers
On 04/03/2014 07:00, peter green wrote: Reinier Olislagers wrote: 1. Get FPC stable (2.6.2 currently) ARM bootstrap compiler binary This compiler cannot directly build ARMHF FPC trunk. OOI in what way does it fail? Can't remember. Probably ARMHF support was introduced in trunk

[fpc-devel] Smarter way of generating ARMHF fpc trunk installation?

2014-03-03 Thread Reinier Olislagers
fpcup, an FPC/Lazarus build/installation/update program uses the following steps on ARMHF Linux (e.g. raspbian, odroid): 1. Get FPC stable (2.6.2 currently) ARM bootstrap compiler binary This compiler cannot directly build ARMHF FPC trunk. 2. Use the compiler to build a regular ARM fpc trunk

Re: [fpc-devel] Smarter way of generating ARMHF fpc trunk installation?

2014-03-03 Thread Reinier Olislagers
On 03/03/2014 11:59, Jonas Maebe wrote: On 03 Mar 2014, at 09:24, Reinier Olislagers wrote: fpcup, an FPC/Lazarus build/installation/update program uses the following steps on ARMHF Linux (e.g. raspbian, odroid): [snip] Would there be a smarter/shorter way of doing this? No. Thanks

Re: [fpc-devel] Smarter way of generating ARMHF fpc trunk installation?

2014-03-03 Thread Reinier Olislagers
No. Compiler and source revisions must match. On 3/3/14, Paul Breneman paul2...@brenemanlabs.com wrote: On 03/03/2014 03:24 AM, Reinier Olislagers wrote: fpcup, an FPC/Lazarus build/installation/update program uses the following steps on ARMHF Linux (e.g. raspbian, odroid): 1. Get FPC stable

Re: [fpc-devel] Smarter way of generating ARMHF fpc trunk installation?

2014-03-03 Thread Reinier Olislagers
On 03/03/2014 19:39, Paul Breneman wrote: On 03/03/2014 12:13 PM, Jonas Maebe wrote: On 03 Mar 2014, at 17:49, Paul Breneman wrote: On 03/03/2014 03:24 AM, Reinier Olislagers wrote: fpcup, an FPC/Lazarus build/installation/update program uses the following steps on ARMHF Linux (e.g. raspbian

[fpc-devel] OVERRIDEVERSIONCHECK catch 22?

2014-03-02 Thread Reinier Olislagers
With a trunk starting compiler this: make FPC=/home/odroid/working/fpcbootstrap/ppcarm_intermediate --directory=/home/odroid/working/fpctrunk OVERRIDEVERSIONCHECK=1 OPT=-dFPC_ARMHF -Cparmv7a -CaEABIHF -CfVFPv3 gives You have overriden the starting compiler versioncheck while using starting

Re: [fpc-devel] OVERRIDEVERSIONCHECK catch 22?

2014-03-02 Thread Reinier Olislagers
On 02/03/2014 10:51, Marco van de Voort wrote: In our previous episode, Reinier Olislagers said: You have overriden the starting compiler versioncheck while using starting compiler version 2.7.1. This situation is not supported and strange things and errors may happen. Remove

[fpc-devel] Trunk build failure: forgotten commit of pastree.pp?

2014-02-27 Thread Reinier Olislagers
Got this: Compiling .\fcl-passrc\src\pparser.pp pparser.pp(3509,55) Error: Identifier not found TPasClassConstructor pparser.pp(3510,54) Error: Identifier not found TPasClassDestructor Perhaps associated with: r26891 | michael | 2014-02-26 23:48:14 +0100 (Wed, 26 Feb 2014) | 1 line * Added class

[fpc-devel] [SOLVED] Re: Trunk build failure: forgotten commit of pastree.pp?

2014-02-27 Thread Reinier Olislagers
On 27/02/2014 09:26, Reinier Olislagers wrote: Got this: Compiling .\fcl-passrc\src\pparser.pp pparser.pp(3509,55) Error: Identifier not found TPasClassConstructor pparser.pp(3510,54) Error: Identifier not found TPasClassDestructor Perhaps associated with: r26891 | michael | 2014-02-26 23