Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-06

Compile Error Latest SVN

29 messages · 8 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Lee Jenkins

I updated from latest svn and get the following error: M:\lazarusSVN\ide\environmentopts.pp(1536,57) Error: Identifier not found "GetUserDir"

Pointing to this portion of EnvironmentOpts.pp

{$IFNDEF Ver2_2_0}
   AMacroList.Add(TTransferMacro.Create('Home',GetUserDir,
                  lisUserSHomeDirectory, nil, []));
{$ENDIF}

Any advise? Thanks,

Warm Regards, Lee

Reply by email

Lee Jenkins
to Lee Jenkins
Lee Jenkins wrote 13 lines
I updated from latest svn and get the following error: M:\lazarusSVN\ide\environmentopts.pp(1536,57) Error: Identifier not found "GetUserDir" Pointing to this portion of EnvironmentOpts.pp {$IFNDEF Ver2_2_0} AMacroList.Add(TTransferMacro.Create('Home',GetUserDir, lisUserSHomeDirectory, nil, [])); {$ENDIF} Any advise? Thanks,

Sorry, should have mentioned I have fpc 2.2.1

Thanks,

Warm Regards, Lee

Reply by email

Maxim Ganetsky
to Lee Jenkins

Lee Jenkins ?????:

Show quoted text 16 lines
Lee Jenkins wrote: > I updated from latest svn and get the following error: > M:\lazarusSVN\ide\environmentopts.pp(1536,57) Error: Identifier not found > "GetUserDir" > > Pointing to this portion of EnvironmentOpts.pp > > {$IFNDEF Ver2_2_0} > AMacroList.Add(TTransferMacro.Create('Home',GetUserDir, > lisUserSHomeDirectory, nil, [])); > {$ENDIF} > > Any advise? Thanks, > Sorry, should have mentioned I have fpc 2.2.1

Please, update your FPC or use release version (2.2.0).

Best regards, Maxim Ganetsky mailto:

Reply by email

Lee Jenkins
to Maxim Ganetsky
Maxim Ganetsky wrote 19 lines
Lee Jenkins ?????: > Lee Jenkins wrote: >> I updated from latest svn and get the following error: >> M:\lazarusSVN\ide\environmentopts.pp(1536,57) Error: Identifier not found >> "GetUserDir" >> >> Pointing to this portion of EnvironmentOpts.pp >> >> {$IFNDEF Ver2_2_0} >> AMacroList.Add(TTransferMacro.Create('Home',GetUserDir, >> lisUserSHomeDirectory, nil, [])); >> {$ENDIF} >> >> Any advise? Thanks, >> > Sorry, should have mentioned I have fpc 2.2.1 Please, update your FPC or use release version (2.2.0).

Hmmm. The last svn that I downloaded, 15156 compiled ok with fpc 2.2.1 so I'm having trouble understanding why I would want to downgrade from 2.2.1 to 2.2.0...

Warm Regards, Lee

Reply by email

Mattias Gaertner
to Lee Jenkins
Show quoted text 24 lines
Maxim Ganetsky wrote: > Lee Jenkins ?????: >> Lee Jenkins wrote: >>> I updated from latest svn and get the following error: >>> M:\lazarusSVN\ide\environmentopts.pp(1536,57) Error: Identifier >>> not found "GetUserDir" >>> >>> Pointing to this portion of EnvironmentOpts.pp >>> >>> {$IFNDEF Ver2_2_0} >>> AMacroList.Add(TTransferMacro.Create('Home',GetUserDir, >>> lisUserSHomeDirectory, nil, [])); >>> {$ENDIF} >>> >>> Any advise? Thanks, >>> >> Sorry, should have mentioned I have fpc 2.2.1 > > Please, update your FPC or use release version (2.2.0). > Hmmm. The last svn that I downloaded, 15156 compiled ok with fpc 2.2.1 so I'm having trouble understanding why I would want to downgrade from 2.2.1 to 2.2.0...

Lazarus only runs with the released FPC or the current development version. At the moment: 2.2.0 and 2.2.3.

Mattias

Reply by email

Lee Jenkins
to Mattias Gaertner
Mattias Gaertner wrote 31 lines
On Fri, 13 Jun 2008 21:33:38 -0400 Lee Jenkins wrote: > Maxim Ganetsky wrote: >> Lee Jenkins ?????: >>> Lee Jenkins wrote: >>>> I updated from latest svn and get the following error: >>>> M:\lazarusSVN\ide\environmentopts.pp(1536,57) Error: Identifier >>>> not found "GetUserDir" >>>> >>>> Pointing to this portion of EnvironmentOpts.pp >>>> >>>> {$IFNDEF Ver2_2_0} >>>> AMacroList.Add(TTransferMacro.Create('Home',GetUserDir, >>>> lisUserSHomeDirectory, nil, [])); >>>> {$ENDIF} >>>> >>>> Any advise? Thanks, >>>> >>> Sorry, should have mentioned I have fpc 2.2.1 >> Please, update your FPC or use release version (2.2.0). >> > Hmmm. The last svn that I downloaded, 15156 compiled ok with fpc > 2.2.1 so I'm having trouble understanding why I would want to > downgrade from 2.2.1 to 2.2.0... Lazarus only runs with the released FPC or the current development version. At the moment: 2.2.0 and 2.2.3. Mattias

