[fpc-pascal] FPC 2.7.1 | ARMHF/ARMV6 | Optimization breaks my code at -O2

2013-05-27 Thread Bruce Tulloch
What are the optimizations made between -O1 and -O2 on this target? Are optimizations at this level materially different when comparing ARM to x86 output targets? I ask because enabling -O2 breaks my code on ARM but runs fine all the way up to -O3 on x86. It's no doubt something I'm doing wrong

[fpc-pascal] Trunk seems to break again!?!?

2013-05-27 Thread Reinier Olislagers
On Linux x64 with a clean fpc directory, using fpcup: svn info: ... Last Changed Author: joost Last Changed Rev: 24622 Last Changed Date: 2013-05-26 22:51:41 +0200 (Sun, 26 May 2013) ... make -C linux all make[4]: Entering directory `/home/pascaldev/trunk/fpc/rtl/linux' make[4]: Leaving directory

Re: [fpc-pascal] Trunk seems to break again!?!?

2013-05-27 Thread Vincent Snijders
2013/5/27 Reinier Olislagers > On Linux x64 with a clean fpc directory, using fpcup: > svn info: > ... > Last Changed Author: joost > Last Changed Rev: 24622 > Last Changed Date: 2013-05-26 22:51:41 +0200 (Sun, 26 May 2013) > > ... > make -C linux all > make[4]: Entering directory `/home/pascalde

Re: [fpc-pascal] FPC 2.7.1 | ARMHF/ARMV6 | Optimization breaks my code at -O2

2013-05-27 Thread Nico Erfurth
On 27.05.13 09:42, Bruce Tulloch wrote: > What are the optimizations made between -O1 and -O2 on this target? > > Are optimizations at this level materially different when comparing ARM > to x86 output targets? > > I ask because enabling -O2 breaks my code on ARM but runs fine all the > way up to

Re: [fpc-pascal] Moving packages\fcl-res docs to main fpcdocs?

2013-05-27 Thread Reinier Olislagers
On 23-5-2013 13:46, Michael Van Canneyt wrote: > On Thu, 23 May 2013, Reinier Olislagers wrote: >> On 23-5-2013 13:18, Michael Van Canneyt wrote: >>> On Thu, 23 May 2013, Reinier Olislagers wrote: >>> Noticed that fcl-res has documentation in an XML subfolder of $(fpcdir)\packages\fcl-res

Re: [fpc-pascal] fcl-res: using resource embedded in exe

2013-05-27 Thread Reinier Olislagers
On 27-5-2013 1:04, Paul Ishenin wrote: > 25.05.13, 20:25, Reinier Olislagers пишет: > >> In the code above, I'm loading the resource from the executable. >> However, Paramstr(0) is not reliable on all platforms. >> Is there a better way of doing this? > > Yes. > > Resource := FindResource(HInsta

Re: [fpc-pascal] FPC 2.7.1 | ARMHF/ARMV6 | Optimization breaks my code at -O2

2013-05-27 Thread Bruce Tulloch
Thanks Nico, http://bugs.freepascal.org/view.php?id=24492 Bruce. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] fcl-res: using resource embedded in exe

2013-05-27 Thread Paul Ishenin
27.05.13, 17:47, Reinier Olislagers пишет: Resource := FindResource(HInstance, 'SQLSCRIPT', RT_RCDATA); Thanks Paul; IIRC Linux barfed on RT_RCDATA; can't/won't test it right now as FPC trunk is broken... If you look at Lazarus source you may find that LCL uses similar code to load forms da

Re: [fpc-pascal] fcl-res: using resource embedded in exe

2013-05-27 Thread Marco van de Voort
In our previous episode, Reinier Olislagers said: > > > > Yes. > > > > Resource := FindResource(HInstance, 'SQLSCRIPT', RT_RCDATA); > > Thanks Paul; IIRC Linux barfed on RT_RCDATA; can't/won't test it right > now as FPC trunk is broken... uses resource; _

Re: [fpc-pascal] Trunk seems to break again!?!?

2013-05-27 Thread Jonas Maebe
On 27 May 2013, at 09:58, Vincent Snijders wrote: I got a different problem on poerpc-darwin with r24621: https://fpcbuildserver.firmos.at/job/buildfpc_branch/platform=powerpc-darwin/902/console It hangs. I've fixed this problem. It was caused by the use of an unitialized value. Make sure t

Re: [fpc-pascal] Trunk seems to break again!?!?

