Sign in Join

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

Mailing lists / fpc-devel / 2006-09

2.1.1 SVN revision doesn't compile

7 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

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

Graeme Geldenhuys

Got an update 5 minutes ago did a 'make clean' and 'make install' and got this compiler error.

as --32 -o /mnt/data/opt/fpc_2.1.1/src/rtl/units/i386-linux/gprt21.o i386/gprt21.as
/mnt/data/opt/fpc_2.1.1/bin/ppc386 -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../i386 -Fi../unix -Fii386 -FE.
-FU/mnt/data/opt/fpc_2.1.1/src/rtl/units/i386-linux -di386 -dRELEASE -Us -Sg system.pp
systemh.inc(72,15) Error: Duplicate identifier "Real" system.pp(36,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
make[7]: *** [system.ppu] Error 1
make[7]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src/rtl/linux' make[6]: *** [linux_all] Error 2
make[6]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src/rtl' make[5]: *** [rtl] Error 2
make[5]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src/compiler' make[4]: *** [next] Error 2
make[4]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src/compiler' make[3]: *** [ppc1] Error 2
make[3]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src/compiler' make[2]: *** [cycle] Error 2
make[2]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src/compiler' make[1]: *** [compiler_cycle] Error 2
make[1]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src' make: *** [build-stamp.i386-linux] Error 2

Looking at the code it has this at the location of the error.

---------------------
{ moved here from psystem.pas
Delphi allows chose of overloaded procedure depending on Real <-> Double, so use type here, see also tw7425.pp (FK) } {$ifndef VER2_0}

  Real = type Double;

{$endif VER2_0}
---------------------

Regards,
- Graeme -

There's no place like 127.0.0.1

Reply by email

Vincent Snijders
to Graeme Geldenhuys
Graeme Geldenhuys wrote 40 lines
Got an update 5 minutes ago did a 'make clean' and 'make install' and got this compiler error. as --32 -o /mnt/data/opt/fpc_2.1.1/src/rtl/units/i386-linux/gprt21.o i386/gprt21.as /mnt/data/opt/fpc_2.1.1/bin/ppc386 -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../i386 -Fi../unix -Fii386 -FE. -FU/mnt/data/opt/fpc_2.1.1/src/rtl/units/i386-linux -di386 -dRELEASE -Us -Sg system.pp systemh.inc(72,15) Error: Duplicate identifier "Real" system.pp(36,1) Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted make[7]: *** [system.ppu] Error 1 make[7]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src/rtl/linux' make[6]: *** [linux_all] Error 2 make[6]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src/rtl' make[5]: *** [rtl] Error 2 make[5]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src/compiler' make[4]: *** [next] Error 2 make[4]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src/compiler' make[3]: *** [ppc1] Error 2 make[3]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src/compiler' make[2]: *** [cycle] Error 2 make[2]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src/compiler' make[1]: *** [compiler_cycle] Error 2 make[1]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src' make: *** [build-stamp.i386-linux] Error 2 Looking at the code it has this at the location of the error. --------------------- { moved here from psystem.pas Delphi allows chose of overloaded procedure depending on Real <-> Double, so use type here, see also tw7425.pp (FK) } {$ifndef VER2_0} Real = type Double; {$endif VER2_0} ---------------------

Did you use fpc 2.0.4 (the latest release) as starting compiler?

Vincent

Reply by email

Graeme Geldenhuys
to Vincent Snijders

Nope, I had 2.1.1 from SVN dated last week Monday. Every monday I get the latest from SVN. Now sitting at revision 4642.

I tried to comment those lines out, but then I get a undefined Real type error at a different location.

Regards,
- Graeme -

Vincent Snijders wrote 49 lines
Graeme Geldenhuys schreef: > Got an update 5 minutes ago did a 'make clean' and 'make install' and > got this compiler error. > > > as --32 -o /mnt/data/opt/fpc_2.1.1/src/rtl/units/i386-linux/gprt21.o > i386/gprt21.as > /mnt/data/opt/fpc_2.1.1/bin/ppc386 -Ur -Ur -Xs -O2 -n -Fi../inc > -Fi../i386 -Fi../unix -Fii386 -FE. > -FU/mnt/data/opt/fpc_2.1.1/src/rtl/units/i386-linux -di386 -dRELEASE > -Us -Sg system.pp > systemh.inc(72,15) Error: Duplicate identifier "Real" > system.pp(36,1) Fatal: There were 1 errors compiling module, stopping > Fatal: Compilation aborted > make[7]: *** [system.ppu] Error 1 > make[7]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src/rtl/linux' > make[6]: *** [linux_all] Error 2 > make[6]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src/rtl' > make[5]: *** [rtl] Error 2 > make[5]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src/compiler' > make[4]: *** [next] Error 2 > make[4]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src/compiler' > make[3]: *** [ppc1] Error 2 > make[3]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src/compiler' > make[2]: *** [cycle] Error 2 > make[2]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src/compiler' > make[1]: *** [compiler_cycle] Error 2 > make[1]: Leaving directory `/mnt/data/opt/fpc_2.1.1/src' > make: *** [build-stamp.i386-linux] Error 2 > > > Looking at the code it has this at the location of the error. > > --------------------- > { moved here from psystem.pas > Delphi allows chose of overloaded procedure depending > on Real <-> Double, so use type here, see also tw7425.pp (FK) } > {$ifndef VER2_0} > Real = type Double; > {$endif VER2_0} > --------------------- Did you use fpc 2.0.4 (the latest release) as starting compiler? Vincent _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel
There's no place like 127.0.0.1

Reply by email

Jonas Maebe
to Graeme Geldenhuys
Graeme Geldenhuys wrote
Nope, I had 2.1.1 from SVN dated last week Monday. Every monday I get the latest from SVN. Now sitting at revision 4642.

Compilation of 2.1.1 is only guaranteed to work with the latest release (currently 2.0.4). Anything else may work, but is not guaranteed to work. Start with 2.0.4 and it will work fine.

Jonas

Reply by email

Graeme Geldenhuys
to Jonas Maebe

So Iast week Monday I had a working 2.1.1. Today I am trying to compile the latest 2.1.1 (svn) with last weeks 2.1.1 compiler and it isn't supported?? I have been working like this for months. This makes no sense... but then I am not a Compiler developer... :-) For now, I will revert my WC back to last weeks revision.

Regards,
- Graeme -

Jonas Maebe wrote 16 lines
On 18 sep 2006, at 09:11, Graeme Geldenhuys wrote: > Nope, I had 2.1.1 from SVN dated last week Monday. Every monday I get > the latest from SVN. Now sitting at revision 4642. Compilation of 2.1.1 is only guaranteed to work with the latest release (currently 2.0.4). Anything else may work, but is not guaranteed to work. Start with 2.0.4 and it will work fine. Jonas _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel
There's no place like 127.0.0.1

Reply by email

Jonas Maebe
to Graeme Geldenhuys
Graeme Geldenhuys wrote
So Iast week Monday I had a working 2.1.1. Today I am trying to compile the latest 2.1.1 (svn) with last weeks 2.1.1 compiler and it isn't supported??

It has never been and never will be supported. It works most of the time (I also usually do it that way), but not always.

I have been working like this for months. This makes no sense... but then I am not a Compiler developer... :-)

It happens if you get circular dependencies with fixes in the RTL: if a certain fix requires both changes in the RTL and in the compiler, and if the changed RTL can only be compiled by the fixed compiler, then we add a conditional define to the RTL which the previous stable release to still compile it (possibly with reduced functionality, but enough to bootstrap the 2.1.1 compiler).

We don't do this for the 2.1.1 compiler to avoid ifdef explosions.

Jonas

Reply by email

Graeme Geldenhuys
to Jonas Maebe: Compilation of 2.1.1 is only guaranteed to work with the latest release (currently…

So I learn. You were right. I had a 2.0.x (2.0.5) fpc, and used that to compile the latest 2.1.1 and it worked. I still need to get my head around why last weeks 2.1.1 couldn't compile this weeks 2.1.1 (svn)... I guess that's why I am an application developer and not a compiler developer. ;-)

Thanks for the help!

Regards,
- Graeme -

Jonas Maebe wrote 16 lines
On 18 sep 2006, at 09:11, Graeme Geldenhuys wrote: > Nope, I had 2.1.1 from SVN dated last week Monday. Every monday I get > the latest from SVN. Now sitting at revision 4642. Compilation of 2.1.1 is only guaranteed to work with the latest release (currently 2.0.4). Anything else may work, but is not guaranteed to work. Start with 2.0.4 and it will work fine. Jonas _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel
There's no place like 127.0.0.1

Reply by email