Sign in Join

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

Mailing lists / lazarus / 2002-11

Unable to build Lazarus

9 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Brad Campbell
to Brad Campbell: bklaptop:~/pascal/dgi>gtk-config --version 1.2.10 Running a stock Debian Woody system.…
you wrote 5 lines
>Hint: Path "/usr/lib/fpc/1.0.7/units/linux/" not found >Hint: Path "/usr/lib/fpc/1.0.7/units/linux/rtl/" not found so then where ARE your units? perhaps its using the wrong units.. have you made sure to update your fpc.cfg to point to the proper location?

Yep.. it's all stored in /usr/src/fpc/units..
My fpc installation is fine, and this build ok up until recently.

Reply by email

Brad Campbell

G'day all,
I'm using latest CVS compiler and Lazarus

Build fails with this error.

Any ideas ?

make[3]: Entering directory `/usr/src/fpc/lazarus/lcl/interfaces/gtk' /bin/rm -f ../../units/gtk/interfaces.ppu ../../units/interfaces.ppu /usr/src/fpc/bin/ppc386 -gl -Fu../../units -Fu. -FU../../units/gtk -Fl/usr/lib/gcc-lib/i386-linux/2.95.4 -Fl/usr/X11R6/lib -Fl/usr/local/lib -Fl/usr/lib/libc5-compat -Fl/lib/libc5-compat -Fl/usr/local/wine/lib -Fl/usr/lib -Fl/usr/local/i386-linux-uclibc/lib -Fl/home/brad/embeded/temp/lib -Fl/usr/i486-linuxlibc1/lib -di386 interfaces.pp Hint: End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 1.0.7 [2002/11/12] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Hint: Path "/usr/lib/fpc/1.0.7/units/linux/" not found Hint: Path "/usr/lib/fpc/1.0.7/units/linux/rtl/" not found Target OS: Linux for i386
Compiling interfaces.pp
Compiling gtkint.pp
gtkobject.inc(2161,3) Hint: Parameter LEFT not used gtkobject.inc(2161,9) Hint: Parameter TOP not used gtkobject.inc(2161,14) Hint: Parameter WIDTH not used gtkobject.inc(2161,21) Hint: Parameter HEIGHT not used gtkobject.inc(5093,39) Hint: use DIV instead to get an integer result gtkobject.inc(5094,47) Hint: use DIV instead to get an integer result gtkobject.inc(5095,48) Hint: use DIV instead to get an integer result gtkobject.inc(5802,28) Error: illegal call by reference parameters gtkobject.inc(5801,28) Error: illegal call by reference parameters gtkobject.inc(5800,28) Error: illegal call by reference parameters gtkobject.inc(5799,28) Error: illegal call by reference parameters gtkwinapi.inc(3678,42) Hint: use DIV instead to get an integer result gtkwinapi.inc(3684,42) Hint: use DIV instead to get an integer result gtkint.pp(637) Fatal: There were 4 errors compiling module, stopping make[3]: *** [interfaces.ppu] Error 1
make[3]: Leaving directory `/usr/src/fpc/lazarus/lcl/interfaces/gtk' make[2]: *** [gtk_all] Error 2
make[2]: Leaving directory `/usr/src/fpc/lazarus/lcl/interfaces' make[1]: *** [interfaces] Error 2
make[1]: Leaving directory `/usr/src/fpc/lazarus/lcl' make: *** [lcl] Error 2
bklaptop:/usr/src/fpc/lazarus>

Reply by email