Odd. As I mentioned, I have rebuilt using 2.2.1 but I guess that particular source must have changed between the last time I updated.

Is there a way to specify an fpc to use for rebuilding lazarus, but use my newer one to compile my programs or must I just change the paths manually when I want to build lazarus and then set them back?

BTW, Maxim, I didn't mean to sound obtuse, I was actually confused :)

Thanks Mattias.

Warm Regards, Lee

Reply by email

Felipe Monteiro de Carvalho
to Lee Jenkins
Lee Jenkins wrote
Odd. As I mentioned, I have rebuilt using 2.2.1 but I guess that particular source must have changed between the last time I updated.

Exactly. 2.2.1 is not a release, and thus it changes and lazarus changed to keep up with the latest version. You need to update your fpc

Felipe Monteiro de Carvalho

Reply by email

Lee Jenkins
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 8 lines
On Sat, Jun 14, 2008 at 1:14 PM, Lee Jenkins wrote: > Odd. As I mentioned, I have rebuilt using 2.2.1 but I guess that particular > source must have changed between the last time I updated. Exactly. 2.2.1 is not a release, and thus it changes and lazarus changed to keep up with the latest version. You need to update your fpc

I tried with 2.2.0 and that has the error so I guess I must update my fpc :)

Warm Regards, Lee

Reply by email

Lee Jenkins
to Lee Jenkins
Lee Jenkins wrote 11 lines
Felipe Monteiro de Carvalho wrote: > On Sat, Jun 14, 2008 at 1:14 PM, Lee Jenkins wrote: >> Odd. As I mentioned, I have rebuilt using 2.2.1 but I guess that particular >> source must have changed between the last time I updated. > Exactly. 2.2.1 is not a release, and thus it changes and lazarus > changed to keep up with the latest version. You need to update your > fpc > I tried with 2.2.0 and that has the error so I guess I must update my fpc :)

I updated to 2.2.3 and now it won't build because it says it can find the Contnrs unit. I have gone into Environment > Environment Options > and set the following paths:

- Compiler Path
- FPC Source Directory
- Make Path

I can't understand why it can't find the the Contnrs unit. Its right there, in \fpc\2.2.3\source\packages\fcl-base\src

Warm Regards, Lee

Reply by email

Maxim Ganetsky
to Lee Jenkins: Odd. As I mentioned, I have rebuilt using 2.2.1 but I guess that particular source must…

Lee Jenkins ?????:

Show quoted text 38 lines
Mattias Gaertner wrote: > On Fri, 13 Jun 2008 21:33:38 -0400 > Lee Jenkins wrote: > >> Maxim Ganetsky wrote: >>> Lee Jenkins ?????: >>>> Lee Jenkins wrote: >>>>> I updated from latest svn and get the following error: >>>>> M:\lazarusSVN\ide\environmentopts.pp(1536,57) Error: Identifier >>>>> not found "GetUserDir" >>>>> >>>>> Pointing to this portion of EnvironmentOpts.pp >>>>> >>>>> {$IFNDEF Ver2_2_0} >>>>> AMacroList.Add(TTransferMacro.Create('Home',GetUserDir, >>>>> lisUserSHomeDirectory, nil, [])); >>>>> {$ENDIF} >>>>> >>>>> Any advise? Thanks, >>>>> >>>> Sorry, should have mentioned I have fpc 2.2.1 >>> Please, update your FPC or use release version (2.2.0). >>> >> Hmmm. The last svn that I downloaded, 15156 compiled ok with fpc >> 2.2.1 so I'm having trouble understanding why I would want to >> downgrade from 2.2.1 to 2.2.0... > Lazarus only runs with the released FPC or the current development > version. At the moment: 2.2.0 and 2.2.3. > > Mattias > Odd. As I mentioned, I have rebuilt using 2.2.1 but I guess that particular source must have changed between the last time I updated. Is there a way to specify an fpc to use for rebuilding lazarus, but use my newer one to compile my programs or must I just change the paths manually when I want to build lazarus and then set them back?

AFAIK no. It won't work anyway as all modules used by your program should be compiled by the same compiler version (your program depends on LCL and Lazarus depends on it too, hence LCL, Lazarus and your program need the same compiler version).

IMO the best option here is to use 2.2.0 for production software. 2.2.3 can be used too, but there can be some unexpected glitches. Also you can try 2.2.2rc1. It is newer than 2.2.0 and should be more stable than 2.2.3.

BTW if Lazarus doesn't compile with 2.2.0 then you have found a bug.

Best regards, Maxim Ganetsky mailto:

Reply by email

Lee Jenkins
to Maxim Ganetsky
Maxim Ganetsky wrote 50 lines
Lee Jenkins ?????: > Mattias Gaertner wrote: >> On Fri, 13 Jun 2008 21:33:38 -0400 >> Lee Jenkins wrote: >> >>> Maxim Ganetsky wrote: >>>> Lee Jenkins ?????: >>>>> Lee Jenkins wrote: >>>>>> I updated from latest svn and get the following error: >>>>>> M:\lazarusSVN\ide\environmentopts.pp(1536,57) Error: Identifier >>>>>> not found "GetUserDir" >>>>>> >>>>>> Pointing to this portion of EnvironmentOpts.pp >>>>>> >>>>>> {$IFNDEF Ver2_2_0} >>>>>> AMacroList.Add(TTransferMacro.Create('Home',GetUserDir, >>>>>> lisUserSHomeDirectory, nil, [])); >>>>>> {$ENDIF} >>>>>> >>>>>> Any advise? Thanks, >>>>>> >>>>> Sorry, should have mentioned I have fpc 2.2.1 >>>> Please, update your FPC or use release version (2.2.0). >>>> >>> Hmmm. The last svn that I downloaded, 15156 compiled ok with fpc >>> 2.2.1 so I'm having trouble understanding why I would want to >>> downgrade from 2.2.1 to 2.2.0... >> Lazarus only runs with the released FPC or the current development >> version. At the moment: 2.2.0 and 2.2.3. >> >> Mattias >> > Odd. As I mentioned, I have rebuilt using 2.2.1 but I guess that particular > source must have changed between the last time I updated. > > Is there a way to specify an fpc to use for rebuilding lazarus, but use my newer > one to compile my programs or must I just change the paths manually when I want > to build lazarus and then set them back? AFAIK no. It won't work anyway as all modules used by your program should be compiled by the same compiler version (your program depends on LCL and Lazarus depends on it too, hence LCL, Lazarus and your program need the same compiler version). IMO the best option here is to use 2.2.0 for production software. 2.2.3 can be used too, but there can be some unexpected glitches. Also you can try 2.2.2rc1. It is newer than 2.2.0 and should be more stable than 2.2.3. BTW if Lazarus doesn't compile with 2.2.0 then you have found a bug.

Yeah, I get the same error using either FPC.

I'll submit a bug report.

Thank you.

Warm Regards, Lee

Reply by email

Jesus Reyes A.
to Lee Jenkins: I tried with 2.2.0 and that has the error so I guess I must update my fpc :) Lee

----- Original Message -----

Earlier message 31 lines
From: "Lee Jenkins" To: "General mailing list" Sent: Saturday, June 14, 2008 12:18 PM Subject: Re: [Lazarus] Compile Error Latest SVN > Felipe Monteiro de Carvalho wrote: >> On Sat, Jun 14, 2008 at 1:14 PM, Lee Jenkins wrote: >>> Odd. As I mentioned, I have rebuilt using 2.2.1 but I guess that >>> particular >>> source must have changed between the last time I updated. >> >> Exactly. 2.2.1 is not a release, and thus it changes and lazarus >> changed to keep up with the latest version. You need to update your >> fpc >> > > I tried with 2.2.0 and that has the error so I guess I must update my fpc > :) > > -- > > Warm Regards, > > Lee > Check that your fpc 2.2.1 is r11085 or higher, it seems that was the revision GetUserDir change was merged Jesus Reyes A.

Reply by email

Luiz Americo Pereira Camara
to Lee Jenkins: I updated from latest svn and get the following error:…
Lee Jenkins wrote 14 lines
I updated from latest svn and get the following error: M:\lazarusSVN\ide\environmentopts.pp(1536,57) Error: Identifier not found "GetUserDir" Pointing to this portion of EnvironmentOpts.pp {$IFNDEF Ver2_2_0} AMacroList.Add(TTransferMacro.Create('Home',GetUserDir, lisUserSHomeDirectory, nil, [])); {$ENDIF} Any advise? Thanks,

Yes. Just comment the two lines and the IDE will work without problems.

I had the same problem. The fpc 221 i have does not have that function.

Luiz

Reply by email

Lee Jenkins
to Felipe Monteiro de Carvalho: It compiles for me, so I think you have a configuration problem. Felipe Monteiro de…
Felipe Monteiro de Carvalho wrote 6 lines
> Yeah, I get the same error using either FPC. > > I'll submit a bug report. It compiles for me, so I think you have a configuration problem.

I'm not what more I can do except set the following properties in Environment > Environment Settings:

- Compiler Path
- FPC Source Directory
- Make Path

I've tried 2.2.0 which produces the error with "GetUserDir" not found error.

I've tried 2.2.1 which is the same above.

I've tried 2.2.3 which instead says it cannot find the Contnrs unit, which I've now idea how that is possible since its sitting right there in the folder M:\fpc\2.2.3\source\packages\fcl-base\src. I have "FPC Source Directory" pointing to M:\fpc\2.2.3\source.

