[Lazarus] FPC config file inheritance issue

2015-05-18 Thread Péter Gábor
Hi! Today I tried to compile (on linux) an old project written on windows. This project has some FPC settings stored in its local folder. The configuration file is named fpc.cfg (without dot on the beginning). FPC reported an error: Can't find unit system Any other projects can be compiled

Re: [Lazarus] FPC config file inheritance issue

2015-05-18 Thread Mattias Gaertner
On Mon, 18 May 2015 17:18:25 +0200 Péter Gábor p...@freemail.hu wrote: Hi! Today I tried to compile (on linux) an old project written on windows. This project has some FPC settings stored in its local folder. The configuration file is named fpc.cfg (without dot on the beginning). FPC

Re: [Lazarus] Lazarus trunk (r49079) does not compile on MAC

2015-05-18 Thread Torsten Bonde Christiansen
On 2015-05-18 14:41, Torsten Bonde Christiansen wrote: On 2015-05-18 14:39, zeljko wrote: On 05/18/2015 02:26 PM, Martin Frb wrote: On 18/05/2015 09:10, zeljko wrote: On 05/18/2015 09:58 AM, Torsten Bonde Christiansen wrote: lib/i386-darwin/lazlistclasses.s:12244:invalid character '_' in

Re: [Lazarus] Lazarus trunk (r49079) does not compile on MAC

2015-05-18 Thread Martin Frb
On 18/05/2015 13:39, zeljko wrote: fpc-2.6.4 i386 So everything is default. And default is stabs, and does not work. Well 1 minute ago, I worked out how to conditionally change it for order fpc, and committed this. This will only work if building from inside the IDE (tools menu). I do

Re: [Lazarus] Lazarus trunk (r49079) does not compile on MAC

2015-05-18 Thread zeljko
On 05/18/2015 02:41 PM, Torsten Bonde Christiansen wrote: make clean all CPU_TARGET=i386 I guess that Lazarus defaults to stabs. That doesn't matter at all. fpc-2.6.4 is the only stable compiler atm and it should compile lazarus (yes, even trunk lazarus). zeljko --

[Lazarus] What option do I need to build Lazarus executable itself from a different OS or architecture?

2015-05-18 Thread vfclists .
I have managed to get FPC cross compilation from 32 bit Linux to 64bit Linux and both 32bit and 64 bit Linux. My next step is to generate the Lazarus executable itself for all 4 systems. My current command for building the 32 bit Linux version of Lazarus is: make all PP=${THIS_BUILD_COMPILER}

Re: [Lazarus] Lazarus trunk (r49079) does not compile on MAC

2015-05-18 Thread Mattias Gaertner
On Mon, 18 May 2015 10:10:09 +0200 zeljko zel...@holobit.net wrote: On 05/18/2015 09:58 AM, Torsten Bonde Christiansen wrote: With FPC 2.6.4 and Lazarus trunk (r49079), lazarus no longer compiles on MAC: [...] (9009) Assembling lazlistclasses

Re: [Lazarus] Lazarus trunk (r49079) does not compile on MAC

2015-05-18 Thread Torsten Bonde Christiansen
On 2015-05-18 14:01, Mattias Gaertner wrote: On Mon, 18 May 2015 10:10:09 +0200 zeljko zel...@holobit.net wrote: On 05/18/2015 09:58 AM, Torsten Bonde Christiansen wrote: With FPC 2.6.4 and Lazarus trunk (r49079), lazarus no longer compiles on MAC: [...] (9009) Assembling lazlistclasses

Re: [Lazarus] Lazarus trunk (r49079) does not compile on MAC

2015-05-18 Thread Martin Frb
On 18/05/2015 13:12, Torsten Bonde Christiansen wrote: It looks like a compiler error related to i386 only, since I can compile x86_64-linuxwithout problems, but on i386-linux I get the following error: ... /home/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(1655,20) Hint:

Re: [Lazarus] Lazarus trunk (r49079) does not compile on MAC

2015-05-18 Thread Torsten Bonde Christiansen
On 2015-05-18 14:39, zeljko wrote: On 05/18/2015 02:26 PM, Martin Frb wrote: On 18/05/2015 09:10, zeljko wrote: On 05/18/2015 09:58 AM, Torsten Bonde Christiansen wrote: lib/i386-darwin/lazlistclasses.s:12244:invalid character '_' in mnemonic lib/i386-darwin/lazlistclasses.s:12354:invalid

Re: [Lazarus] Lazarus trunk (r49079) does not compile on MAC

2015-05-18 Thread Martin Frb
On 18/05/2015 09:10, zeljko wrote: On 05/18/2015 09:58 AM, Torsten Bonde Christiansen wrote: lib/i386-darwin/lazlistclasses.s:12244:invalid character '_' in mnemonic lib/i386-darwin/lazlistclasses.s:12354:invalid character '_' in mnemonic lib/i386-darwin/lazlistclasses.s:12384:invalid character

Re: [Lazarus] Lazarus trunk (r49079) does not compile on MAC