Brad Campbell
to Brad Campbell: Yep.. it's all stored in /usr/src/fpc/units.. My fpc installation is fine, and this build…
you wrote 19 lines
well since I can only guess at what might be causing the problems. I would suggest trying what I told David: Try to change the problem lines(5799-5802) from : PS_DASH: gdk_gc_set_dashes(GC, 0, [4,4], 2); PS_DOT: gdk_gc_set_dashes(GC, 0, [2,2], 2); PS_DASHDOT: gdk_gc_set_dashes(GC, 0, [4,2,2,2,0], 4); PS_DASHDOTDOT: gdk_gc_set_dashes(GC, 0, [4,2,2,2,2,2], 6); TO: PS_DASH: gdk_gc_set_dashes(GC, 0, [#4,#4], 2); PS_DOT: gdk_gc_set_dashes(GC, 0, [#2,#2], 2); PS_DASHDOT: gdk_gc_set_dashes(GC, 0, [#4,#2,#2,#2,#0],4); PS_DASHDOTDOT: gdk_gc_set_dashes(GC, 0, [#4,#2,#2,#2,#2,#2],6); if it works.. let me know and I will see about adding a #define char_dashes, as a work around.

Free Pascal Compiler version 1.0.7 [2002/11/12] for i386 Copyright (c) 1993-2002 by Florian Klaempfl
Hint: Path "/usr/lib/fpc/1.0.7/units/linux/" not found Hint: Path "/usr/lib/fpc/1.0.7/units/linux/rtl/" not found Target OS: Linux for i386
Compiling interfaces.pp
Compiling gtkint.pp
gtkobject.inc(2161,3) Hint: Parameter LEFT not used gtkobject.inc(2161,9) Hint: Parameter TOP not used gtkobject.inc(2161,14) Hint: Parameter WIDTH not used gtkobject.inc(2161,21) Hint: Parameter HEIGHT not used gtkobject.inc(5093,39) Hint: use DIV instead to get an integer result gtkobject.inc(5094,47) Hint: use DIV instead to get an integer result gtkobject.inc(5095,48) Hint: use DIV instead to get an integer result gtkobject.inc(5799,53) Error: Incompatible type for arg no. 3: Got Array Of CHAR, expected Array Of SHORTINT gtkobject.inc(5800,53) Error: Incompatible type for arg no. 3: Got Array Of CHAR, expected Array Of SHORTINT gtkobject.inc(5801,53) Error: Incompatible type for arg no. 3: Got Array Of CHAR, expected Array Of SHORTINT gtkobject.inc(5802,53) Error: Incompatible type for arg no. 3: Got Array Of CHAR, expected Array Of SHORTINT gtkwinapi.inc(3678,42) Hint: use DIV instead to get an integer result gtkwinapi.inc(3684,42) Hint: use DIV instead to get an integer result gtkint.pp(637) Fatal: There were 4 errors compiling module, stopping make[3]: *** [interfaces.ppu] Error 1
make[3]: Leaving directory `/usr/src/fpc/lazarus/lcl/interfaces/gtk' make[2]: *** [gtk_all] Error 2
make[2]: Leaving directory `/usr/src/fpc/lazarus/lcl/interfaces' make[1]: *** [interfaces] Error 2
make[1]: Leaving directory `/usr/src/fpc/lazarus/lcl' make: *** [lcl] Error 2

Reply by email

andrew johnson
to Brad Campbell: I'm using latest CVS compiler and Lazarus Build fails with this error. Any ideas ?…

hmm second person with this problem. Can you tell me what version of GDK and GTK+ you have? (gtk-config --version)

Andrew

Brad Campbell wrote 45 lines
G'day all, I'm using latest CVS compiler and Lazarus Build fails with this error. Any ideas ? make[3]: Entering directory `/usr/src/fpc/lazarus/lcl/interfaces/gtk' /bin/rm -f ../../units/gtk/interfaces.ppu ../../units/interfaces.ppu /usr/src/fpc/bin/ppc386 -gl -Fu../../units -Fu. -FU../../units/gtk -Fl/usr/lib/gcc-lib/i386-linux/2.95.4 -Fl/usr/X11R6/lib -Fl/usr/local/lib -Fl/usr/lib/libc5-compat -Fl/lib/libc5-compat -Fl/usr/local/wine/lib -Fl/usr/lib -Fl/usr/local/i386-linux-uclibc/lib -Fl/home/brad/embeded/temp/lib -Fl/usr/i486-linuxlibc1/lib -di386 interfaces.pp Hint: End of reading config file /etc/fpc.cfg Free Pascal Compiler version 1.0.7 [2002/11/12] for i386 Copyright (c) 1993-2002 by Florian Klaempfl Hint: Path "/usr/lib/fpc/1.0.7/units/linux/" not found Hint: Path "/usr/lib/fpc/1.0.7/units/linux/rtl/" not found Target OS: Linux for i386 Compiling interfaces.pp Compiling gtkint.pp gtkobject.inc(2161,3) Hint: Parameter LEFT not used gtkobject.inc(2161,9) Hint: Parameter TOP not used gtkobject.inc(2161,14) Hint: Parameter WIDTH not used gtkobject.inc(2161,21) Hint: Parameter HEIGHT not used gtkobject.inc(5093,39) Hint: use DIV instead to get an integer result gtkobject.inc(5094,47) Hint: use DIV instead to get an integer result gtkobject.inc(5095,48) Hint: use DIV instead to get an integer result gtkobject.inc(5802,28) Error: illegal call by reference parameters gtkobject.inc(5801,28) Error: illegal call by reference parameters gtkobject.inc(5800,28) Error: illegal call by reference parameters gtkobject.inc(5799,28) Error: illegal call by reference parameters gtkwinapi.inc(3678,42) Hint: use DIV instead to get an integer result gtkwinapi.inc(3684,42) Hint: use DIV instead to get an integer result gtkint.pp(637) Fatal: There were 4 errors compiling module, stopping make[3]: *** [interfaces.ppu] Error 1 make[3]: Leaving directory `/usr/src/fpc/lazarus/lcl/interfaces/gtk' make[2]: *** [gtk_all] Error 2 make[2]: Leaving directory `/usr/src/fpc/lazarus/lcl/interfaces' make[1]: *** [interfaces] Error 2 make[1]: Leaving directory `/usr/src/fpc/lazarus/lcl' make: *** [lcl] Error 2 bklaptop:/usr/src/fpc/lazarus> _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
andrew johnson

Reply by email

andrew johnson
to Brad Campbell: I'm using latest CVS compiler and Lazarus Build fails with this error. Any ideas ?…
Hint: Path "/usr/lib/fpc/1.0.7/units/linux/" not found Hint: Path "/usr/lib/fpc/1.0.7/units/linux/rtl/" not found

so then where ARE your units? perhaps its using the wrong units.. have you made sure to update your fpc.cfg to point to the proper location?

Andrew

Brad Campbell wrote 15 lines
At 06:54 PM 11/11/02 -0500, you wrote: >hmm second person with this problem. Can you tell me what version of GDK >and GTK+ you have? (gtk-config --version) bklaptop:~/pascal/dgi>gtk-config --version 1.2.10 Running a stock Debian Woody system. Brad _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
andrew johnson

Reply by email

andrew johnson
to Brad Campbell: bklaptop:~/pascal/dgi>gtk-config --version 1.2.10 Running a stock Debian Woody system.…

well since I can only guess at what might be causing the problems. I would suggest trying what I told David:

Try to change the problem lines(5799-5802) from :

       PS_DASH:       gdk_gc_set_dashes(GC, 0, [4,4], 2);
       PS_DOT:        gdk_gc_set_dashes(GC, 0, [2,2], 2);
       PS_DASHDOT:    gdk_gc_set_dashes(GC, 0, [4,2,2,2,0], 4);
       PS_DASHDOTDOT: gdk_gc_set_dashes(GC, 0, [4,2,2,2,2,2], 6);

TO:

       PS_DASH:       gdk_gc_set_dashes(GC, 0, [#4,#4], 2);
       PS_DOT:        gdk_gc_set_dashes(GC, 0, [#2,#2], 2);
       PS_DASHDOT:    gdk_gc_set_dashes(GC, 0, [#4,#2,#2,#2,#0],4);
       PS_DASHDOTDOT: gdk_gc_set_dashes(GC, 0, [#4,#2,#2,#2,#2,#2],6);

if it works.. let me know and I will see about adding a #define char_dashes, as a work around.

Andrew

Brad Campbell wrote 14 lines
At 08:02 PM 11/11/02 -0500, you wrote: >>Hint: Path "/usr/lib/fpc/1.0.7/units/linux/" not found >>Hint: Path "/usr/lib/fpc/1.0.7/units/linux/rtl/" not found > >so then where ARE your units? perhaps its using the wrong units.. have >you made sure to update your fpc.cfg to point to the proper location? Yep.. it's all stored in /usr/src/fpc/units.. My fpc installation is fine, and this build ok up until recently. _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
andrew johnson

Reply by email

Mattias Gaertner
to Brad Campbell: Yep.. it's all stored in /usr/src/fpc/units.. My fpc installation is fine, and this build…
Show quoted text 7 lines
At 11:47 PM 11/11/02 -0500, you wrote: >well since I can only guess at what might be causing the problems. I >would suggest trying what I told David: It's compiler related. 2002/7/24 works fine Latest CVS causes the problem.

It's known, that fpc has problems converting 'array of const' parameters to different calling conventions. But it seems, that there is also a problem with converting 'array of' parameters.
So, I have defined a laz_gdk_gc_set_dashes external procedure that uses a Pgint8 instead of an 'array of gint8'.
You should now be able to compile lazarus.

Perhaps this should be changed in the gdkmain.pp of the fpc package. IMO a pointer makes here more sense anyway.

Mattias

Reply by email