Re: [fpc-pascal] Lazarus Snapshots Intel Mac with FPC 2.4.1?
> Another, more seldom reason for recompilation problems is that you > happen to name one of your own units the same as a rtl/fcl/lcl library > unit. In that case the compiler thinks that your file is the new source > and it wants to recompile the library units Wow, that is very useful information! It's very possible that I have a naming conflict somewhere. Cheers, Tobias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Lazarus Snapshots Intel Mac with FPC 2.4.1?
Jonas Maebe wrote: On 19 Apr 2010, at 16:15, Tobias Giesen wrote: This usually means that they were compiled by a previous compiler, or that they use units which have been changed and recompiled since the previous compilation. In that case, the compiler will ignore the precompiled unit and try to recompile it. If it then doesn't find the sources, you'll get an error about the unit not being found. Yes but the sources were there. They were in the search path, but the compiler didn't search properly. I will look into it again and if there are bugs, I will fix them in the FPC sources and submit the fixes. If you have such problems in the future, compile with -vut and the compiler will show where and what it searches, andwhy it refuses certain units or recompiles them. (Recompiling XYZ.pas because the checksum changed although it didn't). I deleted all .o and .ppu files and still this happened. I'm not mixing anything. The problem is that FPC sometimes doesn't like its own units - maybe because of different compiler switches? In some cases, the compiler will want to immediately recompile previously compiled units: a) if you use a unit that has in its interface section a procedure that is declared normally, but which is declared as "external". Solution: declare it immediately as "external" in the interface and remove the version in the implementation b) if you have inline procedures in the interface of unit1 and a unit that uses unit1 is (indirectly) used in the implementation of unit1. Solution: compile everything with -Ur (= "create release units"; the compiler will never try to recompile such units afterwards, except if the interface section of a unit that it uses has been changed and this other unit has been recompiled). Another, more seldom reason for recompilation problems is that you happen to name one of your own units the same as a rtl/fcl/lcl library unit. In that case the compiler thinks that your file is the new source and it wants to recompile the library units Like Jonas said, you will find this when compiling with -vut Solution, rename your unit. (happend once to me with some obscure unit, and took some time to figure out) Marc ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Lazarus Snapshots Intel Mac with FPC 2.4.1?
Hello, thanks very much, Jonas and Mattias! I think your tips will help me a lot. I will go back to Macintosh development in about a month. If you don't hear from me, I'm fine! Cheers, Tobias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Lazarus Snapshots Intel Mac with FPC 2.4.1?
On 19 Apr 2010, at 16:15, Tobias Giesen wrote: This usually means that they were compiled by a previous compiler, or that they use units which have been changed and recompiled since the previous compilation. In that case, the compiler will ignore the precompiled unit and try to recompile it. If it then doesn't find the sources, you'll get an error about the unit not being found. Yes but the sources were there. They were in the search path, but the compiler didn't search properly. I will look into it again and if there are bugs, I will fix them in the FPC sources and submit the fixes. If you have such problems in the future, compile with -vut and the compiler will show where and what it searches, andwhy it refuses certain units or recompiles them. (Recompiling XYZ.pas because the checksum changed although it didn't). I deleted all .o and .ppu files and still this happened. I'm not mixing anything. The problem is that FPC sometimes doesn't like its own units - maybe because of different compiler switches? In some cases, the compiler will want to immediately recompile previously compiled units: a) if you use a unit that has in its interface section a procedure that is declared normally, but which is declared as "external". Solution: declare it immediately as "external" in the interface and remove the version in the implementation b) if you have inline procedures in the interface of unit1 and a unit that uses unit1 is (indirectly) used in the implementation of unit1. Solution: compile everything with -Ur (= "create release units"; the compiler will never try to recompile such units afterwards, except if the interface section of a unit that it uses has been changed and this other unit has been recompiled). Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Lazarus Snapshots Intel Mac with FPC 2.4.1?
> This usually means that they were compiled by a previous compiler, or > that they use units which have been changed and recompiled since the > previous compilation. In that case, the compiler will ignore the > precompiled unit and try to recompile it. If it then doesn't find the > sources, you'll get an error about the unit not being found. Yes but the sources were there. They were in the search path, but the compiler didn't search properly. I will look into it again and if there are bugs, I will fix them in the FPC sources and submit the fixes. > (Recompiling XYZ.pas because the checksum changed although it didn't). I deleted all .o and .ppu files and still this happened. I'm not mixing anything. The problem is that FPC sometimes doesn't like its own units - maybe because of different compiler switches? Cheers, Tobias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Lazarus Snapshots Intel Mac with FPC 2.4.1?
Zitat von Jonas Maebe : On 19 Apr 2010, at 15:23, Tobias Giesen wrote: Which bugs? I'm sorry but it was a few months ago. Before trying again I wanted to make sure I had the best version of FPC available. I had problems with units not being found although they were on the search path allright. This usually means that they were compiled by a previous compiler, or that they use units which have been changed and recompiled since the previous compilation. In that case, the compiler will ignore the precompiled unit and try to recompile it. If it then doesn't find the sources, you'll get an error about the unit not being found. Another common reason: You added too many search paths. Lazarus compiles each package separately. Each run needs distinct search paths. Otherwise you create duplicate ppu files. Also installing packages into Lazarus caused all kinds of unit conflicts (Recompiling XYZ.pas because the checksum changed although it didn't). These things won't change if you update FPC. If anything, you'll probably get more such problems because mixing units compiled by different compiler versions can also cause such issues. See also: http://wiki.lazarus.freepascal.org/Unit_not_found_-_How_to_find_units#Quick_list Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Lazarus Snapshots Intel Mac with FPC 2.4.1?
On 19 Apr 2010, at 15:23, Tobias Giesen wrote: Which bugs? I'm sorry but it was a few months ago. Before trying again I wanted to make sure I had the best version of FPC available. I had problems with units not being found although they were on the search path allright. This usually means that they were compiled by a previous compiler, or that they use units which have been changed and recompiled since the previous compilation. In that case, the compiler will ignore the precompiled unit and try to recompile it. If it then doesn't find the sources, you'll get an error about the unit not being found. Also installing packages into Lazarus caused all kinds of unit conflicts (Recompiling XYZ.pas because the checksum changed although it didn't). These things won't change if you update FPC. If anything, you'll probably get more such problems because mixing units compiled by different compiler versions can also cause such issues. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Lazarus Snapshots Intel Mac with FPC 2.4.1?
> Which bugs? I'm sorry but it was a few months ago. Before trying again I wanted to make sure I had the best version of FPC available. I had problems with units not being found although they were on the search path allright. Also installing packages into Lazarus caused all kinds of unit conflicts (Recompiling XYZ.pas because the checksum changed although it didn't). Well I will try again soon. Cheers, Tobias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Lazarus Snapshots Intel Mac with FPC 2.4.1?
On Apr 17, 2010, at 1:50 PM, Jonas Maebe wrote: > > On 17 Apr 2010, at 10:37, Tobias Giesen wrote: > >> I'm having serious problems with bugs in FPC 2.4.0 on Intel Mac OS X. > > Which bugs? > >> Would it be possible to post snapshots with 2.4.1? > > Do you know that these bugs are fixed in 2.4.1? > > > Jonas > ___ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal I personally havn't experienced any bugs on my Mac OS X? Which bugs do you have? MFG, Ritchie Flick ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] Lazarus Snapshots Intel Mac with FPC 2.4.1?
On 17 Apr 2010, at 10:37, Tobias Giesen wrote: > I'm having serious problems with bugs in FPC 2.4.0 on Intel Mac OS X. Which bugs? > Would it be possible to post snapshots with 2.4.1? Do you know that these bugs are fixed in 2.4.1? Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
[fpc-pascal] Lazarus Snapshots Intel Mac with FPC 2.4.1?
Hello, I'm having serious problems with bugs in FPC 2.4.0 on Intel Mac OS X. Would it be possible to post snapshots with 2.4.1? Cheers, Tobias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal