Sign in Join

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

Mailing lists / lazarus / 2002-06

Build problems

6 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Michal Bukovjan
to Michal Bukovjan: I just did a fresh checkout of flc, lazarus and packages. I also installed fpc-1.0.6 rpm…
Marc Weustink wrote 20 lines
At 21:14 03/06/2002 +0200, Michal Bukovjan wrote: [SNIP] Ehh.. you shouldn't find gtk.pp there but gtk.ppu instead. Is your fpc.cfg OK and isn't there an old ppc.cfg ? there should be a line like -Fu/usr/lib/fpc/1.0.6/units/$target/* Seen from your output you only have rtl, paszlib, inet, fcl, regexp, mysql and ibase To me it seems that you are missing dirs (I count 29). > The unit is there. So I believe this is an error in Makefile (for > this particular unit). Strange, though, that it works for others. This is not a Makefile issue but a fpc configuration issue

You are right, I found the stale ppc386.cfg file. Although as the logs report, fpc.cfg was used, so the problem is somewhat weird. The old ppc386.cfg pointed to old */1.0.5/* directory, the compiler reported that it searches in */1.0.6/*. The line

-Fu/usr/lib/fpc/1.0.6/units/$target/*

was in both (only different in versions).

Once I removed the ppc386.cfg, everything compiles.

Hmm :-(

Perhaps the rpm package could be updated to delete /etc/ppc386.cfg upon installation/upgrade? Is the spec file available in CVS?

Michal

Reply by email

Marc Weustink
to Michal Bukovjan: I just did a fresh checkout of flc, lazarus and packages. I also installed fpc-1.0.6 rpm…

At 21:14 03/06/2002 +0200, Michal Bukovjan wrote:

[SNIP]

Show quoted text 49 lines
Load from GTKINT (interface) unit GTK Unitsearch: gtk.ppu Unitsearch: ../units/gtk.ppu Unitsearch: gtk.pp Unitsearch: gtk.pas Unitsearch: /home/michal/source/lazarus/lazarus/lcl/units/gtk/gtk.ppu Unitsearch: /home/michal/source/lazarus/lazarus/lcl/units/gtk/gtk.pp Unitsearch: /home/michal/source/lazarus/lazarus/lcl/units/gtk/gtk.pas Unitsearch: /home/michal/source/lazarus/lazarus/lcl/units/gtk.ppu Unitsearch: /home/michal/source/lazarus/lazarus/lcl/units/gtk.pp Unitsearch: /home/michal/source/lazarus/lazarus/lcl/units/gtk.pas Unitsearch: gtk.ppu Unitsearch: gtk.pp Unitsearch: gtk.pas Unitsearch: /usr/lib/fpc/1.0.6/units/linux/rtl/gtk.ppu Unitsearch: /usr/lib/fpc/1.0.6/units/linux/rtl/gtk.pp Unitsearch: /usr/lib/fpc/1.0.6/units/linux/rtl/gtk.pas Unitsearch: /usr/lib/fpc/1.0.6/units/linux/paszlib/gtk.ppu Unitsearch: /usr/lib/fpc/1.0.6/units/linux/paszlib/gtk.pp Unitsearch: /usr/lib/fpc/1.0.6/units/linux/paszlib/gtk.pas Unitsearch: /usr/lib/fpc/1.0.6/units/linux/inet/gtk.ppu Unitsearch: /usr/lib/fpc/1.0.6/units/linux/inet/gtk.pp Unitsearch: /usr/lib/fpc/1.0.6/units/linux/inet/gtk.pas Unitsearch: /usr/lib/fpc/1.0.6/units/linux/fcl/gtk.ppu Unitsearch: /usr/lib/fpc/1.0.6/units/linux/fcl/gtk.pp Unitsearch: /usr/lib/fpc/1.0.6/units/linux/fcl/gtk.pas Unitsearch: /usr/lib/fpc/1.0.6/units/linux/regexpr/gtk.ppu Unitsearch: /usr/lib/fpc/1.0.6/units/linux/regexpr/gtk.pp Unitsearch: /usr/lib/fpc/1.0.6/units/linux/regexpr/gtk.pas Unitsearch: /usr/lib/fpc/1.0.6/units/linux/mysql/gtk.ppu Unitsearch: /usr/lib/fpc/1.0.6/units/linux/mysql/gtk.pp Unitsearch: /usr/lib/fpc/1.0.6/units/linux/mysql/gtk.pas Unitsearch: /usr/lib/fpc/1.0.6/units/linux/ibase/gtk.ppu Unitsearch: /usr/lib/fpc/1.0.6/units/linux/ibase/gtk.pp Unitsearch: /usr/lib/fpc/1.0.6/units/linux/ibase/gtk.pas Unitsearch: /usr/lib/fpc/1.0.6/units/linux/gtk.ppu Unitsearch: /usr/lib/fpc/1.0.6/units/linux/gtk.pp Unitsearch: /usr/lib/fpc/1.0.6/units/linux/gtk.pas Unitsearch: /usr/lib/fpc/1.0.6/gtk.ppu Unitsearch: /usr/lib/fpc/1.0.6/gtk.pp Unitsearch: /usr/lib/fpc/1.0.6/gtk.pas gtkint.pp(74,11) Fatal: Can't find unit GTK gtkint.pp(74,11) ENDIF SYN_LAZARUS found make[2]: Leaving directory `/home/michal/source/lazarus/lazarus/components/synedit' make[1]: Leaving directory `/home/michal/source/lazarus/lazarus/components' --------------------- It should look in Unitsearch: /usr/lib/fpc/1.0.6/units/linux/gtk/gtk.pp

Ehh.. you shouldn't find gtk.pp there but gtk.ppu instead.

Is your fpc.cfg OK and isn't there an old ppc.cfg ?

there should be a line like -Fu/usr/lib/fpc/1.0.6/units/$target/*

Seen from your output you only have rtl, paszlib, inet, fcl, regexp, mysql and ibase
To me it seems that you are missing dirs (I count 29).

The unit is there. So I believe this is an error in Makefile (for this particular unit). Strange, though, that it works for others.

This is not a Makefile issue but a fpc configuration issue

Marc

Reply by email

Marc Weustink
to Michal Bukovjan: I just did a fresh checkout of flc, lazarus and packages. I also installed fpc-1.0.6 rpm…
Michal Bukovjan wrote 17 lines
Marc Weustink wrote: > > >This is not a Makefile issue but a fpc configuration issue You are right, I found the stale ppc386.cfg file. Although as the logs report, fpc.cfg was used, so the problem is somewhat weird. The old ppc386.cfg pointed to old */1.0.5/* directory, the compiler reported that it searches in */1.0.6/*. The line -Fu/usr/lib/fpc/1.0.6/units/$target/* was in both (only different in versions). Once I removed the ppc386.cfg, everything compiles. Hmm :-(

Weird

Perhaps the rpm package could be updated to delete /etc/ppc386.cfg upon installation/upgrade? Is the spec file available in CVS?

Yep in fpc/install

Marc

Reply by email

Michal Bukovjan
to Michal Bukovjan: I just did a fresh checkout of flc, lazarus and packages. I also installed fpc-1.0.6 rpm…
Mattias Gaertner wrote 44 lines
On Fri, 31 May 2002 13:22:14 +0200 Michal Bukovjan wrote: >Hello, > >I just did a fresh checkout of flc, lazarus and packages. I also >installed fpc-1.0.6 rpm downloaded today. >Lazarus will not compile, saying: > >[..snip...] >`/home/michal/source/lazarus/lazarus/components/synedit' >/bin/rm -f ../units/allunits.ppu >/usr/bin/ppc386 -gl -Fu../../lcl/units/gtk -Fu../../lcl/units -Fu. >-Fu/usr/lib/fpc/1.0.6/units/linux/rtl >-Fu/usr/lib/fpc/1.0.6/units/linux/paszlib >-Fu/usr/lib/fpc/1.0.6/units/linux/inet >-Fu/usr/lib/fpc/1.0.6/units/linux/fcl >-Fu/usr/lib/fpc/1.0.6/units/linux/regexpr >-Fu/usr/lib/fpc/1.0.6/units/linux/mysql >-Fu/usr/lib/fpc/1.0.6/units/linux/ibase -FU../units >-Fl/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96 -Fl/usr/X11R6/lib/wine >-Fl/usr/X11R6/lib -Fl/usr/local/lib -Fl/usr/lib/wine -Fl/usr/lib/qt2/lib >-di386 allunits.pp >Free Pascal Compiler version 1.0.6 [2002/05/23] for i386 >Copyright (c) 1993-2002 by Florian Klaempfl >Target OS: Linux for i386 >Compiling allunits.pp >Compiling syntextdrawer.pp >gtkint.pp(74,11) Fatal: Can't find unit GTK > >This used to work - perhaps broken Makefiles? > > No problem here. (1.0.7 cvs and 1.0.6 rpm) Probable u have already tried all the FAQ hints, so I will skip this. I have heard from this error, but it always vanished mysteriously after some 'trying out what is going on'. compiler bug? Since u are familiar with the compiler plz do a 'make clean all OPT=-va > c.txt' and find out more details. Does the compiler search in the correct directories?

Now this seems funny. From the end of the log file...

-------------------
Load from INTERFACEBASE (interface) unit SYSLINUX
Load from INTERFACEBASE (interface) unit OBJPAS
Load from INTERFACEBASE (interface) unit LCLLINUX
Load from INTERFACEBASE (interface) unit LCLTYPE
Load from INTERFACEBASE (interface) unit VCLGLOBALS Load from INTERFACEBASE (interface) unit CLASSES
Load from INTERFACEBASE (interface) unit CONTROLS
Load from INTERFACEBASE (interface) unit LMESSAGES Load from INTERFACEBASE (interface) unit GRAPHTYPE Load from INTERFACES (implementation) unit GTKINT
Unitsearch: gtkint.ppu
Unitsearch: ../units/gtkint.ppu
Unitsearch: gtkint.pp
Unitsearch: gtkint.pas
Unitsearch: /home/michal/source/lazarus/lazarus/lcl/units/gtk/gtkint.ppu PPU Loading /home/michal/source/lazarus/lazarus/lcl/units/gtk/gtkint.ppu PPU Name: /home/michal/source/lazarus/lazarus/lcl/units/gtk/gtkint.ppu PPU Time: 2002/06/03 21:07:21
PPU Flags: 4243
PPU Crc: 1378560588
PPU Crc: 2013393362 (intfc)
PPU Check file
/home/michal/source/lazarus/lazarus/lcl/units/gtk/gtkint.o time 2002/06/03 21:07:21
PPU Source: gtkint.pp not found
PPU Source: gtkwinapih.inc not found
PPU Source: gtklistslh.inc not found
PPU Source: gtklistsl.inc not found
PPU Source: dragicons.inc not found
PPU Source: gtkproc.inc not found
PPU Source: gtkcallback.inc not found
PPU Source: gtkdragcallback.inc not found
PPU Source: gtklistviewcallback.inc not found
PPU Source: gtkobject.inc not found
PPU Source: gtkwinapi.inc not found
Load from GTKINT (interface) unit SYSLINUX
Load from GTKINT (interface) unit OBJPAS
Load from GTKINT (interface) unit INTERFACEBASE
Load from GTKINT (interface) unit GTK
Unitsearch: gtk.ppu
Unitsearch: ../units/gtk.ppu
Unitsearch: gtk.pp
Unitsearch: gtk.pas
Unitsearch: /home/michal/source/lazarus/lazarus/lcl/units/gtk/gtk.ppu Unitsearch: /home/michal/source/lazarus/lazarus/lcl/units/gtk/gtk.pp Unitsearch: /home/michal/source/lazarus/lazarus/lcl/units/gtk/gtk.pas Unitsearch: /home/michal/source/lazarus/lazarus/lcl/units/gtk.ppu Unitsearch: /home/michal/source/lazarus/lazarus/lcl/units/gtk.pp Unitsearch: /home/michal/source/lazarus/lazarus/lcl/units/gtk.pas Unitsearch: gtk.ppu
Unitsearch: gtk.pp
Unitsearch: gtk.pas
Unitsearch: /usr/lib/fpc/1.0.6/units/linux/rtl/gtk.ppu Unitsearch: /usr/lib/fpc/1.0.6/units/linux/rtl/gtk.pp Unitsearch: /usr/lib/fpc/1.0.6/units/linux/rtl/gtk.pas Unitsearch: /usr/lib/fpc/1.0.6/units/linux/paszlib/gtk.ppu Unitsearch: /usr/lib/fpc/1.0.6/units/linux/paszlib/gtk.pp Unitsearch: /usr/lib/fpc/1.0.6/units/linux/paszlib/gtk.pas Unitsearch: /usr/lib/fpc/1.0.6/units/linux/inet/gtk.ppu Unitsearch: /usr/lib/fpc/1.0.6/units/linux/inet/gtk.pp Unitsearch: /usr/lib/fpc/1.0.6/units/linux/inet/gtk.pas Unitsearch: /usr/lib/fpc/1.0.6/units/linux/fcl/gtk.ppu Unitsearch: /usr/lib/fpc/1.0.6/units/linux/fcl/gtk.pp Unitsearch: /usr/lib/fpc/1.0.6/units/linux/fcl/gtk.pas Unitsearch: /usr/lib/fpc/1.0.6/units/linux/regexpr/gtk.ppu Unitsearch: /usr/lib/fpc/1.0.6/units/linux/regexpr/gtk.pp Unitsearch: /usr/lib/fpc/1.0.6/units/linux/regexpr/gtk.pas Unitsearch: /usr/lib/fpc/1.0.6/units/linux/mysql/gtk.ppu Unitsearch: /usr/lib/fpc/1.0.6/units/linux/mysql/gtk.pp Unitsearch: /usr/lib/fpc/1.0.6/units/linux/mysql/gtk.pas Unitsearch: /usr/lib/fpc/1.0.6/units/linux/ibase/gtk.ppu Unitsearch: /usr/lib/fpc/1.0.6/units/linux/ibase/gtk.pp Unitsearch: /usr/lib/fpc/1.0.6/units/linux/ibase/gtk.pas Unitsearch: /usr/lib/fpc/1.0.6/units/linux/gtk.ppu Unitsearch: /usr/lib/fpc/1.0.6/units/linux/gtk.pp
Unitsearch: /usr/lib/fpc/1.0.6/units/linux/gtk.pas Unitsearch: /usr/lib/fpc/1.0.6/gtk.ppu
Unitsearch: /usr/lib/fpc/1.0.6/gtk.pp
Unitsearch: /usr/lib/fpc/1.0.6/gtk.pas
gtkint.pp(74,11) Fatal: Can't find unit GTK
gtkint.pp(74,11) ENDIF SYN_LAZARUS found
make[2]: Leaving directory
`/home/michal/source/lazarus/lazarus/components/synedit' make[1]: Leaving directory `/home/michal/source/lazarus/lazarus/components' ---------------------

It should look in Unitsearch: /usr/lib/fpc/1.0.6/units/linux/gtk/gtk.pp

The unit is there. So I believe this is an error in Makefile (for this particular unit). Strange, though, that it works for others.

Michal

Reply by email

Michal Bukovjan

Hello,

I just did a fresh checkout of flc, lazarus and packages. I also installed fpc-1.0.6 rpm downloaded today.
Lazarus will not compile, saying:

[..snip...]
Assembling interfaces
151 Lines compiled, 0.4 sec
make[3]: Leaving directory
`/home/michal/source/lazarus/lazarus/lcl/interfaces/gtk' make[2]: Leaving directory
`/home/michal/source/lazarus/lazarus/lcl/interfaces' make[1]: Leaving directory `/home/michal/source/lazarus/lazarus/lcl' make -C components all
make[1]: Entering directory `/home/michal/source/lazarus/lazarus/components' make -C synedit all
make[2]: Entering directory
`/home/michal/source/lazarus/lazarus/components/synedit' /bin/rm -f ../units/allunits.ppu
/usr/bin/ppc386 -gl -Fu../../lcl/units/gtk -Fu../../lcl/units -Fu. -Fu/usr/lib/fpc/1.0.6/units/linux/rtl
-Fu/usr/lib/fpc/1.0.6/units/linux/paszlib
-Fu/usr/lib/fpc/1.0.6/units/linux/inet
-Fu/usr/lib/fpc/1.0.6/units/linux/fcl
-Fu/usr/lib/fpc/1.0.6/units/linux/regexpr
-Fu/usr/lib/fpc/1.0.6/units/linux/mysql
-Fu/usr/lib/fpc/1.0.6/units/linux/ibase -FU../units -Fl/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96 -Fl/usr/X11R6/lib/wine -Fl/usr/X11R6/lib -Fl/usr/local/lib -Fl/usr/lib/wine -Fl/usr/lib/qt2/lib -di386 allunits.pp
Free Pascal Compiler version 1.0.6 [2002/05/23] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Target OS: Linux for i386
Compiling allunits.pp
Compiling syntextdrawer.pp
gtkint.pp(74,11) Fatal: Can't find unit GTK
make[2]: *** [allunits.ppu] Error 1
make[2]: Leaving directory
`/home/michal/source/lazarus/lazarus/components/synedit' make[1]: *** [synedit_all] Error 2
make[1]: Leaving directory `/home/michal/source/lazarus/lazarus/components' make: *** [components] Error 2

This used to work - perhaps broken Makefiles?

Michal

Reply by email

Mattias Gaertner
to Michal Bukovjan
Show quoted text 28 lines
Hello, I just did a fresh checkout of flc, lazarus and packages. I also installed fpc-1.0.6 rpm downloaded today. Lazarus will not compile, saying: [..snip...] `/home/michal/source/lazarus/lazarus/components/synedit' /bin/rm -f ../units/allunits.ppu /usr/bin/ppc386 -gl -Fu../../lcl/units/gtk -Fu../../lcl/units -Fu. -Fu/usr/lib/fpc/1.0.6/units/linux/rtl -Fu/usr/lib/fpc/1.0.6/units/linux/paszlib -Fu/usr/lib/fpc/1.0.6/units/linux/inet -Fu/usr/lib/fpc/1.0.6/units/linux/fcl -Fu/usr/lib/fpc/1.0.6/units/linux/regexpr -Fu/usr/lib/fpc/1.0.6/units/linux/mysql -Fu/usr/lib/fpc/1.0.6/units/linux/ibase -FU../units -Fl/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96 -Fl/usr/X11R6/lib/wine -Fl/usr/X11R6/lib -Fl/usr/local/lib -Fl/usr/lib/wine -Fl/usr/lib/qt2/lib -di386 allunits.pp Free Pascal Compiler version 1.0.6 [2002/05/23] for i386 Copyright (c) 1993-2002 by Florian Klaempfl Target OS: Linux for i386 Compiling allunits.pp Compiling syntextdrawer.pp gtkint.pp(74,11) Fatal: Can't find unit GTK This used to work - perhaps broken Makefiles?

No problem here. (1.0.7 cvs and 1.0.6 rpm)
Probable u have already tried all the FAQ hints, so I will skip this. I have heard from this error, but it always vanished mysteriously after some 'trying out what is going on'. compiler bug? Since u are familiar with the compiler plz do a 'make clean all OPT=-va > c.txt' and find out more details. Does the compiler search in the correct directories?

Mattias

Reply by email