Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2012-01-05 Thread Marco van de Voort
On Wed, Jan 04, 2012 at 12:01:29PM +0100, Sven Barth wrote: They are fpc features not ppcx features. And the help you see is from ppcx. Yes, I'm aware of this, but there often seem to be people that don't know the one or other option of fpc (I myself didn't know about -V for

Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2012-01-04 Thread Sven Barth
Am 03.01.2012 22:15, schrieb Marco van de Voort: On Tue, Jan 03, 2012 at 02:03:44PM +0100, Sven Barth wrote: Am 03.01.2012 13:45, schrieb David Unric: I can produce x86_64/win64 binaries manually with 'ppcrossx64' but the main fpc.exe still lacks win64 target, so I'm not able switch in

Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2012-01-04 Thread Marco van de Voort
On Wed, Jan 04, 2012 at 09:28:17AM +0100, Sven Barth wrote: Somehow I have the feeling that this should also be added to the help fpc/ppcX displays... They are fpc features not ppcx features. And the help you see is from ppcx. Maybe ppcx could display something like -hfpc Help of fpc

Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2012-01-04 Thread Sven Barth
Am 04.01.2012 11:31, schrieb Marco van de Voort: On Wed, Jan 04, 2012 at 09:28:17AM +0100, Sven Barth wrote: Somehow I have the feeling that this should also be added to the help fpc/ppcX displays... They are fpc features not ppcx features. And the help you see is from ppcx. Yes, I'm

Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2012-01-03 Thread David Unric
-- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Custom-OS-CPU-targets-for-FPC-build-help-tp3621041p3621677.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing

Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2012-01-03 Thread Vincent Snijders
2012/1/3 David Unric dunric...@gmail.com: The question is about including another target in fpc compiler so I need not to call separate cross-compiler. If you installed the cross compiler correctly, you can use fpc -Px86_64, which will call the cross compiler. Vincent --

Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2012-01-03 Thread Sven Barth
Am 03.01.2012 13:45, schrieb David Unric: I can produce x86_64/win64 binaries manually with 'ppcrossx64' but the main fpc.exe still lacks win64 target, so I'm not able switch in Lazarus between win32 and win64 targets. The fpc.exe simply calls the default ppcXXX.exe for which it was compiled

Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2012-01-03 Thread David Unric
Thx Vincent, by supplying -P switch to fpc, I can finally produce x86_64 executables. I'm surprised this switch is not mentioned in interactive help (fpc -? or -h). Why compiler fails when supplied with documented -Ttarget os option ? fpc -Twin64 consoleapp.dpr Error: Illegal parameter: -Twin64

Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2012-01-03 Thread David Unric
I got it, thank You Sven. Now I just need to set Lazarus to use -P option if I set target CPU family target in Project options. It seems to be ignored by my current installed version 0.9.31 . Regards. David On Tue, Jan 3, 2012 at 2:03 PM, Sven Barth pascaldra...@googlemail.comwrote: Am

Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2012-01-03 Thread zeljko
On Tuesday 03 of January 2012 15:55:58 David Unric wrote: I'd like to ask somebody to shed some light on this subjects: 1) why supplying target OS option (-T) fails ? If I'd like to build win64 exe on win32 system have I pass CPU Target and fpc automagically selects appropriate OS Target ?

Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2012-01-03 Thread Sven Barth
Am 03.01.2012 15:55, schrieb David Unric: Lazarus 0.9.31 seems to do not use -P option as it still produces i386 code even if target CPU family is set to x86_64 in Project options and exe is rebuilt from scratch (console app). Are you sure that it's a 32-Bit application? I'd like to ask

Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2012-01-03 Thread Mattias Gaertner
On Tue, 3 Jan 2012 15:55:58 +0100 David Unric dunric...@gmail.com wrote: Thx Vincent, by supplying -P switch to fpc, I can finally produce x86_64 executables. I'm surprised this switch is not mentioned in interactive help (fpc -? or -h). Indeed. Please create a bug report. Why compiler

Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2012-01-03 Thread David Unric
Hi, On Tue, Jan 3, 2012 at 4:33 PM, Sven Barth pascaldra...@googlemail.comwrote: Am 03.01.2012 15:55, schrieb David Unric: Lazarus 0.9.31 seems to do not use -P option as it still produces i386 code even if target CPU family is set to x86_64 in Project options and exe is rebuilt from

Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2012-01-03 Thread David Unric
Hi Mattias, On Tue, Jan 3, 2012 at 4:39 PM, Mattias Gaertner nc-gaert...@netcologne.dewrote: On Tue, 3 Jan 2012 15:55:58 +0100 David Unric dunric...@gmail.com wrote: Thx Vincent, by supplying -P switch to fpc, I can finally produce x86_64 executables. I'm surprised this switch is not

Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2012-01-03 Thread Mattias Gaertner
On Tue, 3 Jan 2012 17:19:57 +0100 David Unric dunric...@gmail.com wrote: [...] Lazarus 0.9.31 seems to do not use -P option as it still produces i386 code even if target CPU family is set to x86_64 in Project options and exe is rebuilt from scratch (console app). It does use the -P

Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2012-01-03 Thread David Unric
On Tue, Jan 3, 2012 at 5:29 PM, Mattias Gaertner nc-gaert...@netcologne.dewrote: On Tue, 3 Jan 2012 17:19:57 +0100 David Unric dunric...@gmail.com wrote: [...] Lazarus 0.9.31 seems to do not use -P option as it still produces i386 code even if target CPU family is set to x86_64 in

Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2012-01-03 Thread Reimar Grabowski
On Tue, 3 Jan 2012 21:16:34 +0100 David Unric dunric...@gmail.com wrote: How did you changed IDE to always pass -T and -P options ? Here is what he did: http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/ide/compileroptions.pp?sortby=dateroot=lazarusview=diffr1=34561r2=34560diff_format=h R.

Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2012-01-03 Thread Marco van de Voort
On Tue, Jan 03, 2012 at 02:03:44PM +0100, Sven Barth wrote: Am 03.01.2012 13:45, schrieb David Unric: I can produce x86_64/win64 binaries manually with 'ppcrossx64' but the main fpc.exe still lacks win64 target, so I'm not able switch in Lazarus between win32 and win64 targets. The

[Lazarus] Custom OS/CPU targets for FPC - build help

2011-12-30 Thread David Unric
Hi, as I'm unable to sign-up on Lazarus forums (as control question 1+2= rejects answer 3) the question is placed here. Free Pascal Compiler version 2.7.1 [2011/12/25] for x86_64 Copyright (c) 1993-2011 by Florian Klaempfl and others c:\Lazarus\fpc\2.7.1\bin\x86_64-win64\ppcx64.exe [options]

Re: [Lazarus] Custom OS/CPU targets for FPC - build help

2011-12-30 Thread leledumbo
What commands do I have to use to rebuild FPC another target OS/CPU like Win32/i386 will be supported ? http://wiki.lazarus.freepascal.org/Cross_compiling -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Custom-OS-CPU-targets-for-FPC-build-help