2015-05-18 Thread zeljko
On 05/18/2015 02:26 PM, Martin Frb wrote: On 18/05/2015 09:10, zeljko wrote: On 05/18/2015 09:58 AM, Torsten Bonde Christiansen wrote: lib/i386-darwin/lazlistclasses.s:12244:invalid character '_' in mnemonic lib/i386-darwin/lazlistclasses.s:12354:invalid character '_' in mnemonic

Re: [Lazarus] Lazarus trunk (r49079) does not compile on MAC

2015-05-18 Thread zeljko
On 05/18/2015 02:58 PM, Martin Frb wrote: On 18/05/2015 13:39, zeljko wrote: fpc-2.6.4 i386 So everything is default. And default is stabs, and does not work. Well 1 minute ago, I worked out how to conditionally change it for order fpc, and committed this. This will only work if building

Re: [Lazarus] New preprocessor directive

2015-05-18 Thread Graeme Geldenhuys
On 2015-05-17 14:23, Martin Frb wrote: Simply use $ProcedureName() in your template EnterSomething('$ProcedureName()'); That is what I've been using up to now, but is problematic if you switch between IDE's or programmer editors to do coding (I do this often). At least the new directive

[Lazarus] Lazarus trunk (r49079) does not compile on MAC

2015-05-18 Thread Torsten Bonde Christiansen
With FPC 2.6.4 and Lazarus trunk (r49079), lazarus no longer compiles on MAC: /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(1252,43) Hint: (4035) Mixing signed expressions and longwords gives a 64bit result

Re: [Lazarus] Lazarus trunk (r49079) does not compile on MAC

2015-05-18 Thread zeljko
On 05/18/2015 09:58 AM, Torsten Bonde Christiansen wrote: With FPC 2.6.4 and Lazarus trunk (r49079), lazarus no longer compiles on MAC: /Users/torsten/FreePascal/lazarus/components/lazutils/lazlistclasses.pas(1252,43) Hint: (4035) Mixing signed expressions and longwords gives a 64bit result

Re: [Lazarus] New preprocessor directive

2015-05-18 Thread Graeme Geldenhuys
On 2015-05-17 10:22, Florian Klämpfl wrote: A profiler should use debug info imo. True, but the fpprofiler is a quick and easy one (though basic), if no others are available. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

Re: [Lazarus] FPC config file inheritance issue

2015-05-18 Thread Péter Gábor
2015-05-18 17:31 keltezéssel, Mattias Gaertner írta: fpc only reads the first config file it finds. If you want to read more pass them via parameter @filename. Mattias As I remember project's local fpc.cfg (no dot) with a limited set of options was working (in 2011) on Linux and windows:

Re: [Lazarus] FPC config file inheritance issue

2015-05-18 Thread Sven Barth
On 18.05.2015 18:04, Péter Gábor wrote: 2015-05-18 17:31 keltezéssel, Mattias Gaertner írta: fpc only reads the first config file it finds. I know this, but when the compilation aborted I was thinking that something was changed in the configuration parser. Now the problem seems to be

Re: [Lazarus] What option do I need to build Lazarus executable itself from a different OS or architecture?

2015-05-18 Thread leledumbo
What option do I have to add to ensure that the Lazarus executable and units are targeted to the right CPU and OS? OS_TARGET= CPU_TARGET= same as FPC makefile parameters. After all, the makefiles are generated using fpcmake. -- View this message in context:

Re: [Lazarus] FPC config file inheritance issue

2015-05-18 Thread Péter Gábor
2015-05-18 17:31 keltezéssel, Mattias Gaertner írta: fpc only reads the first config file it finds. I know this, but when the compilation aborted I was thinking that something was changed in the configuration parser. Now the problem seems to be different for me: If FPC finds project's local

Re: [Lazarus] FPC config file inheritance issue

2015-05-18 Thread Mattias Gaertner
On Mon, 18 May 2015 18:04:58 +0200 Péter Gábor p...@freemail.hu wrote: 2015-05-18 17:31 keltezéssel, Mattias Gaertner írta: fpc only reads the first config file it finds. [...]why does not find .fpc.cfg (with dot) in the same directory (or ignores it) and searches for others? You can see

Re: [Lazarus] FPC config file inheritance issue

2015-05-18 Thread Péter Gábor
2015-05-18 18:30 keltezéssel, Mattias Gaertner írta: On Mon, 18 May 2015 18:04:58 +0200 You can see what it searches by compiling with -vt. Mattias If project's local config file is named fpc.cfg then Reading options from file fpc.cfg If project's local config file is named .fpc.cfg

Re: [Lazarus] Lazarus trunk (r49079) does not compile on MAC

2015-05-18 Thread Mattias Gaertner
On Mon, 18 May 2015 13:58:40 +0100 Martin Frb laza...@mfriebe.de wrote: On 18/05/2015 13:39, zeljko wrote: fpc-2.6.4 i386 So everything is default. And default is stabs, and does not work. Well 1 minute ago, I worked out how to conditionally change it for order fpc, and

Re: [Lazarus] Qt doesn't return proper DC Device Size

2015-05-18 Thread Giuliano Colla
Il 16/05/2015 17:54, Giuliano Colla ha scritto: http://bugs.freepascal.org/view.php?id=28106 Now it works like a charm. I've closed the issue. Thank you Zeljko, Giuliano -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org