Now, I haven't used Lazarus in about a month and the only thing I did was write click on my lazarus source folder and tell Tortoise SVN to download the latest sources.

Before I did that, I could build my IDE with either 2.2.0 or 2.2.1 of FPC. Now, I can't build it with any of the above.

I'm not sure which or even how the configuration could be a problem unless there are more settings to change/set those that I have mentioned above, which are the only ones I've ever changed in the past.

The only variable that I can see is the latest SVN of Lazarus with this new call to GetUserDir.

Warm Regards, Lee

Reply by email

Lee Jenkins
to Luiz Americo Pereira Camara: Yes. Just comment the two lines and the IDE will work without problems. I had the same…
Luiz Americo Pereira Camara wrote 21 lines
Lee Jenkins wrote: > I updated from latest svn and get the following error: > M:\lazarusSVN\ide\environmentopts.pp(1536,57) Error: Identifier not found > "GetUserDir" > > Pointing to this portion of EnvironmentOpts.pp > > {$IFNDEF Ver2_2_0} > AMacroList.Add(TTransferMacro.Create('Home',GetUserDir, > lisUserSHomeDirectory, nil, [])); > {$ENDIF} > > Any advise? Thanks, > > Yes. Just comment the two lines and the IDE will work without problems. I had the same problem. The fpc 221 i have does not have that function. Luiz

LOL, I wasn't sure if that function was actually needed.

Thanks Luiz.

Warm Regards, Lee

Reply by email

Maxim Ganetsky
to Lee Jenkins: I'm not what more I can do except set the following properties in Environment >…

Lee Jenkins ?????:

Show quoted text 33 lines
Felipe Monteiro de Carvalho wrote: >> Yeah, I get the same error using either FPC. >> >> I'll submit a bug report. > It compiles for me, so I think you have a configuration problem. > I'm not what more I can do except set the following properties in Environment > Environment Settings: - Compiler Path - FPC Source Directory - Make Path I've tried 2.2.0 which produces the error with "GetUserDir" not found error. I've tried 2.2.1 which is the same above. I've tried 2.2.3 which instead says it cannot find the Contnrs unit, which I've now idea how that is possible since its sitting right there in the folder M:\fpc\2.2.3\source\packages\fcl-base\src. I have "FPC Source Directory" pointing to M:\fpc\2.2.3\source. Now, I haven't used Lazarus in about a month and the only thing I did was write click on my lazarus source folder and tell Tortoise SVN to download the latest sources. Before I did that, I could build my IDE with either 2.2.0 or 2.2.1 of FPC. Now, I can't build it with any of the above. I'm not sure which or even how the configuration could be a problem unless there are more settings to change/set those that I have mentioned above, which are the only ones I've ever changed in the past.

How do you recompile your IDE? If you do it from command line then check your PATH environment variable, otherwise setting the properties you mentioned should be enough.

Best regards, Maxim Ganetsky mailto:

Reply by email

Felipe Monteiro de Carvalho
to Lee Jenkins: I'm not what more I can do except set the following properties in Environment >…
Lee Jenkins wrote
I've tried 2.2.0 which produces the error with "GetUserDir" not found error.

Well, looking at the code:

{$IFNDEF Ver2_2_0}
  AMacroList.Add(TTransferMacro.Create('Home',GetUserDir,
                 lisUserSHomeDirectory, nil, []));
{$ENDIF}

It's illogical. It cannot have this error because it's in a IFDEF, so you are not using FPC 2.2.0

Go to the command line and run your compiler. It will show his version. Or easier: fpc -v

I compile LCL with FPC 2.2.0 and I don't get this error.

How did you install FPC?

Also, what operating system are you using?

I've tried 2.2.1 which is the same above.

Because your 2.2.1 is old. You need to update it, which will actually now be 2.2.3

I've tried 2.2.3 which instead says it cannot find the Contnrs unit, which I've now idea how that is possible since its sitting right there in the folder M:\fpc\2.2.3\source\packages\fcl-base\src. I have "FPC Source Directory" pointing to M:\fpc\2.2.3\source.

The "FPC Source Directory" is designed to find the source when you want to find the declaration of something.

It is *not* designed to build FPC "on the fly"

You have to build FPC yourself.

contnrs is part of FCL. A standard FPC compilation builds only the compiler and the RTL.

You now need to build the FCL too. Here is how I build the FCL (in a batch file):

cd packages
PATH=C:\Programas\lazarus220\fpc\2.2.1\bin\i386-win32 make clean all COMPILER_UNITTARGETDIR="C:\Programas\lazarus220\fpc\2.2.1\units\arm-wince" cd ..
pause

This apply If you are building the compiler manually.

Felipe Monteiro de Carvalho

Reply by email

Lee Jenkins
to Maxim Ganetsky: Lee Jenkins ?????: How do you recompile your IDE? If you do it from command line then…
Maxim Ganetsky wrote 38 lines
Lee Jenkins ?????: > Felipe Monteiro de Carvalho wrote: >>> Yeah, I get the same error using either FPC. >>> >>> I'll submit a bug report. >> It compiles for me, so I think you have a configuration problem. >> > I'm not what more I can do except set the following properties in Environment > > Environment Settings: > > - Compiler Path > - FPC Source Directory > - Make Path > > I've tried 2.2.0 which produces the error with "GetUserDir" not found error. > > I've tried 2.2.1 which is the same above. > > I've tried 2.2.3 which instead says it cannot find the Contnrs unit, which I've > now idea how that is possible since its sitting right there in the folder > M:\fpc\2.2.3\source\packages\fcl-base\src. I have "FPC Source Directory" > pointing to M:\fpc\2.2.3\source. > > Now, I haven't used Lazarus in about a month and the only thing I did was write > click on my lazarus source folder and tell Tortoise SVN to download the latest > sources. > > Before I did that, I could build my IDE with either 2.2.0 or 2.2.1 of FPC. Now, > I can't build it with any of the above. > > I'm not sure which or even how the configuration could be a problem unless there > are more settings to change/set those that I have mentioned above, which are the > only ones I've ever changed in the past. How do you recompile your IDE? If you do it from command line then check your PATH environment variable, otherwise setting the properties you mentioned should be enough.

A While ago I followed the instructions on the wiki for compiling lazarus from sources on windows. Since then, I would just use tortoise svn to update my sources and recompile from the IDE using the build commands with everything checked to be maked, cleaned and built.

This worked up until the last svn update I did a couple days ago.

Warm Regards, Lee

Reply by email

Lee Jenkins
to Felipe Monteiro de Carvalho: Well, looking at the code: {$IFNDEF Ver2_2_0}…
Felipe Monteiro de Carvalho wrote 15 lines
On Sat, Jun 14, 2008 at 10:54 PM, Lee Jenkins wrote: > I've tried 2.2.0 which produces the error with "GetUserDir" not found error. Well, looking at the code: {$IFNDEF Ver2_2_0} AMacroList.Add(TTransferMacro.Create('Home',GetUserDir, lisUserSHomeDirectory, nil, [])); {$ENDIF} It's illogical. It cannot have this error because it's in a IFDEF, so you are not using FPC 2.2.0 Go to the command line and run your compiler. It will show his version. Or easier: fpc -v

FPC is not on my path variable, I must navigate to the directory of the whatever fpc version I want to check to do that.

I compile LCL with FPC 2.2.0 and I don't get this error. How did you install FPC?

See my post response to Maxim just before this reponse.

Also, what operating system are you using?

Vista business ed.

> I've tried 2.2.1 which is the same above. Because your 2.2.1 is old. You need to update it, which will actually now be 2.2.3

I tried 2.2.3 which I got by downloading a snapshot.

Show quoted text 26 lines
> I've tried 2.2.3 which instead says it cannot find the Contnrs unit, which I've > now idea how that is possible since its sitting right there in the folder > M:\fpc\2.2.3\source\packages\fcl-base\src. I have "FPC Source Directory" > pointing to M:\fpc\2.2.3\source. The "FPC Source Directory" is designed to find the source when you want to find the declaration of something. It is *not* designed to build FPC "on the fly" You have to build FPC yourself. contnrs is part of FCL. A standard FPC compilation builds only the compiler and the RTL. You now need to build the FCL too. Here is how I build the FCL (in a batch file): cd packages PATH=C:\Programas\lazarus220\fpc\2.2.1\bin\i386-win32 make clean all COMPILER_UNITTARGETDIR="C:\Programas\lazarus220\fpc\2.2.1\units\arm-wince" cd .. pause This apply If you are building the compiler manually.

Don't know, I'll give this a try as well, but just followed Luiz' advise and commented out the offending portions which he did because he was getting the same error as well.

Thank you for the in depth reply.

Warm Regards, Lee

Reply by email

Lee Jenkins
to Felipe Monteiro de Carvalho: Well, looking at the code: {$IFNDEF Ver2_2_0}…
Felipe Monteiro de Carvalho wrote 7 lines
On Sat, Jun 14, 2008 at 10:54 PM, Lee Jenkins wrote: The "FPC Source Directory" is designed to find the source when you want to find the declaration of something. It is *not* designed to build FPC "on the fly"

But isn't that were lazarus looks for the source files that it needs as well?

You have to build FPC yourself.

I downloaded the binaries in the form of snapshot from lazarus website.

Thanks again.

Warm Regards, Lee

Reply by email

Maxim Ganetsky
to Lee Jenkins: A While ago I followed the instructions on the wiki for compiling lazarus from sources on…

Lee Jenkins ?????:

Show quoted text 45 lines
Maxim Ganetsky wrote: > Lee Jenkins ?????: >> Felipe Monteiro de Carvalho wrote: >>>> Yeah, I get the same error using either FPC. >>>> >>>> I'll submit a bug report. >>> It compiles for me, so I think you have a configuration problem. >>> >> I'm not what more I can do except set the following properties in Environment > >> Environment Settings: >> >> - Compiler Path >> - FPC Source Directory >> - Make Path >> >> I've tried 2.2.0 which produces the error with "GetUserDir" not found error. >> >> I've tried 2.2.1 which is the same above. >> >> I've tried 2.2.3 which instead says it cannot find the Contnrs unit, which I've >> now idea how that is possible since its sitting right there in the folder >> M:\fpc\2.2.3\source\packages\fcl-base\src. I have "FPC Source Directory" >> pointing to M:\fpc\2.2.3\source. >> >> Now, I haven't used Lazarus in about a month and the only thing I did was write >> click on my lazarus source folder and tell Tortoise SVN to download the latest >> sources. >> >> Before I did that, I could build my IDE with either 2.2.0 or 2.2.1 of FPC. Now, >> I can't build it with any of the above. >> >> I'm not sure which or even how the configuration could be a problem unless there >> are more settings to change/set those that I have mentioned above, which are the >> only ones I've ever changed in the past. > How do you recompile your IDE? If you do it from command line then check > your PATH environment variable, otherwise setting the properties you > mentioned should be enough. > A While ago I followed the instructions on the wiki for compiling lazarus from sources on windows. Since then, I would just use tortoise svn to update my sources and recompile from the IDE using the build commands with everything checked to be maked, cleaned and built. This worked up until the last svn update I did a couple days ago.

Yes, I understand this. But you needed to change your compiler. In what steps did you try to do it? It seems you made some mistake here.

Best regards, Maxim Ganetsky mailto:

Reply by email

Lee Jenkins
to Maxim Ganetsky
Maxim Ganetsky wrote 50 lines
Lee Jenkins ?????: > Maxim Ganetsky wrote: >> Lee Jenkins ?????: >>> Felipe Monteiro de Carvalho wrote: >>>>> Yeah, I get the same error using either FPC. >>>>> >>>>> I'll submit a bug report. >>>> It compiles for me, so I think you have a configuration problem. >>>> >>> I'm not what more I can do except set the following properties in Environment > >>> Environment Settings: >>> >>> - Compiler Path >>> - FPC Source Directory >>> - Make Path >>> >>> I've tried 2.2.0 which produces the error with "GetUserDir" not found error. >>> >>> I've tried 2.2.1 which is the same above. >>> >>> I've tried 2.2.3 which instead says it cannot find the Contnrs unit, which I've >>> now idea how that is possible since its sitting right there in the folder >>> M:\fpc\2.2.3\source\packages\fcl-base\src. I have "FPC Source Directory" >>> pointing to M:\fpc\2.2.3\source. >>> >>> Now, I haven't used Lazarus in about a month and the only thing I did was write >>> click on my lazarus source folder and tell Tortoise SVN to download the latest >>> sources. >>> >>> Before I did that, I could build my IDE with either 2.2.0 or 2.2.1 of FPC. Now, >>> I can't build it with any of the above. >>> >>> I'm not sure which or even how the configuration could be a problem unless there >>> are more settings to change/set those that I have mentioned above, which are the >>> only ones I've ever changed in the past. >> How do you recompile your IDE? If you do it from command line then check >> your PATH environment variable, otherwise setting the properties you >> mentioned should be enough. >> > A While ago I followed the instructions on the wiki for compiling lazarus from > sources on windows. Since then, I would just use tortoise svn to update my > sources and recompile from the IDE using the build commands with everything > checked to be maked, cleaned and built. > > This worked up until the last svn update I did a couple days ago. Yes, I understand this. But you needed to change your compiler. In what steps did you try to do it? It seems you made some mistake here.

Ah, my fault. I downloaded and installed the latest lazarus snapshot that included 2.2.3. I then copied the fpc directory from that install to another directory on my computer. I then uninstalled the new snapshot.

From there, I just updated the paths in my svn lazarus to point to the new fpc binaries and source under Environment Options and tried to rebuild lazarus from there.

A bit of a round about way, but I didn't see any pre-built binary downloads for fpc 2.2.3 on the fpc site.

BTW, the fpc 2.2.3 doesn't give me the error concerning GetUserDir, at because it doesn't get that far, but bombs almost immediately when trying to rebuild lazarus saying that it cannot find the contnrs unit.

Warm Regards, Lee

Reply by email

Maxim Ganetsky
to Lee Jenkins

Lee Jenkins ?????:

Show quoted text 65 lines
Maxim Ganetsky wrote: > Lee Jenkins ?????: >> Maxim Ganetsky wrote: >>> Lee Jenkins ?????: >>>> Felipe Monteiro de Carvalho wrote: >>>>>> Yeah, I get the same error using either FPC. >>>>>> >>>>>> I'll submit a bug report. >>>>> It compiles for me, so I think you have a configuration problem. >>>>> >>>> I'm not what more I can do except set the following properties in Environment > >>>> Environment Settings: >>>> >>>> - Compiler Path >>>> - FPC Source Directory >>>> - Make Path >>>> >>>> I've tried 2.2.0 which produces the error with "GetUserDir" not found error. >>>> >>>> I've tried 2.2.1 which is the same above. >>>> >>>> I've tried 2.2.3 which instead says it cannot find the Contnrs unit, which I've >>>> now idea how that is possible since its sitting right there in the folder >>>> M:\fpc\2.2.3\source\packages\fcl-base\src. I have "FPC Source Directory" >>>> pointing to M:\fpc\2.2.3\source. >>>> >>>> Now, I haven't used Lazarus in about a month and the only thing I did was write >>>> click on my lazarus source folder and tell Tortoise SVN to download the latest >>>> sources. >>>> >>>> Before I did that, I could build my IDE with either 2.2.0 or 2.2.1 of FPC. Now, >>>> I can't build it with any of the above. >>>> >>>> I'm not sure which or even how the configuration could be a problem unless there >>>> are more settings to change/set those that I have mentioned above, which are the >>>> only ones I've ever changed in the past. >>> How do you recompile your IDE? If you do it from command line then check >>> your PATH environment variable, otherwise setting the properties you >>> mentioned should be enough. >>> >> A While ago I followed the instructions on the wiki for compiling lazarus from >> sources on windows. Since then, I would just use tortoise svn to update my >> sources and recompile from the IDE using the build commands with everything >> checked to be maked, cleaned and built. >> >> This worked up until the last svn update I did a couple days ago. > Yes, I understand this. But you needed to change your compiler. In what > steps did you try to do it? It seems you made some mistake here. > > Ah, my fault. I downloaded and installed the latest lazarus snapshot that included 2.2.3. I then copied the fpc directory from that install to another directory on my computer. I then uninstalled the new snapshot. From there, I just updated the paths in my svn lazarus to point to the new fpc binaries and source under Environment Options and tried to rebuild lazarus from there. A bit of a round about way, but I didn't see any pre-built binary downloads for fpc 2.2.3 on the fpc site. BTW, the fpc 2.2.3 doesn't give me the error concerning GetUserDir, at because it doesn't get that far, but bombs almost immediately when trying to rebuild lazarus saying that it cannot find the contnrs unit.

IIRC Lazarus install also has fpcsrc directory with FPC source. Did you copy it? FPC source and binary must match exactly (i.e. binary must be compiled from this source), otherwise you can get this error.

If it doesn't help then double check your paths in "Environment->Environment Settings" and make sure that you have correct fpc.cfg file.

Also you can try

make OPT='-va' > makeoutput.txt

in Lazarus directory and then inspect makeoutput.txt to find configuration problems. To do it you must have your compiler path in PATH environment variable.

Best regards, Maxim Ganetsky mailto:

Reply by email

Lord Satan
to Lee Jenkins: Ah, my fault. I downloaded and installed the latest lazarus snapshot that included…
BTW, the fpc 2.2.3 doesn't give me the error concerning GetUserDir, at because it doesn't get that far, but bombs almost immediately when trying to rebuild lazarus saying that it cannot find the contnrs unit.

Check which fpc.cfg you are using. That problem is definitly a problem of your fpc install. Best would be to only have one fpc and remove all of the others. Check for old fpc.cfg and old ppu files lying around. I am quite sure that your problem lies there. Having more than one fpc around is the best way to get into that kind of trouble and most likely you would like your fpc to be in your path. As I am not on windows, I cannot help more.

hih

Reply by email