2013-05-27 Thread Jonas Maebe
On 27 May 2013, at 09:49, Reinier Olislagers wrote: On Linux x64 with a clean fpc directory, using fpcup: svn info: ... Last Changed Author: joost Last Changed Rev: 24622 Last Changed Date: 2013-05-26 22:51:41 +0200 (Sun, 26 May 2013) ... make -C linux all make[4]: Entering directory `/home/pa

Re: [fpc-pascal] Trunk seems to break again!?!?

2013-05-27 Thread Jonas Maebe
On 27 May 2013, at 13:57, Jonas Maebe wrote: On 27 May 2013, at 09:49, Reinier Olislagers wrote: make[3]: /home/pascaldev/trunk/fpc/utils/fpcm/fpcmake: Command not found ... fpcmake indeed does not exist there. During the execution of which top-level "make" command does this happen, a

Re: [fpc-pascal] Trunk seems to break again!?!?

2013-05-27 Thread Vincent Snijders
2013/5/27 Jonas Maebe > > On 27 May 2013, at 09:58, Vincent Snijders wrote: > > I got a different problem on poerpc-darwin with r24621: >> https://fpcbuildserver.firmos.**at/job/buildfpc_branch/** >> platform=powerpc-darwin/902/**console

Re: [fpc-pascal] Trunk seems to break again!?!?

2013-05-27 Thread Reinier Olislagers
On 27-5-2013 13:57, Jonas Maebe wrote: > > On 27 May 2013, at 09:49, Reinier Olislagers wrote: > >> On Linux x64 with a clean fpc directory, using fpcup: >> svn info: >> ... >> Last Changed Author: joost >> Last Changed Rev: 24622 >> Last Changed Date: 2013-05-26 22:51:41 +0200 (Sun, 26 May 2013)

Re: [fpc-pascal] Trunk seems to break again!?!?

2013-05-27 Thread Jonas Maebe
On 27 May 2013, at 14:44, Vincent Snijders wrote: Now it just fails: Start compiling package h2pas for target powerpc-darwin. Executing command "/sw/bin/pyacc h2pas/h2pas.y h2pas/h2pas.pas" The installer encountered the following error: External command "/sw/bin/pyacc h2pas/h2pas.y h2pas/h2pas.

Re: [fpc-pascal] Trunk seems to break again!?!?

2013-05-27 Thread Reinier Olislagers
On 27-5-2013 14:02, Jonas Maebe wrote: > > On 27 May 2013, at 13:57, Jonas Maebe wrote: > >> >> On 27 May 2013, at 09:49, Reinier Olislagers wrote: >> >>> make[3]: /home/pascaldev/trunk/fpc/utils/fpcm/fpcmake: Command not found >>> ... >>> >>> fpcmake indeed does not exist there. >> >> During the

Re: [fpc-pascal] Trunk seems to break again!?!?

2013-05-27 Thread Jonas Maebe
On 27 May 2013, at 18:47, Reinier Olislagers wrote: > Oh BTW, I have a directory > $(fpcdir)\utils\fpmc where there's an fpmake.pp but no executable > while the error message refers to > fpcm (two letters reversed)... You also have a directory called "fpcm". "fpcm" = fpcmake, "fpmc" = "fpc mess

[fpc-pascal] Re: Trunk seems to break again!?!?

2013-05-27 Thread Reinier Olislagers
On 27-5-2013 19:05, Jonas Maebe wrote: > > On 27 May 2013, at 18:47, Reinier Olislagers wrote: > >> Oh BTW, I have a directory $(fpcdir)\utils\fpmc where there's an >> fpmake.pp but no executable while the error message refers to fpcm >> (two letters reversed)... > > You also have a directory ca

Re: [fpc-pascal] Trunk seems to break again!?!?

2013-05-27 Thread Joost van der Sluis
On Mon, 2013-05-27 at 14:53 +0200, Jonas Maebe wrote: > On 27 May 2013, at 14:44, Vincent Snijders wrote: > > > Now it just fails: > > Start compiling package h2pas for target powerpc-darwin. > > Executing command "/sw/bin/pyacc h2pas/h2pas.y h2pas/h2pas.pas" > > The installer encountered the foll

Re: [fpc-pascal] Trunk seems to break again!?!?

2013-05-27 Thread Vincent Snijders
2013/5/27 Joost van der Sluis > > It uses the pyacc that is already installed on the system. So unless > that version is installed using fpmake, this problem did already exist. > > But the underlying problem is that h2pas.pas is generated again. That > should not be necessary. It is probably fixe

[fpc-pascal] Program not running

2013-05-27 Thread Koenraad Lelong
Hi, Does anyone have an idea why a program made with fpc will not run ? I have an odroid X2 module, with xubuntu armhf. I "installed" the fpc/fpgui-package from Paul Breneman on it. Then I compiled the demo's which went fine. But when I tried to start those executables I get an error : ./hell

Re: [fpc-pascal] Trunk seems to break again!?!?

2013-05-27 Thread Joost van der Sluis
On Mon, 2013-05-27 at 14:44 +0200, Reinier Olislagers wrote: > Hope this still can be helpful: at r24623 tried again with clean fpc > dir, same result: > 1. This happens at make install: > make "FPC=/home/pascaldev/trunk/fpcbootstrap/x86_64-linux-ppcx64" > "--directory=/home/pascaldev/trunk/fpc" >

Re: [fpc-pascal] Trunk seems to break again!?!?

2013-05-27 Thread Reinier Olislagers
On 27-5-2013 21:24, Joost van der Sluis wrote: > On Mon, 2013-05-27 at 14:44 +0200, Reinier Olislagers wrote: > Can you try with r24625? Thanks, that seems to fix that problem for Windows. Some more things though: - $(fpcdir)\utils\fpdoc\fpdoc.exe does not seem to be created (Windows) - $(fpcdir)