Re: [fpc-devel] fpcmkcfg invocation for two versions (linux)

2014-10-21 Thread Joost van der Sluis
 thank you,
 
 but my question was more about where to put fpc.cfg so that both 
 versions can use it properly, or, if that is not possible, where to 
 stuff different fpc.cfg's for the same purpose?
 and what would be the basepath in either case?

Normally, if you install both versions at the same location, you don't need two 
fpc.cfg files. Inside the fpc.cfg you can use macro's so that the the compiler 
searches for the right units (ppu's). This is done by fpcmkcfg by default. (Or 
samplecfg which is a wrapper around fpcmkcfg)

Overall the proces is quite simple: install fpc version A. Rename the 
compiler-executable from ie. ppcx64 to ppcx64_2_6_4. Then install fpc version 
b. Now you can select which version you want to use by calling the compiler 
using different names. (ppcx64 and ppcx64_2_6_4). This works perfectly if you 
use an IDE like Lazarus, in which you can simply select which 
compiler-executable to use. If you want to use 'fpc' to call the compiler, you 
need some additional tricks.

But to answer your question: you can place a fpc.cfg in the same location as 
the executable. If you place the executables of both compiler-versions in a 
different directory, they can both have their own fpc.cfg. (You can use the -va 
compiler option to see which fpc.cfg is actually used)

My current setup is that I have fpc-trunk installed in my home-directory. (I 
use 'make install PREFIX=~/fpc') And I have added ~/fpc/bin/x86_64 to my path. 
And I have a fpc.cfg in ~/fpc/bin/x86_64.

But I also have fpc 2.6.4 installed, the version provided by my 
Linux-distribution. If I need the original/latest release I use the full path 
to the compiler, or rename ~/fpc to ~/fpc_.

In short: there are a lot of configurations possible, and everyone can decide 
what's the best setup for his/her needs.

Joost.___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Building 2.7.1 on current Raspbian fails

2014-10-21 Thread peter green

Paul Michell wrote:

I should probablly get arround to doing a raspbian version of 2.6.4.



Yes please :)


Ok, i've just uploaded 2.6.4

https://archive.raspbian.org/raspbian/pool/main/f/fpc/


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Building 2.7.1 on current Raspbian fails

2014-10-21 Thread Paul Michell
On Tuesday 21 Oct 2014 09:31:42 peter green wrote:
 Ok, i've just uploaded 2.6.4
 
 https://archive.raspbian.org/raspbian/pool/main/f/fpc/

Thank you, how am I best to install this?

I naively thought that would update the version installed
when you perform:

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fpc

When I do this on a completely clean 2014-09-09-wheezy-raspbian I get:

Reading package lists... Done
Building dependency tree   
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 fpc : Depends: fpc-2.6.0 (= 2.6.0-9+rpi1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

Do I need to upgrade to Jessie, or do the packages have to be 
installed by hand?

Thanks,

Paul
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Building 2.7.1 on current Raspbian fails

2014-10-21 Thread John Lee
Don't know why you have this problem with wheezy, but can confirm I'm
running rpi jessie, and the 'sudo' sequence above works for me ok ie does
70Mbyte download  installs fpc with no errors. Haven't really tested it,
but help says it is 2.6.2 -8 rpil+b2 2014/7/21 for arm.

john


On 21 October 2014 12:58, Paul Michell p...@michellcomputing.co.uk wrote:

 On Tuesday 21 Oct 2014 09:31:42 peter green wrote:
  Ok, i've just uploaded 2.6.4
 
  https://archive.raspbian.org/raspbian/pool/main/f/fpc/

 Thank you, how am I best to install this?

 I naively thought that would update the version installed
 when you perform:

 sudo apt-get update
 sudo apt-get upgrade
 sudo apt-get install fpc

 When I do this on a completely clean 2014-09-09-wheezy-raspbian I get:

 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 Some packages could not be installed. This may mean that you have
 requested an impossible situation or if you are using the unstable
 distribution that some required packages have not yet been created
 or been moved out of Incoming.
 The following information may help to resolve the situation:

 The following packages have unmet dependencies:
  fpc : Depends: fpc-2.6.0 (= 2.6.0-9+rpi1) but it is not going to be
 installed
 E: Unable to correct problems, you have held broken packages.

 Do I need to upgrade to Jessie, or do the packages have to be
 installed by hand?

 Thanks,

 Paul
 ___
 fpc-devel maillist  -  fpc-devel@lists.freepascal.org
 http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Building 2.7.1 on current Raspbian fails

2014-10-21 Thread Paul Michell
On Tuesday 21 Oct 2014 13:45:25 John Lee wrote:
 Don't know why you have this problem with wheezy, but can confirm I'm
 running rpi jessie, and the 'sudo' sequence above works for me ok ie does
 70Mbyte download  installs fpc with no errors. Haven't really tested it,
 but help says it is 2.6.2 -8 rpil+b2 2014/7/21 for arm.
 
 john

I have just done a dist-upgrade and tried again and as you say, I now
have an installed 2.6.2.  So it would seem FPC is currently broken on
stable Raspbian which is a pity.

I'll see if I have any better luck compiling trunk now!

Thanks John


 On 21 October 2014 12:58, Paul Michell p...@michellcomputing.co.uk wrote:
 
  On Tuesday 21 Oct 2014 09:31:42 peter green wrote:
   Ok, i've just uploaded 2.6.4
  
   https://archive.raspbian.org/raspbian/pool/main/f/fpc/
 
  Thank you, how am I best to install this?
 
  I naively thought that would update the version installed
  when you perform:
 
  sudo apt-get update
  sudo apt-get upgrade
  sudo apt-get install fpc
 
  When I do this on a completely clean 2014-09-09-wheezy-raspbian I get:
 
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  Some packages could not be installed. This may mean that you have
  requested an impossible situation or if you are using the unstable
  distribution that some required packages have not yet been created
  or been moved out of Incoming.
  The following information may help to resolve the situation:
 
  The following packages have unmet dependencies:
   fpc : Depends: fpc-2.6.0 (= 2.6.0-9+rpi1) but it is not going to be
  installed
  E: Unable to correct problems, you have held broken packages.
 
  Do I need to upgrade to Jessie, or do the packages have to be
  installed by hand?
 
  Thanks,
 
  Paul
  ___
  fpc-devel maillist  -  fpc-devel@lists.freepascal.org
  http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
 

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Building 2.7.1 on current Raspbian fails

2014-10-21 Thread peter green

Paul Michell wrote:

On Tuesday 21 Oct 2014 13:45:25 John Lee wrote:
  

Don't know why you have this problem with wheezy, but can confirm I'm
running rpi jessie, and the 'sudo' sequence above works for me ok ie does
70Mbyte download  installs fpc with no errors. Haven't really tested it,
but help says it is 2.6.2 -8 rpil+b2 2014/7/21 for arm.

john



I have just done a dist-upgrade and tried again and as you say, I now
have an installed 2.6.2.  
Raspbian jessie should have 2.6.4 soon (it's already in raspbian 
jessie-staging..).


Raspbian wheezy will be staying with 2.6.0

So it would seem FPC is currently broken on
stable Raspbian which is a pity.
  
It's fine on plain raspbian, unfortunately it seems that the raspberry 
pi foundation are shipping a newer version of binutils which conflicts 
with the fpc packaging from wheezy.


Since the breakage is not related to plain raspbian I won't be putting a 
fix for this in the main raspbian repository but I intend to set up a 
repository for fixes to raspberry pi foundation screwups soon and i'll 
post a url for that when it's ready.

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


[fpc-devel] Dumping the syntax tree

2014-10-21 Thread Vsevolod Alekseyev

Hi all,

I wonder where in the FPC compilation flow would be a good spot to dump 
the parsed syntax tree of a source?


Here's why I'm asking. For a while now, I've been struggling to adapt a 
bunch of Pascal code to various mobile platforms. It's been painful. The 
code itself is pretty conservative feature-wise, almost KR C-like 
(except sets and ansistrings). I wonder if I could slap together a quick 
and dirty Pascal-to-C converter just for this codebase to work, but I'd 
rather reuse the existing parsing logic.


So if anyone could point me at a spot in the FPC source where the source 
tree is more or less ready, that's be nice. Thanks in advance.

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel


Re: [fpc-devel] Building 2.7.1 on current Raspbian fails

2014-10-21 Thread peter green

peter green wrote:

So it would seem FPC is currently broken on
stable Raspbian which is a pity.
  
It's fine on plain raspbian, unfortunately it seems that the raspberry 
pi foundation are shipping a newer version of binutils which conflicts 
with the fpc packaging from wheezy.


Since the breakage is not related to plain raspbian I won't be putting 
a fix for this in the main raspbian repository but I intend to set up 
a repository for fixes to raspberry pi foundation screwups soon and 
i'll post a url for that when it's ready.

Done

deb http://plugwash.raspbian.org/wsf wheezy-wsf main
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel