Sign in Join

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

Mailing lists / fpc-devel / 2009-02

Rebuild Lazarus fails for some reason

8 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

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

ABorka

Hi,

I'm getting
"componenttreeview.pas(41,18) Fatal: Can't find unit ComponentTreeView used by ObjectInspector"

On this computer (win32, XP) rebuilding Lazarus does not work. Steps:

1. Clear all lazarus/fpc directories (except the c:\pp\bin\i386-win32\ so there's a working FPC compiler left to build again, included in the PATH global environment variable)
2. Check out FPC from SVN (or svn update) into c:\fpc_svn\
3. cd c:\fpc_svn\ , make clean, make all, make install works OK
4. Check out Lazarus from SVN (or svn update) into c:\lazarus_svn\
5. cd c:\lazarus_svn\ , make clean, make all, make install works OK
6. Start up Lazarus
7. Tools -> Build Lazarus produces the above error

Therefore cannot add any packages.

in the Environment options
Lazarus Directory = c:\lazarus
Compiler path = c:\pp\bin\i386-win32\fpc.exe
FPC Source dir = c:\fpc_svn\

Seems to be something like
http://bugs.freepascal.org/view.php?id=10433

Any thoughts?

Reply by email

Michael Van Canneyt
to ABorka
ABorka wrote 31 lines
Hi, I'm getting "componenttreeview.pas(41,18) Fatal: Can't find unit ComponentTreeView used by ObjectInspector" On this computer (win32, XP) rebuilding Lazarus does not work. Steps: 1. Clear all lazarus/fpc directories (except the c:\pp\bin\i386-win32\ so there's a working FPC compiler left to build again, included in the PATH global environment variable) 2. Check out FPC from SVN (or svn update) into c:\fpc_svn\ 3. cd c:\fpc_svn\ , make clean, make all, make install works OK 4. Check out Lazarus from SVN (or svn update) into c:\lazarus_svn\ 5. cd c:\lazarus_svn\ , make clean, make all, make install works OK 6. Start up Lazarus 7. Tools -> Build Lazarus produces the above error Therefore cannot add any packages. in the Environment options Lazarus Directory = c:\lazarus Compiler path = c:\pp\bin\i386-win32\fpc.exe FPC Source dir = c:\fpc_svn\ Seems to be something like http://bugs.freepascal.org/view.php?id=10433 Any thoughts?

At first sight I would say that the path to the ComponentTreeView is simply not set.

Without more info it's hard to tell. You would need to supply more of the error message, for instance why does the compiler want to recompile the ComponentTreeView unit ? Did it compile it before or not ?

Michael.

Reply by email

ABorka
to Michael Van Canneyt

Hi Michael,

Yes it was compiled when "make all" was called the first time, because c:\lazarus\ideintf\units\i386-win32\ contains componenttreeview.ppu and componenttreeview.o and both has the same date/time as all the other units there (obviously, because all of them were created with the "make all" command at once in step 5).
That is why it is very strange why this is happening. It is a totally clean svn checkout and compilation, and without doing anything within Lazarus, Im just trying to do a Tools->Rebuild Lazarus from menu after Lazarus is first started. Of course, I got the error originally when tried to add a package so I tried to track back what the problem is.
But even with a clean FPC/Lazarus SVN checkout and build this problem is there.

I have no idea why it wants to recompile this unit, when nothing changed, no packages added or removed, its just a simple rebuild Lazarus from the Tools menu after a clean install.

Michael Van Canneyt wrote 47 lines
On Wed, 18 Feb 2009, ABorka wrote: > Hi, > > I'm getting > "componenttreeview.pas(41,18) Fatal: Can't find unit ComponentTreeView used by > ObjectInspector" > > > On this computer (win32, XP) rebuilding Lazarus does not work. > Steps: > > 1. Clear all lazarus/fpc directories (except the c:\pp\bin\i386-win32\ so > there's a working FPC compiler left to build again, included in the PATH > global environment variable) > 2. Check out FPC from SVN (or svn update) into c:\fpc_svn\ > 3. cd c:\fpc_svn\ , make clean, make all, make install works OK > 4. Check out Lazarus from SVN (or svn update) into c:\lazarus_svn\ > 5. cd c:\lazarus_svn\ , make clean, make all, make install works OK > 6. Start up Lazarus > 7. Tools -> Build Lazarus produces the above error > > Therefore cannot add any packages. > > in the Environment options > Lazarus Directory = c:\lazarus > Compiler path = c:\pp\bin\i386-win32\fpc.exe > FPC Source dir = c:\fpc_svn\ > > Seems to be something like >** http://bugs.freepascal.org/view.php?id=10433 > > Any thoughts? At first sight I would say that the path to the ComponentTreeView is simply not set. Without more info it's hard to tell. You would need to supply more of the error message, for instance why does the compiler want to recompile the ComponentTreeView unit ? Did it compile it before or not ? Michael. _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Michael Van Canneyt
to ABorka
ABorka wrote 18 lines
Hi Michael, Yes it was compiled when "make all" was called the first time, because c:\lazarus\ideintf\units\i386-win32\ contains componenttreeview.ppu and componenttreeview.o and both has the same date/time as all the other units there (obviously, because all of them were created with the "make all" command at once in step 5). That is why it is very strange why this is happening. It is a totally clean svn checkout and compilation, and without doing anything within Lazarus, Im just trying to do a Tools->Rebuild Lazarus from menu after Lazarus is first started. Of course, I got the error originally when tried to add a package so I tried to track back what the problem is. But even with a clean FPC/Lazarus SVN checkout and build this problem is there. I have no idea why it wants to recompile this unit, when nothing changed, no packages added or removed, its just a simple rebuild Lazarus from the Tools menu after a clean install.

That's why you need to turn on more verbose messaging (-u -t), normally the compiler tells you why it wants to recompile a unit.

Michael.

Reply by email

ABorka
to Michael Van Canneyt

Not sure that I did it right but attached are 2 screenshots as well as the original "make all" "make install" log from Lazarus compilation. The c:\lazarus\ideintf\units\...\ contains the compiled componenttreeview files after "make install"

I was guessing I need to put " -u -t " into the
Configure Build Lazarus dialog into the "Options" field (screenshot 1)

And the second screenshot is what I see after the error comes.

Michael Van Canneyt wrote 30 lines
On Thu, 19 Feb 2009, ABorka wrote: > Hi Michael, > > Yes it was compiled when "make all" was called the first time, because > c:\lazarus\ideintf\units\i386-win32\ contains componenttreeview.ppu and > componenttreeview.o and both has the same date/time as all the other units > there (obviously, because all of them were created with the "make all" command > at once in step 5). > That is why it is very strange why this is happening. > It is a totally clean svn checkout and compilation, and without doing anything > within Lazarus, Im just trying to do a Tools->Rebuild Lazarus from menu after > Lazarus is first started. Of course, I got the error originally when tried to > add a package so I tried to track back what the problem is. > But even with a clean FPC/Lazarus SVN checkout and build this problem is > there. > > I have no idea why it wants to recompile this unit, when nothing changed, no > packages added or removed, its just a simple rebuild Lazarus from the Tools > menu after a clean install. That's why you need to turn on more verbose messaging (-u -t), normally the compiler tells you why it wants to recompile a unit. Michael. _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email

Vincent Snijders
to ABorka
ABorka wrote 11 lines
Not sure that I did it right but attached are 2 screenshots as well as the original "make all" "make install" log from Lazarus compilation. The c:\lazarus\ideintf\units\...\ contains the compiled componenttreeview files after "make install" I was guessing I need to put " -u -t " into the Configure Build Lazarus dialog into the "Options" field (screenshot 1) And the second screenshot is what I see after the error comes.

Use copy all (including hidden) message from the message view and attach that.

Vincent

Reply by email

Mattias Gaertner
to ABorka: Yes it was compiled when "make all" was called the first time, because…
Show quoted text 19 lines
Hi Michael, Yes it was compiled when "make all" was called the first time, because c:\lazarus\ideintf\units\i386-win32\ contains componenttreeview.ppu and componenttreeview.o and both has the same date/time as all the other units there (obviously, because all of them were created with the "make all" command at once in step 5). That is why it is very strange why this is happening. It is a totally clean svn checkout and compilation, and without doing anything within Lazarus, Im just trying to do a Tools->Rebuild Lazarus from menu after Lazarus is first started. Of course, I got the error originally when tried to add a package so I tried to track back what the problem is. But even with a clean FPC/Lazarus SVN checkout and build this problem is there. I have no idea why it wants to recompile this unit, when nothing changed, no packages added or removed, its just a simple rebuild Lazarus from the Tools menu after a clean install.

Have you checked that the IDE uses the right lazarus directory in the Environment Options?

Mattias

Reply by email

ABorka
to Vincent Snijders: Use copy all (including hidden) message from the message view and attach that. Vincent

Thank you for the help guys,

The message view content with hidden messages attached (laz-tools-rebuild.txt).
Here is the end of it:

PPU Loading C:\lazarus\ideintf\units\i386-win32\componenttreeview.ppu PPU Source: componenttreeview.pas not found
File C:\lazarus\images\componenttreeview.lrs is newer than PPU file C:\lazarus\ideintf\units\i386-win32\componenttreeview.ppu PPU Source: C:\lazarus\images\componenttreeview.lrs time 2009/02/17 13:14:08 *
componenttreeview.pas(41,18) Fatal: Can't find unit ComponentTreeView used by ObjectInspector

The two directories mentioned above is attached (laz-ideintf.txt and lazarus-images.txt)
However, the ppu file date is 02/19/2009 00:47 which is not older than the lrs file 02/17/2009 13:34

I attached the enviroment options dialog screenshot too for Mattias.

Also I can assure you guys that there are no hidden lazarus or ppc files anywhere on this computer, it was a totally clean install, and svn checkout for FPC then Lazarus. Then both compiled and installed. Then Lazarus fired up and hit the menu Tools->Build Lazarus.

Vincent Snijders wrote 21 lines
ABorka schreef: > > Not sure that I did it right but attached are 2 screenshots as well as > the original "make all" "make install" log from Lazarus compilation. > The c:\lazarus\ideintf\units\...\ contains the compiled > componenttreeview files after "make install" > > I was guessing I need to put " -u -t " into the > Configure Build Lazarus dialog into the "Options" field (screenshot 1) > > And the second screenshot is what I see after the error comes. > Use copy all (including hidden) message from the message view and attach that. Vincent _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply by email