Sign in Join

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

Mailing lists / lazarus / 2010-10

Lazarus rev. 27936 does not compile with CPU_TARGET=i386

8 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Torsten Bonde Christiansen

Hi Lazarus developer.

After having updated to the latest trunk revision this morning Lazarus failed to compile with CPU_TARGET=i386.

The error is:

make -C interfaces all
make[2]: Entering directory
`/home/torsten/FreePascal/lazarus/lcl/interfaces'
make -C gtk2 all
make[3]: Entering directory
`/home/torsten/FreePascal/lazarus/lcl/interfaces/gtk2' /bin/rm -f ../../units/i386-linux/gtk2/interfaces.ppu \ ../../units/i386-linux/gtk2/interfaces.o
/usr/bin/fpc -Pi386 -XPi386-linux- -Xr -gl -dgtk2
-Fu../../units/i386-linux -Fu.
-Fu/usr/lib/fpc/2.4.0/units/i386-linux/rtl -Fi. -FE. -FU../../units/i386-linux/gtk2 -di386 interfaces.pas gtk2extrah.inc(43,56) Fatal: Syntax error, "IMPLEMENTATION" expected but "identifier CDECL" found
Fatal: Compilation aborted
Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)

My system:
FPC - 2.4.0
Lazarus - 0.9.29 (rev. 27936)
Ubuntu 10.04 (x86_64)

Kind regards,
Torsten Bonde Christiansen.

Reply by email

Mattias Gaertner
to Torsten Bonde Christiansen: Hi Lazarus developer. After having updated to the latest trunk revision this morning…
Show quoted text 30 lines
Hi Lazarus developer. After having updated to the latest trunk revision this morning Lazarus failed to compile with CPU_TARGET=i386. The error is: make -C interfaces all make[2]: Entering directory `/home/torsten/FreePascal/lazarus/lcl/interfaces' make -C gtk2 all make[3]: Entering directory `/home/torsten/FreePascal/lazarus/lcl/interfaces/gtk2' /bin/rm -f ../../units/i386-linux/gtk2/interfaces.ppu \ ../../units/i386-linux/gtk2/interfaces.o /usr/bin/fpc -Pi386 -XPi386-linux- -Xr -gl -dgtk2 -Fu../../units/i386-linux -Fu. -Fu/usr/lib/fpc/2.4.0/units/i386-linux/rtl -Fi. -FE. -FU../../units/i386-linux/gtk2 -di386 interfaces.pas gtk2extrah.inc(43,56) Fatal: Syntax error, "IMPLEMENTATION" expected but "identifier CDECL" found Fatal: Compilation aborted Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled) My system: FPC - 2.4.0 Lazarus - 0.9.29 (rev. 27936) Ubuntu 10.04 (x86_64)

Probably it was already fixed in snv. Try with 27940.

Mattias

Reply by email

Torsten Bonde Christiansen
to Mattias Gaertner
Mattias Gaertner wrote 27 lines
> make -C interfaces all > make[2]: Entering directory > `/home/torsten/FreePascal/lazarus/lcl/interfaces' > make -C gtk2 all > make[3]: Entering directory > `/home/torsten/FreePascal/lazarus/lcl/interfaces/gtk2' > /bin/rm -f ../../units/i386-linux/gtk2/interfaces.ppu \ > ../../units/i386-linux/gtk2/interfaces.o > /usr/bin/fpc -Pi386 -XPi386-linux- -Xr -gl -dgtk2 > -Fu../../units/i386-linux -Fu. > -Fu/usr/lib/fpc/2.4.0/units/i386-linux/rtl -Fi. -FE. > -FU../../units/i386-linux/gtk2 -di386 interfaces.pas > gtk2extrah.inc(43,56) Fatal: Syntax error, "IMPLEMENTATION" expected but > "identifier CDECL" found > Fatal: Compilation aborted > Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not > specify a source file to be compiled) > > > My system: > FPC - 2.4.0 > Lazarus - 0.9.29 (rev. 27936) > Ubuntu 10.04 (x86_64) Probably it was already fixed in snv. Try with 27940.

Sorry, but that was a no-go. Still the same error, beside the update from 936->940 only updated the following files:

U lcl/lmessages.pp
U lcl/include/wincontrol.inc
U lcl/include/mainmenu.inc
U lcl/include/menu.inc
U lcl/include/toolbutton.inc
U lcl/menus.pp
Updated to revision 27940.

-Torsten.

Reply by email

Mattias Gaertner
to Torsten Bonde Christiansen
Show quoted text 38 lines
On 2010-10-29 09:36, Mattias Gaertner wrote: > >> make -C interfaces all >> make[2]: Entering directory >> `/home/torsten/FreePascal/lazarus/lcl/interfaces' >> make -C gtk2 all >> make[3]: Entering directory >> `/home/torsten/FreePascal/lazarus/lcl/interfaces/gtk2' >> /bin/rm -f ../../units/i386-linux/gtk2/interfaces.ppu \ >> ../../units/i386-linux/gtk2/interfaces.o >> /usr/bin/fpc -Pi386 -XPi386-linux- -Xr -gl -dgtk2 >> -Fu../../units/i386-linux -Fu. >> -Fu/usr/lib/fpc/2.4.0/units/i386-linux/rtl -Fi. -FE. >> -FU../../units/i386-linux/gtk2 -di386 interfaces.pas >> gtk2extrah.inc(43,56) Fatal: Syntax error, "IMPLEMENTATION" expected but >> "identifier CDECL" found >> Fatal: Compilation aborted >> Error: /usr/bin/ppc386 returned an error exitcode (normal if you did not >> specify a source file to be compiled) >> >> >> My system: >> FPC - 2.4.0 >> Lazarus - 0.9.29 (rev. 27936) >> Ubuntu 10.04 (x86_64) > > Probably it was already fixed in snv. Try with 27940. > Sorry, but that was a no-go. Still the same error, beside the update from 936->940 only updated the following files: U lcl/lmessages.pp U lcl/include/wincontrol.inc U lcl/include/mainmenu.inc U lcl/include/menu.inc U lcl/include/toolbutton.inc U lcl/menus.pp Updated to revision 27940.

Maybe you have local modifications?

The line gtk2extrah.inc(43,56):

function gdk_window_xwindow(win : PGdkDrawable): TXID; cdecl; external gdklib name 'gdk_x11_drawable_get_xid';

I will later test on a 32bit system...

Mattias

Reply by email

Paul Ishenin
to Mattias Gaertner
Mattias Gaertner wrote 7 lines
Maybe you have local modifications? The line gtk2extrah.inc(43,56): function gdk_window_xwindow(win : PGdkDrawable): TXID; cdecl; external gdklib name 'gdk_x11_drawable_get_xid'; I will later test on a 32bit system...

I tested with fpc 2.5.1 on ubuntu linux 32bit. No errors during the compilation.

Best regards,
Paul Ishenin.

Reply by email

Mattias Gaertner
to Paul Ishenin
Show quoted text 10 lines
29.10.2010 15:57, Mattias Gaertner wrote: > Maybe you have local modifications? > > The line gtk2extrah.inc(43,56): > > function gdk_window_xwindow(win : PGdkDrawable): TXID; cdecl; external gdklib name 'gdk_x11_drawable_get_xid'; > > I will later test on a 32bit system... I tested with fpc 2.5.1 on ubuntu linux 32bit. No errors during the compilation.

Same here.

Mattias

Reply by email

Torsten Bonde Christiansen
to Mattias Gaertner
Mattias Gaertner wrote 16 lines
On Fri, 29 Oct 2010 19:24:41 +0800 Paul Ishenin wrote: > 29.10.2010 15:57, Mattias Gaertner wrote: >> Maybe you have local modifications? >> >> The line gtk2extrah.inc(43,56): >> >> function gdk_window_xwindow(win : PGdkDrawable): TXID; cdecl; external gdklib name 'gdk_x11_drawable_get_xid'; >> >> I will later test on a 32bit system... > I tested with fpc 2.5.1 on ubuntu linux 32bit. No errors during the > compilation. Same here.

I've tried reverting back to ~27600 and still get the same compilation error, so it must be something in my setup.

Thanks for your time anyway.

-Torsten.

Reply by email