Sign in Join

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

Mailing lists / fpc-devel / 2010-11

problem compiling

12 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

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

Michael Schnell

When trying to compile svn version 16473 (and some earlier versions) I get:

/usr/bin/ppc386 -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../i386 -Fi../unix -Fii386 -FE.
-FU/home/mschnell/Downloads/svn/fpc/trunk/rtl/units/i386-linux -di386 -dRELEASE ../objpas/fgl.pp
fgl.pp(128,38) Error: Generics without specialization cannot be used as a type for a variable

What am I doing wrong ?

Thanks
-Michael

Reply by email

Marco van de Voort
to Michael Schnell

In our previous episode, Michael Schnell said:

Show quoted text 9 lines
/usr/bin/ppc386 -Ur -Ur -Xs -O2 -n -Fi../inc -Fi../i386 -Fi../unix -Fii386 -FE. -FU/home/mschnell/Downloads/svn/fpc/trunk/rtl/units/i386-linux -di386 -dRELEASE ../objpas/fgl.pp fgl.pp(128,38) Error: Generics without specialization cannot be used as a type for a variable What am I doing wrong ?

Do you use 2.4.2 as starting compiler?

Reply by email

Michael Schnell
to Marco van de Voort
Marco van de Voort wrote
Do you use 2.4.2 as starting compiler?

I used the latest compiler I was able to install successfully:

Free Pascal Compiler version 2.5.1 [2010/11/22] for i386

Is this not allowed ?

I in fact I don't know how to install a different fpc to compile the fpc I am trying to use with Lazarus.

Thanks,
-Michael

Reply by email

Sven Barth
to Michael Schnell
Michael Schnell wrote 9 lines
On 11/29/2010 10:25 AM, Marco van de Voort wrote: > Do you use 2.4.2 as starting compiler? > I used the latest compiler I was able to install successfully: Free Pascal Compiler version 2.5.1 [2010/11/22] for i386 Is this not allowed ?

It's not forbidden, but not supported either. Always use the latest release (currently 2.4.2) to compile trunk.

I in fact I don't know how to install a different fpc to compile the fpc I am trying to use with Lazarus.

What OS?

Regards,
Sven

Reply by email

Thaddy
to Michael Schnell: I used the latest compiler I was able to install successfully: Free Pascal Compiler…
Michael Schnell wrote 6 lines
On 11/29/2010 10:25 AM, Marco van de Voort wrote: > Do you use 2.4.2 as starting compiler? > I used the latest compiler I was able to install successfully: Free Pascal Compiler version 2.5.1 [2010/11/22] for i386

Trunk (i.e. 2.5.1 and higher) should be build with the latest stable release (i.e. 2.4.2) AFAIK.
Unless this has changed in the documentation, which I frankly haven't read for some time.
There's good reason for that: trunk is by definition unstable.... Until otherwise proven and then it becomes stable, if you follow me..

Reply by email

Marco van de Voort
to Michael Schnell: I used the latest compiler I was able to install successfully: Free Pascal Compiler…

In our previous episode, Michael Schnell said:

Show quoted text 7 lines
> Do you use 2.4.2 as starting compiler? > I used the latest compiler I was able to install successfully: Free Pascal Compiler version 2.5.1 [2010/11/22] for i386 Is this not allowed ?

Allowed yes, guaranteed no. The only guaranteed way is to use the last release to start the build of a new snapshot. See the buildfaq for details

I in fact I don't know how to install a different fpc to compile the fpc I am trying to use with Lazarus.

You only need the cmdline compiler. See buildfaq

buildfaq: http://www.stack.nl/~marcov/buildfaq/

Reply by email

Sven Barth
to Michael Schnell: Linux (Suse 3.11) -Michael
Michael Schnell wrote 5 lines
On 11/29/2010 10:40 AM, Sven Barth wrote: > > What OS? > Linux (Suse 3.11)

Download this release:
ftp://ftp.hu.freepascal.org/pub/fpc/dist/2.4.2/i386-linux/fpc-2.4.2.i386-linux.tar

Extract that to some directory and extract (I think) binary.tar.gz as well. Somewhere in there should be a ppc386 (if it's not there, then you need to try one of the other archives...). You then pass the path to this compiler to the make command (no need to install):

e.g.

make clean all FPC=/path/to/2.4.2/ppc386

This should(!) work.

Regards,
Sven

Reply by email