Lee Jenkins
to Maxim Ganetsky: Lee Jenkins ?????: IIRC Lazarus install also has fpcsrc directory with FPC source. Did you
Maxim Ganetsky wrote 82 lines
Lee Jenkins ?????: > Maxim Ganetsky wrote: >> Lee Jenkins ?????: >>> Maxim Ganetsky wrote: >>>> Lee Jenkins ?????: >>>>> Felipe Monteiro de Carvalho wrote: >>>>>>> Yeah, I get the same error using either FPC. >>>>>>> >>>>>>> I'll submit a bug report. >>>>>> It compiles for me, so I think you have a configuration problem. >>>>>> >>>>> I'm not what more I can do except set the following properties in Environment > >>>>> Environment Settings: >>>>> >>>>> - Compiler Path >>>>> - FPC Source Directory >>>>> - Make Path >>>>> >>>>> I've tried 2.2.0 which produces the error with "GetUserDir" not found error. >>>>> >>>>> I've tried 2.2.1 which is the same above. >>>>> >>>>> I've tried 2.2.3 which instead says it cannot find the Contnrs unit, which I've >>>>> now idea how that is possible since its sitting right there in the folder >>>>> M:\fpc\2.2.3\source\packages\fcl-base\src. I have "FPC Source Directory" >>>>> pointing to M:\fpc\2.2.3\source. >>>>> >>>>> Now, I haven't used Lazarus in about a month and the only thing I did was write >>>>> click on my lazarus source folder and tell Tortoise SVN to download the latest >>>>> sources. >>>>> >>>>> Before I did that, I could build my IDE with either 2.2.0 or 2.2.1 of FPC. Now, >>>>> I can't build it with any of the above. >>>>> >>>>> I'm not sure which or even how the configuration could be a problem unless there >>>>> are more settings to change/set those that I have mentioned above, which are the >>>>> only ones I've ever changed in the past. >>>> How do you recompile your IDE? If you do it from command line then check >>>> your PATH environment variable, otherwise setting the properties you >>>> mentioned should be enough. >>>> >>> A While ago I followed the instructions on the wiki for compiling lazarus from >>> sources on windows. Since then, I would just use tortoise svn to update my >>> sources and recompile from the IDE using the build commands with everything >>> checked to be maked, cleaned and built. >>> >>> This worked up until the last svn update I did a couple days ago. >> Yes, I understand this. But you needed to change your compiler. In what >> steps did you try to do it? It seems you made some mistake here. >> >> > Ah, my fault. I downloaded and installed the latest lazarus snapshot that > included 2.2.3. I then copied the fpc directory from that install to another > directory on my computer. I then uninstalled the new snapshot. > > From there, I just updated the paths in my svn lazarus to point to the new fpc > binaries and source under Environment Options and tried to rebuild lazarus from > there. > > A bit of a round about way, but I didn't see any pre-built binary downloads for > fpc 2.2.3 on the fpc site. > > BTW, the fpc 2.2.3 doesn't give me the error concerning GetUserDir, at because > it doesn't get that far, but bombs almost immediately when trying to rebuild > lazarus saying that it cannot find the contnrs unit. IIRC Lazarus install also has fpcsrc directory with FPC source. Did you copy it? FPC source and binary must match exactly (i.e. binary must be compiled from this source), otherwise you can get this error. If it doesn't help then double check your paths in "Environment->Environment Settings" and make sure that you have correct fpc.cfg file. Also you can try make OPT='-va' > makeoutput.txt in Lazarus directory and then inspect makeoutput.txt to find configuration problems. To do it you must have your compiler path in PATH environment variable.

I copied the entire FPC directory under lazarus/ide directory which includes a subdirectory "source" which includes "packages" and "rtl" folders. I'll check the fpc.cfg file.

Warm Regards, Lee

Reply by email

Lee Jenkins
to Lord Satan: On Sun, 15 Jun 2008 12:53:02 -0400 Check which fpc.cfg you are using. That problem is…
Lord Satan wrote 11 lines
On Sun, 15 Jun 2008 12:53:02 -0400 Lee Jenkins wrote: > BTW, the fpc 2.2.3 doesn't give me the error concerning GetUserDir, at because > it doesn't get that far, but bombs almost immediately when trying to rebuild > lazarus saying that it cannot find the contnrs unit. Check which fpc.cfg you are using. That problem is definitly a problem of your fpc install. Best would be to only have one fpc and remove all of the others. Check for old fpc.cfg and old ppu files lying around. I am quite sure that your problem lies there. Having more than one fpc around is the best way to get into that kind of trouble and most likely you would like your fpc to be in your path. As I am not on windows, I cannot help more. hih

Thanks, I'll try removing the extra fpc folders and check the fpc.cfg file as well.

Warm Regards, Lee

Reply by email

Vincent Snijders
to Lee Jenkins: Ah, my fault. I downloaded and installed the latest lazarus snapshot that included…
Lee Jenkins wrote 9 lines
Ah, my fault. I downloaded and installed the latest lazarus snapshot that included 2.2.3. I then copied the fpc directory from that install to another directory on my computer. I then uninstalled the new snapshot. From there, I just updated the paths in my svn lazarus to point to the new fpc binaries and source under Environment Options and tried to rebuild lazarus from there.

If you move the fpc directory in the Lazarus tree, you need to update the fpc\bin\i386-win32\fpc.cfg file too, otherwise it will still point to the compiled units in the fpc tree, which you just deleted.

BTW, the compiler is looking for contnrs.ppu, not contnrs.pp.

Vincent

Reply by email

Lee Jenkins
to Vincent Snijders
Vincent Snijders wrote 14 lines
Lee Jenkins schreef: > Ah, my fault. I downloaded and installed the latest lazarus snapshot that > included 2.2.3. I then copied the fpc directory from that install to another > directory on my computer. I then uninstalled the new snapshot. > > From there, I just updated the paths in my svn lazarus to point to the new fpc > binaries and source under Environment Options and tried to rebuild lazarus from > there. > If you move the fpc directory in the Lazarus tree, you need to update the fpc\bin\i386-win32\fpc.cfg file too, otherwise it will still point to the compiled units in the fpc tree, which you just deleted.

Hi Vincent, I've looked through this file for the first time this morning (never had a need to till now) and I don't see what would need to be updated. Any path information that I see, refers the the correct fpc path for 2.2.3 for instance.

Warm Regards, Lee

Reply by email